/* ================================================================
   Encyclolotech – Premium Design Enhancements
   Loaded LAST so these rules win over any conflicting older rules.
   ================================================================ */

/* ============================================================
   1. HEADER — Glass blur + premium nav styles
   ============================================================ */

.et-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.et-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 107, 43, 0), rgba(243, 107, 43, 0.28), rgba(34, 116, 165, 0.18), rgba(243, 107, 43, 0));
  pointer-events: none;
}

.et-header.is-scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.et-header .et-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 0;
}

/* Brand */
.et-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #0b1220;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: -0.035em;
  font-family: "Sora", "Segoe UI", sans-serif;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.et-brand__link:hover {
  transform: translateY(-0.5px);
}

.et-brand__dot {
  color: #F36B2B;
  font-size: 1.6rem;
  line-height: 0.6;
  margin-top: -2px;
}

/* Nav links */
.et-nav .et-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.et-nav .et-menu li {
  margin: 0;
}

.et-nav .et-menu a {
  display: inline-flex;
  align-items: center;
  height: auto;
  min-height: 0;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #334155;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.et-nav .et-menu a:hover {
  background: rgba(34, 116, 165, 0.12);
  box-shadow: 0 10px 18px rgba(34, 116, 165, 0.12);
  color: #2274A5;
  transform: translateY(-1px);
}

.et-nav .et-menu .current-menu-item > a,
.et-nav .et-menu .current-page-item > a {
  color: #F36B2B;
  background: rgba(243, 107, 43, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  padding: 5px 8px;
  border-radius: 11px;
  height: auto;
  min-height: 0;
}

.et-nav .et-menu .current-menu-item > a::after {
  content: none;
}

/* Search toggle icon button */
.et-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  cursor: pointer;
  padding: 0;
  color: #334155;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.et-search:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 238, 0.92));
  border-color: rgba(243, 107, 43, 0.25);
  color: #F36B2B;
  box-shadow: 0 12px 22px rgba(243, 107, 43, 0.12);
  transform: translateY(-1px);
}

#header-search.header-search {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: min(420px, calc(100vw - 24px));
  padding: 5px 7px 5px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#header-search.header-search.is-open,
.et-header.is-search-open #header-search.header-search {
  display: flex;
}

#header-search.header-search:focus-within {
  border-color: rgba(148, 163, 184, 0.72);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

#header-search.header-search input[type="search"],
#header-search.header-search .search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0 2px 0 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  background: transparent !important;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: none !important;
  transition: color 0.18s ease;
}

#header-search.header-search input[type="search"]::placeholder,
#header-search.header-search .search-field::placeholder {
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#header-search.header-search input[type="search"]:focus,
#header-search.header-search .search-field:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #0f172a;
}

.header-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f36b2b;
  cursor: pointer;
  box-shadow: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.header-search__submit:hover,
.header-search__submit:focus-visible {
  background: rgba(148, 163, 184, 0.12);
  color: #f36b2b;
  transform: scale(1.03);
}

.header-search__submit svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100000;
  background: #0b1220;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ============================================================
   2. HOMEPAGE — Hero enhancements
   ============================================================ */

/* Make the hero sit properly without a "card" effect */
.hp-hero {
  background: linear-gradient(160deg, #f0f6ff 0%, #fafbfd 60%, #fff9f5 100%);
  padding: 80px 0 64px;
}

/* The rotating image wrapper — make it feel more premium */
.hp-hero__media-shell {
  transform: rotate(-1.5deg);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(34, 116, 165, 0.18),
    0 0 0 4px rgba(34, 116, 165, 0.06);
}

.hp-hero__media-shell::before {
  border-radius: 22px;
  background: linear-gradient(135deg, #2274A5, #F36B2B, #2274A5);
  background-size: 300% 300%;
  animation: hpBorderFlow 4s linear infinite;
}

@keyframes hpBorderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero read link — style as a proper primary CTA button */
.hp-hero__read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F36B2B;
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(243, 107, 43, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  letter-spacing: 0.01em;
}

.hp-hero__read-link:hover {
  background: #d45a23;
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(243, 107, 43, 0.48);
}

.hp-hero__read-link:active {
  transform: scale(0.98);
}

/* ============================================================
   3. TRENDING TOPICS — pill glow on hover
   ============================================================ */

.hp-trending {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: 16px 0;
}

.hp-trending__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hp-trending__title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11,18,32,.5);
  white-space: nowrap;
  margin: 0;
}

.hp-trending__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-trending__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 116, 165, 0.2);
  background: rgba(34, 116, 165, 0.04);
  color: #2274A5;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hp-trending__link:hover {
  background: rgba(243, 107, 43, 0.08);
  border-color: rgba(243, 107, 43, 0.35);
  color: #F36B2B;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(243, 107, 43, 0.15);
}

/* ============================================================
   4. CONTINUE READING — grid fix (show 1-3 as full columns)
   ============================================================ */

.hp-continue {
  padding: 40px 0;
  background: #f8fafb;
  border-top: 1px solid rgba(0,0,0,.04);
}

.hp-continue__head {
  margin-bottom: 28px;
}

.hp-continue__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11,18,32,.45);
}

.hp-continue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Continue reading story card */
.hp-continue-story {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(15,23,42,.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hp-continue-story:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,23,42,.10);
  border-color: rgba(243, 107, 43, 0.25);
}

.hp-continue-story__category {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F36B2B;
}

.hp-continue-story__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.hp-continue-story__title a {
  color: #0b1220;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-continue-story__title a:hover {
  color: #F36B2B;
}

.hp-continue-story__meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(11,18,32,.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   5. TOP STORIES — grid fix (auto-fill, not hard 3-col)
   ============================================================ */

.hp-top-stories {
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,.04);
}

.hp-top-stories__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.hp-top-stories__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b1220;
  letter-spacing: -0.02em;
}

.hp-top-stories__all {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2274A5;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.hp-top-stories__all:hover {
  color: #F36B2B;
}

/* Use auto-fill so 2 items get 2 nice columns instead of 2 crammed cols + empty */
.hp-top-stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Top story card */
.hp-top-story {
  background: #fff;
  border: 1px solid rgba(0,0,0,.068);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hp-top-story:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  border-color: rgba(243, 107, 43, 0.2);
}

.hp-top-story__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dfe8f0;
}

.hp-top-story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.hp-top-story:hover .hp-top-story__image {
  transform: scale(1.06);
}

.hp-top-story__image--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dce6f0, #eef3f8);
}

.hp-top-story__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-top-story__cat {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F36B2B;
}

.hp-top-story__headline {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.hp-top-story__headline a {
  color: #0b1220;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-top-story:hover .hp-top-story__headline a {
  color: #F36B2B;
}

.hp-top-story__meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: rgba(11,18,32,.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   6. FOOTER — Dark, premium, editorial
   ============================================================ */

.site-footer {
  background: #0b1220;
  border-top: none;
  margin-top: 0;
  color: rgba(255,255,255,.75);
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand h3 {
  color: #fff;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.4rem;
}

.footer-brand h3 span {
  color: #F36B2B;
}

.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: 0.9rem;
}

.footer-contact {
  margin-top: 1rem;
  display: grid;
  gap: .35rem;
}

.footer-contact span {
  color: rgba(255,255,255,.38);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-contact a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #F36B2B;
}

.footer-col h4 {
  color: rgba(255,255,255,.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: #F36B2B;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .48rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.footer-socials a:hover {
  background: #F36B2B;
  border-color: #F36B2B;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.3);
  border-top: none;
}

.site-footer__ad {
  padding: 1.5rem 0 0;
}

.site-footer__ad .et-ad-slot__label {
  color: rgba(255,255,255,.38);
}

.site-footer__ad .et-ad-slot__inner {
  min-height: 120px;
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(243,107,43,.09));
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   7. BACK TO TOP BUTTON — already styled in components.css,
   just ensure it's always on top of the dark footer
   ============================================================ */

.back-to-top {
  z-index: 10000;
}

/* ============================================================
   8. MOBILE MENU — hamburger for < 768px
   ============================================================ */

.et-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #334155;
}

.et-hamburger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.et-hamburger[aria-expanded="true"] .et-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.et-hamburger[aria-expanded="true"] .et-hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.et-hamburger[aria-expanded="true"] .et-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .et-header {
    overflow: visible;
  }

  .et-header.is-menu-open::before,
  .et-header.is-search-open::before {
    content: "";
    position: fixed;
    inset: calc(68px + env(safe-area-inset-top, 0px)) 0 0;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    pointer-events: none;
  }

  .et-hamburger {
    display: inline-flex;
  }

  .et-theme-toggle {
    display: inline-flex !important;
  }

  .et-header .et-header__inner,
  .et-header__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px;
    min-height: 68px;
    height: auto;
    align-items: center;
    padding-block: 10px;
  }

  .et-brand {
    min-width: 0;
  }

  .et-brand__link,
  .et-brand__name {
    max-width: 100%;
  }

  .et-brand__name {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
  }

  .et-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
    z-index: 9992;
  }

  .et-theme-toggle,
  .et-search,
  .et-hamburger {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 13px;
  }

  .et-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    bottom: auto;
    max-height: min(74vh, calc(100dvh - 96px));
    z-index: 10030;
    background: rgba(255,255,255,.992);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    box-shadow: 0 32px 72px rgba(15, 23, 42, 0.22);
    padding: 1rem;
    overflow: auto;
    isolation: isolate;
  }

  body:not(.et-mobile-menu-open) .et-nav,
  .et-nav.is-open {
    display: none !important;
  }

  body.et-mobile-menu-open .et-nav.is-open {
    display: block !important;
  }

  .et-nav .et-menu {
    display: grid;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
    max-width: none;
  }

  .et-nav .et-menu li {
    width: 100%;
  }

  .et-nav .et-menu a,
  .et-menu a {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 15px 16px;
    border-radius: 17px;
    color: #0f172a !important;
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }

  .et-nav .et-menu .current-menu-item > a,
  .et-nav .et-menu .current-page-item > a {
    padding: 15px 16px;
    color: #f36b2b !important;
    background: rgba(243, 107, 43, 0.08);
    border-color: rgba(243, 107, 43, 0.18);
    box-shadow: none;
  }

  .et-header .et-header__inner {
    min-height: 68px;
  }

  #header-search.header-search {
    position: fixed;
    top: calc(68px + env(safe-area-inset-top, 0px) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    z-index: 10035;
    padding: 8px 10px 8px 16px;
    border-radius: 18px;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
  }

  body:not(.et-mobile-search-open) #header-search.header-search,
  #header-search.header-search.is-open,
  .et-header.is-search-open #header-search.header-search {
    display: none;
  }

  body.et-mobile-search-open #header-search.header-search.is-open,
  body.et-mobile-search-open .et-header.is-search-open #header-search.header-search {
    display: flex !important;
  }

  #header-search.header-search input[type="search"],
  #header-search.header-search .search-field {
    height: 44px;
    font-size: 0.98rem;
  }

  .header-search__submit {
    width: 42px;
    height: 42px;
  }

  body.et-mobile-menu-open .hp-live-ticker,
  body.et-mobile-menu-open .blog-ticker,
  body.et-mobile-search-open .hp-live-ticker,
  body.et-mobile-search-open .blog-ticker {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-width: 420px) {
  .et-brand__name {
    font-size: 1.04rem;
  }

  .et-theme-toggle,
  .et-search,
  .et-hamburger {
    width: 38px;
    height: 38px;
  }
}

/* ============================================================
   9. SINGLE POST — hero section improvements (image caption,
   share bar, article body gap)
   ============================================================ */

/* Fix the article body grid on desktop */
@media (min-width: 1024px) {
  .article-body {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
  }
}

