/* CASE GYN — correções de identidade, estabilidade e acessibilidade */
:root {
  --brand-blue: #2188f5;
  --brand-orange: #f58220;
  --focus-ring: 0 0 0 3px rgba(33, 136, 245, .32);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100000;
  padding: 12px 18px;
  border-radius: 10px;
  background: #fff;
  color: #0a0a0f;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* Cabeçalho: CASE azul e GYN laranja, sem deformar a marca. */
.logo {
  min-width: 154px;
  height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.9px;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .3));
}
.header-wordmark .word-case { color: var(--brand-blue); }
.header-wordmark .word-gyn { color: var(--brand-orange); }

/* Logotipo original completo no hero e no rodapé. */
.hero-brand-logo {
  display: block;
  width: clamp(230px, 26vw, 315px);
  height: auto;
  margin: 0 auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 16px 38px rgba(0, 0, 0, .58));
  animation: brand-float 5.5s ease-in-out infinite;
}
@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.footer-brand .footer-logo {
  display: block !important;
  width: min(245px, 100%);
  height: auto !important;
  max-height: none;
  margin: -14px 0 -4px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
}

/* Fundo visual quando o YouTube não carregar. */
#hero-video-bg {
  background:
    radial-gradient(circle at 50% 30%, rgba(33, 136, 245, .22), transparent 36%),
    radial-gradient(circle at 68% 58%, rgba(245, 130, 32, .16), transparent 32%),
    linear-gradient(145deg, #07101f, #0a0a0f 58%, #111827);
}

/* Lottie: animação quando disponível e fallback sempre visível. */
.service-icon,
.diff-icon,
.contact-lottie {
  overflow: hidden;
  isolation: isolate;
  position: relative;
}
.lottie-icon {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 1;
}
.lottie-icon::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  animation: fallback-float 2.6s ease-in-out infinite;
}
.lottie-icon > svg,
.lottie-icon > canvas {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
}
.lottie-icon.is-loaded::before { display: none; }
@keyframes fallback-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
}

