/*
Theme Name: AOA Child
Theme URI: https://artofarticle.com
Description: Art of Article child theme — Free Calculator Hub
Author: Art of Article
Author URI: https://artofarticle.com
Template: generatepress
Version: 2.1.1
License: GNU General Public License v2 or later
Text Domain: aoa-child
*/

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:      #162055;
  --color-accent:       #5b63f5;
  --color-accent-2:     #7c3aed;
  --color-success:      #10b981;
  --color-warning:      #f59e0b;
  --color-danger:       #ef4444;
  --color-bg:           #f5f7ff;
  --color-surface:      #ffffff;
  --color-border:       #e0e6f7;
  --color-text:         #0f172a;
  --color-text-muted:   #5e6e8a;
  --radius-sm:          8px;
  --radius-md:          12px;
  --radius-lg:          16px;
  --shadow-sm:          0 1px 4px rgba(22,32,85,.08);
  --shadow-md:          0 4px 24px rgba(22,32,85,.14);
  --container-max:      1200px;
  --gap:                16px;
  --transition:         0.18s ease;
  --header-height:      62px;
  --topbar-height:      34px;
}

/* ============================================================
   2. BASE RESET + BODY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* GeneratePress compat: its .site-content is display:flex for sidebar layouts.
   Our theme is full-width on all pages — force block layout. */
.site-content,
#content.site-content,
.site-content.site-main {
  display: block !important;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Remove any GeneratePress sidebar gutter */
.content-area {
  width: 100% !important;
  float: none !important;
}
/* Kill GP's own footer element and any body/page bottom spacing */
.site-footer { display: none !important; }
body { margin-bottom: 0 !important; padding-bottom: 0 !important; }
#page, .site { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* Site-wide: block horizontal page swipe on mobile (home, blog, calculators, Elementor pages) */
html {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body,
#page,
.site,
.site-content,
#content,
.content-area,
.site-main,
.inside-article,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-widget-html,
.elementor-widget-html .elementor-widget-container {
  max-width: 100%;
  min-width: 0;
}

body,
#page,
.site {
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  position: relative;
}

/* Horizontal scroll regions stay inside their box — do not chain to the page */
.aoa-filter-row,
.aoa-blog-filter__row,
.aoa-calc__compare,
.aoa-table-wrap,
.fwc-dashboard-container .fwc-navigation,
.fwc-dashboard-container .fwc-group-selector,
.fwc-dashboard-container .fwc-predictor-groups,
.fwc-dashboard-container .fwc-table-wrapper {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── Single calculator pages: remove GP separate-containers article box ──
   GP adds padding:40px + white bg to .inside-article in separate-containers layout.
   Our calculator page has its own full-width hero + sections; the box must be removed. */
.single-calculator .inside-article,
.calculator-template-default .inside-article {
  padding: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* Hide GP's auto-generated post title (we render our own h1 in the hero) */
.single-calculator .entry-header,
.calculator-template-default .entry-header {
  display: none !important;
}
/* Blog posts + static pages + WC hub — child template already has hero header */
.single-post .entry-header,
.page .entry-header,
.aoa-wc-context .entry-header,
.aoa-wc-context .page-header,
.aoa-single-post-page .entry-header,
.aoa-page .site-content > .page-header,
.aoa-wc-context .elementor-widget-theme-post-title,
.aoa-wc-context .elementor-page-title {
  display: none !important;
}
.single-post .inside-article,
.page:not(.aoa-wc-context) .inside-article {
  padding-top: 0 !important;
}
.single-post .entry-content,
.page .entry-content {
  margin-top: 0 !important;
}
/* Remove any GP entry-content top margin that would gap before our hero */
.single-calculator .entry-content,
.calculator-template-default .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary); }

img, svg { display: block; max-width: 100%; }

ul, ol { list-style: none; }

input, button, select, textarea {
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

/* ============================================================
   3. CONTAINER
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* ============================================================
   4. HEADER
   ============================================================ */

/* ── Announcement ticker topbar ── */
@keyframes aoa-tick {
  0%        { opacity: 0; transform: translateY(8px); }
  6%, 24%   { opacity: 1; transform: translateY(0); }
  30%, 100% { opacity: 0; transform: translateY(-8px); }
}

.aoa-header__topbar {
  background: linear-gradient(90deg, #1a1060 0%, #2d1a6e 40%, #0d2060 100%);
  border-bottom: 1px solid rgba(255,255,255,.12);
  height: var(--topbar-height);
  overflow: hidden;
}
.aoa-header__topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Ticker left side */
.aoa-topbar__ticker {
  position: relative;
  flex: 1;
  height: var(--topbar-height);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.aoa-topbar__msg {
  position: absolute;
  left: 0;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  opacity: 0;
  animation: aoa-tick 20s infinite;
  letter-spacing: .01em;
}
.aoa-topbar__msg strong { color: #fbbf24; font-weight: 700; }
.aoa-topbar__msg--1 { animation-delay:  0s; }
.aoa-topbar__msg--2 { animation-delay:  5s; }
.aoa-topbar__msg--3 { animation-delay: 10s; }
.aoa-topbar__msg--4 { animation-delay: 15s; }

/* CTA pill right side */
.aoa-topbar__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 13px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.aoa-topbar__cta:hover { opacity: .9; transform: scale(1.03); color: #0f172a; }

/* Main header row */
.aoa-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0c1535 0%, #121b45 100%);
  border-bottom: 1px solid rgba(91,99,245,.3);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
  transition: box-shadow var(--transition), background var(--transition);
}
.aoa-header__main {
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.aoa-header__main .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
  height: var(--header-height);
  min-height: var(--header-height);
}
.aoa-header.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,.5);
  background: #08102a;
}
.aoa-header.scrolled .aoa-header__topbar { display: none; }

/* Logo */
.aoa-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: white;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.aoa-logo:hover { color: rgba(255,255,255,.85); }

.aoa-logo__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.aoa-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.aoa-logo__name { font-size: 15px; font-weight: 800; color: white; letter-spacing: -.01em; }
.aoa-logo__tagline { font-size: 10px; font-weight: 400; color: rgba(255,255,255,.5); letter-spacing: 0.02em; }

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.aoa-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  height: auto;
  margin: 0 auto; /* ensures true centering between logo and CTA */
}

.aoa-nav__list {
  display: flex;
  align-items: center;
  position: relative;
  height: 48px;
  margin: 0;
  padding: 4px;
  list-style: none;
  gap: 2px;
  flex-wrap: nowrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.aoa-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
}

.aoa-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  min-height: 40px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  border-radius: 100px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  letter-spacing: .015em;
  line-height: 1;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
}
.aoa-nav__link svg:first-child { opacity: .7; flex-shrink: 0; }
.aoa-nav__link:hover svg:first-child,
.aoa-nav__link.is-active svg:first-child,
.aoa-nav__link--calcs svg:first-child { opacity: 1; }
.aoa-nav__link::after { display: none; }
.aoa-nav__link:hover {
  color: white;
  background: rgba(255,255,255,.1);
}
.aoa-nav__link.is-active {
  color: white;
  background: rgba(91,99,245,.22);
}
.aoa-nav__link.is-active::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  height: 2px;
  background: var(--color-accent, #5b63f5);
  border-radius: 2px;
}

.aoa-nav__link--calcs {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(199,210,254,.9);
}
.aoa-nav__link--calcs:hover,
.aoa-nav__link--calcs.is-active {
  background: rgba(91,99,245,.22);
  border-color: rgba(91,99,245,.34);
  color: white;
}
.aoa-nav__link--calcs.is-active::before { display: none; }

/* World Cup 2026 hub — standout nav pill */
.aoa-nav__link--wc {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18) 0%, rgba(251, 191, 36, 0.14) 100%);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  gap: 6px;
  padding-right: 10px;
}
.aoa-nav__link--wc:hover,
.aoa-nav__link--wc.is-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.32) 0%, rgba(251, 191, 36, 0.22) 100%);
  border-color: rgba(34, 197, 94, 0.55);
  color: #fff;
}
.aoa-nav__link--wc.is-active::before { display: none; }
.aoa-nav__link--wc svg:first-child { opacity: 1; color: #4ade80; }

.aoa-nav__wc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #052e16;
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  border-radius: 999px;
  line-height: 1;
  animation: aoa-wc-pulse 2.4s ease-in-out infinite;
}