/* Reading bar gradient upgrade */
.reading-bar {
  background: linear-gradient(90deg, #2274A5, #F36B2B) !important;
  height: 3px !important;
}

/* ============================================================
   10. GLOBAL — Typography font-family override
   ============================================================ */

body {
  font-family: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.home-premium :is(h1, h2, h3, h4),
.et-brand__name {
  font-family: "Sora", "Segoe UI", -apple-system, sans-serif;
}

.home-premium {
  font-family: "Manrope", "Segoe UI", -apple-system, sans-serif;
}

/* ============================================================
   11. DARK MODE & THEME TOGGLE
   ============================================================ */
/* Theme Toggle Button */
.et-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0;
  color: #334155;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.et-theme-toggle:hover {
  background: rgba(243, 107, 43, 0.08);
  border-color: rgba(243, 107, 43, 0.25);
  color: #F36B2B;
}

.et-theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.et-theme-toggle .moon-icon { display: none; }
.et-theme-toggle.is-dark .sun-icon { display: none; }
.et-theme-toggle.is-dark .moon-icon { display: block; }

/* Dark Theme Variables & Base */
html[data-theme="dark"] {
  --text: #e8eaf0;
  --muted: #8892a4;
  --link: #5aabde;
  --border: #1e2533;
  --bg: #0b0f19; /* Deeper, richer navy/slate base */
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* ============================================================
   GLOBAL TEXT & LINKS FOR DARK MODE
   ============================================================ */
html[data-theme="dark"] h1, 
html[data-theme="dark"] h2, 
html[data-theme="dark"] h3, 
html[data-theme="dark"] h4, 
html[data-theme="dark"] h5, 
html[data-theme="dark"] h6,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .widget-title,
html[data-theme="dark"] .post-card__title a,
html[data-theme="dark"] .hp-popular__title a {
  color: #ffffff !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .post-card__excerpt,
html[data-theme="dark"] .hp-popular__excerpt,
html[data-theme="dark"] .single-article p {
  color: rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="dark"] a {
  color: var(--link);
}
html[data-theme="dark"] a:hover {
  color: #F36B2B !important;
}

/* Sticky Header Glassmorphism */
html[data-theme="dark"] .et-header {
  background: rgba(11, 15, 25, 0.7) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .et-header.is-scrolled {
  background: rgba(11, 15, 25, 0.85) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .et-brand__link, 
html[data-theme="dark"] .et-brand__name { color: #fff !important; }
html[data-theme="dark"] .et-nav .et-menu a { color: rgba(255, 255, 255, 0.8) !important; }
html[data-theme="dark"] .et-nav .et-menu a:hover { color: #F36B2B !important; background: rgba(243, 107, 43, 0.1) !important; }
html[data-theme="dark"] .et-nav .et-menu .current-menu-item > a,
html[data-theme="dark"] .et-nav .et-menu .current-page-item > a {
  color: #ff9b66 !important;
  background: rgba(17, 24, 39, 0.88) !important;
  border: 1px solid rgba(243, 107, 43, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 22px rgba(0, 0, 0, 0.24);
}
  
html[data-theme="dark"] .et-search, 
html[data-theme="dark"] .et-hamburger,
html[data-theme="dark"] .et-theme-toggle {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}
html[data-theme="dark"] .et-search:hover, 
html[data-theme="dark"] .et-hamburger:hover,
html[data-theme="dark"] .et-theme-toggle:hover {
  background: linear-gradient(180deg, rgba(243, 107, 43, 0.16), rgba(243, 107, 43, 0.1));
  border-color: rgba(243, 107, 43, 0.3);
  color: #F36B2B;
}

@media (max-width: 767px) {
  html[data-theme="dark"] .et-header.is-menu-open::before,
  html[data-theme="dark"] .et-header.is-search-open::before {
    background: rgba(2, 6, 23, 0.46);
  }

  html[data-theme="dark"] .et-nav {
    background: rgba(8, 13, 23, 0.98);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.45);
  }

  html[data-theme="dark"] .et-nav .et-menu a,
  html[data-theme="dark"] .et-menu a {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: none;
  }

  html[data-theme="dark"] .et-nav .et-menu a:hover,
  html[data-theme="dark"] .et-menu a:hover {
    color: #ffffff !important;
    background: rgba(34, 116, 165, 0.18) !important;
    border-color: rgba(34, 116, 165, 0.24) !important;
  }

  html[data-theme="dark"] .et-nav .et-menu .current-menu-item > a,
  html[data-theme="dark"] .et-nav .et-menu .current-page-item > a {
    color: #ff9b66 !important;
    background: rgba(243, 107, 43, 0.14) !important;
    border-color: rgba(243, 107, 43, 0.22) !important;
  }

  html[data-theme="dark"] #header-search.header-search {
    background: rgba(8, 13, 23, 0.98);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }
}

html[data-theme="dark"] #header-search.header-search {
  border-color: rgba(148, 163, 184, 0.36);
  background: rgba(9, 16, 27, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] #header-search.header-search:focus-within {
  border-color: rgba(148, 163, 184, 0.56);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] #header-search.header-search input[type="search"],
html[data-theme="dark"] #header-search.header-search .search-field {
  background: transparent;
  color: #e2e8f0;
  box-shadow: none;
}

html[data-theme="dark"] #header-search.header-search input[type="search"]::placeholder,
html[data-theme="dark"] #header-search.header-search .search-field::placeholder {
  color: rgba(203, 213, 225, 0.66);
}

html[data-theme="dark"] #header-search.header-search input[type="search"]:focus,
html[data-theme="dark"] #header-search.header-search .search-field:focus {
  color: #f8fafc;
}

html[data-theme="dark"] .header-search__submit {
  color: #f36b2b;
}

html[data-theme="dark"] .header-search__submit:hover,
html[data-theme="dark"] .header-search__submit:focus-visible {
  background: rgba(148, 163, 184, 0.12);
  color: #ff8a4c;
}

/* ============================================================
   CONTAINERS & CARDS (KILL WHITE BACKGROUNDS)
   ============================================================ */
/* Hero Section */
html[data-theme="dark"] .hp-hero {
  background: radial-gradient(circle at top center, #121b2d 0%, #0b0f19 100%) !important;
}
html[data-theme="dark"] .hp-hero__media-shell {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.03);
}
html[data-theme="dark"] .hp-hero__content-box, 
html[data-theme="dark"] .hp-hero__inner {
  background: rgba(11, 15, 25, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255, 0.05);
}
html[data-theme="dark"] .hp-hero__title a { color: #fff !important; }
html[data-theme="dark"] .hp-hero__excerpt { color: rgba(255,255,255, 0.7) !important; }
html[data-theme="dark"] .hp-author__name { color: #fff !important; }
html[data-theme="dark"] .hp-meta-date, 
html[data-theme="dark"] .hp-meta-read, 
html[data-theme="dark"] .hp-author__by,
html[data-theme="dark"] .post-meta { color: rgba(255, 255, 255, 0.5) !important; }

/* Standard Cards, Grids, and Sidebars */
html[data-theme="dark"] .card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .sidebar-widget,
html[data-theme="dark"] .hp-popular,
html[data-theme="dark"] .hp-continue-story, 
html[data-theme="dark"] .hp-top-story,
html[data-theme="dark"] .hp-editor-pick {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Card Hover States */
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .hp-continue-story:hover, 
html[data-theme="dark"] .hp-top-story:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(243, 107, 43, 0.3) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(243, 107, 43, 0.1) !important; /* Neon Glow */
}

/* Single Post TOC Dark Fix */
html[data-theme="dark"] .single .post-toc {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .single .post-toc-title { color: #fff !important; }
html[data-theme="dark"] .single .post-toc-item a { color: rgba(255, 255, 255, 0.7) !important; }
html[data-theme="dark"] .single .post-toc-item a:hover { color: #F36B2B !important; }

/* Image Placeholders */
html[data-theme="dark"] .post-card__media,
html[data-theme="dark"] .hp-top-story__thumb { background: #1a202c !important; }
html[data-theme="dark"] .hp-top-story__image--placeholder { background: linear-gradient(135deg, #1e293b, #0f172a) !important; }

/* Trending Topics */
html[data-theme="dark"] .hp-trending {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
html[data-theme="dark"] .hp-trending__title { color: rgba(255, 255, 255, 0.4) !important; }
html[data-theme="dark"] .hp-trending__link {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
html[data-theme="dark"] .hp-trending__link:hover {
  background: rgba(243, 107, 43, 0.15) !important;
  border-color: rgba(243, 107, 43, 0.4) !important;
  color: #F36B2B !important;
  box-shadow: 0 0 16px rgba(243, 107, 43, 0.2) !important; /* Neon glow */
}

/* Grid wrappers (usually need transparent backs) */
html[data-theme="dark"] .hp-continue,
html[data-theme="dark"] .hp-top-stories,
html[data-theme="dark"] .site-content { background: transparent !important; }

/* Footer Integration */
html[data-theme="dark"] .site-footer {
  background: #05070c !important; /* Deepest black/blue for the absolute bottom */
  color: rgba(255, 255, 255, 0.6) !important;
}
html[data-theme="dark"] .site-footer a { color: rgba(255, 255, 255, 0.8) !important; }
html[data-theme="dark"] .site-footer h3 { color: #fff !important; }

/* ====================================
   SINGLE POST DARK MODE OVERRIDES
   ==================================== */
/* Remove blinding white from the article body */
html[data-theme="dark"] .post-end-transition,
html[data-theme="dark"] .single-content-wrapper {
  background: transparent !important; 
}
html[data-theme="dark"] .post-end-transition::before {
  display: none !important; /* Kills the massive white radial gradients at the bottom of posts */
}

/* Single Post TOC Dark Fix */
html[data-theme="dark"] .single .post-toc {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .single .post-toc-title { color: #fff !important; }
html[data-theme="dark"] .single .post-toc-item a { color: rgba(255, 255, 255, 0.7) !important; }
html[data-theme="dark"] .single .post-toc-item a:hover { color: #F36B2B !important; }

/* ============================================================
   12. FOCUS VISIBLE — accessibility
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #F36B2B !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* ============================================================
   13. SINGLE POST TOC STYLING
   ============================================================ */
.single .post-toc {
  background: rgba(34, 116, 165, 0.04);
  border: 1px solid rgba(34, 116, 165, 0.15);
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0 40px;
  display: block;
}

.single .post-toc-title {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #0b1220;
}

.single .post-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.single .post-toc-item {
  margin: 0;
  line-height: 1.4;
}

.single .post-toc-item.is-h3 {
  padding-left: 20px;
  position: relative;
}

.single .post-toc-item.is-h3::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: #F36B2B;
  opacity: 0.6;
}

.single .post-toc-item a {
  color: #2274A5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.single .post-toc-item a:hover {
  color: #F36B2B;
}

/* ============================================================
   14. KILL BLUE VIGNETTE / GLOW BUG
   Some invisible script or older CSS is injecting a global blue 
   inset shadow via body::before. This overrides it natively.
   ============================================================ */
body::before,
body::after,
html::before,
html::after {
  display: none !important;
  content: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* ============================================================
   18. 404 PAGE — Premium "Lost in the Digital Void"
   ============================================================ */

/* ── Layout shell ─────────────────────────────────────────── */
.e404-main {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f6ff 0%, #fafbfd 55%, #fff9f5 100%);
  padding: 60px 0 80px;
}

.e404-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* ── Ambient floating orbs ────────────────────────────────── */
.e404-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: e404OrbFloat 8s ease-in-out infinite;
}

.e404-orb--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(34,116,165,0.18) 0%, transparent 70%);
  top: -180px;
  left: -200px;
  animation-delay: 0s;
}

.e404-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243,107,43,0.14) 0%, transparent 70%);
  bottom: -140px;
  right: -140px;
  animation-delay: -3s;
}

.e404-orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34,116,165,0.10) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation-delay: -5.5s;
}

@keyframes e404OrbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.06); }
}

/* ── Giant "404" glitch digits ────────────────────────────── */
.e404-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -20px;
  position: relative;
  z-index: 3;
  user-select: none;
}

.e404-digit {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(7rem, 18vw, 13rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(34,116,165,0.18);
  background: linear-gradient(160deg, #2274A5 0%, #0b1220 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: e404DigitPulse 4s ease-in-out infinite;
  position: relative;
}

.e404-digit--zero {
  animation-delay: -1.3s;
  background: linear-gradient(160deg, #F36B2B 0%, #9b3a10 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glitch pseudo-layers */
.e404-digit::before,
.e404-digit::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
}

.e404-digit::before {
  color: #2274A5;
  -webkit-text-fill-color: #2274A5;
  clip-path: polygon(0 30%, 100% 30%, 100% 55%, 0 55%);
  transform: translateX(-4px);
  animation: e404Glitch1 6s steps(1) infinite;
}

.e404-digit::after {
  color: #F36B2B;
  -webkit-text-fill-color: #F36B2B;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  transform: translateX(4px);
  animation: e404Glitch2 6s steps(1) infinite;
}

@keyframes e404DigitPulse {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes e404Glitch1 {
  0%, 89%, 100% { opacity: 0; transform: translateX(0); }
  90%            { opacity: 0.55; transform: translateX(-5px); }
  92%            { opacity: 0; transform: translateX(3px); }
  94%            { opacity: 0.4; transform: translateX(-3px); }
}

@keyframes e404Glitch2 {
  0%, 91%, 100% { opacity: 0; transform: translateX(0); }
  92%            { opacity: 0.5; transform: translateX(6px); }
  93%            { opacity: 0; transform: translateX(-4px); }
  95%            { opacity: 0.35; transform: translateX(3px); }
}

/* ── Glass card ───────────────────────────────────────────── */
.e404-card {
  position: relative;
  z-index: 4;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow:
    0 32px 80px rgba(11,18,32,0.12),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  border-radius: 28px;
  padding: 52px 56px 48px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  animation: e404CardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes e404CardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animated gradient ring */
.e404-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(34,116,165,0.5), rgba(243,107,43,0.5), rgba(34,116,165,0.5));
  background-size: 300% 300%;
  animation: e404RingFlow 5s linear infinite;
  z-index: -1;
}

@keyframes e404RingFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Icon ─────────────────────────────────────────────────── */
.e404-icon {
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
  color: #2274A5;
  animation: e404IconSpin 12s linear infinite;
}

.e404-icon svg {
  width: 100%;
  height: 100%;
}

@keyframes e404IconSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Copy ─────────────────────────────────────────────────── */
.e404-eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F36B2B;
}

.e404-title {
  margin: 0 0 16px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.e404-desc {
  margin: 0 auto 32px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(11,18,32,0.6);
  max-width: 440px;
}

/* ── Inline search form ───────────────────────────────────── */
.e404-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid rgba(11,18,32,0.10);
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(11,18,32,0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 28px;
}

.e404-search:focus-within {
  border-color: rgba(243,107,43,0.45);
  box-shadow: 0 0 0 4px rgba(243,107,43,0.10), 0 4px 20px rgba(11,18,32,0.06);
}

.e404-search__label {
  flex-shrink: 0;
  color: rgba(11,18,32,0.35);
  display: flex;
  align-items: center;
}

.e404-search__label svg {
  width: 20px;
  height: 20px;
}

.e404-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: #0b1220;
  outline: none;
  padding: 8px 4px;
  min-width: 0;
}

.e404-search__input::placeholder {
  color: rgba(11,18,32,0.38);
}

.e404-search__btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #F36B2B, #d95e22);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(243,107,43,0.28);
  white-space: nowrap;
}

.e404-search__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(243,107,43,0.4);
}

/* ── CTA buttons ──────────────────────────────────────────── */
.e404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.e404-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  padding: 13px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  letter-spacing: 0.01em;
}

.e404-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.e404-btn--primary {
  background: #0b1220;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(11,18,32,0.22);
}

.e404-btn--primary:hover {
  background: #1a2840;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(11,18,32,0.32);
}

.e404-btn--ghost {
  background: transparent;
  color: #2274A5 !important;
  border: 2px solid rgba(34,116,165,0.25);
}

.e404-btn--ghost:hover {
  background: rgba(34,116,165,0.06);
  border-color: rgba(34,116,165,0.5);
  transform: translateY(-3px);
}

/* ── Quick-nav chips ──────────────────────────────────────── */
.e404-quicknav {
  margin-top: 36px;
  text-align: center;
}

.e404-quicknav__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11,18,32,0.38);
  margin: 0 0 14px;
}

.e404-quicknav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.e404-quicknav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(34,116,165,0.2);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  color: #2274A5;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 10px rgba(11,18,32,0.04);
}