/* Carrossel contínuo: dois grupos idênticos e deslocamento exato de 50%. */
.carousel-section {
  position: relative;
  overflow: hidden;
  padding: 24px 0 !important;
  background: rgba(255, 255, 255, .02) !important;
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.carousel-section::before,
.carousel-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: clamp(36px, 8vw, 130px);
  pointer-events: none;
}
.carousel-section::before {
  left: 0;
  background: linear-gradient(90deg, #0a0a0f 0%, rgba(10, 10, 15, .78) 34%, transparent 100%);
}
.carousel-section::after {
  right: 0;
  background: linear-gradient(-90deg, #0a0a0f 0%, rgba(10, 10, 15, .78) 34%, transparent 100%);
}
.carousel-viewport {
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex !important;
  gap: 0 !important;
  width: max-content !important;
  transform: translate3d(0, 0, 0);
  animation: casegyn-marquee var(--marquee-duration, 32s) linear infinite !important;
  will-change: transform;
  backface-visibility: hidden;
}
.carousel-track:hover { animation-play-state: running !important; }
.carousel-group {
  display: flex;
  flex: 0 0 auto;
  gap: 20px;
  padding-right: 20px;
}
@keyframes casegyn-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.carousel-section.is-paused .carousel-track {
  animation-play-state: paused !important;
}
.carousel-item {
  flex: 0 0 clamp(245px, 24vw, 315px) !important;
  width: clamp(245px, 24vw, 315px) !important;
  height: clamp(158px, 15.5vw, 205px) !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px !important;
  overflow: hidden;
  background: #0f1727;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transform: translateZ(0);
}
.carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-toggle {
  position: absolute;
  right: clamp(14px, 2vw, 28px);
  top: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(10, 10, 15, .84);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.carousel-toggle:hover {
  border-color: var(--brand-orange);
  background: rgba(245, 130, 32, .9);
  transform: translateY(-50%) scale(1.06);
}

/* Ícones dos diferenciais, escolhidos de acordo com cada informação. */
.diff-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.diff-top .diff-number { margin-bottom: 0 !important; }
.diff-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid rgba(33, 136, 245, .16);
  border-radius: 16px;
  background: rgba(33, 136, 245, .07);
}
.diff-icon .lottie-icon { padding: 6px; }

/* Ícones animados na página de contato. */
.contact-lottie {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(33, 136, 245, .16);
  border-radius: 14px;
  background: rgba(33, 136, 245, .08);
}
.contact-lottie .lottie-icon { padding: 5px; }
.contact-info-item > .contact-lottie + div { min-width: 0; }

/* Estados e componentes de suporte. */
#loading-screen { pointer-events: auto; }
#loading-screen.hidden { pointer-events: none; }
.nav.active { display: flex; }
body.menu-open { overflow: hidden; }
.hamburger { position: relative; z-index: 3; }
.cart-sidebar.open { right: 0 !important; visibility: visible !important; }
.cart-sidebar[aria-hidden="true"] { right: -100%; visibility: hidden; }
.cart-sidebar.open[aria-hidden="false"] { visibility: visible; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10020;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 420px);
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(15, 26, 46, .97);
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translate(-50%, 90px);
  transition: opacity .35s ease, transform .35s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-color: rgba(37, 211, 102, .4); }
.toast.success i { color: #25d366; }
.toast.info { border-color: rgba(33, 136, 245, .4); }
.toast.info i { color: var(--brand-blue); }

.scroll-top {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(15, 26, 46, .88);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all .3s ease;
  backdrop-filter: blur(12px);
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--brand-blue); background: var(--brand-blue); }

.product-image,
.blog-card-image,
.carousel-item { background-color: #0f1727; }
.product-image img,
.blog-card-image img,
.carousel-item img { color: transparent; }
button, .filter-btn, .view-btn, .product-card, .blog-card { touch-action: manipulation; }
.pagination-ellipsis { display: grid; place-items: center; min-width: 34px; color: rgba(255, 255, 255, .35); }
.blog-modal-cta { margin-top: 30px; text-align: center; }
.blog-modal-cta p { color: rgba(255, 255, 255, .5); margin-bottom: 15px; line-height: 1.6; }

.form-group input:user-invalid,
.form-group textarea:user-invalid,
.form-group select:user-invalid { border-color: rgba(245, 130, 32, .7); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

@media (hover: none), (pointer: coarse) {
  .cursor-outline { display: none !important; }
  .carousel-toggle { width: 38px; height: 38px; }
}

@media (max-width: 768px) {
  .logo { min-width: 130px; height: 40px; }
  .header-wordmark { font-size: 22px; gap: 4px; }
  .hero-content { padding-top: 105px; }
  .hero-brand-logo { width: min(255px, 68vw); margin-bottom: 8px; }
  .footer-brand .footer-logo { width: min(225px, 82vw); margin: -10px auto -2px; }
  .nav.active { z-index: 2; }
  .carousel-group { gap: 14px; padding-right: 14px; }
  .carousel-item {
    flex-basis: min(270px, 74vw) !important;
    width: min(270px, 74vw) !important;
    height: min(176px, 48vw) !important;
  }
  .carousel-toggle { right: 10px; }
}

@media (max-width: 480px) {
  .logo { min-width: 112px; }
  .header-wordmark { font-size: 20px; letter-spacing: -.6px; }
  .hero-brand-logo { width: min(225px, 70vw); }
  .diff-icon { width: 52px; height: 52px; flex-basis: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor-outline { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-brand-logo,
  .lottie-icon::before,
  .btn-glow,
  .btn-glow-blue,
  .btn-glow-orange,
  .pulse { animation: none !important; }
}

/* Cartões de produto compartilhados entre a home e o catálogo. */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 136, 245, .3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(33, 136, 245, .16), rgba(245, 130, 32, .06));
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-image img { transform: scale(1.045); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-orange), #ff5f2e);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 7px 18px rgba(245, 130, 32, .25);
}
.product-info { padding: 20px; }
.product-category {
  margin-bottom: 7px;
  color: #65a8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-info h3 {
  margin: 0 0 8px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  line-height: 1.38;
}
.product-info > p {
  min-height: 42px;
  margin: 0 0 15px;
  overflow: hidden;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-price { margin-bottom: 16px; }
.price-original {
  margin-right: 7px;
  color: rgba(255, 255, 255, .38);
  font-size: 13px;
  text-decoration: line-through;
}
.price-current {
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.price-current.promo { color: var(--brand-orange); }
.price-installments {
  margin-top: 4px;
  color: rgba(255, 255, 255, .42);
  font-size: 11px;
}
.product-actions { display: flex; gap: 9px; }
.btn-cart,
.btn-whatsapp-sm {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-cart {
  flex: 1;
  padding: 10px 15px;
  background: linear-gradient(135deg, #0066ff, #2188f5);
}
.btn-whatsapp-sm {
  flex: 0 0 44px;
  width: 44px;
  padding: 10px;
  background: #25d366;
}
.btn-cart:hover,
.btn-whatsapp-sm:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-cart:hover { box-shadow: 0 8px 22px rgba(0, 102, 255, .28); }
.btn-whatsapp-sm:hover { box-shadow: 0 8px 22px rgba(37, 211, 102, .22); }
.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { display: grid; grid-template-columns: minmax(190px, 28%) 1fr; }
.products-grid.list-view .product-image { height: 100%; min-height: 210px; aspect-ratio: auto; }
.products-grid.list-view .product-info { display: flex; flex-direction: column; justify-content: center; }

/* Carrinho completo, com as mesmas classes usadas pelo JavaScript atual. */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  transition: opacity .3s ease, visibility .3s ease;
}
.cart-overlay.active { visibility: visible; opacity: 1; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 10010;
  width: min(410px, 94vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(33, 136, 245, .18);
  background: linear-gradient(180deg, #0c1525, #08101d);
  box-shadow: -22px 0 58px rgba(0, 0, 0, .5);
  transition: right .38s cubic-bezier(.22, 1, .36, 1), visibility .38s;
}
.cart-sidebar.open { right: 0 !important; }
.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(33, 136, 245, .055);
}
.cart-sidebar-header h3 { margin: 0; color: #fff; font-size: 16px; }
.cart-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .7);
  font-size: 22px;
  cursor: pointer;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.cart-item img { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 11px; object-fit: cover; background: #0f1a2e; }
.cart-item-info { min-width: 0; flex: 1; }
.cart-item-info h4 { overflow: hidden; margin: 0 0 4px; color: #fff; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.cart-item-info p { margin: 0; color: #65a8ff; font-size: 13px; font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  cursor: pointer;
}
.cart-item-remove { border: 0; background: transparent; color: rgba(255, 255, 255, .45); cursor: pointer; }
.cart-sidebar-footer { padding: 19px 21px 23px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .18); }
.cart-total { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 15px; color: #fff; font-weight: 800; }
.cart-float {
  position: fixed;
  right: 28px;
  bottom: 100px;
  z-index: 901;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #2188f5);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 102, 255, .38);
  opacity: 0;
  pointer-events: none;
  transform: scale(.75);
  transition: opacity .25s ease, transform .25s ease;
}
.cart-float.has-items { opacity: 1; pointer-events: auto; transform: scale(1); }
.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #0a0a0f;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.empty-state { grid-column: 1 / -1; padding: 44px 20px; text-align: center; color: rgba(255, 255, 255, .45); }
.empty-state i { margin-bottom: 12px; font-size: 34px; color: rgba(33, 136, 245, .65); }
.empty-state h3 { margin-bottom: 6px; color: #fff; }

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid.list-view .product-card { display: block; }
  .products-grid.list-view .product-image { min-height: 0; aspect-ratio: 4 / 3; }
  .product-info { padding: 18px; }
  .cart-sidebar { width: 100%; max-width: none; }
  .cart-float { right: 18px; bottom: 92px; }
}


/* ===== BLOG REVISADO — layout, filtros, cards e modal ===== */
.blog-toolbar {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 34px;
}
.blog-toolbar .search-box {
  position: relative;
  width: min(100%, 620px);
  min-height: 52px;
  padding: 0 52px 0 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.blog-toolbar .search-box:focus-within {
  border-color: rgba(33, 136, 245, .52);
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 0 0 4px rgba(33, 136, 245, .1), 0 18px 46px rgba(0, 0, 0, .2);
}
.blog-toolbar .search-box > i { color: var(--brand-blue); }
.blog-toolbar .search-box input {
  min-width: 0;
  height: 50px;
  font-size: 14px;
}
.blog-search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .62);
  cursor: pointer;
  transform: translateY(-50%);
}
.blog-search-clear[hidden] { display: none; }
.blog-search-clear:hover { background: rgba(245, 130, 32, .18); color: #fff; }
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  max-width: 900px;
}
.blog-category-filter {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .55);
  font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: .035em;
  cursor: pointer;
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background .22s ease;
}
.blog-category-filter:hover {
  color: #fff;
  border-color: rgba(33, 136, 245, .34);
  transform: translateY(-2px);
}
.blog-category-filter.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  color: #fff;
  box-shadow: 0 9px 24px rgba(33, 136, 245, .18);
}
.blog-results-status {
  min-height: 18px;
  color: rgba(255, 255, 255, .3);
  font-size: 12px;
}
.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch;
}
.blog-card {
  position: relative;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075) !important;
  border-radius: 20px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease, background .32s ease;
}
.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(33, 136, 245, .32) !important;
  background: linear-gradient(160deg, rgba(33, 136, 245, .08), rgba(255, 255, 255, .025)) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .31);
}
.blog-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(33, 136, 245, .18), rgba(245, 130, 32, .08));
}
.blog-card-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(10, 10, 15, .7), transparent);
  pointer-events: none;
}
.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.055); filter: saturate(1.08); }
.blog-category {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 2;
  padding: 6px 11px !important;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px !important;
  background: rgba(10, 10, 15, .72) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px !important;
}
.blog-card-body .blog-date {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .33);
  font-size: 11px;
}
.blog-card-body .blog-date i { margin-right: 5px; color: var(--brand-orange); }
.blog-card-body h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.blog-card-body p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #65a8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: gap .22s ease, color .22s ease;
}
.blog-card:hover .blog-read-more { gap: 11px; color: #fff; }
body.blog-modal-open { overflow: hidden; }
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(2, 6, 14, .82) !important;
  backdrop-filter: blur(14px) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.blog-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.blog-modal-content {
  position: relative;
  width: min(100%, 780px) !important;
  max-width: 780px !important;
  max-height: min(90vh, 920px) !important;
  padding: 0 !important;
  overflow: auto !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 22px !important;
  background: #101521 !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .58);
  transform: translateY(18px) scale(.985);
  transition: transform .3s cubic-bezier(.2, .75, .2, 1);
}
.blog-modal.active .blog-modal-content { transform: translateY(0) scale(1); }
.blog-modal-content::-webkit-scrollbar { width: 7px; }
.blog-modal-content::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(33, 136, 245, .35); }
.blog-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 4 !important;
  width: 42px !important;
  height: 42px !important;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 50% !important;
  background: rgba(8, 12, 20, .78) !important;
  color: #fff !important;
  font-size: 16px !important;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.blog-modal-close:hover { background: var(--brand-orange) !important; }