@keyframes aoa-wc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(250, 204, 21, 0); }
}

.aoa-nav__mobile-link--wc {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(251, 191, 36, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.28);
  font-weight: 700;
}
.aoa-nav__mobile-link--wc.is-active {
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.5);
}

.aoa-nav__arrow {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}
.aoa-nav__item:hover .aoa-nav__arrow,
.aoa-nav__item.is-open .aoa-nav__arrow { transform: rotate(180deg); }

/* Mega menu */
.aoa-mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-4px);
}
.aoa-nav__item:hover .aoa-mega-menu,
.aoa-nav__item.is-open .aoa-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.aoa-mega-menu__col-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 4px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.aoa-mega-menu__col-title span { padding: 0 4px; }

.aoa-mega-menu__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 13px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.aoa-mega-menu__link:hover { background: var(--color-bg); color: var(--color-accent); }
.aoa-mega-menu__link-icon { font-size: 16px; line-height: 1; }

.aoa-mega-menu__footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* Hamburger */
.aoa-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
}
.aoa-hamburger:hover { background: rgba(255,255,255,.12); }
.aoa-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.aoa-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aoa-hamburger.is-active span:nth-child(2) { opacity: 0; }
.aoa-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.aoa-nav__mobile {
  display: block;           /* always rendered (position:fixed — no layout impact) */
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #0d1a35;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 999;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition), visibility 0s var(--transition);
}
.aoa-nav__mobile.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  transition: transform var(--transition), opacity var(--transition), visibility 0s 0s;
}
.aoa-nav__mobile-section {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.aoa-nav__mobile-section:last-child { border-bottom: none; }
.aoa-nav__mobile-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
  padding: 0 8px;
}
.aoa-nav__mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.aoa-nav__mobile-link:hover,
.aoa-nav__mobile-link.is-active {
  background: rgba(255,255,255,.08);
  color: white;
}
.aoa-nav__mobile-link.is-active { color: var(--color-accent); }
.aoa-nav__mobile-link--sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  padding: 8px 8px 8px 14px;
}
.aoa-nav__mobile-link--all {
  color: var(--color-accent);
  font-size: 14px;
}

/* Header CTA */
.aoa-header-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,.12);
}

@media (min-width: 769px) {
  .aoa-header__main .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 22px;
  }
  .aoa-logo {
    min-width: 0;
    justify-self: start;
    align-self: center;
  }
  .aoa-nav {
    justify-self: center;
    margin: 0;
  }
  .aoa-header-cta {
    justify-self: end;
    align-self: center;
  }
}
/* Desktop search icon in nav (before CTA) */
.aoa-header-cta__search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.aoa-header-cta__search-label { line-height: 1; }
/* Ensure search icon SVG is always visible */
.aoa-header-cta__search svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  display: block;
}
.aoa-header-cta__search:hover,
.aoa-header-cta__search.is-active {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.45);
  color: white;
}
.aoa-header-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 20px;
  background: linear-gradient(135deg, #22c97a 0%, #059669 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 18px rgba(34,201,122,.5);
  letter-spacing: .02em;
}
.aoa-header-cta__btn:hover {
  opacity: .92;
  box-shadow: 0 4px 24px rgba(34,201,122,.65);
  color: white;
  transform: translateY(-1px);
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.aoa-hero {
  background: linear-gradient(135deg, #0f1f5c 0%, #1e40af 55%, #2563eb 100%);
  color: white;
  text-align: center;
  padding: 64px 20px 56px;
  position: relative;
  overflow: visible;
}
/* Compact hero variant — cards visible on first visit */
.aoa-hero--compact { padding: 28px 20px 24px; }
.aoa-hero--compact.aoa-hero--wc { padding: 20px 20px 24px; }
.aoa-hero--compact .aoa-hero__title { font-size: clamp(22px, 4vw, 40px); margin-bottom: 10px; }
.aoa-hero--compact .aoa-hero__subtitle { margin-bottom: 18px; }
.aoa-hero--compact .aoa-hero__search { margin-bottom: 0; }

/* Hero layout — WC promo first on mobile, side card on desktop */
.aoa-hero__layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.aoa-hero__main {
  width: 100%;
  min-width: 0;
}
.aoa-hero--wc .aoa-hero__main {
  text-align: center;
}
@media (min-width: 900px) {
  .aoa-hero--wc .aoa-hero__layout {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: 28px;
    align-items: stretch;
  }
  .aoa-hero--wc .aoa-wc-promo--hero {
    order: 2;
  }
  .aoa-hero--wc .aoa-hero__main {
    order: 1;
    text-align: left;
  }
  .aoa-hero--wc .aoa-hero__search {
    margin-left: 0;
    margin-right: 0;
  }
}

/* World Cup 2026 — hero promo (eye-catching, above fold) */
.aoa-wc-promo--hero {
  display: block;
  position: relative;
  text-align: left;
  text-decoration: none;
  color: #fff;
  margin: 0;
  max-width: none;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(145deg, rgba(5, 95, 70, 0.98) 0%, rgba(4, 47, 46, 0.99) 45%, rgba(20, 83, 45, 0.96) 100%);
  border: 2px solid rgba(74, 222, 128, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 48px rgba(34, 197, 94, 0.22);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  animation: aoaWcPromoGlow 3s ease-in-out infinite;
}
@keyframes aoaWcPromoGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 40px rgba(34,197,94,.18); }
  50% { box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 56px rgba(250,204,21,.2); }
}
.aoa-wc-promo--hero:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.65);
  color: #fff;
}
.aoa-wc-promo--hero .aoa-wc-promo__title {
  font-size: clamp(20px, 4.5vw, 26px);
  margin-bottom: 8px;
}
.aoa-wc-promo--hero .aoa-wc-promo__desc {
  font-size: clamp(12px, 2.8vw, 14px);
  margin-bottom: 12px;
  max-width: none;
}
.aoa-wc-promo--hero .aoa-wc-promo__features {
  margin-bottom: 14px;
}
.aoa-wc-promo--hero .aoa-wc-promo__cta {
  min-height: 46px;
  font-size: 14px;
}
@media (min-width: 900px) {
  .aoa-wc-promo--hero {
    padding: 22px 22px 20px;
  }
  .aoa-wc-promo--hero .aoa-wc-promo__cta {
    min-height: 48px;
    font-size: 15px;
  }
}