.e404-quicknav__link:hover {
  background: rgba(243,107,43,0.08);
  border-color: rgba(243,107,43,0.35);
  color: #F36B2B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243,107,43,0.15);
}

/* ── Dark mode ────────────────────────────────────────────── */
html[data-theme="dark"] .e404-main {
  background: radial-gradient(ellipse at top left, #0d1827 0%, #0b0f19 55%, #12080e 100%) !important;
}

html[data-theme="dark"] .e404-digit {
  background: linear-gradient(160deg, #5aabde 0%, #c8e0f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(90,171,222,0.15);
}

html[data-theme="dark"] .e404-digit--zero {
  background: linear-gradient(160deg, #F36B2B 0%, #ffa06a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .e404-card {
  background: rgba(11, 15, 25, 0.75) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

html[data-theme="dark"] .e404-title {
  color: #fff !important;
}

html[data-theme="dark"] .e404-desc {
  color: rgba(255,255,255,0.55) !important;
}

html[data-theme="dark"] .e404-icon {
  color: #5aabde;
}

html[data-theme="dark"] .e404-search {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.09) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

html[data-theme="dark"] .e404-search:focus-within {
  border-color: rgba(243,107,43,0.4) !important;
  box-shadow: 0 0 0 4px rgba(243,107,43,0.12), 0 4px 20px rgba(0,0,0,0.3) !important;
}

html[data-theme="dark"] .e404-search__input {
  color: #fff !important;
}

html[data-theme="dark"] .e404-search__input::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

html[data-theme="dark"] .e404-search__label { color: rgba(255,255,255,0.3); }

html[data-theme="dark"] .e404-btn--primary {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4) !important;
}

html[data-theme="dark"] .e404-btn--primary:hover {
  background: rgba(255,255,255,0.14) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.5) !important;
}

html[data-theme="dark"] .e404-btn--ghost {
  color: #5aabde !important;
  border-color: rgba(90,171,222,0.25) !important;
}

html[data-theme="dark"] .e404-btn--ghost:hover {
  background: rgba(90,171,222,0.08) !important;
  border-color: rgba(90,171,222,0.5) !important;
}

html[data-theme="dark"] .e404-quicknav__label {
  color: rgba(255,255,255,0.28) !important;
}

html[data-theme="dark"] .e404-quicknav__link {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.7) !important;
}

html[data-theme="dark"] .e404-quicknav__link:hover {
  background: rgba(243,107,43,0.12) !important;
  border-color: rgba(243,107,43,0.35) !important;
  color: #F36B2B !important;
  box-shadow: 0 0 18px rgba(243,107,43,0.18) !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .e404-card {
    padding: 40px 28px 36px;
    border-radius: 22px;
  }

  .e404-hero {
    gap: 4px;
    margin-bottom: -12px;
  }

  .e404-search {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 10px;
  }

  .e404-search__label {
    display: none;
  }

  .e404-search__input {
    padding: 10px 14px;
    background: rgba(11,18,32,0.04);
    border-radius: 12px;
  }

  html[data-theme="dark"] .e404-search__input {
    background: rgba(255,255,255,0.06) !important;
  }

  .e404-search__btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .e404-actions {
    flex-direction: column;
    gap: 10px;
  }

  .e404-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .e404-orb { display: none; }
}

/* ============================================================
   19. ABOUT PAGE — Premium editorial "About Encyclolotech"
   ============================================================ */

/* ── Shared tokens ────────────────────────────────────────── */
.about-eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F36B2B;
}

.about-section-title {
  margin: 0 0 18px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.about-section-title--light { color: #fff; }

.about-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.about-section-desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(11,18,32,0.6);
}

/* ── Buttons ──────────────────────────────────────────────── */
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  letter-spacing: 0.01em;
}

.about-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.about-btn--primary {
  background: #F36B2B;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(243,107,43,0.32);
}

.about-btn--primary:hover {
  background: #d95e22;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(243,107,43,0.44);
}

.about-btn--ghost {
  background: transparent;
  color: #0b1220 !important;
  border: 2px solid rgba(11,18,32,0.2);
}

.about-btn--ghost:hover {
  background: rgba(11,18,32,0.05);
  border-color: rgba(11,18,32,0.4);
  transform: translateY(-3px);
}

.about-btn--outline {
  background: transparent;
  color: #2274A5 !important;
  border: 2px solid rgba(34,116,165,0.3);
}

.about-btn--outline:hover {
  background: rgba(34,116,165,0.06);
  border-color: rgba(34,116,165,0.55);
  transform: translateY(-3px);
}

.about-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F36B2B;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.about-text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.about-text-link:hover {
  opacity: 0.85;
}

.about-text-link:hover svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════════════════════ */
.about-main {
  overflow-x: hidden;
}

.about-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(155deg, #f0f5ff 0%, #fafbfd 50%, #fff9f5 100%);
  padding: 100px 0 80px;
}

/* Ambient orbs */
.about-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: aboutOrbFloat 10s ease-in-out infinite;
}

.about-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34,116,165,0.15) 0%, transparent 70%);
  top: -200px;
  left: -250px;
  animation-delay: 0s;
}

.about-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(243,107,43,0.12) 0%, transparent 70%);
  bottom: -150px;
  right: -180px;
  animation-delay: -4s;
}

.about-orb--3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34,116,165,0.08) 0%, transparent 70%);
  top: 40%;
  right: 30%;
  animation-delay: -7s;
}

@keyframes aboutOrbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-40px) scale(1.05); }
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Left: copy */
.about-hero__content {
  max-width: 560px;
}

.about-hero__title {
  margin: 0 0 24px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0b1220;
}

.about-hero__title-accent {
  background: linear-gradient(135deg, #F36B2B, #2274A5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-hero__lead {
  margin: 0 0 36px;
  font-size: 1.1rem;
  line-height: 1.72;
  color: rgba(11,18,32,0.65);
  max-width: 480px;
}

.about-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Right: stat cards */
.about-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-stat-card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 16px 40px rgba(11,18,32,0.09);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: aboutCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-stat-card:nth-child(1) { animation-delay: 0.1s; }
.about-stat-card:nth-child(2) { animation-delay: 0.18s; transform: translateY(20px); }
.about-stat-card:nth-child(3) { animation-delay: 0.26s; }
.about-stat-card:nth-child(4) { animation-delay: 0.34s; transform: translateY(20px); }

.about-stat-card:nth-child(even) {
  transform: translateY(24px);
}

.about-stat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 24px 56px rgba(11,18,32,0.14);
}

@keyframes aboutCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; }
}

.about-stat-card__value {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #F36B2B 0%, #2274A5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.about-stat-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(11,18,32,0.5);
  letter-spacing: 0.03em;
}

/* Scroll cue */
.about-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.about-scroll-cue span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(11,18,32,0.2);
  border-radius: 12px;
  position: relative;
}

.about-scroll-cue span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: #F36B2B;
  border-radius: 2px;
  animation: aboutScrollCue 1.8s ease-in-out infinite;
}

@keyframes aboutScrollCue {
  0%, 100% { top: 5px; opacity: 1; }
  100%      { top: 22px; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   STORY / TIMELINE SECTION
════════════════════════════════════════════════════════════ */
.about-story {
  padding: 100px 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.about-story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-story__text { max-width: 520px; }

.about-story__body p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(11,18,32,0.7);
}

.about-story__body p:last-child { margin-bottom: 28px; }

/* Timeline */
.about-timeline {
  position: relative;
  padding-left: 32px;
}

.about-timeline__line {
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #F36B2B, #2274A5);
  border-radius: 2px;
}

.about-timeline__item {
  position: relative;
  padding-bottom: 36px;
  animation: aboutFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-timeline__item:last-child {
  padding-bottom: 0;
}

.about-timeline__dot {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F36B2B;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 3px rgba(243,107,43,0.2);
}

.about-timeline__year {
  margin: 0 0 4px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #F36B2B;
  text-transform: uppercase;
}

.about-timeline__event {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(11,18,32,0.7);
}

/* ═══════════════════════════════════════════════════════════
   COVERAGE PILLARS
════════════════════════════════════════════════════════════ */
.about-pillars {
  padding: 100px 0;
  background: #f8fafb;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.about-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-pillar-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(11,18,32,0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: aboutFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}

.about-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(11,18,32,0.11);
  border-color: rgba(243,107,43,0.25);
}

.about-pillar-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(243,107,43,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background 0.2s ease;
  color: #F36B2B;
}

.about-pillar-card:hover .about-pillar-card__icon {
  background: rgba(243,107,43,0.14);
}

.about-pillar-card__icon svg {
  width: 24px;
  height: 24px;
}

.about-pillar-card__title {
  margin: 0 0 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #0b1220;
  transition: color 0.2s ease;
}

.about-pillar-card:hover .about-pillar-card__title {
  color: #F36B2B;
}

.about-pillar-card__desc {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(11,18,32,0.6);
  flex: 1;
}

.about-pillar-card__cta {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 800;
  color: #2274A5;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.about-pillar-card:hover .about-pillar-card__cta {
  color: #F36B2B;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   VALUES — Dark band
════════════════════════════════════════════════════════════ */
.about-values {
  background: #0b1220;
  padding: 100px 0;
}

.about-values__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-values__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 340px;
}

.about-values__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}

.about-value-item {
  position: relative;
  padding-left: 52px;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 24px;
}

.about-value-item__number {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #F36B2B;
  margin-bottom: 8px;
}

.about-value-item__title {
  margin: 0 0 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.about-value-item__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

/* ═══════════════════════════════════════════════════════════
   RECENT ARTICLES
════════════════════════════════════════════════════════════ */
.about-recent {
  padding: 100px 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.about-recent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.about-article-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11,18,32,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  animation: aboutFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}

.about-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(11,18,32,0.12);
  border-color: rgba(243,107,43,0.2);
}

.about-article-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #dfe8f0;
}

.about-article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-article-card:hover .about-article-card__img {
  transform: scale(1.06);
}

.about-article-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-article-card__cat {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F36B2B;
}

.about-article-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.about-article-card__title a {
  color: #0b1220;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-article-card:hover .about-article-card__title a {
  color: #F36B2B;
}

.about-article-card__meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: rgba(11,18,32,0.45);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-recent__cta {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   NEWSLETTER BAND
════════════════════════════════════════════════════════════ */
.about-newsletter {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1220 0%, #1a2840 100%);
  padding: 100px 0;
  text-align: center;
}

.about-newsletter__orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,107,43,0.15) 0%, transparent 65%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(60px);
}

.about-newsletter__inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.about-newsletter__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,0.6);
}

.about-newsletter__icon svg {
  width: 100%;
  height: 100%;
}

.about-newsletter__title {
  margin: 0 0 14px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.about-newsletter__sub {
  margin: 0 0 36px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.about-newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 14px;
  --et-newsletter-status-color: rgba(255,255,255,0.82);
  --et-newsletter-error-color: #ffd5cf;
  --et-newsletter-success-color: #c7f4d0;
  --et-newsletter-info-color: #d7e8ff;
}

.about-newsletter__input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-newsletter__input::placeholder {
  color: rgba(255,255,255,0.3);
}

.about-newsletter__input:focus {
  border-color: rgba(243,107,43,0.5);
  box-shadow: 0 0 0 4px rgba(243,107,43,0.12);
}

.about-newsletter__submit {
  flex-shrink: 0;
  height: 52px;
  padding: 0 28px;
  background: linear-gradient(135deg, #F36B2B, #d95e22);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(243,107,43,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.about-newsletter__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(243,107,43,0.44);
}

.about-newsletter__status {
  margin: 0 auto 12px;
  max-width: 480px;
  text-align: center;
}

.about-newsletter__reassurance {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

/* Shared fade-up animation */
@keyframes aboutFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — DARK MODE
════════════════════════════════════════════════════════════ */
html[data-theme="dark"] .about-hero {
  background: radial-gradient(ellipse at top left, #0d1b32 0%, #0b0f19 55%, #120b0a 100%) !important;
}

html[data-theme="dark"] .about-hero__title { color: #fff !important; }
html[data-theme="dark"] .about-hero__lead  { color: rgba(255,255,255,0.55) !important; }

html[data-theme="dark"] .about-btn--ghost {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.15) !important;
}

html[data-theme="dark"] .about-btn--ghost:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.3) !important;
}

html[data-theme="dark"] .about-stat-card {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}

html[data-theme="dark"] .about-stat-card__label { color: rgba(255,255,255,0.35) !important; }

html[data-theme="dark"] .about-scroll-cue span {
  border-color: rgba(255,255,255,0.15) !important;
}

html[data-theme="dark"] .about-story {
  background: #0b0f19 !important;
  border-color: rgba(255,255,255,0.05) !important;
}

html[data-theme="dark"] .about-section-title { color: #fff !important; }
html[data-theme="dark"] .about-section-desc  { color: rgba(255,255,255,0.5) !important; }
html[data-theme="dark"] .about-story__body p { color: rgba(255,255,255,0.6) !important; }

html[data-theme="dark"] .about-timeline__dot {
  border-color: #0b0f19 !important;
}

html[data-theme="dark"] .about-timeline__event {
  color: rgba(255,255,255,0.55) !important;
}

html[data-theme="dark"] .about-pillars {
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.04) !important;
}

html[data-theme="dark"] .about-pillar-card {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
}

html[data-theme="dark"] .about-pillar-card:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(243,107,43,0.3) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 24px rgba(243,107,43,0.1) !important;
}

html[data-theme="dark"] .about-pillar-card__title { color: #fff !important; }
html[data-theme="dark"] .about-pillar-card__desc  { color: rgba(255,255,255,0.5) !important; }

html[data-theme="dark"] .about-recent {
  background: #0b0f19 !important;
  border-color: rgba(255,255,255,0.04) !important;
}

html[data-theme="dark"] .about-article-card {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.06) !important;
}

html[data-theme="dark"] .about-article-card:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(243,107,43,0.25) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5) !important;
}