.blog-modal-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 220px;
  max-height: 340px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(33, 136, 245, .2), rgba(245, 130, 32, .1));
}
.blog-modal-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.blog-modal-inner { padding: 30px 34px 36px; }
.blog-modal-category {
  display: inline-flex;
  margin: 0 0 12px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(33, 136, 245, .13) !important;
  color: #76b3ff !important;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-modal-date {
  margin: 0 0 8px !important;
  color: rgba(255, 255, 255, .36) !important;
  font-size: 12px !important;
}
.blog-modal-content h2 {
  margin: 0 0 24px !important;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(21px, 3vw, 29px) !important;
  line-height: 1.35;
}
.blog-modal-body {
  padding: 0 !important;
  color: rgba(255, 255, 255, .64) !important;
  font-size: 14px;
  line-height: 1.85 !important;
}
.blog-modal-body h3 {
  margin: 27px 0 11px !important;
  color: #fff !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 17px !important;
}
.blog-modal-body p { margin: 0 0 16px !important; }
.blog-modal-cta {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(37, 211, 102, .14);
  border-radius: 16px;
  background: rgba(37, 211, 102, .055);
}
.blog-modal-cta .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

@media (min-width: 980px) {
  .blog-card-featured { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
  .blog-card-featured .blog-card-image { height: 100% !important; aspect-ratio: auto; min-height: 320px; }
  .blog-card-featured .blog-card-body { justify-content: center; padding: 30px !important; }
  .blog-card-featured .blog-card-body h2 { font-size: 20px; -webkit-line-clamp: 3; }
  .blog-card-featured .blog-card-body p { -webkit-line-clamp: 4; }
}
@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .blog-toolbar { gap: 14px; margin-bottom: 26px; }
  .blog-categories { justify-content: flex-start; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 3px 2px 8px; scrollbar-width: none; }
  .blog-categories::-webkit-scrollbar { display: none; }
  .blog-category-filter { flex: 0 0 auto; }
  .blog-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .blog-card-body { padding: 20px !important; }
  .blog-modal { align-items: flex-end; padding: 10px; }
  .blog-modal-content { max-height: 94vh !important; border-radius: 20px 20px 12px 12px !important; }
  .blog-modal-cover { min-height: 180px; }
  .blog-modal-inner { padding: 24px 20px 28px; }
  .blog-modal-content h2 { font-size: 20px !important; }
}