/* Legacy compact strip (unused) */
.aoa-wc-promo--compact {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  margin: 0;
  max-width: none;
  padding: 12px 14px;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(4, 47, 46, 0.96) 100%);
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.aoa-wc-promo--compact:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 204, 21, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #fff;
}
.aoa-wc-promo__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.aoa-wc-promo--compact .aoa-wc-promo__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #dc2626;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  align-self: flex-start;
}
@media (min-width: 900px) {
  .aoa-wc-promo--compact {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
  }
  .aoa-wc-promo--compact .aoa-wc-promo__live {
    align-self: auto;
  }
}
.aoa-wc-promo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: aoaWcPromoPulse 1.4s ease-in-out infinite;
}
@keyframes aoaWcPromoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.aoa-wc-promo--compact .aoa-wc-promo__kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  line-height: 1.2;
}
.aoa-wc-promo--compact .aoa-wc-promo__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  display: block;
}
.aoa-wc-promo--compact .aoa-wc-promo__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  display: block;
}
.aoa-wc-promo--compact .aoa-wc-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #052e16;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}
@media (min-width: 900px) {
  .aoa-wc-promo--compact .aoa-wc-promo__cta {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    font-size: 13px;
  }
}

/* Legacy full promo card (unused on home — kept for reference) */
.aoa-wc-promo {
  display: block;
  position: relative;
  text-align: left;
  text-decoration: none;
  color: #fff;
  margin: 0 auto 22px;
  max-width: 720px;
  padding: 20px 20px 18px;
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.95) 0%, rgba(4, 47, 46, 0.98) 50%, rgba(20, 83, 45, 0.95) 100%);
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 40px rgba(34, 197, 94, 0.15);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.aoa-wc-promo:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(34, 197, 94, 0.25);
  color: #fff;
}
.aoa-wc-promo__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: aoaWcPromoShine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aoaWcPromoShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.aoa-wc-promo__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.aoa-wc-promo__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #dc2626;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}
.aoa-wc-promo__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: aoaWcPromoPulse 1.4s ease-in-out infinite;
}
@keyframes aoaWcPromoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.aoa-wc-promo__flags {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}
.aoa-wc-promo__dates {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}
.aoa-wc-promo__kicker {
  margin: 0 0 4px;
  font-size: clamp(11px, 2.5vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fbbf24;
}
.aoa-wc-promo__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}
.aoa-wc-promo__desc {
  margin: 0 0 14px;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}
.aoa-wc-promo__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.aoa-wc-promo__features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 600;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm, 8px);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  line-height: 1.2;
}
.aoa-wc-promo__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 800;
  color: #052e16;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.aoa-wc-promo:hover .aoa-wc-promo__cta {
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.5);
}

@media (max-width: 380px) {
  .aoa-wc-promo {
    padding: 16px 14px 14px;
    margin-bottom: 18px;
  }
  .aoa-wc-promo__dates {
    margin-left: 0;
    width: 100%;
    order: 3;
  }
  .aoa-wc-promo__features {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .aoa-wc-promo__features li {
    justify-content: flex-start;
    padding: 10px 12px;
    min-height: 44px;
  }
}

@media (min-width: 640px) {
  .aoa-wc-promo {
    padding: 24px 28px 22px;
    margin-bottom: 26px;
  }
  .aoa-wc-promo__cta {
    width: auto;
    display: inline-flex;
    padding: 14px 28px;
  }
}
.aoa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
  pointer-events: none;
}

.aoa-hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.aoa-hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
}

.aoa-hero__title span { color: #7dd3fc; }

.aoa-hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Search bar */
.aoa-hero__search {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
}

.aoa-hero__search-input {
  width: 100%;
  height: 52px;
  padding: 0 140px 0 52px !important;  /* !important overrides GP input[type=search] */
  background: #ffffff !important;
  border: none !important;
  border-radius: 100px;
  font-size: 15px;
  color: var(--color-text) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  outline: none;
}
.aoa-hero__search-input::placeholder { color: var(--color-text-muted) !important; opacity: 1; }
.aoa-hero__search-input:focus { box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 0 0 3px rgba(79,99,255,.4) !important; background: #ffffff !important; }

.aoa-hero__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.aoa-hero__search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 20px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.aoa-hero__search-btn:hover { background: #3d4fe0; }

/* Autocomplete */
.aoa-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: none;
  z-index: 9999;
  text-align: left;
}
.aoa-search-results.is-open { display: block; }
.aoa-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text);
  transition: background var(--transition);
}
.aoa-search-result-item:hover { background: var(--color-bg); }

/* Hero stats */
.aoa-hero__stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.aoa-hero__stat { display: flex; flex-direction: column; align-items: center; }
.aoa-hero__stat-value {
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.aoa-hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ============================================================
   7. CALCULATOR GRID
   ============================================================ */
.aoa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .aoa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ============================================================
   8. CALCULATOR CARD
   ============================================================ */
.aoa-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.aoa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(67,97,238,.18);
  border-color: var(--color-accent);
  color: inherit;
}

.aoa-card__icon,
.aoa-card__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* Absolute badge overlay — top-right corner */
.aoa-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1.6;
}
.aoa-card__badge--hot   { background: #ef4444; color: #fff; }
.aoa-card__badge--new   { background: var(--color-accent); color: #fff; }
.aoa-card__badge--india { background: #16a34a; color: #fff; }

.aoa-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.aoa-card__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aoa-card__badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ============================================================
   9. FILTER PILLS
   ============================================================ */
.aoa-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.aoa-filter-row::-webkit-scrollbar { display: none; }

.aoa-filter-pill {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.aoa-filter-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.aoa-filter-pill.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(67,97,238,.35);
}

/* ============================================================
   10. BLOG SECTION
   ============================================================ */
.aoa-blog-section {
  padding: 64px 0 72px;
  background: var(--color-bg);
}

.aoa-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.aoa-blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  text-decoration: none;
}
.aoa-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(22,32,85,.13);
}

/* Thumbnail wrap with image zoom effect */
.blog-card__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
}

.aoa-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.aoa-blog-card:hover .aoa-blog-card__image { transform: scale(1.06); }

.aoa-blog-card__image-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  width: 100%;
  height: 100%;
}

.aoa-blog-card__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.aoa-blog-card__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  display: inline-block;
}

.aoa-blog-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aoa-blog-card__title a { color: inherit; text-decoration: none; }
.aoa-blog-card__title a:hover { color: var(--color-accent); }

.aoa-blog-card__excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.aoa-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.aoa-blog-card__date {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.aoa-blog-card__date::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center/contain;
}

.aoa-blog-card__read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: gap .15s ease, color .15s ease;
}
.aoa-blog-card__read-more:hover { color: var(--color-primary); gap: 7px; }

/* Featured blog post (first card = wide) */
.aoa-blog-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.aoa-blog-card--featured .blog-card__img {
  width: 48%;
  aspect-ratio: unset;
  min-height: 280px;
  flex-shrink: 0;
}
.aoa-blog-card--featured .aoa-blog-card__image-placeholder { min-height: 280px; }
.aoa-blog-card--featured .aoa-blog-card__body { padding: 32px 36px; justify-content: center; }
.aoa-blog-card--featured .aoa-blog-card__title { font-size: 22px; -webkit-line-clamp: 3; }
.aoa-blog-card--featured .aoa-blog-card__excerpt { -webkit-line-clamp: 4; font-size: 14px; }

/* Home page — compact 6-card grid (no hero featured row) */
.aoa-blog-section--home {
  padding: 40px 0 48px;
}
.aoa-blog-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.aoa-blog-section__head .section-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
.aoa-blog-section__see-all {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.aoa-blog-grid--home {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aoa-blog-grid--related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aoa-blog-grid--archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.aoa-blog-card--compact {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.aoa-blog-card--compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 32, 85, 0.1);
}
.aoa-blog-card--compact .blog-card__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 118px;
  background: var(--color-bg);
  flex-shrink: 0;
}
.aoa-blog-card--compact .aoa-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.aoa-blog-card--compact:hover .aoa-blog-card__image {
  transform: scale(1.04);
}
.aoa-blog-card--compact .aoa-blog-card__image-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 118px;
  min-height: 72px;
  font-size: 26px;
  flex-shrink: 0;
}
.aoa-blog-card--compact .aoa-blog-card__body {
  padding: 12px 14px 14px;
  gap: 6px;
  flex: 1;
}
.aoa-blog-card--compact .aoa-blog-card__category {
  font-size: 10px;
}
.aoa-blog-card--compact .aoa-blog-card__title {
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}
.aoa-blog-card--compact .aoa-blog-card__footer {
  margin-top: 2px;
  padding-top: 10px;
}
.aoa-blog-card--compact .aoa-blog-card__date {
  font-size: 11px;
}
.aoa-blog-card--compact .aoa-blog-card__read-more {
  font-size: 12px;
}