html[data-theme="dark"] .about-article-card__title a { color: #fff !important; }
html[data-theme="dark"] .about-article-card:hover .about-article-card__title a { color: #F36B2B !important; }
html[data-theme="dark"] .about-article-card__meta { color: rgba(255,255,255,0.35) !important; }

html[data-theme="dark"] .about-btn--outline {
  color: #5aabde !important;
  border-color: rgba(90,171,222,0.25) !important;
}

html[data-theme="dark"] .about-btn--outline:hover {
  background: rgba(90,171,222,0.08) !important;
  border-color: rgba(90,171,222,0.5) !important;
}

html[data-theme="dark"] .about-text-link { color: #F36B2B !important; }

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .about-pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-hero__content { max-width: 100%; }

  .about-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-stat-card:nth-child(even) {
    transform: none;
  }

  .about-story__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-values__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-values__sub { max-width: 100%; }
}

@media (max-width: 768px) {
  .about-hero { padding: 80px 0 64px; min-height: auto; }

  .about-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-pillars__grid {
    grid-template-columns: 1fr;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-recent__grid {
    grid-template-columns: 1fr;
  }

  .about-newsletter__form {
    flex-direction: column;
  }

  .about-newsletter__submit {
    width: 100%;
    justify-content: center;
  }

  .about-story,
  .about-pillars,
  .about-values,
  .about-recent,
  .about-newsletter {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .about-hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .about-btn {
    width: 100%;
    justify-content: center;
  }

  .about-hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   20. BLOG PAGE — Premium editorial magazine layout
   ============================================================ */

/* ── Scrolling ticker tape ────────────────────────────────── */
.blog-ticker {
  background: #0b1220;
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.blog-ticker__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: blogTicker 40s linear infinite;
  width: max-content;
}

.blog-ticker:hover .blog-ticker__track {
  animation-play-state: paused;
}

@keyframes blogTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.blog-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.blog-ticker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F36B2B;
  flex-shrink: 0;
}

/* ── Page header ──────────────────────────────────────────── */
.blog-main {
  background: #fafbfd;
  min-height: 100vh;
}

html[data-theme="dark"] .blog-main {
  background: #0b0f19 !important;
}

.blog-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 56px 0 0;
}

.blog-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
}

.blog-header__text { flex: 1; }

.blog-header__eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F36B2B;
}

.blog-header__title {
  margin: 0 0 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0b1220;
  line-height: 1.1;
}

.blog-header__sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(11,18,32,0.55);
  max-width: 480px;
}

/* Header search */
.blog-header__search {
  display: flex;
  align-items: center;
  background: #f5f7fb;
  border: 1.5px solid rgba(11,18,32,0.09);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
  gap: 8px;
  flex-shrink: 0;
  width: 300px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-header__search:focus-within {
  border-color: rgba(243,107,43,0.45);
  box-shadow: 0 0 0 4px rgba(243,107,43,0.08);
  background: #fff;
}

.blog-header__search-icon {
  flex-shrink: 0;
  color: rgba(11,18,32,0.3);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.blog-header__search-icon svg { width: 18px; height: 18px; }

.blog-header__search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  color: #0b1220;
  outline: none;
  min-width: 0;
  padding: 6px 0;
}

.blog-header__search-input::placeholder { color: rgba(11,18,32,0.35); }

.blog-header__search-btn {
  flex-shrink: 0;
  background: #F36B2B;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.blog-header__search-btn:hover {
  background: #d95e22;
  transform: translateY(-1px);
}

/* Category filter pills */
.blog-filter {
  border-top: 1px solid rgba(0,0,0,0.05);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-filter::-webkit-scrollbar { display: none; }

.blog-filter__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  width: max-content;
  min-width: 100%;
}

.blog-filter__pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(11,18,32,0.1);
  background: transparent;
  color: rgba(11,18,32,0.6);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.blog-filter__pill:hover {
  background: rgba(243,107,43,0.07);
  border-color: rgba(243,107,43,0.3);
  color: #F36B2B;
}

.blog-filter__pill--active {
  background: #F36B2B;
  border-color: #F36B2B;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(243,107,43,0.28);
}

/* ── Badges ───────────────────────────────────────────────── */
.blog-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.blog-badge--featured {
  background: rgba(243,107,43,0.12);
  color: #F36B2B;
}

.blog-badge--cat {
  background: rgba(34,116,165,0.10);
  color: #2274A5;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-badge--cat:hover {
  background: rgba(34,116,165,0.18);
  color: #1c5e8a;
}

/* ── Featured hero post ───────────────────────────────────── */
.blog-featured {
  padding: 56px 0 0;
}

.blog-featured__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11,18,32,0.13);
  min-height: 460px;
}

/* Image pane */
.blog-featured__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #0b1220;
  isolation: isolate;
  background-clip: padding-box;
  border-radius: 24px 0 0 24px;
  font-size: 0;
  line-height: 0;
}

.blog-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.blog-featured__img--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.blog-featured__media:hover .blog-featured__img {
  transform: scale(1.04);
}

.blog-featured__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(11,18,32,0.14));
  pointer-events: none;
}

/* Content pane */
.blog-featured__content {
  background: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.blog-featured__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.blog-featured__title {
  margin: 0 0 16px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.blog-featured__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-featured__title a:hover { color: #F36B2B; }

.blog-featured__excerpt {
  margin: 0 0 24px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(11,18,32,0.6);
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.blog-featured__avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-featured__meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-featured__author {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0b1220;
}

.blog-featured__info {
  font-size: 0.78rem;
  color: rgba(11,18,32,0.45);
}

.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b1220;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 12px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(11,18,32,0.18);
}

.blog-featured__cta:link,
.blog-featured__cta:visited,
.blog-featured__cta:hover,
.blog-featured__cta:active {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.blog-featured__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 1;
  transition: transform 0.2s ease;
}

.blog-featured__cta:hover {
  background: #F36B2B;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(243,107,43,0.3);
}

.blog-featured__cta:hover svg {
  transform: translateX(3px);
}

/* ── Grid section header ──────────────────────────────────── */
.blog-grid-section {
  padding: 56px 0 80px;
}

.blog-grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.blog-grid-head__title {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0b1220;
  letter-spacing: -0.02em;
}

.blog-grid-head__count {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(11,18,32,0.38);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Article card grid ────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* ── Blog card base ───────────────────────────────────────── */
.blog-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(11,18,32,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: blogCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}

/* Large card: spans 2 cols, horizontal split layout */
.blog-card--large {
  grid-column: span 2;
  flex-direction: row;
  min-height: 280px;
  max-height: 320px;
}

@keyframes blogCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(11,18,32,0.12);
  border-color: rgba(243,107,43,0.2);
}

/* Thumbnail */
.blog-card__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #dfe8f0;
  flex-shrink: 0;
  isolation: isolate;
  background-clip: padding-box;
  border-radius: 18px 18px 0 0;
  font-size: 0;
  line-height: 0;
}

/* Large card image: fixed width 55%, full height */
.blog-card--large .blog-card__thumb {
  width: 55%;
  flex-shrink: 0;
  aspect-ratio: unset;
  height: 100%;
  border-radius: 18px 0 0 18px;
}

.blog-card__thumb--no-img {
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fb 100%);
}

.blog-card__thumb-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(34,116,165,0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(243,107,43,0.10) 0%, transparent 50%);
}

.blog-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border-radius: 0 !important;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.blog-card:hover .blog-card__img {
  transform: scale(1.06);
}

.blog-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,18,32,0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card__thumb-overlay {
  opacity: 1;
}

/* Card body */
.blog-card__body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card--large .blog-card__body {
  padding: 32px 30px;
  justify-content: center;
}

.blog-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-card__cat {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F36B2B;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-card__cat:hover { opacity: 0.75; }

.blog-card__flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(34,116,165,0.1);
  color: #2274A5;
}

.blog-card__title {
  margin: 0 0 10px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.blog-card--large .blog-card__title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin-bottom: 14px;
}

.blog-card__title a {
  color: #0b1220;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card__title a { color: #F36B2B; }

.blog-card__excerpt {
  margin: 0 0 18px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(11,18,32,0.6);
}

.blog-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.76rem;
  color: rgba(11,18,32,0.42);
}

.blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.blog-card__read svg {
  width: 13px;
  height: 13px;
  color: #F36B2B;
}

.blog-card__date { font-weight: 600; }

/* ── Inline newsletter CTA card  ──────────────────────────── */
.blog-inline-cta {
  background: linear-gradient(135deg, #0b1220 0%, #1a2840 100%);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 36px rgba(11,18,32,0.2);
}

/* Align with the grid: non-large cards occupy 1 col each,
   this CTA also occupies 1 col */

.blog-inline-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(243,107,43,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.blog-inline-cta__inner {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-inline-cta__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F36B2B;
}

.blog-inline-cta__text {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.blog-inline-cta__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  --et-newsletter-status-color: rgba(255,255,255,0.82);
  --et-newsletter-error-color: #ffd5cf;
  --et-newsletter-success-color: #c7f4d0;
  --et-newsletter-info-color: #d7e8ff;
}

.blog-inline-cta__input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.blog-inline-cta__input::placeholder { color: rgba(255,255,255,0.3); }
.blog-inline-cta__input:focus { border-color: rgba(243,107,43,0.5); }

.blog-inline-cta__btn {
  width: 100%;
  height: 42px;
  background: #F36B2B;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.blog-inline-cta__btn:hover {
  background: #d95e22;
  transform: translateY(-1px);
}

.blog-inline-cta__status {
  margin: 0;
}

/* ── Pagination ───────────────────────────────────────────── */
.blog-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* paginate_links outputs a <ul> when type=list */
.blog-pagination .page-numbers {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  align-items: center;
}

.blog-pagination .page-numbers li { margin: 0; }

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid rgba(11,18,32,0.1);
  background: #fff;
  color: rgba(11,18,32,0.65);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(11,18,32,0.04);
}

.blog-pagination .page-numbers svg {
  width: 16px;
  height: 16px;
}

.blog-pagination .page-numbers a:hover {
  background: rgba(243,107,43,0.07);
  border-color: rgba(243,107,43,0.3);
  color: #F36B2B;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(243,107,43,0.15);
}

.blog-pagination .page-numbers .current {
  background: #F36B2B;
  border-color: #F36B2B;
  color: #fff;
  box-shadow: 0 6px 18px rgba(243,107,43,0.3);
}

.blog-pagination .page-numbers .dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: rgba(11,18,32,0.3);
}

/* ── Empty state ──────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
}

.blog-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: rgba(11,18,32,0.25);
}

.blog-empty__icon svg { width: 100%; height: 100%; }

.blog-empty__title {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0b1220;
}

.blog-empty__text {
  margin: 0 0 28px;
  font-size: 1rem;
  color: rgba(11,18,32,0.5);
}

.blog-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #F36B2B;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.blog-empty__btn:hover {
  background: #d95e22;
  transform: translateY(-2px);
}

/* ── Dark mode ────────────────────────────────────────────── */
html[data-theme="dark"] .blog-header {
  background: #0d1220 !important;
  border-color: rgba(255,255,255,0.06) !important;
}

html[data-theme="dark"] .blog-header__title { color: #fff !important; }
html[data-theme="dark"] .blog-header__sub   { color: rgba(255,255,255,0.45) !important; }

html[data-theme="dark"] .blog-header__search {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

html[data-theme="dark"] .blog-header__search:focus-within {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(243,107,43,0.4) !important;
}

html[data-theme="dark"] .blog-header__search-input { color: #fff !important; }
html[data-theme="dark"] .blog-header__search-input::placeholder { color: rgba(255,255,255,0.25) !important; }
html[data-theme="dark"] .blog-header__search-icon  { color: rgba(255,255,255,0.25) !important; }

html[data-theme="dark"] .blog-filter {
  border-color: rgba(255,255,255,0.06) !important;
}

html[data-theme="dark"] .blog-filter__pill {
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.5) !important;
}

html[data-theme="dark"] .blog-filter__pill:hover {
  background: rgba(243,107,43,0.1) !important;
  border-color: rgba(243,107,43,0.3) !important;
  color: #F36B2B !important;
}

html[data-theme="dark"] .blog-featured__content {
  background: #111826 !important;
}

html[data-theme="dark"] .blog-featured__title { color: #fff !important; }
html[data-theme="dark"] .blog-featured__excerpt { color: rgba(255,255,255,0.55) !important; }
html[data-theme="dark"] .blog-featured__author  { color: #fff !important; }
html[data-theme="dark"] .blog-featured__info    { color: rgba(255,255,255,0.35) !important; }

html[data-theme="dark"] .blog-featured__cta {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

html[data-theme="dark"] .blog-featured__cta:hover {
  background: #F36B2B !important;
}

html[data-theme="dark"] .blog-grid-head__title { color: #fff !important; }
html[data-theme="dark"] .blog-grid-head__count  { color: rgba(255,255,255,0.3) !important; }

html[data-theme="dark"] .blog-card {
  background: rgba(255,255,255,0.03) !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3) !important;
}

html[data-theme="dark"] .blog-card:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(243,107,43,0.25) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}

html[data-theme="dark"] .blog-card__thumb--no-img {
  background: linear-gradient(135deg, #1e293b, #0f172a) !important;
}

html[data-theme="dark"] .blog-card__title a { color: #fff !important; }
html[data-theme="dark"] .blog-card:hover .blog-card__title a { color: #F36B2B !important; }
html[data-theme="dark"] .blog-card__excerpt { color: rgba(255,255,255,0.5) !important; }
html[data-theme="dark"] .blog-card__footer  { border-color: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.3) !important; }

html[data-theme="dark"] .blog-empty__title { color: #fff !important; }
html[data-theme="dark"] .blog-empty__text  { color: rgba(255,255,255,0.4) !important; }
html[data-theme="dark"] .blog-empty__icon  { color: rgba(255,255,255,0.15) !important; }

html[data-theme="dark"] .blog-pagination .page-numbers a,
html[data-theme="dark"] .blog-pagination .page-numbers span {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.6) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .blog-pagination .page-numbers a:hover {
  background: rgba(243,107,43,0.12) !important;
  border-color: rgba(243,107,43,0.35) !important;
  color: #F36B2B !important;
}

html[data-theme="dark"] .blog-pagination .page-numbers .current {
  background: #F36B2B !important;
  border-color: #F36B2B !important;
  color: #fff !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-card--large {
    grid-column: 1 / -1;
    max-height: 300px;
  }
}

@media (max-width: 900px) {
  .blog-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-header__search {
    width: 100%;
  }

  .blog-featured__inner {
    grid-template-columns: 1fr;
  }

  .blog-featured__media {
    min-height: 280px;
    border-radius: 24px 24px 0 0;
  }

  .blog-featured__content {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card--large {
    grid-column: 1;
    flex-direction: column;
    max-height: none;
    min-height: auto;
  }

  .blog-card--large .blog-card__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 18px 18px 0 0;
  }

  .blog-card--large .blog-card__body {
    padding: 22px;
  }

  .blog-inline-cta {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .blog-ticker { display: none; }

  .blog-header {
    padding-top: 36px;
  }

  .blog-header__title {
    font-size: 2rem;
  }

  .blog-featured {
    padding-top: 36px;
  }
}

/* Sidebar Custom Widgets Styling */
.single-rail .widget_search,
.single-rail .widget_recent_comments,
.single-rail .widget_archive,
.single-rail .widget_block:has(.wp-block-search),
.single-rail .widget_block:has(.wp-block-latest-comments),
.single-rail .widget_block:has(.wp-block-archives) {
    display: none !important;
}

.single-rail .widget_recent_entries,
.single-rail .widget_categories,
.single-rail .widget_block:has(.wp-block-categories),
.single-rail .widget_block:has(.wp-block-latest-posts) {
    display: none !important;
}

.single-rail .widget_categories,
.single-rail .widget_recent_entries,
.single-rail .widget_block:has(.wp-block-categories),
.single-rail .widget_block:has(.wp-block-latest-posts) {
    background: rgba(var(--color-surface-rgb, 18, 18, 18), 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-lg, 16px) !important;
    padding: clamp(1.25rem, 3vw, 1.5rem) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

[data-theme="light"] .single-rail .widget_categories,
[data-theme="light"] .single-rail .widget_recent_entries,
[data-theme="light"] .single-rail .widget_block:has(.wp-block-categories),
[data-theme="light"] .single-rail .widget_block:has(.wp-block-latest-posts) {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

.single-rail .widget_categories h2,
.single-rail .widget_categories h3,
.single-rail .widget_recent_entries h2,
.single-rail .widget_recent_entries h3,
.single-rail .widget_block h2,
.single-rail .widget_block h3 {
    font-family: var(--font-heading), sans-serif;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-heading, #fff);
}

[data-theme="light"] .single-rail .widget_categories h2,
[data-theme="light"] .single-rail .widget_categories h3,
[data-theme="light"] .single-rail .widget_recent_entries h2,
[data-theme="light"] .single-rail .widget_recent_entries h3,
[data-theme="light"] .single-rail .widget_block h2,
[data-theme="light"] .single-rail .widget_block h3 {
     border-bottom-color: rgba(0, 0, 0, 0.08);
     color: #111;
}

.single-rail .widget_categories ul,
.single-rail .widget_recent_entries ul,
.single-rail .wp-block-categories,
.single-rail .wp-block-latest-posts {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-rail .widget_categories ul li,
.single-rail .widget_recent_entries ul li,
.single-rail .wp-block-categories li,
.single-rail .wp-block-latest-posts li {
    padding: 0.6rem 0 !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .single-rail .widget_categories ul li,
[data-theme="light"] .single-rail .widget_recent_entries ul li,
[data-theme="light"] .single-rail .wp-block-categories li,
[data-theme="light"] .single-rail .wp-block-latest-posts li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.single-rail .widget_categories ul li:last-child,
.single-rail .widget_recent_entries ul li:last-child,
.single-rail .wp-block-categories li:last-child,
.single-rail .wp-block-latest-posts li:last-child {
    border-bottom: none !important;
}

.single-rail .widget_categories ul li a,
.single-rail .widget_recent_entries ul li a,
.single-rail .wp-block-categories li a,
.single-rail .wp-block-latest-posts li a {
    color: var(--color-text-muted, #999) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block;
}

.single-rail .widget_categories ul li a:hover,
.single-rail .widget_recent_entries ul li a:hover,
.single-rail .wp-block-categories li a:hover,
.single-rail .wp-block-latest-posts li a:hover {
    color: var(--color-accent, #ff6b35) !important;
    transform: translateX(4px);
}

/* ============================================================
   PREMIUM ENHANCEMENTS: Categories & Recent Posts
   ============================================================ */

.single-rail .widget_categories,
.single-rail .widget_recent_entries {
    position: relative;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    padding: 1.75rem;
    background:
        radial-gradient(120% 120% at 10% 0%, rgba(34,116,165,.06), transparent 60%),
        radial-gradient(120% 120% at 90% 10%, rgba(243,107,43,.05), transparent 55%),
        rgba(255,255,255,.85);
    box-shadow: 0 12px 32px rgba(15,23,42,.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .single-rail .widget_categories,
[data-theme="dark"] .single-rail .widget_recent_entries {
    background:
        radial-gradient(120% 120% at 10% 0%, rgba(34,116,165,.15), transparent 60%),
        radial-gradient(120% 120% at 90% 10%, rgba(243,107,43,.12), transparent 55%),
        rgba(11, 15, 25, 0.7);
    border-color: rgba(255,255,255,.05);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.single-rail .widget_categories:hover,
.single-rail .widget_recent_entries:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15,23,42,.08);
}

[data-theme="dark"] .single-rail .widget_categories:hover,
[data-theme="dark"] .single-rail .widget_recent_entries:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
}

.single-rail .widget_categories .widget-title,
.single-rail .widget_recent_entries .widget-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(11,18,32,.8);
    margin: 0 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(15,23,42,.08);
    position: relative;
}

[data-theme="dark"] .single-rail .widget_categories .widget-title,
[data-theme="dark"] .single-rail .widget_recent_entries .widget-title {
    color: rgba(255,255,255,.8);
    border-bottom-color: rgba(255,255,255,.08);
}

.single-rail .widget_categories ul,
.single-rail .widget_recent_entries ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.single-rail .widget_categories ul li,
.single-rail .widget_recent_entries ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.single-rail .widget_categories ul li a,
.single-rail .widget_recent_entries ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(11,18,32,.75) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent;
    width: 100%;
}

[data-theme="dark"] .single-rail .widget_categories ul li a,
[data-theme="dark"] .single-rail .widget_recent_entries ul li a {
    color: rgba(255,255,255,.7) !important;
}

.single-rail .widget_categories ul li a::before,
.single-rail .widget_recent_entries ul li a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    flex: 0 0 6px;
    transition: all 0.2s ease;
}

.single-rail .widget_categories ul li a::before {
    background: #F36B2B;
    box-shadow: 0 0 0 4px rgba(243,107,43,.12);
}

.single-rail .widget_recent_entries ul li a::before {
    background: #2274A5;
    box-shadow: 0 0 0 4px rgba(34,116,165,.12);
}

.single-rail .widget_categories ul li a:hover {
    color: #F36B2B !important;
    background: rgba(243,107,43,.06);
    transform: translateX(4px);
}

.single-rail .widget_recent_entries ul li a:hover {
    color: #2274A5 !important;
    background: rgba(34,116,165,.06);
    transform: translateX(4px);
}

[data-theme="dark"] .single-rail .widget_categories ul li a:hover {
    background: rgba(243,107,43,.15);
}

[data-theme="dark"] .single-rail .widget_recent_entries ul li a:hover {
    background: rgba(34,116,165,.15);
}

.single-rail .widget_categories,
.single-rail .widget_block:has(.wp-block-categories) {
    padding: 1.5rem !important;
    border-radius: 18px !important;
}

.single-rail .widget_categories .widget-title,
.single-rail .widget_block:has(.wp-block-categories) h2,
.single-rail .widget_block:has(.wp-block-categories) h3 {
    margin-bottom: 1rem !important;
    padding-bottom: 0.95rem !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.12em;
}

.single-rail .widget_categories ul,
.single-rail .wp-block-categories {
    display: grid;
    gap: 0.72rem;
}

.single-rail .widget_categories ul li,
.single-rail .wp-block-categories li {
    padding: 0 !important;
    border-bottom: none !important;
}

.single-rail .widget_categories ul li a,
.single-rail .wp-block-categories li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(243,107,43,.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.92));
    color: rgba(11,18,32,.82) !important;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.single-rail .widget_categories ul li a::before,
.single-rail .wp-block-categories li a::before {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    box-shadow: 0 0 0 5px rgba(243,107,43,.1);
}

.single-rail .widget_categories ul li a::after,
.single-rail .wp-block-categories li a::after {
    content: "→";
    margin-left: auto;
    color: rgba(243,107,43,.72);
    font-size: 0.92rem;
    font-weight: 800;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.72;
}

.single-rail .widget_categories ul li a:hover,
.single-rail .wp-block-categories li a:hover {
    color: #F36B2B !important;
    background:
        linear-gradient(180deg, rgba(255,247,243,.98), rgba(255,255,255,.94));
    border-color: rgba(243,107,43,.22);
    transform: translateX(0) translateY(-1px);
    box-shadow: 0 12px 28px rgba(243,107,43,.08);
}

.single-rail .widget_categories ul li a:hover::after,
.single-rail .wp-block-categories li a:hover::after {
    transform: translateX(2px);
    opacity: 1;
}

[data-theme="dark"] .single-rail .widget_categories ul li a,
[data-theme="dark"] .single-rail .wp-block-categories li a {
    background:
        linear-gradient(180deg, rgba(19,27,43,.92), rgba(12,18,32,.88));
    border-color: rgba(255,255,255,.08);
    color: rgba(241,245,249,.84) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

[data-theme="dark"] .single-rail .widget_categories ul li a::after,
[data-theme="dark"] .single-rail .wp-block-categories li a::after {
    color: rgba(255,180,141,.82);
}

[data-theme="dark"] .single-rail .widget_categories ul li a:hover,
[data-theme="dark"] .single-rail .wp-block-categories li a:hover {
    background:
        linear-gradient(180deg, rgba(31,40,58,.98), rgba(16,24,39,.92));
    border-color: rgba(243,107,43,.28);
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

/* ==========================================
   Frontend Polish Pass
   ========================================== */

.about-hero {
  min-height: clamp(560px, 74vh, 760px);
  padding: 76px 0 56px;
}

.about-hero__inner {
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.about-hero__content {
  padding-top: 14px;
}

.about-hero__lead {
  max-width: 52ch;
  margin-bottom: 28px;
}

.about-hero__actions {
  gap: 12px;
}

.about-hero__stats {
  gap: 16px;
  align-content: start;
}

.about-stat-card {
  padding: 24px 20px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.1);
}

.about-stat-card:nth-child(even) {
  transform: translateY(14px);
}

.about-story,
.about-pillars,
.about-values,
.about-recent,
.about-newsletter {
  padding: clamp(64px, 8vw, 88px) 0;
}

.about-newsletter__status,
.about-newsletter__status:empty,
.blog-inline-cta__status,
.blog-inline-cta__status:empty {
  min-height: 1.5em;
}

.blog-header {
  padding: 44px 0 0;
}

.blog-header__inner {
  gap: 24px;
}

.blog-header__text {
  max-width: 60ch;
}

.blog-header__sub {
  max-width: 56ch;
}

.blog-header__search {
  min-height: 56px;
  border-radius: 16px;
  padding-right: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.blog-header__search-input {
  min-width: 0;
}

.blog-header__search-btn {
  min-height: 42px;
  padding-inline: 18px;
}

.blog-filter__inner {
  gap: 8px;
  padding: 16px 0;
}

.blog-filter__pill {
  min-height: 40px;
  padding: 8px 18px;
}

.blog-featured {
  padding: 42px 0 0;
}

.blog-featured__inner {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 22px 52px rgba(11, 18, 32, 0.11);
}

.blog-featured__content {
  padding: 40px 38px;
}

.blog-featured__title,
.blog-card__title {
  text-wrap: balance;
}

.blog-featured__excerpt,
.blog-card__excerpt {
  max-width: 58ch;
}

.blog-grid-section {
  padding: 48px 0 76px;
}

.blog-grid-head {
  margin-bottom: 18px;
}

.blog-card {
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.06);
}

.blog-inline-cta__inner {
  padding: 30px 26px;
}

.blog-inline-cta__form {
  gap: 12px;
}

.blog-inline-cta__input,
.blog-inline-cta__btn {
  height: 46px;
}

.about-btn:focus-visible,
.about-newsletter__input:focus-visible,
.about-newsletter__submit:focus-visible,
.blog-header__search-btn:focus-visible,
.blog-filter__pill:focus-visible,
.blog-featured__cta:focus-visible,
.blog-inline-cta__input:focus-visible,
.blog-inline-cta__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 116, 165, 0.14), 0 0 0 7px rgba(243, 107, 43, 0.12);
}

html[data-theme="dark"] .about-stat-card {
  background: rgba(11, 18, 32, 0.68);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .about-stat-card__label {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .blog-header__search {
  box-shadow: none;
}

html[data-theme="dark"] .blog-featured__inner {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .blog-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 900px) {
  .about-hero {
    min-height: auto;
    padding: 72px 0 48px;
  }

  .about-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-stat-card:nth-child(even) {
    transform: none;
  }

  .blog-header {
    padding-top: 36px;
  }

  .blog-header__inner {
    gap: 18px;
  }

  .blog-featured__content {
    padding: 30px 24px;
  }
}

@media (max-width: 768px) {
  .about-hero__inner {
    gap: 28px;
  }

  .about-hero__lead {
    margin-bottom: 24px;
  }

  .about-story,
  .about-pillars,
  .about-values,
  .about-recent,
  .about-newsletter {
    padding: 60px 0;
  }

  .blog-filter__inner {
    padding: 12px 0;
  }

  .blog-filter__pill {
    min-height: 38px;
    padding: 7px 16px;
  }

  .blog-grid-head {
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .blog-featured {
    padding-top: 28px;
  }

  .blog-featured__content {
    padding: 26px 20px;
  }

  .blog-inline-cta__inner {
    padding: 26px 20px;
  }
}

/* ==========================================
   Blog Page Enhancement Pass
   ========================================== */

.blog-header__search {
  width: min(360px, 100%);
}

.blog-filter {
  overflow: visible;
}

.blog-filter__wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0 18px;
}

.blog-filter__label {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 40px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.46);
}

.blog-filter__rail {
  min-width: 0;
}

.blog-filter__inner {
  width: auto;
  min-width: 0;
  padding: 0;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.blog-filter__pill {
  justify-content: center;
}

.blog-featured__content {
  justify-content: flex-start;
}

.blog-featured__cta {
  margin-top: auto;
}

.blog-grid {
  align-items: stretch;
  gap: 22px;
}

.blog-grid-head {
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.07);
}

.blog-grid-head__count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.blog-card,
.blog-inline-cta {
  height: 100%;
}

.blog-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-card__footer {
  flex-wrap: wrap;
}

.blog-inline-cta__inner {
  justify-content: space-between;
}

.blog-pagination .page-numbers {
  flex-wrap: wrap;
  justify-content: center;
}

html[data-theme="dark"] .blog-filter__label {
  color: rgba(255, 255, 255, 0.42) !important;
}

html[data-theme="dark"] .blog-grid-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .blog-grid-head__count {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

@media (max-width: 900px) {
  .blog-filter__wrap {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }

  .blog-filter__label {
    min-height: 0;
  }

  .blog-filter__rail {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .blog-filter__rail::-webkit-scrollbar {
    display: none;
  }

  .blog-filter__inner {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
}

@media (max-width: 768px) {
  .blog-grid-head {
    padding-bottom: 12px;
  }

  .blog-grid-head__count {
    min-height: 32px;
    padding-inline: 10px;
  }
}

/* ==========================================
   Blog Page Issue Fixes
   ========================================== */

.blog-filter__label {
  align-self: center;
}

.blog-header__search-input {
  appearance: none;
  -webkit-appearance: none;
}

.blog-header__search-input::-webkit-search-decoration,
.blog-header__search-input::-webkit-search-cancel-button,
.blog-header__search-input::-webkit-search-results-button,
.blog-header__search-input::-webkit-search-results-decoration {
  display: none;
}

.blog-header__search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.blog-card--large {
  min-height: 320px;
  max-height: none;
}

.blog-card--large .blog-card__thumb {
  width: 50%;
}

.blog-card--large .blog-card__body {
  justify-content: space-between;
  gap: 12px;
  padding: 28px 28px 24px;
}

.blog-card--large .blog-card__title a {
  -webkit-line-clamp: 2;
}

.blog-card--large .blog-card__excerpt {
  -webkit-line-clamp: 2;
  margin-bottom: 14px;
}

.blog-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.blog-pagination ul.page-numbers > li {
  display: flex;
  margin: 0;
}

.blog-pagination ul.page-numbers > li > .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  white-space: nowrap;
}

.blog-pagination ul.page-numbers > li > .prev,
.blog-pagination ul.page-numbers > li > .next {
  min-width: 112px;
}

.blog-pagination ul.page-numbers > li > .dots {
  min-width: auto;
  padding: 0 6px;
}

@media (max-width: 1024px) {
  .blog-card--large {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .blog-card--large .blog-card__body {
    gap: 0;
    padding: 22px;
  }

  .blog-card--large .blog-card__title a,
  .blog-card--large .blog-card__excerpt {
    -webkit-line-clamp: unset;
  }

  .blog-pagination ul.page-numbers > li > .prev,
  .blog-pagination ul.page-numbers > li > .next {
    min-width: 96px;
  }
}

/* ==========================================
   Search Results Experience
   ========================================== */

.search-results-page {
  min-height: 100vh;
  background: #fafbfd;
  padding-bottom: 84px;
}

.search-results__hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 26px;
  background:
    radial-gradient(circle at top left, rgba(34, 116, 165, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(243, 107, 43, 0.1), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.search-results__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: end;
  gap: 28px;
}

.search-results__intro {
  max-width: 64ch;
}

.search-results__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F36B2B;
}

.search-results__title {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0b1220;
  text-wrap: balance;
}

.search-results__sub {
  margin: 0;
  max-width: 56ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(11, 18, 32, 0.58);
}

.search-results__form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 8px 8px 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-results__form:focus-within {
  border-color: rgba(243, 107, 43, 0.35);
  box-shadow: 0 0 0 4px rgba(243, 107, 43, 0.08), 0 18px 38px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.search-results__form-icon {
  display: flex;
  align-items: center;
  color: rgba(11, 18, 32, 0.32);
}

.search-results__form-icon svg {
  width: 18px;
  height: 18px;
}

.search-results__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0b1220;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.search-results__input::placeholder {
  color: rgba(11, 18, 32, 0.38);
}

.search-results__input::-webkit-search-decoration,
.search-results__input::-webkit-search-cancel-button,
.search-results__input::-webkit-search-results-button,
.search-results__input::-webkit-search-results-decoration {
  display: none;
}

.search-results__input:focus,
.search-results__input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.search-results__submit {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #F36B2B;
  color: #fff;
  padding: 0 20px;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.search-results__submit:hover {
  background: #d95e22;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(243, 107, 43, 0.24);
}

.search-results__topics {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.search-results__topics-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.42);
}

.search-results__topics-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-results__topic {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: #0b1220;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.search-results__topic:hover {
  border-color: rgba(243, 107, 43, 0.28);
  background: rgba(243, 107, 43, 0.06);
  color: #F36B2B;
  transform: translateY(-1px);
}

.search-results__body {
  padding-top: 42px;
}

.search-results__featured {
  padding-top: 0;
  margin-bottom: 36px;
}

.search-results__grid-section {
  padding-top: 4px;
}

.search-results__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.07);
}

.search-results__section-title {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0b1220;
}

.search-results__section-meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(11, 18, 32, 0.46);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.search-results__grid-section--solo .search-results__section-head {
  justify-content: flex-start;
  margin-bottom: 28px;
}

.search-results__grid--solo {
  grid-template-columns: minmax(0, 380px);
  justify-content: flex-start;
}

.search-card {
  height: 100%;
}

.search-card .blog-card__thumb {
  aspect-ratio: 16 / 10;
}

.search-card__body {
  gap: 0;
}

.search-card__title {
  margin-bottom: 12px;
}

.search-card__excerpt {
  margin-bottom: 16px;
}

.search-results__single-note {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: #fff;
  color: rgba(11, 18, 32, 0.6);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.search-results__single-note p {
  margin: 0;
}

.search-results__empty {
  max-width: 760px;
  margin: 6px auto 0;
  padding: 56px 32px;
  border-radius: 24px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.search-results__empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 116, 165, 0.08);
  color: #2274A5;
}

.search-results__empty-icon svg {
  width: 34px;
  height: 34px;
}

.search-results__empty-title {
  margin: 0 0 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.search-results__empty-text {
  margin: 0 auto;
  max-width: 48ch;
  color: rgba(11, 18, 32, 0.58);
  font-size: 1rem;
  line-height: 1.7;
}

.search-results__empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.search-results__empty-btn,
.search-results__empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-results__empty-btn {
  background: #F36B2B;
  color: #fff;
  box-shadow: 0 12px 24px rgba(243, 107, 43, 0.22);
}

.search-results__empty-btn:hover {
  transform: translateY(-1px);
  background: #d95e22;
}

.search-results__empty-link {
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: #fff;
  color: #0b1220;
}

.search-results__empty-link:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 116, 165, 0.2);
  background: rgba(34, 116, 165, 0.06);
  color: #2274A5;
}

.search-results__pagination {
  margin-top: 50px;
}

.search-results__form:focus-within .search-results__submit:focus-visible,
.search-results__topic:focus-visible,
.search-results__empty-btn:focus-visible,
.search-results__empty-link:focus-visible,
.search-results__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 116, 165, 0.14), 0 0 0 7px rgba(243, 107, 43, 0.12);
}

html[data-theme="dark"] .search-results-page {
  background: #0b0f19 !important;
}

html[data-theme="dark"] .search-results__hero {
  background:
    radial-gradient(circle at top left, rgba(34, 116, 165, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(243, 107, 43, 0.12), transparent 32%),
    linear-gradient(180deg, #0d1220 0%, #0b0f19 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .search-results__title,
html[data-theme="dark"] .search-results__section-title,
html[data-theme="dark"] .search-results__empty-title {
  color: #fff !important;
}

html[data-theme="dark"] .search-results__sub,
html[data-theme="dark"] .search-results__single-note,
html[data-theme="dark"] .search-results__empty-text {
  color: rgba(255, 255, 255, 0.58) !important;
}

html[data-theme="dark"] .search-results__form,
html[data-theme="dark"] .search-results__topic,
html[data-theme="dark"] .search-results__section-meta,
html[data-theme="dark"] .search-results__single-note,
html[data-theme="dark"] .search-results__empty,
html[data-theme="dark"] .search-results__empty-link {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .search-results__form:focus-within {
  background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .search-results__input {
  color: #fff !important;
}

html[data-theme="dark"] .search-results__input::placeholder,
html[data-theme="dark"] .search-results__form-icon,
html[data-theme="dark"] .search-results__topics-label,
html[data-theme="dark"] .search-results__section-meta {
  color: rgba(255, 255, 255, 0.42) !important;
}

html[data-theme="dark"] .search-results__topic,
html[data-theme="dark"] .search-results__empty-link {
  color: rgba(255, 255, 255, 0.78) !important;
}

html[data-theme="dark"] .search-results__topic:hover,
html[data-theme="dark"] .search-results__empty-link:hover {
  background: rgba(243, 107, 43, 0.12) !important;
  border-color: rgba(243, 107, 43, 0.28) !important;
  color: #F36B2B !important;
}

html[data-theme="dark"] .search-results__section-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .search-results__empty-icon {
  background: rgba(34, 116, 165, 0.16);
}

@media (max-width: 1024px) {
  .search-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-results__hero-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .search-results__form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .search-results-page {
    padding-bottom: 64px;
  }

  .search-results__hero {
    padding: 34px 0 22px;
  }

  .search-results__body {
    padding-top: 30px;
  }

  .search-results__featured {
    margin-bottom: 28px;
  }

  .search-results__topics {
    align-items: flex-start;
  }

  .search-results__grid {
    grid-template-columns: 1fr;
  }

  .search-results__section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
  }

  .search-results__empty {
    padding: 42px 22px;
  }
}

@media (max-width: 560px) {
  .search-results__form {
    padding-left: 14px;
  }

  .search-results__submit {
    min-width: 96px;
    padding: 0 16px;
  }
}

/* Category Archive Experience */
body.category,
body.archive.category {
  background:
    radial-gradient(circle at top right, rgba(243, 107, 43, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f7f8fb 100%);
  overflow-x: hidden;
}

.category-page {
  position: relative;
  overflow-x: hidden;
  padding-bottom: 88px;
  background: transparent;
}

.category-page__hero {
  position: relative;
  padding: 44px 0 28px;
  overflow: hidden;
}

.category-page__hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -40px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 116, 165, 0.12) 0%, rgba(34, 116, 165, 0) 72%);
  pointer-events: none;
}

.category-page__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  gap: 30px;
  align-items: start;
}

.category-page__eyebrow {
  margin: 0 0 14px;
  color: #F36B2B;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.category-page__title {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #0b1220;
  max-width: 12ch;
}

.category-page__sub {
  margin: 18px 0 0;
  max-width: 62ch;
  color: rgba(11, 18, 32, 0.62);
  font-size: 1.02rem;
  line-height: 1.75;
}

.category-page__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.category-page__stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.category-page__stat-value {
  color: #0b1220;
  font-size: 0.92rem;
  font-weight: 800;
}

.category-page__stat-label {
  color: rgba(11, 18, 32, 0.52);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.category-page__panel {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.category-page__panel-label,
.category-page__sort-label {
  margin: 0 0 14px;
  color: rgba(11, 18, 32, 0.48);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-page__search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 10px 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(243, 107, 43, 0.22);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-page__search:focus-within {
  border-color: rgba(243, 107, 43, 0.42);
  box-shadow: 0 0 0 5px rgba(243, 107, 43, 0.1);
  transform: translateY(-1px);
}

.category-page__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(11, 18, 32, 0.28);
}

.category-page__search-icon svg {
  width: 18px;
  height: 18px;
}

.category-page__search-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b1220;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.category-page__search-input::placeholder {
  color: rgba(11, 18, 32, 0.34);
}

.category-page__search-input::-webkit-search-decoration,
.category-page__search-input::-webkit-search-cancel-button,
.category-page__search-input::-webkit-search-results-button,
.category-page__search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.category-page__search-input:focus,
.category-page__search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.category-page__search-btn {
  flex: 0 0 auto;
  min-width: 104px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: #F36B2B;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(243, 107, 43, 0.24);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.category-page__search-btn:hover {
  transform: translateY(-1px);
  background: #d95e22;
  box-shadow: 0 18px 28px rgba(243, 107, 43, 0.3);
}

.category-page__sort {
  margin-top: 22px;
}

.category-page__sort-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-page__sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(247, 248, 251, 0.92);
  color: rgba(11, 18, 32, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.category-page__sort-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 107, 43, 0.24);
  color: #F36B2B;
  background: rgba(243, 107, 43, 0.08);
}

.category-page__sort-pill.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0b1220 0%, #162238 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(11, 18, 32, 0.18);
}

.category-page__panel-note {
  margin: 18px 0 0;
  color: rgba(11, 18, 32, 0.52);
  font-size: 0.92rem;
  line-height: 1.65;
}

.category-page__topics {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 8px;
}

.category-page__topics-label {
  flex: 0 0 auto;
  padding-top: 12px;
  color: rgba(11, 18, 32, 0.36);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-page__topics-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.category-page__topic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #0b1220;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.category-page__topic:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 107, 43, 0.24);
  color: #F36B2B;
  background: rgba(243, 107, 43, 0.08);
}

.category-page__topic.is-active {
  border-color: rgba(243, 107, 43, 0.28);
  background: rgba(243, 107, 43, 0.1);
  color: #F36B2B;
}

.category-page__body {
  padding-top: 14px;
}

.category-page__featured {
  margin-bottom: 36px;
}

.category-page__grid-head {
  align-items: end;
}

.category-page__grid-copy {
  min-width: 0;
}

.category-page__grid-sub {
  margin: 8px 0 0;
  max-width: 58ch;
  color: rgba(11, 18, 32, 0.56);
  font-size: 0.98rem;
  line-height: 1.7;
}

.category-page__grid-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.category-page__mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: rgba(11, 18, 32, 0.56);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-page__grid {
  align-items: stretch;
}

.category-page__grid .blog-card {
  height: 100%;
}

.category-page__note {
  margin-top: 14px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(11, 18, 32, 0.58);
}

.category-page__note p {
  margin: 0;
}

.category-page__pagination {
  margin-top: 50px;
}

.category-page__search-btn:focus-visible,
.category-page__sort-pill:focus-visible,
.category-page__topic:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(34, 116, 165, 0.14), 0 0 0 7px rgba(243, 107, 43, 0.12);
}

html[data-theme="dark"] .category-page {
  background: transparent;
}

html[data-theme="dark"] body.category,
html[data-theme="dark"] body.archive.category {
  background:
    radial-gradient(circle at top right, rgba(243, 107, 43, 0.16), transparent 28%),
    linear-gradient(180deg, #09111f 0%, #060d18 100%);
}

html[data-theme="dark"] .category-page__title {
  color: #fff !important;
}

html[data-theme="dark"] .category-page__sub,
html[data-theme="dark"] .category-page__panel-note,
html[data-theme="dark"] .category-page__grid-sub,
html[data-theme="dark"] .category-page__note {
  color: rgba(255, 255, 255, 0.58) !important;
}

html[data-theme="dark"] .category-page__stat,
html[data-theme="dark"] .category-page__panel,
html[data-theme="dark"] .category-page__search,
html[data-theme="dark"] .category-page__sort-pill,
html[data-theme="dark"] .category-page__topic,
html[data-theme="dark"] .category-page__mode-pill,
html[data-theme="dark"] .category-page__note {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .category-page__stat-value,
html[data-theme="dark"] .category-page__sort-pill,
html[data-theme="dark"] .category-page__topic {
  color: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="dark"] .category-page__stat-label,
html[data-theme="dark"] .category-page__panel-label,
html[data-theme="dark"] .category-page__sort-label,
html[data-theme="dark"] .category-page__topics-label,
html[data-theme="dark"] .category-page__mode-pill {
  color: rgba(255, 255, 255, 0.42) !important;
}

html[data-theme="dark"] .category-page__search-input {
  color: #fff !important;
}

html[data-theme="dark"] .category-page__search-input::placeholder,
html[data-theme="dark"] .category-page__search-icon {
  color: rgba(255, 255, 255, 0.28) !important;
}

html[data-theme="dark"] .category-page__sort-pill:hover,
html[data-theme="dark"] .category-page__topic:hover,
html[data-theme="dark"] .category-page__topic.is-active {
  background: rgba(243, 107, 43, 0.12) !important;
  border-color: rgba(243, 107, 43, 0.28) !important;
  color: #F36B2B !important;
}

html[data-theme="dark"] .category-page__sort-pill.is-active {
  background: linear-gradient(135deg, #0f1729 0%, #17263d 100%) !important;
  color: #fff !important;
}

@media (max-width: 1024px) {
  .category-page__hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .category-page {
    padding-bottom: 64px;
  }

  .category-page__hero {
    padding: 34px 0 24px;
  }

  .category-page__title {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .category-page__panel {
    padding: 20px;
    border-radius: 22px;
  }

  .category-page__search {
    min-height: 56px;
  }

  .category-page__topics {
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
  }

  .category-page__topics-label {
    padding-top: 0;
  }

  .category-page__body {
    padding-top: 8px;
  }

  .category-page__featured {
    margin-bottom: 28px;
  }

  .category-page__grid-head {
    align-items: flex-start;
  }

  .category-page__grid-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .category-page__search {
    padding-left: 14px;
  }

  .category-page__search-btn {
    min-width: 96px;
    padding: 0 16px;
  }
}

/* ============================================================
   HOME PAGE ADDITIONS — Live Ticker, Editors Picks, Ad Zones
   ============================================================ */

/* ── Live Ticker ─────────────────────────────────────────── */
.hp-live-ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hp-line, rgba(15,23,42,.08));
  background: linear-gradient(90deg, rgba(243,107,43,.08) 0%, transparent 24%);
  height: 42px;
}

html[data-theme="dark"] .hp-live-ticker {
  background: linear-gradient(90deg, rgba(243,107,43,.14) 0%, transparent 24%);
  border-bottom-color: rgba(255,255,255,.07);
}

.hp-live-ticker__label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 0 20px 0 clamp(16px,3vw,32px);
  font-family: "Manrope","Segoe UI",sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hp-orange, #f36b2b);
  border-right: 1px solid var(--hp-line, rgba(15,23,42,.08));
  height: 100%;
}

html[data-theme="dark"] .hp-live-ticker__label {
  border-right-color: rgba(255,255,255,.07);
}

.hp-live-ticker__pulse {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hp-orange, #f36b2b);
  animation: tickerPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hp-live-ticker__track-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.hp-live-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: tickerScroll 42s linear infinite;
}

.hp-live-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.hp-live-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-family: "Manrope","Segoe UI",sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text, #0f172a);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

html[data-theme="dark"] .hp-live-ticker__item {
  color: rgba(248,250,252,.84);
}

.hp-live-ticker__item:hover {
  color: var(--hp-orange, #f36b2b);
}

.hp-live-ticker__dot {
  color: var(--hp-orange, #f36b2b);
  font-size: 7px;
  flex-shrink: 0;
}

/* ── Hero Feature CTA ────────────────────────────────────── */
.home-premium.hp-home .hp-hero-feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  letter-spacing: .04em;
  transition: gap .2s ease, opacity .2s ease;
}

.home-premium.hp-home .hp-hero-feature__link:hover .hp-hero-feature__cta {
  gap: 14px;
  opacity: 1;
}

/* ── Newsletter layout – side-by-side copy + form ─────── */
.home-premium.hp-home .hp-newsletter-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 899px) {
  .home-premium.hp-home .hp-newsletter-band__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ── Editors' Picks ─────────────────────────────── */
.home-premium.hp-home .hp-editors-picks {
  border-top: 1px solid var(--hp-line);
}

.home-premium.hp-home .hp-editors-picks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

@media (max-width: 1099px) {
  .home-premium.hp-home .hp-editors-picks__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 599px) {
  .home-premium.hp-home .hp-editors-picks__grid {
    grid-template-columns: 1fr;
  }
}

.home-premium.hp-home .hp-editors-card {
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  box-shadow: var(--hp-elevation-1);
  overflow: hidden;
  transition: var(--hp-card-transition);
}

.home-premium.hp-home .hp-editors-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hp-elevation-2);
  border-color: rgba(243,107,43,.2);
}

.home-premium.hp-home .hp-editors-card__link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  height: 100%;
  text-decoration: none;
}

.home-premium.hp-home .hp-editors-card__num {
  font-family: "Sora","Segoe UI",sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(243,107,43,.3);
  line-height: 1;
  padding-top: 3px;
  letter-spacing: -.04em;
  flex-shrink: 0;
}

html[data-theme="dark"] .home-premium.hp-home .hp-editors-card__num {
  -webkit-text-stroke-color: rgba(243,107,43,.4);
}

.home-premium.hp-home .hp-editors-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-premium.hp-home .hp-editors-card__cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hp-orange);
}

.home-premium.hp-home .hp-editors-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-premium.hp-home .hp-editors-card__thumb {
  width: 62px;
  height: 62px;
  border-radius: var(--hp-radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.home-premium.hp-home .hp-editors-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.home-premium.hp-home .hp-editors-card:hover .hp-editors-card__img {
  transform: scale(1.06);
}

html[data-theme="dark"] .home-premium.hp-home .hp-editors-card {
  background: var(--hp-surface);
}

/* ── Ad Slots ────────────────────────────────────────────── */
.home-premium.hp-home .hp-ad-leaderboard,
.home-premium.hp-home .hp-ad-billboard {
  padding: clamp(16px,2vw,28px) 0;
}

.home-premium.hp-home .hp-ad-leaderboard__inner,
.home-premium.hp-home .hp-ad-billboard__inner {
  border-radius: var(--hp-radius-lg);
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  box-shadow: var(--hp-elevation-1);
  overflow: hidden;
  text-align: center;
}

html[data-theme="dark"] .home-premium.hp-home .hp-ad-leaderboard__inner,
html[data-theme="dark"] .home-premium.hp-home .hp-ad-billboard__inner {
  background: var(--hp-surface);
  border-color: var(--hp-line);
}

.home-premium.hp-home .hp-ad-leaderboard__label,
.home-premium.hp-home .hp-ad-billboard__label {
  padding: 12px 20px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(95,107,122,.55);
  margin: 0;
}

html[data-theme="dark"] .home-premium.hp-home .hp-ad-leaderboard__label,
html[data-theme="dark"] .home-premium.hp-home .hp-ad-billboard__label {
  color: rgba(226,232,240,.36);
}

/* Placeholder shown when no ad is configured */
.hp-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin: 12px 20px 20px;
  border-radius: 14px;
  border: 2px dashed rgba(243,107,43,.22);
  background: rgba(243,107,43,.04);
  color: rgba(95,107,122,.6);
  font-size: 13px;
  font-weight: 600;
  font-family: "Manrope","Segoe UI",sans-serif;
}

html[data-theme="dark"] .hp-ad-placeholder {
  border-color: rgba(243,107,43,.20);
  background: rgba(243,107,43,.06);
  color: rgba(226,232,240,.44);
}

.hp-ad-placeholder--billboard {
  min-height: 150px;
}

/* ── Latest Articles CTA ────────────────────────────────── */
.home-premium.hp-home .hp-latest__cta {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.home-premium.hp-home .hp-latest__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--hp-surface);
  border: 1.5px solid var(--hp-line-strong);
  color: var(--hp-text);
  font-family: "Manrope","Segoe UI",sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--hp-elevation-1);
  transition: var(--hp-card-transition);
}

.home-premium.hp-home .hp-latest__cta-btn:hover {
  transform: translateY(-3px);
  color: var(--hp-orange);
  border-color: rgba(243,107,43,.3);
  box-shadow: var(--hp-elevation-2);
}

html[data-theme="dark"] .home-premium.hp-home .hp-latest__cta-btn {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] .home-premium.hp-home .hp-latest__cta-btn:hover {
  background: rgba(243,107,43,.1);
  border-color: rgba(243,107,43,.28);
}

/* ── Simple (Explainer) nav arrows ─────────────────────── */
.home-premium.hp-home .hp-simple__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.home-premium.hp-home .hp-simple__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.home-premium.hp-home .hp-simple__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--hp-line-strong);
  background: var(--hp-surface);
  color: var(--hp-text);
  font-size: 18px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  box-shadow: 0 4px 14px rgba(15,23,42,.07);
}

.home-premium.hp-home .hp-simple__arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--hp-orange);
  border-color: var(--hp-orange);
  color: #fff;
}

.home-premium.hp-home .hp-simple__arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

html[data-theme="dark"] .home-premium.hp-home .hp-simple__arrow {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: rgba(248,250,252,.8);
}

.home-premium.hp-home .hp-simple__track-wrap {
  overflow: hidden;
}


/* ── Hero: reduce top-padding to bring image higher ─── */
.home-premium.hp-home .hp-home-hero {
  padding-top: clamp(2px, 0.6vw, 8px);
}

.home-premium.hp-home .hp-home-hero__frame {
  padding: 0;
}

.home-premium.hp-home .hp-home-hero__grid {
  padding: clamp(12px, 1.8vw, 18px);
}

.home-premium.hp-home .hp-hero-feature__link {
  min-height: clamp(380px, 45vw, 520px);
}

.home-premium.hp-home .hp-topic-pills {
  margin-inline: clamp(16px, 2.2vw, 22px);
  margin-bottom: clamp(8px, 1.2vw, 14px);
}

/* ==========================================
   Author Profile Page
   ========================================== */

.author-page {
  position: relative;
  overflow-x: hidden;
  padding-bottom: 88px;
}

.author-page__hero {
  position: relative;
  padding: 44px 0 24px;
}

.author-page__hero::before,
.author-page__hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
}