/* Text-only blog cards (no featured image) */
.aoa-blog-card--text-only,
.aoa-bcard--text-only {
  display: block;
}
.aoa-blog-card--text-only .aoa-blog-card__body,
.aoa-bcard--text-only .aoa-bcard__body {
  padding: 18px 20px 20px;
  gap: 10px;
}
.aoa-blog-card--text-only .aoa-blog-card__title,
.aoa-bcard--text-only .aoa-bcard__title {
  font-size: 15px;
  -webkit-line-clamp: 3;
}
.aoa-blog-card--text-only .aoa-blog-card__excerpt,
.aoa-bcard--text-only .aoa-bcard__excerpt {
  -webkit-line-clamp: 4;
  font-size: 13px;
}

/* ============================================================
   11. CALCULATOR WIDGET
   ============================================================ */
.aoa-calc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.aoa-calc__header {
  background: var(--color-primary);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aoa-calc__header-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aoa-calc__header-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: 3px 8px;
  border-radius: 100px;
}

.aoa-calc__body {
  padding: 24px;
}

/* Calculators that use .aoa-calc__grid directly without .aoa-calc__body need
   padding so content is not clipped by .aoa-calc border-radius + overflow:hidden */
.aoa-calc > .aoa-calc__grid {
  padding: 24px;
}

.aoa-calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aoa-calc__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aoa-calc__field--full { grid-column: 1 / -1; }

.aoa-calc__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.aoa-calc__input,
.aoa-calc__select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.aoa-calc__input:focus,
.aoa-calc__select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79,99,255,.15);
}
.aoa-calc__input::placeholder { color: var(--color-text-muted); font-size: 14px; }

.aoa-calc__input--prefix-wrap { position: relative; }
.aoa-calc__input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}
.aoa-calc__input--has-prefix { padding-left: 28px; }

/* ── Alternative prefix/suffix wrappers (used by compound-interest, sip, emi etc.) ── */
.aoa-calc__input-wrap {
  position: relative;
}
.aoa-calc__prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}
/* Use !important so GeneratePress/Elementor input resets can't override padding */
.aoa-calc__input--prefix { padding-left: 32px !important; }
.aoa-calc__input--suffix { padding-right: 40px !important; }

/* Hide native number-input spinners — they overlap the suffix symbol */
.aoa-calc__input[type="number"]::-webkit-inner-spin-button,
.aoa-calc__input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.aoa-calc__input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.aoa-calc__hint {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ── Section labels / titles ── */
.aoa-calc__section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-bottom: 4px;
  grid-column: 1 / -1;
}

.aoa-calc__section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: 16px;
  margin-bottom: 8px;
}

/* ── Calculator title / subtitle (used by header-body layout calculators) ── */
.aoa-calc__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.aoa-calc__subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

/* When title/subtitle sit inside the dark primary header — force white text
   and stack them vertically (header is flex-row by default, which would push
   subtitle to the top-right corner as a second flex item) */
.aoa-calc__header .aoa-calc__title {
  color: white;
}
.aoa-calc__header .aoa-calc__subtitle {
  color: rgba(255, 255, 255, 0.75);
}
.aoa-calc__header:has(.aoa-calc__title) {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* ── Grid column variants ── */
.aoa-calc__grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aoa-calc__grid--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .aoa-calc__grid--2,
  .aoa-calc__grid--3 { grid-template-columns: 1fr; }

  /* Reduce calculator padding on phones */
  .aoa-calc__body { padding: 16px; }
  .aoa-calc > .aoa-calc__grid { padding: 16px; }
  .aoa-calc__header { padding: 12px 16px; }

  /* Currency pills — scrollable row instead of wrapping */
  .aoa-calc__currency-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .aoa-calc__currency-pills::-webkit-scrollbar { display: none; }

  /* Compare grid — horizontal scroll when JS creates 3+ columns */
  .aoa-calc__compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .aoa-calc__compare-grid { min-width: 420px; }
}

/* ── Tab pane (shown/hidden by JS) ── */
.aoa-calc__tab-pane { display: block; }

/* ── Table wrapper (overflow scroll on mobile) ── */
.aoa-calc__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

/* Results area */
.aoa-calc__results {
  display: none;
  flex-direction: column;
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  animation: fadeSlideIn 0.3s ease;
}
.aoa-calc__results.is-visible { display: flex; }

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

.aoa-calc__results-header {
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.aoa-calc__results-header-label { font-size: 12px; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: 0.06em; }
.aoa-calc__results-total { font-size: clamp(16px, 4.5vw, 24px); font-weight: 800; overflow-wrap: break-word; }

.aoa-calc__result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  background: var(--color-surface);
}

.aoa-calc__result-card {
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.aoa-calc__result-card:last-child { border-right: none; }

.aoa-calc__result-value {
  font-size: clamp(14px, 3.5vw, 20px);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.aoa-calc__result-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Share row */
.aoa-calc__share {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* ── Currency selector row ── */
.aoa-calc__currency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 16px;
}
.aoa-calc__currency-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.aoa-calc__currency-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.aoa-calc__currency-pill {
  height: 30px;
  padding: 0 10px;
  border: 1.5px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.aoa-calc__currency-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.aoa-calc__currency-pill.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.aoa-calc__share-btn,
.aoa-calc__share-copy,
.aoa-calc__share-native {
  flex: 1;
  height: 36px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  min-height: 44px;
}
.aoa-calc__share-btn:hover,
.aoa-calc__share-copy:hover,
.aoa-calc__share-native:hover {
  background: var(--color-accent);
  color: white;
}

/* ── Share bar variant (used by ~41 calculators with id=copy-btn pattern) ── */
.aoa-calc__share-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* ── Generic calc button (add/remove rows, etc.) ── */
.aoa-calc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 36px;
  white-space: nowrap;
}
.aoa-calc__btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* Copy / share variants */
.aoa-calc__btn--copy,
.aoa-calc__btn--share {
  flex: 1;
  height: 36px;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  min-height: 44px;
}
.aoa-calc__btn--copy:hover,
.aoa-calc__btn--share:hover {
  background: var(--color-accent);
  color: white;
}

/* ── Results combined grid: when aoa-calc__results IS the card grid (no separate header) ── */
/* Use :not(:has) for browsers supporting :has (Chrome 105+, Safari 15.4+, FF 121+)        */
.aoa-calc__results.is-visible:not(:has(.aoa-calc__results-header)) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  flex-direction: unset; /* neutralise the flex-direction from the base rule */
}

/* ── Range slider ── */
.aoa-calc__range-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aoa-calc__range-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.aoa-calc__range-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.aoa-calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
  accent-color: var(--color-accent);
}
.aoa-calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.aoa-calc__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.aoa-calc__range-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-muted);
  padding: 0 2px;
}

/* ── Warning / info strip ── */
.aoa-calc__warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  grid-column: 1 / -1;
}
.aoa-calc__warning--orange {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #92400e;
}
.aoa-calc__warning--blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.aoa-calc__warning--green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #14532d;
}
.aoa-calc__warning--red {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}
.aoa-calc__warning-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* ── Mode / tab switcher (e.g. Percentage Calculator 3 modes) ── */
.aoa-calc__tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.aoa-calc__tab {
  flex: 1;
  height: 40px;
  border: none;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  padding: 0 8px;
  line-height: 1.2;
  text-align: center;
}
.aoa-calc__tab:last-child { border-right: none; }
.aoa-calc__tab:hover { background: #f0f4ff; color: var(--color-accent); }
.aoa-calc__tab.is-active {
  background: var(--color-accent);
  color: white;
}

/* ── Comparison toggle (e.g. 15yr vs 30yr) ── */
.aoa-calc__compare {
  grid-column: 1 / -1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 8px;
}
.aoa-calc__compare-header {
  background: var(--color-bg);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aoa-calc__compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.aoa-calc__compare-col {
  padding: 14px 16px;
  border-right: 1px solid var(--color-border);
}
.aoa-calc__compare-col:last-child { border-right: none; }
.aoa-calc__compare-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  text-align: center;
}
.aoa-calc__compare-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--color-border);
}
.aoa-calc__compare-row:last-child { border-bottom: none; }
.aoa-calc__compare-row-label { color: var(--color-text-muted); }
.aoa-calc__compare-row-value { font-weight: 700; color: var(--color-text); }
.aoa-calc__compare-saving {
  text-align: center;
  padding: 10px 16px;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 600;
  color: #14532d;
  border-top: 1px solid #bbf7d0;
}
.aoa-calc__compare-col--accent {
  background: rgba(79,99,255,.06);
  border: 1px solid var(--color-accent);
}
.aoa-calc__compare-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.aoa-calc__compare-item:last-child { border-bottom: none; }
.aoa-calc__compare-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.aoa-calc__divider {
  height: 1px;
  background: var(--color-border);
  margin: 12px 0;
  grid-column: 1 / -1;
}
.aoa-calc__range-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  white-space: nowrap;
}
.aoa-calc__suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ── Collapsible section (e.g. amortization table) ── */
.aoa-calc__collapsible-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-top: 1px solid var(--color-border);
  width: 100%;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.aoa-calc__collapsible-trigger:hover { background: var(--color-bg); }
.aoa-calc__collapsible-trigger .aoa-calc__chevron {
  margin-left: auto;
  transition: transform var(--transition);
  font-size: 11px;
}
.aoa-calc__collapsible-trigger.is-open .aoa-calc__chevron { transform: rotate(180deg); }
.aoa-calc__collapsible-body {
  display: none;
  padding: 0 16px 16px;
  overflow-x: auto;
}
.aoa-calc__collapsible-body.is-open { display: block; }

/* ── Data table inside calculator ── */
.aoa-calc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 4px;
}
.aoa-calc__table th {
  background: var(--color-bg);
  padding: 8px 10px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.aoa-calc__table td {
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.aoa-calc__table tr:nth-child(even) td { background: var(--color-bg); }
.aoa-calc__table td:not(:first-child) { text-align: right; }

/* ── Unit toggle (kg/lbs, cm/ft) ── */
.aoa-calc__unit-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-left: auto;
}
.aoa-calc__unit-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-right: 1px solid var(--color-border);
}
.aoa-calc__unit-btn:last-child { border-right: none; }
.aoa-calc__unit-btn.is-active { background: var(--color-accent); color: white; }

/* ── Result card highlight override for success/warn values ── */
.aoa-calc__result-card .aoa-calc__result-value--success { color: var(--color-success); }
.aoa-calc__result-card .aoa-calc__result-value--warn    { color: var(--color-warning); }
.aoa-calc__result-card .aoa-calc__result-value--danger  { color: var(--color-danger);  }

/* Mobile: collapse calc grid to 1 column below 480px */
@media (max-width: 480px) {
  .aoa-calc__grid { grid-template-columns: 1fr; }
  .aoa-calc__compare-grid { grid-template-columns: 1fr; }
  .aoa-calc__compare-col { border-right: none; border-bottom: 1px solid var(--color-border); }
  .aoa-calc__compare-col:last-child { border-bottom: none; }
  .aoa-calc__tabs .aoa-calc__tab { font-size: 11px; padding: 0 4px; }
}

/* ============================================================
   12. FOOTER
   ============================================================ */

/* Trust badge strip */
.aoa-footer__trust {
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
}
.aoa-footer__trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.aoa-footer__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 28px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.aoa-footer__trust-item strong { color: white; }
.aoa-footer__trust-icon { font-size: 18px; }
.aoa-footer__trust-div {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* Main body */
.aoa-footer {
  background: #0a1428;
  color: rgba(255,255,255,.7);
  padding: 0;
}
.aoa-footer__body {
  padding: 48px 0 40px;
}

/* ── Newsletter strip ── */
.aoa-footer__newsletter {
  background: linear-gradient(135deg, rgba(79,70,229,.18) 0%, rgba(16,185,129,.12) 100%);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
}
.aoa-footer__newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.aoa-footer__newsletter-text {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 220px;
}
.aoa-footer__newsletter-icon { font-size: 28px; flex-shrink: 0; }
.aoa-footer__newsletter-text strong {
  display: block;
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.aoa-footer__newsletter-text span {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.aoa-footer__newsletter-form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  min-width: 260px;
}
.aoa-footer__newsletter-input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.aoa-footer__newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.aoa-footer__newsletter-input:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,.14);
}
.aoa-footer__newsletter-btn {
  height: 40px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(67,97,238,.4);
  letter-spacing: .01em;
}
.aoa-footer__newsletter-btn:hover {
  opacity: .9;
  box-shadow: 0 4px 16px rgba(67,97,238,.55);
}

/* 4-column grid */
.aoa-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Brand column */
.aoa-footer__col--brand {}

.aoa-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}
.aoa-footer__logo:hover { opacity: .85; }
.aoa-footer__logo-name {
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -.01em;
}

.aoa-footer__about {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
  max-width: 280px;
}