.author-page__hero::before {
  inset: 18px auto auto -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(243,107,43,0.12) 0%, rgba(243,107,43,0) 72%);
}

.author-page__hero::after {
  inset: auto -120px -40px auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34,116,165,0.14) 0%, rgba(34,116,165,0) 72%);
}

.author-page__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: start;
}

.author-page__eyebrow {
  margin: 0 0 14px;
  color: #F36B2B;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.author-page__title {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #0b1220;
  text-wrap: balance;
}

.author-page__role {
  margin: 16px 0 0;
  color: rgba(11,18,32,0.56);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-page__summary {
  margin: 18px 0 0;
  max-width: 62ch;
  color: rgba(11,18,32,0.68);
  font-size: 1.03rem;
  line-height: 1.78;
}

.author-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.author-page__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.author-page__action--primary {
  background: #0b1220;
  color: #fff;
  box-shadow: 0 12px 28px rgba(11,18,32,0.14);
}

.author-page__action--primary:hover {
  background: #F36B2B;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(243,107,43,0.22);
}

.author-page__action--secondary {
  border: 1px solid rgba(11,18,32,0.08);
  background: rgba(255,255,255,0.82);
  color: #0b1220;
}

.author-page__action--secondary:hover {
  border-color: rgba(243,107,43,0.2);
  background: rgba(243,107,43,0.06);
  color: #F36B2B;
  transform: translateY(-1px);
}

.author-page__panel {
  position: relative;
  z-index: 1;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(11,18,32,0.08);
  background:
    radial-gradient(circle at top right, rgba(34,116,165,0.08), transparent 34%),
    radial-gradient(circle at left 18%, rgba(243,107,43,0.08), transparent 24%),
    rgba(255,255,255,0.88);
  box-shadow: 0 22px 44px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}

.author-page__avatar {
  width: 120px;
  height: 120px;
  margin-bottom: 22px;
}

.author-page__avatar img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  box-shadow: 0 14px 32px rgba(15,23,42,0.14);
}