.aoa-footer__social {
  display: flex;
  gap: 8px;
}
.aoa-footer__social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}
.aoa-footer__social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* Link columns */
.aoa-footer__col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.aoa-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aoa-footer__link {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--transition);
  line-height: 1.4;
}
.aoa-footer__link:hover { color: white; }
.aoa-footer__link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  opacity: .7;
}
.aoa-footer__link--more {
  font-weight: 600;
  color: rgba(255,255,255,.72);
  margin-top: 4px;
}
.aoa-footer__link--more::before {
  background: rgba(255,255,255,.35);
}
.aoa-footer__link--more:hover { color: var(--color-accent-light, #8b9bff); }

/* Footer bottom bar */
.aoa-footer__bottom {
  background: rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 14px 0;
}
.aoa-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.aoa-footer__bottom-inner--legal-only {
  justify-content: space-between;
}
.aoa-footer__bottom-inner--legal-only .aoa-footer__legal {
  margin-left: auto;
}
.aoa-footer__copyright {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}
.aoa-footer__copyright strong { color: rgba(255,255,255,.65); display: inline; }
.aoa-footer__copyright-sub { font-size: 11px; }
.aoa-footer__legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.aoa-footer__legal-link {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color var(--transition);
}
.aoa-footer__legal-link:hover { color: rgba(255,255,255,.8); }

.aoa-footer__popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  flex: 1 1 280px;
  justify-content: center;
  min-width: 0;
}
.aoa-footer__popular-link {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  transition: color var(--transition);
}
.aoa-footer__popular-link:hover { color: rgba(255,255,255,.85); }
.aoa-footer__popular-div {
  color: rgba(255,255,255,.2);
  font-size: 11px;
  user-select: none;
}

/* ============================================================
   13. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .aoa-hero--compact { padding: 20px 20px 16px; }
  .aoa-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .aoa-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .aoa-blog-grid--home { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .aoa-blog-grid--related { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .aoa-blog-grid--archive { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .aoa-blog-card--featured { flex-direction: column; }
  .aoa-blog-card--featured .blog-card__img { width: 100%; min-height: unset; aspect-ratio: 16/9; }
  .aoa-calc__grid { grid-template-columns: 1fr; }
  .aoa-header__topbar-text { display: none; }
  .aoa-topbar__msg { font-size: 11.5px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-height: 56px; }

  /* Header topbar — hide on mobile */
  .aoa-header__topbar { display: none; }
  :root { --topbar-height: 0px; }

  /* Header */
  .aoa-nav { display: none; }
  .aoa-hamburger { display: flex; }
  .aoa-header-cta { display: none; }
  .aoa-header__main .container { justify-content: space-between; }
  /* Hide tagline — saves space on small screens */
  .aoa-logo__tagline { display: none; }
  /* Show mobile search trigger */
  .aoa-header-search { display: flex; }

  .aoa-mega-menu { display: none !important; }

  /* Hero */
  .aoa-hero--compact { padding: 20px 16px 16px; }
  .aoa-hero__subtitle { font-size: 14px; margin-bottom: 14px; }
  .aoa-hero__stats { gap: 20px; }
  .aoa-hero__stat-value { font-size: 20px; }
  /* Taller search button — easier to tap */
  .aoa-hero__search-btn { height: 44px; min-height: 44px; }
  .aoa-hero__search-input { height: 54px !important; padding: 0 130px 0 48px !important; }
  .aoa-hero__search-icon { left: 14px; }

  /* Filter pills — taller touch target */
  .aoa-filter-pill { height: 40px; min-height: 40px; font-size: 14px; }
  /* Enable smooth touch-scroll on iOS */
  .aoa-filter-row { -webkit-overflow-scrolling: touch; }

  /* Section padding — less whitespace on mobile */
  .section-pad { padding: 36px 0; }
  .aoa-calc-section { padding: 28px 0; }

  /* Footer grid — 1 column on mobile */
  .aoa-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .aoa-footer__trust-inner { justify-content: flex-start; gap: 0; flex-wrap: wrap; }
  .aoa-footer__trust-div { display: none; }
  .aoa-footer__trust-item { width: 50%; padding: 8px 16px; }
  .aoa-footer__social-link { width: 40px; height: 40px; }
  /* Newsletter strip — stack on mobile */
  .aoa-footer__newsletter-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .aoa-footer__newsletter-form { max-width: 100%; }

  /* Blog grid */
  .aoa-blog-grid { grid-template-columns: 1fr; }
  .aoa-blog-grid--home { grid-template-columns: 1fr; gap: 12px; }
  .aoa-blog-grid--related { grid-template-columns: 1fr; gap: 12px; }
  .aoa-blog-grid--archive { grid-template-columns: 1fr; }
  .aoa-blog-card--compact .blog-card__img,
  .aoa-blog-card--compact .aoa-blog-card__image-placeholder { max-height: 140px; }
  .aoa-blog-card--featured { grid-column: unset; }
}

/* Small mobile */
@media (max-width: 480px) {
  .aoa-hero__search-input { padding-right: 100px !important; padding-left: 42px !important; }
  .aoa-hero__search-btn { padding: 0 12px; font-size: 13px; }
  .aoa-hero__stats { gap: 16px; }
  .aoa-hero__stat-value { font-size: 18px; }

  /* 2-column grid on phones — matches rule in section 7 */
  .aoa-card { padding: 12px; }
  .aoa-card__title { font-size: 13px; }

  .aoa-calc__result-grid { grid-template-columns: repeat(2, 1fr); }
  .aoa-calc__share { flex-direction: column; }

  .aoa-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .aoa-footer__popular { justify-content: flex-start; flex: none; width: 100%; }
  .aoa-footer__popular-link { max-width: none; white-space: normal; }
  .aoa-footer__legal { flex-wrap: wrap; gap: 10px; }
  .aoa-footer__trust-item { width: 100%; }

  /* Section title smaller on phones */
  .section-title { font-size: 20px; }
}

/* ============================================================
   14. UTILITY CLASSES
   ============================================================ */

/* Market badges */
.badge-usa   { background: #dbeafe; color: #1d4ed8; }
.badge-india { background: #fef3c7; color: #92400e; }
.badge-global{ background: #d1fae5; color: #065f46; }
.badge-hot   { background: #fee2e2; color: #991b1b; }
.badge-new   { background: #ede9fe; color: #5b21b6; }

.badge-usa, .badge-india, .badge-global, .badge-hot, .badge-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* New card accent */
.aoa-card--new {
  box-shadow: 0 0 0 2px #a78bfa inset;
}

/* ── Popular Quick-Access Strip ─────────────────────────────────── */
.aoa-popular-section {
  padding: 28px 0 8px;
}
.aoa-popular-section__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.aoa-popular-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
  -webkit-overflow-scrolling: touch;
}
.aoa-popular-row::-webkit-scrollbar { height: 4px; }
.aoa-popular-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.aoa-popular-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.aoa-popular-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(79,99,255,.10);
  text-decoration: none;
  color: var(--color-accent);
}
.aoa-popular-chip__icon { font-size: 16px; }
.aoa-popular-chip__cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94a3b8;
  padding-left: 2px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary:hover { background: #3d4fe0; color: white; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--color-accent); color: white; }

/* Text helpers */
.text-muted  { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }

/* Section title */
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.section-title span { color: var(--color-accent); }

/* Divider with text */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 24px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* AdSense placeholders */
.aoa-ad {
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 90px;
  width: 100%;
}

/* Misc layout helpers */
.section-pad { padding: 60px 0; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* =============================================================
   NEW FEATURE COMPONENTS — AOA Calc v3.0
   Chart, Benchmark, Advice, Scenario, Progress, Print, Embed,
   Share-Link, Tool-Actions toolbar
   ============================================================= */

/* ── Chart wrapper ── */
.aoa-calc__chart-wrap {
  padding: 16px 16px 8px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.aoa-calc__chart-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.aoa-calc__chart {
  max-height: 260px;
  width: 100%;
}

/* ── Benchmark badge ── */
.aoa-calc__bench {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-bg);
  border-left: 3px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.aoa-calc__bench--good {
  background: rgba(34, 201, 122, 0.07);
  border-left-color: var(--color-success);
  color: var(--color-text);
}
.aoa-calc__bench--warn {
  background: rgba(249, 115, 22, 0.07);
  border-left-color: var(--color-warning);
  color: var(--color-text);
}
.aoa-calc__bench-icon { flex-shrink: 0; font-size: 16px; line-height: 1.4; }
.aoa-calc__bench-text strong { color: var(--color-text); }

/* ── Advice block ── */
.aoa-calc__advice {
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.aoa-calc__advice-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 10px;
}
.aoa-calc__advice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aoa-calc__advice-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.55;
}
.aoa-calc__advice-icon { flex-shrink: 0; font-size: 15px; margin-top: 1px; }
.aoa-calc__advice-text { flex: 1; }
.aoa-calc__advice-cta {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}
.aoa-calc__advice-cta:hover { text-decoration: underline; }

/* ── Scenario compare ── */
.aoa-calc__scenario {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.aoa-calc__scenario-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}
.aoa-calc__scenario-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}
.aoa-calc__scenario-clear {
  font-size: 11px;
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  padding: 2px 6px;
}
.aoa-calc__scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide: var(--color-border);
}
.aoa-calc__scenario-col {
  padding: 12px 14px;
  border-right: 1px solid var(--color-border);
}
.aoa-calc__scenario-col:last-child { border-right: none; }
.aoa-calc__scenario-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aoa-calc__scenario-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
}
.aoa-calc__scenario-row:last-child { border-bottom: none; }
.aoa-calc__scenario-row-label { color: var(--color-text-muted); flex: 1; }
.aoa-calc__scenario-row-value { font-weight: 700; color: var(--color-text); white-space: nowrap; }

/* ── Progress bar ── */
.aoa-calc__progress {
  height: 10px;
  background: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.aoa-calc__progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1), background 0.3s;
}
.aoa-calc__progress-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ── Tools action bar (share link / print / embed) ── */
.aoa-calc__tools {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-wrap: wrap;
}
.aoa-calc__tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.aoa-calc__tool-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(79,99,255,.05);
}

/* ── Save Scenario button ── */
.aoa-calc__save-scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 12px;
  padding: 8px 16px;
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-sm);
  background: rgba(79,99,255,.04);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  width: calc(100% - 32px);
  justify-content: center;
}
.aoa-calc__save-scenario-btn:hover { background: rgba(79,99,255,.10); }

/* ── Embed modal overlay ── */
.aoa-calc__embed-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.aoa-calc__embed-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.aoa-calc__embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}
.aoa-calc__embed-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  padding: 0 4px;
}
.aoa-calc__embed-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.aoa-calc__embed-code {
  width: 100%;
  height: 90px;
  resize: none;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  display: block;
}

/* ── Dark mode for new components ── */
@media (prefers-color-scheme: dark) {
  .aoa-calc__bench       { background: rgba(255,255,255,.04); }
  .aoa-calc__bench--good { background: rgba(34,201,122,.10); }
  .aoa-calc__bench--warn { background: rgba(249,115,22,.10); }
  .aoa-calc__advice      { background: rgba(255,255,255,.03); }
  .aoa-calc__scenario    { background: var(--color-surface); }
  .aoa-calc__embed-box   { background: #1e2030; }
  .aoa-calc__embed-code  { background: #13151f; color: #e2e8f0; }
}

/* ── Responsive — narrow containers ── */
@media (max-width: 480px) {
  .aoa-calc__scenario-grid { grid-template-columns: 1fr 1fr; }
  .aoa-calc__tools { gap: 6px; }
  .aoa-calc__tool-btn { font-size: 11px; padding: 6px 10px; }
  .aoa-calc__chart { max-height: 200px; }
}

/* ================================================================
   SUPPLEMENTAL — classes used across calculators, added in v3.1
   ================================================================ */

/* ── Single-column grid ── */
.aoa-calc__grid--1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ── Button variants ── */
.aoa-calc__btn--secondary {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}
.aoa-calc__btn--secondary:hover {
  background: var(--color-border);
  border-color: var(--color-border);
  color: var(--color-text);
}
.aoa-calc__btn--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.aoa-calc__btn--danger:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}

/* ── Result card aliases (for backwards-compat querySelector targeting) ── */
/* These are applied alongside aoa-calc__result-card/value/label by renderCards */
.aoa-calc__card        { /* styled by aoa-calc__result-card */ }
.aoa-calc__card-value  { /* styled by aoa-calc__result-value */ }
.aoa-calc__card-label  { /* styled by aoa-calc__result-label */ }

/* ── Tab panel (JS-controlled show/hide via is-active — used by calculators
      that add/remove is-active instead of toggling inline style) ── */
.aoa-calc__tab-panel {
  display: none;
}
.aoa-calc__tab-panel.is-active {
  display: block;
}

/* ── Info callout box (tip / rule-check / guidance shown after calculation) ── */
.aoa-calc__info-box {
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #1e40af;
  line-height: 1.55;
  margin-top: 8px;
  grid-column: 1 / -1;
}
.aoa-calc__info-box strong { color: #1e3a8a; }

/* ── Collapsible / accordion section ── */
.aoa-calc__collapsible {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  overflow: hidden;
}
.aoa-calc__collapsible-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--color-bg);
  border: none;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}
.aoa-calc__collapsible-trigger:hover {
  background: #eef0ff;
}
.aoa-calc__collapsible-trigger[aria-expanded="true"],
.aoa-calc__collapsible.is-open .aoa-calc__collapsible-trigger {
  border-bottom-color: var(--color-border);
  background: #f0f4ff;
}
.aoa-calc__collapsible-body {
  padding: 12px 14px;
  background: var(--color-surface);
}

/* ============================================================
   SINGLE CALCULATOR PAGE — meta pill badges
   ============================================================ */
.aoa-single-calc__meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.aoa-single-calc__meta-pill--cat {
  background: rgba(255,255,255,.2);
  color: white;
}
.aoa-single-calc__meta-pill--free {
  background: rgba(34,201,122,.2);
  color: #86efac;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   SEO CONTENT SECTION — homepage
   ============================================================ */
.aoa-seo-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 52px;
}
.aoa-seo-section__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -.02em;
}
.aoa-seo-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.aoa-seo-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 24px 0 8px;
}
.aoa-seo-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}
.aoa-seo-content p + p { margin-top: 12px; }
.aoa-seo-content a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(67,97,238,.3);
  text-underline-offset: 2px;
}
.aoa-seo-content a:hover { text-decoration-color: var(--color-accent); }
/* Lists inside homepage SEO content */
.aoa-seo-content ul,
.aoa-seo-content ol {
  padding-left: 22px;
  margin: 12px 0 16px;
}
.aoa-seo-content li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  list-style: disc;
}
.aoa-seo-content ol li { list-style: decimal; }
.aoa-seo-content ul ul li { list-style: circle; }
/* Elementor / WordPress content editor list overrides */
.entry-content ul li,
.elementor-widget-text-editor ul li,
.wp-block-list li {
  list-style: disc;
  margin-bottom: 6px;
}
.entry-content ol li,
.elementor-widget-text-editor ol li {
  list-style: decimal;
  margin-bottom: 6px;
}
.entry-content ul, .entry-content ol,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.aoa-seo-sidebar {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.aoa-seo-sidebar h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.aoa-seo-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aoa-seo-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.aoa-seo-links li a:hover {
  background: rgba(67,97,238,.08);
  color: var(--color-accent);
}
.aoa-seo-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.aoa-seo-trust__item {
  text-align: center;
}
.aoa-seo-trust__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}
.aoa-seo-trust__label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .aoa-seo-grid { grid-template-columns: 1fr; gap: 24px; }
  .aoa-seo-trust { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .aoa-seo-trust__num { font-size: 22px; }
}

/* ============================================================
   CALCULATOR-SPECIFIC OVERRIDES
   ============================================================ */