.author-page__stats {
  display: grid;
  gap: 12px;
}

.author-page__stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(11,18,32,0.08);
  background: rgba(255,255,255,0.78);
}

.author-page__stat-value {
  color: #0b1220;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.author-page__stat-label {
  color: rgba(11,18,32,0.48);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-page__focus {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
}

.author-page__focus-label {
  color: rgba(11,18,32,0.46);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.author-page__focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-page__focus-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,0.08);
  background: rgba(255,255,255,0.76);
  color: #0b1220;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.author-page__focus-chip span {
  color: rgba(11,18,32,0.45);
  font-size: 0.74rem;
  font-weight: 700;
}

.author-page__focus-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(243,107,43,0.22);
  background: rgba(243,107,43,0.06);
  color: #F36B2B;
}

.author-page__body {
  padding-top: 16px;
}

.author-page__featured {
  margin-top: 10px;
}

.author-page__grid-head {
  align-items: end;
}

.author-page__grid-copy {
  display: grid;
  gap: 10px;
}

.author-page__grid-sub {
  margin: 0;
  color: rgba(11,18,32,0.56);
  line-height: 1.7;
}

.author-page__note {
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.82);
  color: rgba(11,18,32,0.62);
}

.author-page__note p {
  margin: 0;
}

html[data-theme="dark"] .author-page__title {
  color: #f8fafc;
}

html[data-theme="dark"] .author-page__role,
html[data-theme="dark"] .author-page__summary,
html[data-theme="dark"] .author-page__grid-sub,
html[data-theme="dark"] .author-page__note {
  color: rgba(226,232,240,0.74);
}

html[data-theme="dark"] .author-page__panel {
  border-color: rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at top right, rgba(34,116,165,0.14), transparent 34%),
    radial-gradient(circle at left 18%, rgba(243,107,43,0.12), transparent 24%),
    rgba(12,18,32,0.9);
  box-shadow: 0 28px 60px rgba(0,0,0,0.24);
}

html[data-theme="dark"] .author-page__stat,
html[data-theme="dark"] .author-page__focus-chip,
html[data-theme="dark"] .author-page__action--secondary,
html[data-theme="dark"] .author-page__note {
  border-color: rgba(255,255,255,0.08);
  background: rgba(19,27,43,0.82);
}

html[data-theme="dark"] .author-page__stat-value,
html[data-theme="dark"] .author-page__focus-chip,
html[data-theme="dark"] .author-page__action--secondary {
  color: #f8fafc;
}

html[data-theme="dark"] .author-page__stat-label,
html[data-theme="dark"] .author-page__focus-label,
html[data-theme="dark"] .author-page__focus-chip span {
  color: rgba(226,232,240,0.52);
}

html[data-theme="dark"] .author-page__focus-chip:hover,
html[data-theme="dark"] .author-page__action--secondary:hover {
  border-color: rgba(243,107,43,0.26);
  background: rgba(243,107,43,0.12);
  color: #ffb48d;
}

@media (max-width: 1023px) {
  .author-page__hero-inner {
    grid-template-columns: 1fr;
  }

  .author-page__panel {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .author-page {
    padding-bottom: 64px;
  }

  .author-page__hero {
    padding: 34px 0 20px;
  }

  .author-page__title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .author-page__summary {
    font-size: 0.98rem;
  }

  .author-page__actions,
  .author-page__focus {
    align-items: stretch;
  }

  .author-page__action,
  .author-page__focus-chip {
    width: 100%;
    justify-content: center;
  }

  .author-page__avatar,
  .author-page__avatar img {
    width: 96px;
    height: 96px;
  }

  .author-page__focus {
    gap: 12px;
  }
}

/* ============================================================
   SINGLE POST DARK MODE POLISH
   ============================================================ */
html[data-theme="dark"] .single .post-aside {
  color: rgba(255, 255, 255, 0.72);
  border-left-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .single .post-aside a {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .single .post-aside a:hover {
  color: #F36B2B;
}

html[data-theme="dark"] .single .widget-title {
  color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] .single .widget::before,
html[data-theme="dark"] .single .widget::after {
  opacity: 0.18;
}

html[data-theme="dark"] .single .widget_ad_slot .et-ad-slot__label {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal__name,
html[data-theme="dark"] .single .widget_topic_rail .topic-portal__latest-link,
html[data-theme="dark"] .single .widget_topic_rail .topic-portal__cta,
html[data-theme="dark"] .single .widget_topic_rail .topic-portal--collections .topic-portal__list-label {
  color: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(130% 120% at 8% 0%, rgba(90, 171, 222, 0.12), transparent 58%),
    radial-gradient(120% 120% at 100% 10%, rgba(243, 107, 43, 0.1), transparent 54%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.98), rgba(12, 17, 29, 0.98));
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .single .widget_topic_rail:hover .topic-portal {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal__header {
  margin-bottom: 1rem;
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal__count,
html[data-theme="dark"] .single .widget_topic_rail .topic-portal__kicker,
html[data-theme="dark"] .single .widget_topic_rail .topic-portal--collections .topic-portal__list-meta {
  color: rgba(255, 255, 255, 0.54);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal__divider {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal__latest {
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal--collections .topic-portal__list-link {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal--collections .topic-portal__list-link:hover {
  border-color: rgba(243, 107, 43, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(243, 107, 43, 0.04));
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal--collections .topic-portal__list-arrow {
  color: rgba(243, 107, 43, 0.82);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal__cta {
  padding: 0.78rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(90, 171, 222, 0.16);
  background: rgba(90, 171, 222, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .single .widget_topic_rail .topic-portal__cta:hover {
  border-color: rgba(243, 107, 43, 0.22);
  background: rgba(243, 107, 43, 0.08);
}

html[data-theme="dark"] .single .widget_popular_posts .popular-week-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .single .widget_popular_posts .popular-week-rank-bg {
  color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .single .widget_popular_posts .popular-week-link,
html[data-theme="dark"] .single .widget_popular_posts .popular-week-title {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .single .widget_popular_posts .popular-week-meta,
html[data-theme="dark"] .single .widget_popular_posts .popular-week-item--empty {
  color: rgba(255, 255, 255, 0.52);
}

html[data-theme="dark"] .single .widget_newsletter_small {
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .single .entry-content li::marker {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .single .entry-content hr {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .single .entry-content :is(table, .wp-block-table table) {
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .single .entry-content :is(th, td) {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .single .entry-content th {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .single .tag,
html[data-theme="dark"] .post-end-tags .tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .single-share,
html[data-theme="dark"] .single-share__copy {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .single-share__link {
  color: rgba(255, 255, 255, 0.86);
}

html[data-theme="dark"] .related-explore__inner::before {
  background: linear-gradient(90deg, rgba(90, 171, 222, 0.38) 0%, rgba(243, 107, 43, 0.38) 100%);
}

html[data-theme="dark"] .related-explore__kicker {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .related-explore__title {
  color: #ffffff;
}

html[data-theme="dark"] .related-explore__subtitle {
  color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .related-explore__cta {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .related-explore .post-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .related-explore .post-card__title a {
  color: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .related-explore .post-card__excerpt {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .related-card__meta {
  color: rgba(255, 255, 255, 0.52);
}

html[data-theme="dark"] .related-card__author,
html[data-theme="dark"] .related-card__author-link {
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .related-card__meta .dot {
  color: rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .related-explore .post-card__cat {
  background: rgba(11, 15, 25, 0.58);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .single-hero__media-frame {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .single-hero__meta-date {
  color: rgba(255, 255, 255, 0.56);
}

html[data-theme="dark"] .single-hero__title {
  color: rgba(255, 255, 255, 0.98);
}

html[data-theme="dark"] .single-hero__excerpt {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .single-hero__meta-line {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] .single-hero__meta-author,
html[data-theme="dark"] .single-hero__meta-link {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .single-hero__meta-link:hover {
  color: #F36B2B;
}

html[data-theme="dark"] .single-hero__meta-dot,
html[data-theme="dark"] .single-hero__meta-dash {
  color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .single-hero__media-share {
  background: rgba(11, 15, 25, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .single-hero__share-btn {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] .single-hero__share-btn:hover {
  color: #F36B2B;
}

/* Global dark-mode refinement pass */
html[data-theme="dark"] body.home.blog,
html[data-theme="dark"] body.blog,
html[data-theme="dark"] body.archive.category,
html[data-theme="dark"] body.category,
html[data-theme="dark"] body.tax-content_type,
html[data-theme="dark"] body.taxonomy-content_type,
html[data-theme="dark"] body.author {
  background:
    radial-gradient(circle at top right, rgba(243, 107, 43, 0.14), transparent 26%),
    radial-gradient(circle at 14% 18%, rgba(34, 116, 165, 0.16), transparent 28%),
    linear-gradient(180deg, #09111f 0%, #060d18 100%);
}

html[data-theme="dark"] .blog-header__eyebrow,
html[data-theme="dark"] .author-page__eyebrow,
html[data-theme="dark"] .category-page__eyebrow {
  color: #ff934f;
}

html[data-theme="dark"] .blog-ticker {
  background: rgba(6, 13, 24, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .blog-ticker__item {
  color: rgba(226, 232, 240, 0.7);
}

html[data-theme="dark"] .blog-ticker__dot {
  background: #ff934f;
  box-shadow: 0 0 0 6px rgba(243, 107, 43, 0.12);
}

html[data-theme="dark"] .blog-featured__inner {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 17, 31, 0.42);
}

html[data-theme="dark"] .blog-featured__content {
  background:
    radial-gradient(circle at top right, rgba(34, 116, 165, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(14, 22, 37, 0.98) 0%, rgba(11, 17, 29, 0.98) 100%) !important;
}

html[data-theme="dark"] .blog-grid-head__count {
  color: rgba(226, 232, 240, 0.68) !important;
}

html[data-theme="dark"] .blog-card__date,
html[data-theme="dark"] .blog-card__read {
  color: rgba(226, 232, 240, 0.56);
}

html[data-theme="dark"] .blog-empty {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(34, 116, 165, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 19, 33, 0.94) 0%, rgba(8, 13, 24, 0.96) 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .blog-empty__btn {
  background: linear-gradient(135deg, #f36b2b 0%, #ff934f 100%);
  box-shadow: 0 18px 32px rgba(243, 107, 43, 0.22);
}

html[data-theme="dark"] .blog-empty__btn:hover {
  background: linear-gradient(135deg, #ff7e40 0%, #ffab73 100%);
}

html[data-theme="dark"] .category-page__hero::after {
  background: radial-gradient(circle, rgba(34, 116, 165, 0.22) 0%, rgba(34, 116, 165, 0) 72%);
}

html[data-theme="dark"] .category-page__body,
html[data-theme="dark"] .author-page__body {
  position: relative;
}

html[data-theme="dark"] .category-page__body::before,
html[data-theme="dark"] .author-page__body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

html[data-theme="dark"] .category-page__panel {
  background:
    radial-gradient(circle at top right, rgba(34, 116, 165, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(14, 22, 37, 0.96) 0%, rgba(10, 16, 28, 0.96) 100%) !important;
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .category-page__search {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .category-page__search:focus-within {
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 5px rgba(243, 107, 43, 0.12);
}

html[data-theme="dark"] .category-page__grid-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .category-page__topics-label {
  color: rgba(226, 232, 240, 0.34) !important;
}

html[data-theme="dark"] .category-page__mode-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(226, 232, 240, 0.6) !important;
}

html[data-theme="dark"] .category-page__note {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.94) 0%, rgba(11, 17, 29, 0.96) 100%) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .category-page__note a,
html[data-theme="dark"] .author-page__note a {
  color: #8fc2e4;
}

html[data-theme="dark"] .category-page__note a:hover,
html[data-theme="dark"] .author-page__note a:hover {
  color: #ffb48d;
}

html[data-theme="dark"] .category-page__pagination .page-numbers a,
html[data-theme="dark"] .category-page__pagination .page-numbers span {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(226, 232, 240, 0.72) !important;
}

html[data-theme="dark"] .category-page__pagination .page-numbers a:hover {
  background: rgba(243, 107, 43, 0.12) !important;
  border-color: rgba(243, 107, 43, 0.32) !important;
  color: #ffb48d !important;
}

html[data-theme="dark"] .category-page__pagination .page-numbers .current {
  background: #f36b2b !important;
  border-color: #f36b2b !important;
  color: #fff !important;
}

html[data-theme="dark"] .author-page__hero::before {
  background: radial-gradient(circle, rgba(243, 107, 43, 0.16) 0%, rgba(243, 107, 43, 0) 70%);
}

html[data-theme="dark"] .author-page__hero::after {
  background: radial-gradient(circle, rgba(34, 116, 165, 0.2) 0%, rgba(34, 116, 165, 0) 72%);
}

/* Shared archive/search featured-image frame cleanup for dark mode */
html[data-theme="dark"] :is(.blog-featured__inner, .blog-card, .search-card) {
  background-clip: padding-box;
}

html[data-theme="dark"] .blog-featured__inner {
  background: #0a1322;
}

html[data-theme="dark"] .blog-featured__media,
html[data-theme="dark"] .blog-card__thumb,
html[data-theme="dark"] .search-card .blog-card__thumb,
html[data-theme="dark"] .blog-card--large .blog-card__thumb {
  background: #09111f !important;
}

html[data-theme="dark"] .blog-featured__img,
html[data-theme="dark"] .blog-card__img {
  background: #09111f;
}

html[data-theme="dark"] .blog-featured__media-overlay {
  background: linear-gradient(to right, transparent 56%, rgba(7, 12, 22, 0.22));
}

html[data-theme="dark"] .blog-card__thumb-overlay {
  background: linear-gradient(to top, rgba(7, 12, 22, 0.22), transparent 52%);
}