/* ── Lead Time Calculator — results flex-column + metrics grid ── */
#lt-results.is-visible {
  display: flex;
  flex-direction: column;
}
#lt-cards .aoa-calc__result-card {
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
#lt-cards .aoa-calc__result-card:last-child { border-right: none; }
#lt-cards .aoa-calc__result-value { font-size: 16px; font-weight: 800; line-height: 1.1; }
#lt-cards .aoa-calc__result-label { font-size: 10px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
@media (max-width: 600px) {
  #lt-cards { grid-template-columns: repeat(3, 1fr) !important; }
  #lt-cards .aoa-calc__result-card:nth-child(3) { border-right: none; }
  #lt-cards .aoa-calc__result-card:nth-child(4) { border-right: 1px solid var(--color-border); }
  #lt-cards .aoa-calc__result-card:last-child { border-right: none; }
}
@media (max-width: 420px) {
  #calculator-container [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ================================================================
   §15 — MOBILE BOTTOM NAVIGATION BAR
   ================================================================ */

/* Keyframe for active-indicator slide-in */
@keyframes bottomNavIndicator {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.aoa-bottom-nav {
  display: none; /* shown only at ≤768 */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border-top: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  z-index: 1100;
  align-items: center;
  justify-content: space-around;
  padding-left: 4px;
  padding-right: 4px;
  -webkit-tap-highlight-color: transparent;
}

.aoa-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 60px;
  color: #9ca3af;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color .2s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.aoa-bottom-nav__item::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--color-primary, #4f46e5);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.aoa-bottom-nav__item.is-active {
  color: var(--color-primary, #4f46e5);
}
.aoa-bottom-nav__item.is-active::before {
  transform: scaleX(1);
}

.aoa-bottom-nav__icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  transition: transform .2s ease;
}
.aoa-bottom-nav__item:active .aoa-bottom-nav__icon {
  transform: scale(.88);
}

/* World Cup tab — seasonal highlight in mobile bottom bar */
.aoa-bottom-nav__item--wc .aoa-bottom-nav__label {
  font-weight: 700;
}
.aoa-bottom-nav__item--wc.is-active {
  color: #22c55e;
}
.aoa-bottom-nav__item--wc.is-active::before {
  background: rgba(34, 197, 94, 0.15);
}

.aoa-bottom-nav__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  color: currentColor;
}

/* ── Mobile header search button ── */
.aoa-header-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.85);
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.aoa-header-search:hover { background: rgba(255,255,255,.18); }
.aoa-header-search.is-active { background: var(--color-primary); }

@media (max-width: 768px) {
  .aoa-bottom-nav { display: flex; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }

  /* Footer accordion on mobile */
  .aoa-footer__col-title { cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
  .aoa-footer__col-chevron { transition: transform .25s ease; flex-shrink: 0; opacity: .6; }
  .aoa-footer__col:not(.aoa-footer__col--brand) .aoa-footer__links { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .aoa-footer__col--open .aoa-footer__links { max-height: 500px; }
  .aoa-footer__col--open .aoa-footer__col-chevron { transform: rotate(180deg); }
}

/* ================================================================
   §16 — SEARCH OVERLAY
   ================================================================ */

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes overlayBoxUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.aoa-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  padding: 0;
}
.aoa-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.aoa-search-overlay.is-open .aoa-search-overlay__box {
  animation: overlayBoxUp .28s cubic-bezier(.22,1,.36,1) both;
}

.aoa-search-overlay__box {
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
@media (min-width: 769px) {
  .aoa-search-overlay {
    align-items: center;
    padding: 60px 20px;
  }
  .aoa-search-overlay__box {
    border-radius: 20px;
    max-height: 70vh;
  }
}

.aoa-search-overlay__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
}
.aoa-search-overlay__hdr-icon {
  color: #94a3b8;
  flex-shrink: 0;
}
.aoa-search-overlay__input {
  flex: 1;
  width: 0;          /* flex-basis: flex:1 expands it; width:0 prevents overflow */
  min-width: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 18px;
  font-weight: 500;
  color: #1e293b !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}
/* Remove Chrome's native search cancel button */
.aoa-search-overlay__input::-webkit-search-cancel-button,
.aoa-search-overlay__input::-webkit-search-decoration { display: none; }
.aoa-search-overlay__input::placeholder { color: #94a3b8; }
.aoa-search-overlay__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #475569;
  transition: background .15s;
  flex-shrink: 0;
}
.aoa-search-overlay__close:hover { background: #e2e8f0; }

.aoa-search-overlay__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 20px;
  flex: 1;
}

/* Section heading inside overlay */
.aoa-search-overlay__section-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 20px 6px;
}

/* Each result row */
.aoa-search-overlay__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #1e293b;
  transition: background .12s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.aoa-search-overlay__item:hover,
.aoa-search-overlay__item:focus,
.aoa-search-overlay__item.is-focused {
  background: #f8fafc;
  outline: none;
}
.aoa-search-overlay__item-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.aoa-search-overlay__item-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}
.aoa-search-overlay__item-name mark {
  background: none;
  color: var(--color-primary, #4f46e5);
  font-weight: 700;
}
.aoa-search-overlay__item-cat {
  font-size: 11px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 99px;
}
.aoa-search-overlay__no-results {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 15px;
}

/* ================================================================
   §17 — SCROLL-TO-TOP FAB
   ================================================================ */

.aoa-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 84px; /* default: above mobile bottom nav */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(37,99,235,.28), 0 6px 16px rgba(15,23,42,.24);
  opacity: 0;
  transform: translateY(12px) scale(.85);
  visibility: hidden;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1), visibility .25s ease, box-shadow .2s ease;
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
}
.aoa-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.aoa-scroll-top:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #3730a3 100%);
  box-shadow: 0 18px 34px rgba(37,99,235,.34), 0 8px 18px rgba(15,23,42,.28);
}
.aoa-scroll-top:active { transform: translateY(0) scale(.94); }
.aoa-scroll-top svg {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
  stroke: white !important;
  fill: none;
  transform: translateY(-1px);
}
.aoa-scroll-top svg path {
  stroke: currentColor !important;
  stroke-width: 3.2;
}

@media (min-width: 769px) {
  .aoa-scroll-top { bottom: 28px; }
}
@media (max-width: 768px) {
  .aoa-scroll-top {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ================================================================
   §18 — CARD ENTRANCE ANIMATIONS + CATEGORY COLOUR ACCENTS
   ================================================================ */

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

.aoa-card--animate-in {
  animation: aoaCardIn .38s cubic-bezier(.22,1,.36,1) both;
}

/* Per-category top-border accent */
.aoa-card[data-category]::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--card-accent, var(--color-primary, #4f46e5));
  opacity: .7;
}

/* Category accent colours */
.aoa-card[data-category="finance"]  { --card-accent: #10b981; }
.aoa-card[data-category="health"]   { --card-accent: #ef4444; }
.aoa-card[data-category="math"]     { --card-accent: #f59e0b; }
.aoa-card[data-category="fitness"]  { --card-accent: #f97316; }
.aoa-card[data-category="time"]     { --card-accent: #6366f1; }
.aoa-card[data-category="everyday"] { --card-accent: #0ea5e9; }
.aoa-card[data-category="tax"]      { --card-accent: #14b8a6; }
.aoa-card[data-category="business"] { --card-accent: #8b5cf6; }
.aoa-card[data-category="science"]  { --card-accent: #3b82f6; }

/* ================================================================
   §19 — DESKTOP POLISH
   ================================================================ */

/* Filter pill pop animation */
@keyframes pillActivePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.aoa-filter-btn.is-active {
  animation: pillActivePop .28s cubic-bezier(.22,1,.36,1);
}

/* Elevated card hover (desktop only) */
@media (min-width: 769px) {
  .aoa-card {
    transition: box-shadow .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
  }
  .aoa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(79,70,229,.13), 0 4px 12px rgba(0,0,0,.07);
  }

  /* Logo icon hover glow */
  .aoa-logo__icon:hover {
    filter: drop-shadow(0 0 8px rgba(79,70,229,.5));
    transition: filter .25s ease;
  }
}

/* Hero gradient shift */
@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.aoa-hero {
  background-size: 200% 200%;
  animation: heroGradientShift 12s ease infinite;
}

/* Featured/popular badge on cards */
.aoa-card__badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  pointer-events: none;
}
