/* ====================================================
   Eximigo — Theme Override  |  style.css
   Loaded after main.css. CSS-only. Zero PHP changes.
   ==================================================== */

/* ── 0. FONTS ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Inter:ital,wght@0,300..700;1,300..400&display=swap');


/* ── 1. DESIGN TOKENS ─────────────────────────────── */
:root {
  /* Palette */
  --color-primary:            #001442;
  --color-primary-container:  #082868;
  --color-secondary:          #006d3c;
  --color-secondary-container:#86f6ad;

  /* Surfaces */
  --color-background: #f9f9f9;
  --color-card:       #ffffff;
  --color-card-border:#CCD4D7;

  /* Shadows */
  --editorial-shadow: 0 2px 8px rgba(0,20,66,0.04),
                      0 20px 40px -15px rgba(0,20,66,0.08);
  --card-hover-shadow:0 4px 12px rgba(0,20,66,0.06),
                      0 32px 56px -16px rgba(0,20,66,0.14);
  --header-shadow:    0 1px 0 rgba(0,20,66,0.08),
                      0 4px 20px rgba(0,20,66,0.05);

  /* Fonts */
  --font-headline: 'Manrope',  -apple-system, sans-serif;
  --font-body:     'Inter',    -apple-system, sans-serif;

  /* Bridge to main.css variables */
  --color-header:    var(--color-primary-container);
  --color-cta:       var(--color-secondary);
  --color-cta-hover: #005a32;
  --color-bg:        var(--color-background);
  --font-sans:       var(--font-body);

  /* Geometry */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm:  8px;

  /* Header height (fixed) */
  --header-h: 64px;
}


/* ── 2. BASE ───────────────────────────────────────── */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background:  var(--color-background);
  padding-top: var(--header-h);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Headings → Manrope */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
}

/* Body text → Inter (don't override headings inside) */
p, li, td, th {
  font-family: var(--font-body);
}


/* ── 3. HEADER — fixed, white ─────────────────────── */
.site-header {
  position:   fixed;
  width:      100%;
  background: #ffffff;
  box-shadow: var(--header-shadow);
  border-bottom: 1px solid rgba(0,20,66,0.07);
}

/* Logo text */
.logo-text {
  color:       var(--color-primary);
  font-family: var(--font-headline);
  font-weight: 800;
}

.logo-tagline {
  color: rgba(0,20,66,0.42);
}

/* Nav links */
.site-nav a,
.site-nav .nav-link {
  color:         rgba(0,20,66,0.70);
  font-family:   var(--font-body);
  font-weight:   500;
  padding:       0.4rem 0.75rem;
  border-radius: 7px;
  transition:    background 0.18s, color 0.18s;
}

.site-nav a:hover,
.site-nav .nav-link:hover,
.site-nav .nav-item:hover .nav-link,
.site-nav .nav-item.is-open .nav-link {
  color:      #042766;
  background: rgba(0,20,66,0.07);
}

.site-nav a.active,
.site-nav .nav-item.active .nav-link {
  color:       #042766;
  background:  rgba(0,141,78,0.10);
  font-weight: 600;
}

/* Search input */
.header-search {
  background:    rgba(0,20,66,0.05);
  border:        1px solid rgba(0,20,66,0.10);
}

.header-search:focus-within {
  background:    rgba(0,20,66,0.07);
  border-color:  var(--color-primary);
}

.header-search input            { color: var(--color-primary); }
.header-search input::placeholder{ color: rgba(0,20,66,0.38); }
.header-search svg              { color: rgba(0,20,66,0.38); }

/* Hamburger */
.menu-toggle { color: var(--color-primary); }

/* ── NAV DROPDOWNS ────────────────────────────────── */
.nav-item {
  position: relative;
}

.nav-item .nav-link {
  display:     inline-flex;
  align-items: center;
  gap:         0.3rem;
  cursor:      pointer;
}

.nav-chevron {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.nav-item:hover .nav-chevron,
.nav-item.is-open .nav-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  position:   absolute;
  top:        calc(100% + 8px);
  left:       50%;
  transform:  translateX(-50%) translateY(-6px);
  min-width:  220px;
  background: #ffffff;
  border:     1px solid rgba(0,20,66,0.09);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(4,39,102,0.13), 0 2px 8px rgba(0,0,0,0.06);
  opacity:    0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index:    500;
  overflow:   hidden;
}

.nav-item:hover .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity:        1;
  visibility:     visible;
  pointer-events: auto;
  transform:      translateX(-50%) translateY(0);
}

/* Small triangle pointer */
.nav-dropdown::before {
  content:      '';
  position:     absolute;
  top:          -6px;
  left:         50%;
  transform:    translateX(-50%);
  border-left:  6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ffffff;
  filter:       drop-shadow(0 -1px 1px rgba(0,20,66,0.08));
}

.nav-dropdown-inner {
  padding: 0.5rem;
}

.nav-dropdown-inner a {
  display:       block;
  padding:       0.52rem 0.85rem;
  font-size:     0.875rem;
  font-weight:   500;
  color:         rgba(0,20,66,0.72);
  border-radius: 7px;
  transition:    background 0.15s, color 0.15s;
  white-space:   nowrap;
}
.nav-dropdown-inner a:hover {
  background: rgba(0,141,78,0.08);
  color:      #008D4E;
}

.nav-dropdown-footer {
  border-top: 1px solid rgba(0,20,66,0.07);
  padding:    0.5rem 0.85rem 0.6rem;
}
.nav-dropdown-footer a {
  font-size:   0.82rem;
  font-weight: 600;
  color:       #008D4E;
  transition:  color 0.15s;
}
.nav-dropdown-footer a:hover { color: #005a32; }

/* Mobile drawer expandable groups */
.mob-drawer-group { border-bottom: 1px solid rgba(255,255,255,0.07); }

.mob-drawer-group-toggle {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  width:           100%;
  padding:         0.85rem 1.5rem;
  background:      none;
  border:          none;
  cursor:          pointer;
  color:           rgba(255,255,255,0.75);
  font-size:       0.975rem;
  font-weight:     500;
  text-align:      left;
}
.mob-drawer-group-toggle:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mob-drawer-group.active .mob-drawer-group-toggle { color: #2be881; }

.mob-drawer-group-label {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
}

.mob-group-chevron { transition: transform 0.22s ease; flex-shrink: 0; }
.mob-drawer-group-toggle[aria-expanded="true"] .mob-group-chevron { transform: rotate(180deg); }

.mob-drawer-sub {
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.28s ease;
}
.mob-drawer-sub.is-open { max-height: 400px; }

.mob-drawer-sub-link {
  display:    block;
  padding:    0.55rem 1.5rem 0.55rem 3.4rem;
  font-size:  0.875rem;
  color:      rgba(255,255,255,0.55);
  transition: color 0.15s, background 0.15s;
}
.mob-drawer-sub-link:first-child {
  color:       #2be881;
  font-weight: 600;
}
.mob-drawer-sub-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* Mobile nav — white drop-down panel */
@media (max-width: 768px) {
  .site-nav.open {
    background:  #ffffff;
    border-top:  1px solid rgba(0,20,66,0.07);
    padding:     0.5rem 1rem 1rem;
    gap:         0.25rem;
  }

  .site-nav.open a {
    color:         rgba(0,20,66,0.70);
    padding:       0.6rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .site-nav.open a:hover,
  .site-nav.open a.active {
    color:      var(--color-primary);
    background: rgba(0,20,66,0.06);
  }
}


/* ── 4. CATEGORY CAROUSEL — offset for fixed header  */
/*  main.css already says top:64px which matches --header-h */
.category-carousel-section {
  background:    #ffffff;
  border-bottom: 1px solid rgba(0,20,66,0.07);
  top: var(--header-h);
}

.carousel-wrap {
  display:     flex;
  align-items: center;
  max-width:   var(--max-width);
  margin:      0 auto;
  position:    relative;
}

.carousel-arrow {
  flex-shrink:     0;
  width:           32px;
  height:          32px;
  border-radius:   50%;
  border:          1.5px solid rgba(0,20,66,0.14);
  background:      #fff;
  color:           #042766;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  transition:      background 0.16s, border-color 0.16s, box-shadow 0.16s;
  z-index:         2;
  margin:          0 0.35rem;
}
.carousel-arrow:hover {
  background:    #042766;
  border-color:  #042766;
  color:         #fff;
  box-shadow:    0 2px 8px rgba(4,39,102,0.18);
}
.carousel-arrow[hidden] { display: none; }

/* Pills */
.cat-btn {
  background:    #eef0f4;
  border:        1.5px solid transparent;
  color:         rgba(0,20,66,0.60);
  font-family:   var(--font-body);
  font-weight:   500;
  border-radius: 50px;
  transition:    background 0.16s, color 0.16s, border-color 0.16s;
}

.cat-btn:hover {
  background:  rgba(0,20,66,0.08);
  color:       var(--color-primary);
  border-color:transparent;
}

.cat-btn.active {
  background:   var(--color-primary);
  color:        #ffffff;
  border-color: var(--color-primary);
  font-weight:  600;
}


/* ── 5. HERO ──────────────────────────────────────── */
.hero {
  background-color: #042766;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(14,52,128,0.75) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 110%, rgba(0,141,78,0.09) 0%, transparent 65%);
  text-align: center;
  padding: 5.5rem 1.5rem 4.75rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after { display: none; }

.hero-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

/* Headline */
.hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.hero-accent {
  color: #2be881;
  -webkit-text-fill-color: #2be881;
  letter-spacing: 0.015em;
}

/* Description */
.hero p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(210, 228, 255, 0.75);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  margin-bottom: 2rem;
}
.hero .btn-cta {
  background: #008D4E;
  color: #fff;
  border: none;
  box-shadow: 0 0 0 0 rgba(0,141,78,0);
  font-family: var(--font-headline);
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.hero .btn-cta:hover {
  background: #00a85e;
  box-shadow: 0 6px 28px rgba(0,141,78,0.45), 0 0 0 3px rgba(0,141,78,0.18);
  transform: translateY(-2px) scale(1.02);
}
.hero .btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.38);
  box-shadow: none;
  font-family: var(--font-headline);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.18s;
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-2px) scale(1.02);
}

/* Search bar wrapper — positioning parent for dropdown */
.hero-search-wrap {
  position:  relative;
  max-width: 580px;
  margin:    0 auto;
  z-index:   10;
}

/* Search bar */
.hero-search {
  display:     flex;
  align-items: center;
  gap:         0.6rem;
  width:       100%;
  background:  rgba(255,255,255,0.08);
  border:      1.5px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding:     0.7rem 1rem 0.7rem 1.4rem;
  box-shadow:  0 4px 24px rgba(0,0,0,0.20);
  transition:  border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-search:focus-within {
  border-color: rgba(0,141,78,0.65);
  background:   rgba(255,255,255,0.12);
  box-shadow:   0 0 0 4px rgba(0,141,78,0.15), 0 4px 24px rgba(0,0,0,0.20);
}

.hero-search svg {
  flex-shrink: 0;
  color:       rgba(255,255,255,0.55);
}

.hero-search input {
  flex:        1;
  border:      none;
  outline:     none;
  font-size:   0.975rem;
  font-family: var(--font-body);
  color:       #ffffff;
  background:  transparent;
  min-width:   0;
  padding:     0.2rem 0;
  line-height: 1.4;
}

.hero-search input::placeholder { color: rgba(190,210,255,0.45); }

/* Dropdown results */
.hero-search-dropdown {
  position:   absolute;
  top:        calc(100% + 10px);
  left:       0;
  right:      0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(4,39,102,0.18), 0 4px 16px rgba(0,0,0,0.08);
  overflow-y: auto;
  max-height: 380px;
  z-index:    9999;
}

.hero-drop-list {
  list-style: none;
  margin:     0;
  padding:    0.5rem 0;
}

.hero-drop-item {
  display:     flex;
  align-items: center;
  gap:         0.65rem;
  padding:     0.75rem 1.1rem;
  text-decoration: none;
  color:       var(--color-primary);
  transition:  background 0.12s, color 0.12s;
  border-left: 3px solid transparent;
}

.hero-drop-item:hover {
  background:   #f0f7f3;
  border-color: #008D4E;
  color:        #008D4E;
}

.hero-drop-item:hover .hero-drop-title { color: #008D4E; }

.hero-drop-badge {
  font-family:    var(--font-headline);
  font-size:      0.58rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          #fff;
  padding:        0.12rem 0.5rem;
  border-radius:  50px;
  flex-shrink:    0;
  line-height:    1.6;
}

.hero-drop-title {
  flex:          1;
  font-family:   var(--font-headline);
  font-size:     0.875rem;
  font-weight:   600;
  color:         var(--color-primary);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  transition:    color 0.12s;
}

.hero-drop-item svg {
  flex-shrink: 0;
  color:       #008D4E;
  opacity:     0;
  transition:  opacity 0.12s;
}

.hero-drop-item:hover svg { opacity: 1; }

.hero-drop-empty {
  padding:     1.25rem 1.1rem;
  font-family: var(--font-body);
  font-size:   0.875rem;
  color:       var(--color-text-muted);
  text-align:  center;
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .hero h1 { letter-spacing: 0; font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-search-wrap { width: 100%; }
  .hero-search { width: 100%; padding: 0.65rem 0.9rem 0.65rem 1.1rem; }
  .hero-search input { min-width: 0; width: 100%; }
  .hero-search-dropdown { border-radius: 12px; }
}


/* ── 6. BUTTONS ───────────────────────────────────── */

/* CTA */
.btn-cta {
  background: linear-gradient(135deg, #006d3c 0%, #0B9052 100%);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(0,109,60,0.32);
  border: none;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #005a32 0%, #097a44 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,109,60,0.42);
  transform: translateY(-2px);
}

/* Primary — solid navy */
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--color-primary-container);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Outline (default — light bg context) */
.btn-outline {
  background: white;
  color: #0B9052;
  border: 1.5px solid rgba(11,144,82,0.35) !important;
  font-family: var(--font-headline);
  font-weight: 600;
}
.btn-outline:hover {
  border-color: #0B9052 !important;
  background: #f0fdf8;
  color: #006d3c;
}


/* ── 7. ARTICLE CARDS ─────────────────────────────── */
.post-card {
  background:    var(--color-card);
  border:        1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow:    var(--editorial-shadow);
  transition:    box-shadow 0.28s ease,
                 transform  0.28s ease,
                 border-color 0.28s ease;
  overflow:      hidden;
}

.post-card:hover {
  box-shadow:   var(--card-hover-shadow);
  transform:    translateY(-5px);
  border-color: transparent;
}

/* Image zoom */
.post-card-image {
  overflow: hidden;
}

.post-card-image img {
  transition: transform 0.42s ease;
  display:    block;
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.post-card:hover .post-card-image img {
  transform: scale(1.06);
}

/* Card copy */
.post-card-category {
  color:       var(--color-secondary);
  font-weight: 600;
  font-family: var(--font-body);
}

.post-card-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size:   1.02rem;
  line-height: 1.38;
}

.post-card-title a { color: inherit; }

.post-card-title a:hover { color: var(--color-primary); }


/* ── 8. SECTION HEADINGS ──────────────────────────── */
.section-title {
  font-family: var(--font-headline);
  font-weight: 800;
  color:       var(--color-primary);
}

.section-link          { color: var(--color-secondary); }
.section-link:hover    { color: var(--color-cta-hover); }


/* ── 9. TOOLS ─────────────────────────────────────── */
.tools-section {
  background: #f0f4fb;
}

.tools-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.1rem;
}
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* Card */
.tool-card {
  position:        relative;
  display:         flex;
  flex-direction:  column;
  gap:             0.75rem;
  padding:         1.4rem 1.3rem 1.15rem;
  background:      #ffffff;
  border:          1.5px solid #e5e7eb;
  border-radius:   14px;
  text-decoration: none;
  color:           inherit;
  box-shadow:      0 1px 4px rgba(0,20,66,0.05);
  transition:      border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow:        hidden;
}
.tool-card:hover {
  border-color: rgba(0,141,78,0.30);
  box-shadow:   0 8px 28px rgba(0,141,78,0.12);
  transform:    translateY(-3px);
}

/* Badge */
.tool-badge {
  position:      absolute;
  top:           14px;
  right:         14px;
  display:       inline-flex;
  align-items:   center;
  padding:       0.22rem 0.65rem;
  border-radius: 999px;
  font-family:   var(--font-body);
  font-size:     0.72rem;
  font-weight:   700;
  letter-spacing: 0.02em;
}
.tool-badge--blue  { background: rgba(4,39,102,0.08);  color: #042766; }
.tool-badge--green { background: rgba(0,141,78,0.10);  color: #008D4E; }

/* Icon container */
.tool-icon-wrap {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           46px;
  height:          46px;
  border-radius:   11px;
  background:      rgba(4,39,102,0.06);
  color:           #042766;
  flex-shrink:     0;
  transition:      background 0.2s, color 0.2s;
}
.tool-card:hover .tool-icon-wrap {
  background: rgba(0,141,78,0.10);
  color:      #008D4E;
}

/* Text */
.tool-info { flex: 1; }
.tool-name {
  font-family:  var(--font-headline);
  font-weight:  700;
  font-size:    0.95rem;
  color:        var(--color-primary);
  margin-bottom: 0.3rem;
  transition:   color 0.2s;
}
.tool-card:hover .tool-name { color: #008D4E; }

.tool-desc {
  font-size:   0.8rem;
  color:       rgba(0,20,66,0.55);
  line-height: 1.55;
  display:     -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}

/* "Use Tool" CTA button */
.tool-cta-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  align-self:      flex-start;
  padding:         0.42rem 1.1rem;
  background:      #008D4E;
  color:           #ffffff !important;
  border-radius:   8px;
  font-family:     var(--font-headline);
  font-size:       0.8rem;
  font-weight:     700;
  margin-top:      0.25rem;
  box-shadow:      0 2px 8px rgba(0,141,78,0.18);
  transition:      background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.tool-cta-btn:hover,
.tool-card:hover .tool-cta-btn {
  background: #007040;
  color:      #ffffff !important;
  box-shadow: 0 4px 14px rgba(0,141,78,0.30);
  transform:  translateY(-1px);
}

/* Footer: View All + trust line */
.tools-footer {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.75rem;
  margin-top:     2.5rem;
}

.btn-tools-all {
  display:         inline-flex;
  align-items:     center;
  gap:             0.45rem;
  padding:         0.72rem 2rem;
  background:      #008D4E;
  color:           #ffffff;
  border-radius:   10px;
  font-family:     var(--font-headline);
  font-size:       0.925rem;
  font-weight:     700;
  text-decoration: none;
  box-shadow:      0 2px 10px rgba(0,141,78,0.20);
  transition:      background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.btn-tools-all:hover {
  background: #007040;
  box-shadow: 0 6px 22px rgba(0,141,78,0.32);
  transform:  translateY(-2px);
  color:      #ffffff;
}

.tools-trust {
  font-size:  0.82rem;
  color:      rgba(0,20,66,0.45);
  font-weight: 500;
}

@media (max-width: 520px) {
  .btn-tools-all {
    width:   auto;
    padding: 0.7rem 2rem;
  }
  .tools-footer {
    align-items:     center;
    justify-content: center;
    text-align:      center;
  }
}

/* ── TOOLS PAGE — CLASS-BASED LAYOUT ─────────────── */


/* Stats row */
.tools-stats {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             1.25rem;
  flex-wrap:       nowrap;
  padding:         1rem 1rem 0.5rem;
  overflow:        hidden;
}
.tools-stat {
  display:     flex;
  align-items: center;
  gap:         0.35rem;
  font-size:   0.8rem;
  color:       var(--color-text-muted, #6b7280);
  white-space: nowrap;
}
.tools-stat + .tools-stat {
  padding-left:  1.25rem;
  border-left:   1px solid rgba(0,20,66,0.12);
}
.tools-stat svg { flex-shrink: 0; opacity: 0.7; }
.tools-stat strong { color: var(--color-primary, #042766); }

/* Tools page grid overrides */
.tools-page-grid {
  margin-top: 1.25rem;
}

/* Card top row: icon + text */
.tool-card-top {
  display:     flex;
  align-items: flex-start;
  gap:         0.875rem;
  flex:        1;
}

/* Make tool-cta-btn full-width on tools page */
.tools-page-grid .tool-cta-btn {
  width:           100%;
  justify-content: center;
  padding:         0.6rem 1rem;
  margin-top:      auto;
  font-size:       0.875rem;
}

/* Coming soon banner */
.tools-coming-soon {
  margin:        2rem 0 2.5rem;
  background:    linear-gradient(135deg, #042766 0%, #0d3d8c 100%);
  color:         #ffffff;
  border-radius: 16px;
  padding:       2rem 1.5rem;
  text-align:    center;
}
.tools-coming-soon h2 {
  font-size:     1.2rem;
  font-weight:   800;
  margin-bottom: 0.5rem;
  color:         #ffffff;
}
.tools-coming-soon p {
  color:         rgba(255,255,255,0.72);
  font-size:     0.88rem;
  margin-bottom: 1.25rem;
  line-height:   1.6;
}
.tools-coming-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.4rem;
  padding:         0.65rem 1.5rem;
  background:      #008D4E;
  color:           #ffffff;
  border-radius:   50px;
  font-size:       0.875rem;
  font-weight:     600;
  text-decoration: none;
  transition:      background 0.2s;
}
.tools-coming-btn:hover { background: #007040; color: #ffffff; }

/* ── TOOLS PAGE RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  .tools-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  /* Stats: shrink text slightly so all 3 fit */
  .tools-stats { gap: 0.75rem; }
  .tools-stat  { font-size: 0.74rem; }
  .tools-stat + .tools-stat { padding-left: 0.75rem; }

  /* Grid: 1 column */
  .tools-page-grid { grid-template-columns: 1fr; gap: 0.875rem; }

  /* Card: horizontal layout (icon left, text right) */
  .tool-card {
    padding:        1rem 1.1rem;
    flex-direction: row;
    flex-wrap:      wrap;
    align-items:    center;
    gap:            0.75rem;
  }
  .tool-card-top {
    flex:       1 1 100%;
    min-width:  0;
  }
  .tool-icon-wrap {
    width:  40px;
    height: 40px;
  }
  .tool-info { min-width: 0; }
  .tool-desc { -webkit-line-clamp: 2; }
  .tools-page-grid .tool-cta-btn {
    flex: 1 1 100%;
    padding: 0.55rem 1rem;
  }

  /* Coming soon: tighter padding */
  .tools-coming-soon { padding: 1.5rem 1.25rem; margin-bottom: 1.5rem; }
  .tools-coming-soon h2 { font-size: 1.05rem; }
  .tools-coming-btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .tools-page-grid { gap: 0.7rem; }
  .tool-card { padding: 0.875rem 1rem; }
  .tool-icon-wrap { width: 36px; height: 36px; }
  .tool-name { font-size: 0.88rem; }
}


/* Tool page header icon (on dark blue background) */
.tool-page-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           58px;
  height:          58px;
  border-radius:   14px;
  background:      rgba(255,255,255,0.12);
  border:          1.5px solid rgba(255,255,255,0.18);
  color:           #ffffff;
  margin:          0 auto 1rem;
}

/* Sidebar related tool icon */
.tool-sidebar-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           30px;
  height:          30px;
  border-radius:   7px;
  background:      rgba(4,39,102,0.06);
  color:           #042766;
  flex-shrink:     0;
  transition:      background 0.18s, color 0.18s;
}
a:hover .tool-sidebar-icon {
  background: rgba(0,141,78,0.10);
  color:      #008D4E;
}

/* ── 10. FOOTER ───────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
}


/* ── 11. NEWSLETTER ───────────────────────────────── */
.newsletter-section {
  background: linear-gradient(145deg, var(--color-primary) 0%, #082868 100%);
}

.newsletter-section h2 {
  font-family: var(--font-headline);
  font-weight: 800;
}

.newsletter-form button {
  background: var(--color-secondary);
}

.newsletter-form button:hover {
  background: var(--color-cta-hover);
}


/* ── 12. FAQ ──────────────────────────────────────── */
.faq-section { background: #f9f9f9; padding: 4rem 0; }

.faq-wrap { max-width: 760px; margin: 0 auto; }

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.faq-header .why-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}
.faq-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.faq-subtitle {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-group-label {
  font-family: var(--font-headline);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  padding: 1.5rem 0 0.5rem;
  border-bottom: 1px solid rgba(0,109,60,0.15);
  margin-bottom: 0;
}
.faq-group-label:first-child { padding-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--color-card-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  text-align: left;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--color-secondary); }
.faq-question[aria-expanded="true"] { color: var(--color-secondary); }

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s ease, color 0.2s;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-secondary);
}

.faq-answer {
  display: block;        /* override main.css display:none */
  overflow: hidden;
  max-height: 0;
  padding-bottom: 0;
  transition: max-height 0.32s ease, padding 0.32s ease;
}
.faq-answer.open {
  max-height: 500px;
  padding-bottom: 1rem;
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}
.faq-answer a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ── 13. BLOG / CATEGORY HEADERS ─────────────────── */
.blog-header,
.category-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #082868 100%);
}

.blog-header h1,
.category-header h1 {
  font-family: var(--font-headline);
  font-weight: 800;
}


/* ── 14. POST PAGE ────────────────────────────────── */
.post-title {
  font-family: var(--font-headline);
  font-weight: 800;
  color:       var(--color-primary);
}

.post-category-badge {
  background: rgba(0,109,60,0.09);
  color:      var(--color-secondary);
}

/* ── Author box redesign ─────────────────────────── */
.author-box {
  background:    #f8f9ff;
  border:        1.5px solid rgba(0,20,66,0.09);
  border-radius: 14px;
  padding:       1.25rem 1.5rem;
  gap:           1.1rem;
}

.author-avatar {
  width:  72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(0,20,66,0.1);
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-avatar-fallback {
  width: 100%; height: 100%;
  background:     var(--color-primary, #001442);
  display:        flex;
  align-items:    center;
  justify-content:center;
  color:          #fff;
  font-size:      1.5rem;
  font-weight:    700;
  font-family:    var(--font-headline);
}

.author-top {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  gap:             0.75rem;
  flex-wrap:       wrap;
}

.author-info h3 {
  font-size:   1rem;
  font-weight: 700;
  margin:      0 0 0.15rem;
  color:       var(--color-primary, #001442);
}

.author-info .author-title {
  font-size:   0.78rem;
  font-weight: 500;
  color:       var(--color-secondary, #006d3c);
  margin:      0;
}

.author-bio {
  font-size:   0.85rem;
  color:       var(--color-text-muted, #555);
  line-height: 1.6;
  margin:      0.65rem 0 0;
}

/* Icon-only social circle buttons */
.author-socials {
  display: flex;
  gap:     0.4rem;
  flex-shrink: 0;
}

.author-social-icon {
  width:           34px;
  height:          34px;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  text-decoration: none;
  border:          1.5px solid currentColor;
  transition:      background 0.15s, color 0.15s, transform 0.15s;
}

.author-social-icon:hover { transform: translateY(-2px); color: #fff !important; border-color: transparent; }

.author-social-linkedin  { color: #0077b5; }
.author-social-linkedin:hover  { background: #0077b5; }
.author-social-twitter   { color: #000; }
.author-social-twitter:hover   { background: #000; }
.author-social-instagram { color: #e1306c; }
.author-social-instagram:hover { background: #e1306c; }
.author-social-facebook  { color: #1877f2; }
.author-social-facebook:hover  { background: #1877f2; }

.author-social-inactive {
  opacity:  0.25;
  cursor:   default;
  pointer-events: none;
}


/* TOC card */
.toc-box {
  background:    #f3f6fe;
  border:        1.5px solid rgba(0,20,66,0.1);
  border-left:   4px solid var(--color-primary, #001442);
  border-radius: 10px;
  padding:       1rem 1.25rem;
  margin:        1.75rem 0;
}

.toc-box .toc-toggle span {
  font-family: var(--font-headline);
  font-size:   0.95rem;
  font-weight: 700;
  color:       var(--color-primary, #001442);
}

/* Smooth open animation */
#toc-inline-list.toc-open {
  animation: tocFadeIn 0.2s ease;
}
@keyframes tocFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Article headings */
.article-content h2 {
  font-family: var(--font-headline);
  font-weight: 800;
  color:       var(--color-primary);
}

.article-content h3 {
  font-family: var(--font-headline);
  font-weight: 700;
}

/* Author box */
.author-box              { border-radius: var(--radius-lg); }
.author-info h3          { font-family: var(--font-headline); font-weight: 700; }
.author-info .author-title{ color: var(--color-secondary); }
.author-links a:hover    { color: var(--color-secondary); }

/* Share — keep X/Twitter dark */
.share-twitter       { background: #0f0f0f; }
.share-twitter:hover { background: #222222; color: #ffffff; }


/* ── 15. SIDEBAR ──────────────────────────────────── */
.sidebar-widget h3       { font-family: var(--font-headline); font-weight: 700; color: var(--color-primary); }
.sidebar-post-info a:hover{ color: var(--color-secondary); }

/* Sidebar stays below fixed header + optional carousel */
.post-sidebar { top: calc(var(--header-h) + 56px); }


/* ── 16. BREADCRUMB ───────────────────────────────── */
.breadcrumb a:hover { color: var(--color-secondary); }


/* ── 17. TAGS ─────────────────────────────────────── */
.tag-badge:hover {
  background: var(--color-primary);
  color: #ffffff;
}


/* ── 18. PAGINATION ───────────────────────────────── */
.page-btn:hover,
.page-btn.active {
  background:   var(--color-primary);
  border-color: var(--color-primary);
  color:        #ffffff;
}


/* ── 19. HOMEPAGE CATEGORY GRID ──────────────────── */
.home-cat-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1rem;
}
@media (max-width: 900px) {
  .home-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .home-cat-grid { grid-template-columns: 1fr; }
}

.home-cat-card {
  display:         flex;
  align-items:     center;
  gap:             1rem;
  padding:         1rem 1.1rem;
  background:      #ffffff;
  border:          1.5px solid rgba(0,20,66,0.08);
  border-radius:   14px;
  text-decoration: none;
  color:           var(--color-primary);
  box-shadow:      0 1px 4px rgba(0,20,66,0.04);
  transition:      border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.home-cat-card:hover {
  border-color: rgba(0,141,78,0.30);
  box-shadow:   0 6px 22px rgba(0,141,78,0.10);
  transform:    translateY(-3px);
}

.home-cat-icon {
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  justify-content: center;
  width:       40px;
  height:      40px;
  border-radius: 10px;
  background:  rgba(4,39,102,0.05);
  color:       #042766;
  transition:  background 0.2s, color 0.2s;
}
.home-cat-card:hover .home-cat-icon {
  background: rgba(0,141,78,0.10);
  color:      #008D4E;
}

.home-cat-body {
  display:        flex;
  flex-direction: column;
  gap:            0.2rem;
  flex:           1;
  min-width:      0;
}

.home-cat-name {
  font-family:   var(--font-headline);
  font-weight:   600;
  font-size:     0.875rem;
  color:         var(--color-primary);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  transition:    color 0.2s;
}
.home-cat-card:hover .home-cat-name { color: #008D4E; }

.home-cat-desc {
  font-size:     0.775rem;
  color:         rgba(0,20,66,0.50);
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
  font-weight:   400;
}

.home-cat-arrow {
  flex-shrink: 0;
  color:       rgba(0,20,66,0.20);
  transition:  color 0.2s, transform 0.2s;
}
.home-cat-card:hover .home-cat-arrow {
  color:     #008D4E;
  transform: translateX(3px);
}


/* ── 9b. EXPORT RESOURCES ────────────────────────── */
.res-section { background: #ffffff; }

.res-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1rem;
}
@media (max-width: 900px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .res-grid { grid-template-columns: 1fr; } }

.res-card {
  display:         flex;
  flex-direction:  column;
  gap:             0.75rem;
  padding:         1.25rem 1.2rem 1.1rem;
  background:      #ffffff;
  border:          1.5px solid #e5e7eb;
  border-radius:   14px;
  text-decoration: none;
  color:           inherit;
  box-shadow:      0 1px 4px rgba(0,20,66,0.05);
  transition:      border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.res-card:hover {
  border-color: rgba(0,141,78,0.30);
  box-shadow:   0 8px 28px rgba(0,141,78,0.10);
  transform:    translateY(-3px);
}

.res-icon-wrap {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  height:          44px;
  border-radius:   10px;
  background:      rgba(4,39,102,0.06);
  color:           #042766;
  flex-shrink:     0;
  transition:      background 0.2s, color 0.2s;
}
.res-card:hover .res-icon-wrap {
  background: rgba(0,141,78,0.10);
  color:      #008D4E;
}

.res-info { flex: 1; }
.res-name {
  font-family:   var(--font-headline);
  font-weight:   700;
  font-size:     0.9rem;
  color:         var(--color-primary);
  margin-bottom: 0.3rem;
  transition:    color 0.2s;
  display:       -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:      hidden;
}
.res-card:hover .res-name { color: #008D4E; }

.res-desc {
  font-size:   0.78rem;
  color:       rgba(0,20,66,0.52);
  line-height: 1.55;
  display:     -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:    hidden;
}

.res-footer {
  display:     flex;
  align-items: center;
  justify-content: space-between;
  gap:         0.5rem;
  margin-top:  0.15rem;
}

.res-filetype {
  font-size:   0.72rem;
  font-weight: 600;
  color:       rgba(0,20,66,0.40);
  letter-spacing: 0.01em;
}

.res-cta-btn {
  display:         inline-flex;
  align-items:     center;
  padding:         0.38rem 0.95rem;
  background:      #008D4E;
  color:           #ffffff;
  border-radius:   7px;
  font-family:     var(--font-headline);
  font-size:       0.75rem;
  font-weight:     700;
  white-space:     nowrap;
  box-shadow:      0 2px 6px rgba(0,141,78,0.16);
  transition:      background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.res-card:hover .res-cta-btn {
  background: #007040;
  box-shadow: 0 4px 12px rgba(0,141,78,0.28);
  transform:  translateY(-1px);
}

/* ── RESOURCES BANNER ───────────────────────────────── */
.res-banner {
  display:       flex;
  align-items:   center;
  gap:           3rem;
  background:    linear-gradient(135deg, var(--color-header) 0%, #0d3d8c 100%);
  border-radius: var(--radius-lg);
  padding:       3rem 3rem;
  color:         #fff;
}

.res-banner-left  { flex: 1; }
.res-banner-right {
  display:        flex;
  flex-direction: column;
  gap:            1.5rem;
  flex-shrink:    0;
}

.res-banner-eyebrow {
  display:        inline-block;
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          #2be881;
  margin-bottom:  0.6rem;
}

.res-banner-title {
  font-size:   1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin:      0 0 0.75rem;
  color:       #fff;
}

.res-banner-sub {
  font-size:   0.875rem;
  color:       rgba(255,255,255,0.68);
  line-height: 1.7;
  margin:      0 0 1.25rem;
  max-width:   480px;
}

.res-banner-pills {
  display:     flex;
  flex-wrap:   wrap;
  gap:         0.4rem;
  margin-bottom: 1.75rem;
}

.res-banner-pills span {
  font-size:     0.75rem;
  font-weight:   500;
  padding:       0.3rem 0.7rem;
  border-radius: 50px;
  background:    rgba(255,255,255,0.10);
  color:         rgba(255,255,255,0.75);
  border:        1px solid rgba(255,255,255,0.12);
}

.res-banner-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  padding:         0.75rem 1.75rem;
  background:      #008D4E;
  color:           #ffffff !important;
  border-radius:   50px;
  font-size:       0.9rem;
  font-weight:     700;
  text-decoration: none !important;
  transition:      background 0.2s;
}
.res-banner-btn:hover {
  background: #006d3c;
  color:      #ffffff !important;
}

.res-banner-stat {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  background:     rgba(255,255,255,0.07);
  border:         1px solid rgba(255,255,255,0.12);
  border-radius:  var(--radius-md);
  padding:        1.1rem 1.75rem;
  text-align:     center;
  min-width:      110px;
}

.res-stat-num {
  font-size:   1.8rem;
  font-weight: 800;
  color:       #2be881;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.res-stat-label {
  font-size: 0.72rem;
  color:     rgba(255,255,255,0.55);
  font-weight: 500;
}

@media (max-width: 860px) {
  .res-banner          { flex-direction: column; padding: 2rem 1.5rem; gap: 2rem; }
  .res-banner-right    { flex-direction: row; width: 100%; justify-content: space-around; }
  .res-banner-stat     { flex: 1; }
}

@media (max-width: 480px) {
  .res-banner-title    { font-size: 1.3rem; }
  .res-banner-right    { gap: 0.75rem; }
  .res-banner-stat     { padding: 0.85rem 0.75rem; }
  .res-stat-num        { font-size: 1.4rem; }
}

/* ── 9c. WHY EXIMIGO ─────────────────────────────── */
.why-section { background: #f8faff; }

.why-header {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  margin-bottom:  2.5rem;
  gap:            0.5rem;
}
.why-eyebrow {
  display:        inline-block;
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          #008D4E;
}
.why-title {
  font-family:    var(--font-headline);
  font-size:      clamp(1.5rem, 3vw, 2rem);
  font-weight:    800;
  color:          var(--color-primary);
  letter-spacing: -0.02em;
  margin:         0;
}

.why-intro {
  font-family: var(--font-body);
  font-size:   0.95rem;
  color:       var(--color-text-muted);
  line-height: 1.75;
  max-width:   640px;
  margin:      0.75rem 0 0;
}

.why-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   1.5rem;
}
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            0.75rem;
  padding:        1.5rem 1.25rem;
  background:     #ffffff;
  border:         1.5px solid #e9edf5;
  border-radius:  14px;
  transition:     border-color 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  border-color: rgba(0,141,78,0.25);
  box-shadow:   0 6px 20px rgba(0,141,78,0.08);
}

.why-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  height:          44px;
  border-radius:   10px;
  background:      rgba(4,39,102,0.06);
  color:           #042766;
  flex-shrink:     0;
  transition:      background 0.2s, color 0.2s;
}
.why-card:hover .why-icon {
  background: rgba(0,141,78,0.10);
  color:      #008D4E;
}

.why-card h3 {
  font-family:  var(--font-headline);
  font-size:    0.95rem;
  font-weight:  700;
  color:        var(--color-primary);
  line-height:  1.3;
  margin:       0;
}
.why-card p {
  font-size:   0.82rem;
  color:       rgba(0,20,66,0.55);
  line-height: 1.65;
  margin:      0;
}

/* ── 19b. LOAD MORE ───────────────────────────────── */

/* Card fade-in when appended via JS */
@keyframes card-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-card-enter { opacity: 0; }
.post-card-visible { animation: card-fade-up 0.32s ease forwards; }

/* post-card-desc (replaces inline style) */
.post-card-desc {
  font-size:   0.83rem;
  color:       var(--color-text-muted, #888);
  line-height: 1.5;
  margin-top:  0.4rem;
  flex:        1;
}

/* Load more container */
.load-more-wrap {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             0.9rem;
  margin-top:      2.75rem;
}

/* Primary button */
.btn-load-more {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             0.6rem;
  padding:         0.78rem 2.2rem;
  background:      #008D4E;
  color:           #ffffff;
  border:          none;
  border-radius:   10px;
  font-family:     var(--font-headline);
  font-size:       0.925rem;
  font-weight:     700;
  cursor:          pointer;
  min-width:       200px;
  box-shadow:      0 2px 8px rgba(0,141,78,0.18);
  transition:      background 0.2s, box-shadow 0.2s, transform 0.18s;
  position:        relative;
  overflow:        hidden;
}
.btn-load-more:hover:not(.is-loading) {
  background:  #007040;
  box-shadow:  0 6px 22px rgba(0,141,78,0.32);
  transform:   translateY(-2px);
}
.btn-load-more:active:not(.is-loading) { transform: translateY(0); }

/* Spinner (hidden by default) */
.btn-load-more-spinner {
  display:       none;
  width:         16px;
  height:        16px;
  border:        2.5px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  flex-shrink:   0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-load-more.is-loading .btn-load-more-label { opacity: 0.65; }
.btn-load-more.is-loading .btn-load-more-spinner {
  display:   block;
  animation: spin 0.65s linear infinite;
}
.btn-load-more.is-loading { cursor: default; pointer-events: none; }

/* "View All" text link */
.load-more-view-all {
  font-size:       0.875rem;
  font-weight:     500;
  color:           rgba(0,20,66,0.55);
  text-decoration: none;
  transition:      color 0.18s;
}
.load-more-view-all:hover { color: #008D4E; }

@media (max-width: 600px) {
  .btn-load-more {
    width:      auto;
    max-width:  none;
    padding:    0.7rem 2rem;
  }
  .load-more-wrap {
    margin-top:      1.75rem;
    align-items:     center;
    justify-content: center;
    text-align:      center;
  }
  .load-more-view-all { display: none; }
}

/* ── 20a. AD SLOTS ────────────────────────────────── */
/* Hide empty ad slots — Google Ads will populate them and make them visible */
.ad-slot {
  display: none;
}
.ad-slot:not(:empty) {
  display:       block;
  background:    rgba(0,20,66,0.025);
  border-color:  rgba(0,20,66,0.06);
  border-radius: var(--radius-md);
}


/* ── 20. SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar             { width: 5px; height: 5px; }
::-webkit-scrollbar-track       { background: transparent; }
::-webkit-scrollbar-thumb       { background: rgba(0,20,66,0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,20,66,0.32); }


/* ── 21. MOBILE BOTTOM NAVIGATION ─────────────────── */
.mobile-bottom-nav {
  display:          none; /* hidden on desktop */
}

@media (max-width: 768px) {
  /* Push page content above the bottom nav */
  body {
    padding-bottom: 64px;
  }

  /* Bottom nav bar */
  .mobile-bottom-nav {
    display:          flex;
    position:         fixed;
    bottom:           0;
    left:             0;
    right:            0;
    z-index:          1100;
    background:       #ffffff;
    border-top:       1px solid rgba(0,20,66,0.10);
    box-shadow:       0 -4px 20px rgba(0,20,66,0.08);
    /* safe-area for iPhone home bar */
    padding-bottom:   env(safe-area-inset-bottom, 0px);
    height:           calc(64px + env(safe-area-inset-bottom, 0px));
    align-items:      stretch;
    justify-content:  space-around;
  }

  .mob-nav-item {
    display:        flex;
    flex-direction: column;
    align-items:    center;
    justify-content:center;
    gap:            3px;
    flex:           1;
    text-decoration:none;
    color:          rgba(0,20,66,0.42);
    font-family:    var(--font-body);
    font-size:      0.62rem;
    font-weight:    500;
    letter-spacing: 0.01em;
    padding:        8px 4px 6px;
    transition:     color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-nav-item svg {
    flex-shrink: 0;
    transition:  stroke 0.15s, transform 0.15s;
  }

  .mob-nav-item:hover,
  .mob-nav-item.mob-nav-active {
    color: var(--color-primary);
  }

  .mob-nav-item.mob-nav-active svg {
    transform: translateY(-1px);
  }

  /* Active indicator dot */
  .mob-nav-item.mob-nav-active::after {
    content:      '';
    display:      block;
    width:        4px;
    height:       4px;
    border-radius:50%;
    background:   var(--color-secondary);
    margin-top:   2px;
  }

  /* Show hamburger on mobile */
  .menu-toggle {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           38px;
    height:          38px;
    border-radius:   8px;
    background:      rgba(4, 39, 102, 0.08);
    color:           #042766;
    border:          none;
    cursor:          pointer;
  }
  .menu-toggle svg { display: block; color: #042766; stroke: #042766; }

  /* Keep desktop site-nav hidden on mobile */
  .site-nav { display: none !important; }
}

/* ── MOBILE DRAWER ─────────────────────────────────── */
.mobile-drawer {
  position:       fixed;
  inset:          0;
  z-index:        1800;
  pointer-events: none;
  visibility:     hidden;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  visibility:     visible;
}

.mobile-drawer-backdrop {
  position:   absolute;
  inset:      0;
  background: rgba(4, 39, 102, 0.45);
  backdrop-filter:      blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity:    0;
  transition: opacity 0.25s ease;
}
.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }

.mobile-drawer-inner {
  position:        absolute;
  top:             0;
  left:            0;
  width:           78vw;
  max-width:       300px;
  height:          100dvh;
  z-index:         1;
  background:      #042766;
  padding:         calc(var(--header-h) + 1rem) 0 2rem;
  display:         flex;
  flex-direction:  column;
  gap:             0;
  box-shadow:      6px 0 32px rgba(0,0,0,0.28);
  transform:       translateX(-100%);
  transition:      transform 0.28s cubic-bezier(.4,0,.2,1);
  overflow-y:      auto;
}
.mobile-drawer.is-open .mobile-drawer-inner { transform: translateX(0); }

.mob-drawer-link {
  display:         flex;
  align-items:     center;
  gap:             0.75rem;
  padding:         0.85rem 1.5rem;
  color:           rgba(255,255,255,0.75);
  font-size:       0.975rem;
  font-weight:     500;
  text-decoration: none;
  transition:      background 0.16s, color 0.16s;
  border-left:     3px solid transparent;
}
.mob-drawer-link:hover {
  background:  rgba(255,255,255,0.08);
  color:       #fff;
}
.mob-drawer-link.active {
  color:        #2be881;
  border-left-color: #2be881;
  background:   rgba(43,232,129,0.08);
}
.mob-drawer-link svg { flex-shrink: 0; opacity: 0.75; }
.mob-drawer-link.active svg { opacity: 1; }

.mobile-drawer-divider {
  height:     1px;
  background: rgba(255,255,255,0.10);
  margin:     0.75rem 1.5rem;
}

.mobile-drawer-secondary .mob-drawer-link {
  font-size:   0.9rem;
  color:       rgba(255,255,255,0.55);
}
.mob-drawer-newsletter {
  color:       #2be881 !important;
  font-weight: 600;
}

/* ── 22. POST PAGE LAYOUT FIX ─────────────────────── */
/* .post-page-layout is now inside .container — remove duplicate centering */
.post-page-layout {
  max-width:     none;
  margin-left:   0;
  margin-right:  0;
  padding-left:  0;
  padding-right: 0;
}


/* ── 23. SOCIAL ICONS ────────────────────────────── */

/* ---- Article share bar ---- */
.social-share {
  flex-direction: column;
  gap:            0.75rem;
  padding:        1.5rem 0;
}

.share-label {
  font-size:   0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:       var(--color-text-muted, #888);
}

.share-buttons {
  display:   flex;
  flex-wrap: wrap;
  gap:       0.5rem;
}

.share-btn {
  display:     inline-flex;
  align-items: center;
  gap:         0.45rem;
  padding:     0.5rem 1rem;
  border-radius: 50px;
  font-size:   0.82rem;
  font-weight: 600;
  line-height: 1;
  border:      none;
  cursor:      pointer;
  text-decoration: none;
  transition:  opacity 0.15s, transform 0.15s;
  color:       #fff;
}

.share-btn:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }
.share-btn svg   { flex-shrink: 0; }

.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0077b5; }
.share-facebook { background: #1877f2; }
.share-twitter  { background: #000000; }
.share-copy     { background: rgba(0,20,66,0.08); color: var(--color-primary, #001442); }
.share-copy:hover { background: rgba(0,20,66,0.14); color: var(--color-primary, #001442); }

/* ---- Footer social icons ---- */
.social-btn {
  width:       40px;
  height:      40px;
  border-radius: 50%;
  border:      1.5px solid rgba(255,255,255,0.22);
  background:  transparent;
  color:       rgba(255,255,255,0.8);
  display:     flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:  background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.social-btn:hover { transform: translateY(-3px); color: #fff; }

.social-btn svg { display: block; flex-shrink: 0; }

/* Brand-colored hover per platform */
.social-linkedin:hover  { background: #0077b5; border-color: #0077b5; }
.social-twitter:hover   { background: #000000; border-color: #000000; }
.social-instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e1306c; }
.social-youtube:hover   { background: #ff0000; border-color: #ff0000; }
.social-whatsapp:hover  { background: #25d366; border-color: #25d366; }
.social-facebook:hover  { background: #1877f2; border-color: #1877f2; }

.social-btn-inactive {
  opacity:        0.3;
  cursor:         default;
  pointer-events: none;
}


/* ── 24. TABLE OF CONTENTS ────────────────────────── */

/* ---- Inline article TOC (always visible) ---- */

/* Toggle button */
.toc-toggle {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  width:           100%;
  background:      none;
  border:          none;
  padding:         0;
  margin:          0;
  font-size:       1rem;
  font-weight:     700;
  color:           inherit;
  cursor:          pointer;
  font-family:     var(--font-headline, inherit);
}

.toc-toggle svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--color-secondary, #006d3c);
}

.toc-toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

/* Default: collapsed. JS adds .toc-open when expanded */
#toc-inline-list {
  display: none;
}
#toc-inline-list.toc-open {
  display: flex;
}

/* ---- Shared TOC list styles ---- */
.toc-list {
  list-style:  none;
  padding:     0;
  margin:      0.75rem 0 0;
  display:     flex;
  flex-direction: column;
  gap:         0.1rem;
}

.toc-list li a {
  display:       flex;
  align-items:   baseline;
  gap:           0.35rem;
  padding:       0.3rem 0.5rem;
  border-radius: 5px;
  font-size:     0.875rem;
  color:         var(--color-text, #1a1a2e);
  text-decoration: none;
  line-height:   1.4;
  transition:    background 0.15s, color 0.15s;
  border-left:   3px solid transparent;
}

.toc-list li a:hover {
  background:  rgba(0, 109, 60, 0.07);
  color:       var(--color-secondary, #006d3c);
  border-color: rgba(0, 109, 60, 0.3);
}

/* Active link (set by IntersectionObserver JS) */
.toc-list a.toc-active {
  color:        var(--color-secondary, #006d3c);
  font-weight:  600;
  background:   rgba(0, 109, 60, 0.08);
  border-color: var(--color-secondary, #006d3c);
}

/* h3 sub-items: indent */
.toc-list li.toc-h3 a {
  padding-left: 1.25rem;
  font-size:    0.825rem;
  color:        var(--color-text-muted, #666);
}

.toc-list li.toc-h3 a:hover,
.toc-list li.toc-h3 a.toc-active {
  color: var(--color-secondary, #006d3c);
}

/* Section number badge */
.toc-num {
  flex-shrink:  0;
  font-variant-numeric: tabular-nums;
  color:        var(--color-secondary, #006d3c);
  font-weight:  700;
  font-size:    0.78rem;
  min-width:    1.4rem;
}

/* Sidebar TOC: tighter spacing, max-height + scroll for very long articles */
.toc-sidebar-list {
  max-height:  calc(100vh - 220px);
  overflow-y:  auto;
  scrollbar-width: thin;
}


/* ── LEGAL PAGES ───────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin:    0 auto;
  padding-bottom: 3rem;
}

.legal-intro {
  font-size:    1rem;
  line-height:  1.8;
  color:        var(--color-text-muted);
  background:   #f0f4fb;
  border-left:  4px solid var(--color-secondary);
  padding:      1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family:   var(--font-headline);
  font-size:     1.15rem;
  font-weight:   800;
  color:         var(--color-primary);
  margin:        2rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-card-border);
}

.legal-page h3 {
  font-family: var(--font-headline);
  font-size:   0.95rem;
  font-weight: 700;
  color:       var(--color-primary);
  margin:      1.25rem 0 0.35rem;
}

.legal-page p {
  font-family: var(--font-body);
  font-size:   0.93rem;
  line-height: 1.8;
  color:       var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-page ul li {
  font-family: var(--font-body);
  font-size:   0.93rem;
  line-height: 1.8;
  color:       var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.legal-page a {
  color:            var(--color-secondary);
  font-weight:      600;
  text-decoration:  underline;
  text-underline-offset: 2px;
}

/* ── CONTACT PAGE ──────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

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

.contact-section-title {
  font-family:   var(--font-headline);
  font-size:     1.3rem;
  font-weight:   800;
  color:         var(--color-primary);
  margin-bottom: 0.4rem;
}

.contact-section-desc {
  font-size:     0.9rem;
  color:         var(--color-text-muted);
  margin-bottom: 1.75rem;
  line-height:   1.7;
}

.contact-form {
  display:        flex;
  flex-direction: column;
  gap:            1.1rem;
}

.contact-field {
  display:        flex;
  flex-direction: column;
  gap:            0.4rem;
}

.contact-field label {
  font-family: var(--font-headline);
  font-size:   0.82rem;
  font-weight: 700;
  color:       var(--color-primary);
  letter-spacing: 0.02em;
}

.contact-field label span { color: var(--color-secondary); }

.contact-field input,
.contact-field select,
.contact-field textarea {
  font-family:   var(--font-body);
  font-size:     0.9rem;
  color:         var(--color-text);
  background:    #fff;
  border:        1.5px solid var(--color-card-border);
  border-radius: var(--radius-sm);
  padding:       0.65rem 0.9rem;
  width:         100%;
  transition:    border-color 0.2s, box-shadow 0.2s;
  outline:       none;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--color-secondary);
  box-shadow:   0 0 0 3px rgba(0,141,78,0.1);
}

.contact-field textarea { resize: vertical; min-height: 130px; }

.contact-submit-btn {
  display:     inline-flex;
  align-items: center;
  gap:         0.5rem;
  padding:     0.75rem 1.75rem;
  background:  var(--color-secondary);
  color:       #fff;
  border:      none;
  border-radius: 50px;
  font-family: var(--font-headline);
  font-size:   0.9rem;
  font-weight: 700;
  cursor:      pointer;
  transition:  background 0.2s, transform 0.15s;
  align-self:  flex-start;
}

.contact-submit-btn:hover  { background: var(--color-cta-hover); transform: translateY(-1px); }
.contact-submit-btn:active { transform: translateY(0); }
.contact-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.contact-form-note {
  font-size:  0.85rem;
  min-height: 1.4em;
  margin:     0;
}

.contact-info-wrap {
  display:        flex;
  flex-direction: column;
  gap:            1rem;
  position:       sticky;
  top:            calc(var(--header-h) + 1.5rem);
}

.contact-info-card {
  display:       flex;
  align-items:   flex-start;
  gap:           1rem;
  background:    #fff;
  border:        1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding:       1.1rem 1.25rem;
}

.contact-info-icon {
  width:         42px;
  height:        42px;
  flex-shrink:   0;
  background:    rgba(0,141,78,0.08);
  border-radius: var(--radius-sm);
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--color-secondary);
}

.contact-info-card h3 {
  font-family:   var(--font-headline);
  font-size:     0.85rem;
  font-weight:   700;
  color:         var(--color-primary);
  margin-bottom: 0.2rem;
}

.contact-info-card p {
  font-size:  0.85rem;
  color:      var(--color-text-muted);
  line-height: 1.5;
  margin:     0;
}

.contact-info-card a {
  color:           var(--color-secondary);
  font-weight:     600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-notice {
  background:    #fff8e1;
  border:        1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding:       1rem 1.1rem;
  font-size:     0.83rem;
  color:         #6d4c00;
  line-height:   1.65;
}

.contact-notice p { margin: 0; }




/* ── LIVE SEARCH OVERLAY ───────────────────────────── */

/* Prevent body scroll when overlay is open */
body.search-open { overflow: hidden; }

/* Header search button — keep existing icon look, switch to button */
.header-search-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

/* Overlay backdrop */
.site-search-overlay {
  position:  fixed;
  inset:     0;
  z-index:   2000;
  display:   flex;
  align-items: flex-start;
  justify-content: center;
  padding:   0;
  pointer-events: none;
  visibility: hidden;
}

.site-search-overlay.is-open {
  pointer-events: auto;
  visibility:     visible;
}

.site-search-backdrop {
  position:             absolute;
  inset:                0;
  background:           rgba(4, 39, 102, 0.35);
  backdrop-filter:      blur(8px) saturate(1.4);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  opacity:              0;
  transition:           opacity 0.25s ease;
}

.site-search-overlay.is-open .site-search-backdrop { opacity: 1; }

/* Search box — frosted glass */
.site-search-box {
  position:      relative;
  width:         100%;
  max-width:     640px;
  margin:        calc(var(--header-h) + 1.5rem) 1rem 0;
  background:    rgba(255, 255, 255, 0.92);
  backdrop-filter:      blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border:        1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow:    0 24px 64px rgba(4,39,102,0.18), 0 2px 12px rgba(0,0,0,0.06);
  transform:     translateY(-14px);
  opacity:       0;
  transition:    transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.22s ease;
  overflow:      hidden;
  max-height:    calc(100vh - var(--header-h) - 3rem);
  display:       flex;
  flex-direction: column;
}

.site-search-overlay.is-open .site-search-box {
  transform: translateY(0);
  opacity:   1;
}

/* Input row */
.site-search-input-wrap {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  padding:     0 1.1rem;
  border-bottom: 1px solid var(--color-card-border);
  flex-shrink: 0;
}

.site-search-input-icon {
  flex-shrink: 0;
  color:       var(--color-text-muted);
}

.site-search-input {
  flex:        1;
  border:      none;
  outline:     none;
  font-family: var(--font-body);
  font-size:   1rem;
  color:       var(--color-text);
  background:  transparent;
  padding:     1rem 0;
  min-width:   0;
}

.site-search-input::placeholder { color: var(--color-text-muted); }

.site-search-clear,
.site-search-close-btn {
  background:  none;
  border:      none;
  cursor:      pointer;
  display:     inline-flex;
  align-items: center;
  gap:         0.3rem;
  padding:     0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  color:       var(--color-text-muted);
  transition:  background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.site-search-clear:hover,
.site-search-close-btn:hover {
  background: #f0f4fb;
  color:      var(--color-primary);
}

.site-search-close-btn span {
  font-family: var(--font-body);
  font-size:   0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color:       var(--color-text-muted);
}

/* Results area */
.site-search-results {
  overflow-y:  auto;
  max-height:  420px;
  flex:        1;
}

.search-result-list {
  list-style: none;
  margin:     0;
  padding:    0.5rem 0;
}

.search-result-item { margin: 0; }

.search-result-link {
  display:     flex;
  align-items: center;
  gap:         0.75rem;
  padding:     0.75rem 1.25rem;
  text-decoration: none;
  transition:  background 0.12s;
}

.search-result-item.is-active .search-result-link,
.search-result-link:hover {
  background: #f0f4fb;
}

.search-result-body {
  flex:        1;
  min-width:   0;
  display:     flex;
  flex-direction: column;
  gap:         0.2rem;
}

.search-result-badge {
  display:       inline-block;
  font-family:   var(--font-headline);
  font-size:     0.65rem;
  font-weight:   700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:         #fff;
  padding:       0.15rem 0.5rem;
  border-radius: 50px;
  align-self:    flex-start;
  line-height:   1.4;
}

.search-result-title {
  font-family: var(--font-headline);
  font-size:   0.9rem;
  font-weight: 600;
  color:       var(--color-primary);
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.search-result-desc {
  font-family: var(--font-body);
  font-size:   0.78rem;
  color:       var(--color-text-muted);
  white-space: nowrap;
  overflow:    hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.search-result-arrow {
  flex-shrink: 0;
  color:       var(--color-text-muted);
  opacity:     0;
  transition:  opacity 0.12s;
}

.search-result-item.is-active .search-result-arrow,
.search-result-link:hover .search-result-arrow { opacity: 1; }

/* Highlighted match */
mark.search-highlight {
  background:    rgba(0,141,78,0.15);
  color:         inherit;
  border-radius: 2px;
  padding:       0 1px;
}

/* No results */
.search-no-results {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  padding:        2.5rem 1.5rem;
  gap:            0.5rem;
  color:          var(--color-text-muted);
  text-align:     center;
}

.search-no-results svg { opacity: 0.35; }

.search-no-results p {
  font-family: var(--font-body);
  font-size:   0.9rem;
  margin:      0;
}

.search-no-results span {
  font-size: 0.8rem;
  opacity:   0.7;
}

/* Loading dots */
.search-loading {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0.4rem;
  padding:         2rem;
}

.search-loading span {
  width:            7px;
  height:           7px;
  background:       var(--color-secondary);
  border-radius:    50%;
  animation:        search-dot 0.9s ease-in-out infinite;
  opacity:          0.5;
}

.search-loading span:nth-child(2) { animation-delay: 0.15s; }
.search-loading span:nth-child(3) { animation-delay: 0.30s; }

@keyframes search-dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1;   }
}

/* See all results footer */
.search-see-all {
  border-top:  1px solid var(--color-card-border);
  padding:     0.75rem 1.25rem;
  text-align:  center;
}

.search-see-all a {
  font-family: var(--font-headline);
  font-size:   0.82rem;
  font-weight: 600;
  color:       var(--color-secondary);
  text-decoration: none;
}

.search-see-all a:hover { text-decoration: underline; }

/* Mobile — full screen */
@media (max-width: 600px) {
  /* Overlay wrapper itself is the blurred backdrop on mobile */
  .site-search-overlay.is-open {
    align-items:          flex-start;
    backdrop-filter:      blur(12px) saturate(1.8);
    -webkit-backdrop-filter: blur(12px) saturate(1.8);
    background:           rgba(4, 39, 102, 0.45);
  }

  /* Backdrop sibling is redundant — box covers it */
  .site-search-backdrop { display: none; }

  /* Box is now transparent so the blurred overlay shows through */
  .site-search-box {
    max-width:      100%;
    margin:         0;
    border-radius:  0;
    height:         100dvh;
    max-height:     100dvh;
    background:     rgba(255, 255, 255, 0.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border:         none;
    box-shadow:     none;
  }

  /* Input row keeps a solid white pill so text is readable */
  .site-search-input-wrap {
    background:    rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    margin:        0.75rem;
    border-bottom: none;
  }

  /* Results area: slightly frosted on the dark background */
  .site-search-results {
    max-height:  calc(100dvh - 72px);
    background:  transparent;
  }

  /* Result items readable on dark background */
  .site-search-result-item {
    color:       #fff;
    border-bottom-color: rgba(255,255,255,0.12);
  }
  .site-search-result-item:hover,
  .site-search-result-item.is-focused {
    background: rgba(255,255,255,0.15);
  }
  .site-search-result-title  { color: #fff; }
  .site-search-result-desc   { color: rgba(255,255,255,0.72); }
  .site-search-result-badge  { background: rgba(255,255,255,0.18); color: #fff; }
  .site-search-empty,
  .site-search-loading       { color: rgba(255,255,255,0.65); }
}




/* ── FOOTER OVERHAUL ───────────────────────────────── */
/* ── FOOTER REDESIGN ─────────────────────────────────── */
.footer-inner {
  max-width: var(--max-width);
  margin:    0 auto;
  padding:   3rem 2rem 0;
}

.footer-top {
  display:   flex;
  gap:       3rem;
  align-items: flex-start;
}

/* Brand column */
.footer-brand-col {
  flex:      0 0 260px;
  min-width: 0;
}

.footer-logo {
  display:     inline-flex;
  align-items: center;
  gap:         0.55rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.footer-logo img {
  width:  42px;
  height: 42px;
  border-radius: 8px;
}

.footer-logo span {
  font-family:    var(--font-headline);
  font-size:      1.25rem;
  font-weight:    900;
  color:          #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-brand-e {
  color:      #ffffff;
  font-style: normal;
}

.footer-tagline {
  font-size:   0.82rem;
  color:       rgba(255,255,255,0.50);
  line-height: 1.65;
  margin:      0 0 1.25rem;
}

/* Social */
.footer-social {
  display: flex;
  gap:     0.5rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           34px;
  height:          34px;
  border-radius:   8px;
  background:      rgba(255,255,255,0.07);
  color:           rgba(255,255,255,0.55);
  text-decoration: none;
  transition:      background 0.18s, color 0.18s;
  cursor:          pointer;
  border:          none;
}

.footer-social-btn:hover { background: #2be881; color: #001442; }
.footer-social-inactive  { opacity: 0.35; cursor: default; }

/* Nav columns */
.footer-nav-cols {
  flex:    1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap:     1.5rem 2rem;
}

.footer-nav-col h4 {
  font-family:    var(--font-headline);
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.38);
  margin-bottom:  0.9rem;
}

.footer-nav-col ul {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    flex;
  flex-direction: column;
  gap:        0.5rem;
}

.footer-nav-col ul a {
  font-size:       0.845rem;
  color:           rgba(255,255,255,0.58);
  text-decoration: none;
  transition:      color 0.16s;
  line-height:     1.4;
}

.footer-nav-col ul a:hover { color: #2be881; }

/* Divider */
.footer-divider {
  height:     1px;
  background: rgba(255,255,255,0.07);
  margin:     2.5rem 0 0;
}

/* Bottom bar */
.footer-bottom-bar {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             0.5rem;
  padding:         1rem 0 1.5rem;
  font-size:       0.78rem;
  color:           rgba(255,255,255,0.30);
}

/* Responsive */
@media (max-width: 960px) {
  .footer-top          { flex-direction: column; gap: 2rem; }
  .footer-brand-col    { flex: none; width: 100%; }
  .footer-nav-cols     { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .footer-inner        { padding: 2.5rem 1.25rem 0; }
  .footer-nav-cols     { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom-bar   { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

/* ── MOBILE SECTION SPACING (hero → FAQ) ──────────── */
@media (max-width: 600px) {
  /* Consistent left-right padding via container */
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }

  /* Equal vertical gap between every section */
  .section,
  .tools-section,
  .faq-section,
  .why-section,
  .resources-section,
  .newsletter-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  /* Section titles — tighter on mobile */
  .section-title { font-size: 1.35rem; }
  .section-header { margin-bottom: 1.25rem; }

  /* FAQ section */
  .faq-section  { padding: 2.5rem 0; }
  .faq-wrap     { padding: 0 1.1rem; }
  .faq-header   { margin-bottom: 1.5rem; }

  /* Tools & Resources grids — consistent inner gap */
  .tools-grid,
  .articles-grid { gap: 1rem; }

  /* Load more wrap breathing room */
  .load-more-wrap { margin-top: 1.5rem; margin-bottom: 0.5rem; }

  /* Why Eximigo section */
  .why-section  { padding: 2.5rem 0; }
  .why-grid     { gap: 1rem; }
}

/* ── RESOURCES SIMPLE PAGE ────────────────────────── */
.resources-simple-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap:                   1.25rem;
}

.res-card {
  display:       flex;
  gap:           1rem;
  background:    #fff;
  border:        1px solid rgba(0,20,66,0.09);
  border-radius: 14px;
  padding:       1.25rem;
  transition:    box-shadow 0.2s, transform 0.18s;
}
.res-card:hover {
  box-shadow: 0 6px 24px rgba(4,39,102,0.10);
  transform:  translateY(-2px);
}

.res-card-icon {
  flex-shrink:     0;
  width:           48px;
  height:          48px;
  border-radius:   12px;
  background:      rgba(0,141,78,0.08);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           #008D4E;
}

.res-card-body {
  flex:           1;
  min-width:      0;
  display:        flex;
  flex-direction: column;
  gap:            0.75rem;
}

.res-card-top { display: flex; flex-direction: column; gap: 0.35rem; }

.res-type-badge {
  display:      inline-block;
  padding:      0.18rem 0.55rem;
  border-radius: 4px;
  font-size:    0.7rem;
  font-weight:  700;
  width:        fit-content;
}

.res-card-title {
  font-family:  var(--font-headline);
  font-size:    0.92rem;
  font-weight:  700;
  color:        #042766;
  line-height:  1.35;
  margin:       0;
}

.res-card-desc {
  font-size:   0.8rem;
  color:       var(--color-text-muted);
  line-height: 1.5;
  margin:      0;
}

.res-download-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.4rem;
  padding:         0.52rem 1.1rem;
  background:      #008D4E;
  color:           #fff;
  border-radius:   8px;
  font-size:       0.82rem;
  font-weight:     600;
  text-decoration: none;
  transition:      background 0.18s;
  width:           fit-content;
}
.res-download-btn:hover { background: #007040; color: #fff; }

@media (max-width: 600px) {
  .resources-simple-grid { grid-template-columns: 1fr; }
  .res-card { flex-direction: column; }
  .res-card-icon { width: 40px; height: 40px; }
}

/* ── RESOURCE DOWNLOAD MODAL ──────────────────────── */
.res-modal-overlay {
  position:       fixed;
  inset:          0;
  z-index:        3000;
  background:     rgba(4,39,102,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display:        flex;
  align-items:    center;
  justify-content: center;
  padding:        1rem;
  opacity:        0;
  visibility:     hidden;
  transition:     opacity 0.22s ease, visibility 0.22s;
}
.res-modal-overlay.is-open { opacity: 1; visibility: visible; }

.res-modal {
  background:    #fff;
  border-radius: 16px;
  padding:       2rem;
  width:         100%;
  max-width:     440px;
  position:      relative;
  text-align:    center;
  box-shadow:    0 24px 60px rgba(4,39,102,0.18);
  transform:     translateY(12px);
  transition:    transform 0.25s ease;
}
.res-modal-overlay.is-open .res-modal { transform: translateY(0); }

.res-modal-close {
  position:   absolute;
  top:        1rem; right: 1rem;
  background: none;
  border:     none;
  cursor:     pointer;
  color:      rgba(0,20,66,0.4);
  padding:    0.25rem;
  transition: color 0.15s;
}
.res-modal-close:hover { color: #042766; }

.res-modal-icon {
  width:           56px;
  height:          56px;
  border-radius:   14px;
  background:      rgba(0,141,78,0.10);
  color:           #008D4E;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin:          0 auto 1rem;
}

.res-modal-title {
  font-family:   var(--font-headline);
  font-size:     1.2rem;
  font-weight:   800;
  color:         #042766;
  margin-bottom: 0.35rem;
}
.res-modal-resource {
  font-size:     0.82rem;
  font-weight:   600;
  color:         #008D4E;
  margin-bottom: 0.5rem;
  line-height:   1.4;
}
.res-modal-note {
  font-size:     0.82rem;
  color:         var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.res-modal-form {
  display:        flex;
  flex-direction: column;
  gap:            0.65rem;
}
.res-modal-form input[type="email"] {
  width:         100%;
  padding:       0.75rem 1rem;
  border:        1.5px solid rgba(0,20,66,0.15);
  border-radius: 9px;
  font-size:     0.9rem;
  outline:       none;
  transition:    border-color 0.18s;
  box-sizing:    border-box;
}
.res-modal-form input[type="email"]:focus { border-color: #008D4E; }

.res-modal-submit {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             0.45rem;
  width:           100%;
  padding:         0.8rem;
  background:      #008D4E;
  color:           #fff;
  border:          none;
  border-radius:   9px;
  font-size:       0.95rem;
  font-weight:     700;
  cursor:          pointer;
  transition:      background 0.18s;
}
.res-modal-submit:hover   { background: #007040; }
.res-modal-submit:disabled { opacity: 0.65; cursor: default; }

.res-modal-success {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            0.75rem;
  padding:        0.5rem 0;
}
.res-modal-success p {
  font-size:   0.9rem;
  color:       #042766;
  font-weight: 500;
}

/* ── FOOTER SPACING COMPACT ────────────────────────── */
.newsletter-section   { padding: 2rem 1.25rem; }

/* ── FAQ Accordion (tool pages — <details>/<summary> based) ─────────────── */
details.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}
details.faq-item summary {
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--color-header);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
  transition: background 0.15s;
  border-radius: var(--radius-sm);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::-moz-list-bullet       { display: none; }
details.faq-item summary:hover                   { background: #f4f6fb; }
details.faq-item[open] > summary                 { background: #f4f6fb; border-bottom: 1px solid var(--color-border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.faq-chevron                                     { flex-shrink: 0; transition: transform 0.25s ease; }
details.faq-item[open] .faq-chevron              { transform: rotate(180deg); }
details.faq-item .faq-answer {
  display: block;
  max-height: none;
  overflow: visible;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--color-text);
  transition: none;
}

/* ── INLINE POST CTAs (tools, resources, related) ──────────────────── */
.post-tool-cta,
.post-resource-cta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.post-tool-cta {
  background: #eaf6f0;
  border-left: 4px solid var(--color-secondary);
}

.post-tool-cta::before {
  content: "🛠";
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.post-resource-cta {
  background: #eef2ff;
  border-left: 4px solid #3b5bdb;
}

.post-resource-cta::before {
  content: "📥";
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.post-tool-cta a,
.post-resource-cta a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-tool-cta a:hover,
.post-resource-cta a:hover {
  color: var(--color-secondary);
}

.post-related {
  border-top: 2px solid #e8ecf0;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.post-related h3 {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.post-related ul li::before {
  content: "→ ";
  color: var(--color-secondary);
  font-weight: 700;
}

.post-related ul a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.92rem;
}

.post-related ul a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — COMPREHENSIVE OVERFLOW PREVENTION
   ═══════════════════════════════════════════════════════ */

/* 1. Global: media never exceeds container */
img, video, iframe, embed, object { max-width: 100%; height: auto; }
svg { overflow: hidden; }

/* 2. Form elements respect container width */
input, select, textarea, button { max-width: 100%; }

/* 3. Grid/flex children: prevent implicit minimum width overflow */
.home-cat-grid > *,
.tools-grid > *,
.articles-grid > *,
.related-grid > *,
.res-grid > *,
.why-grid > *,
.footer-grid > *,
.post-page-layout > * { min-width: 0; }

/* 4. Hero section: hard-contain the 1440px SVG art */
.hero { overflow: hidden; max-width: 100%; }
.hero-bg-art { max-width: 100%; }

/* 5. Category carousel: clip overflow at section level */
.category-carousel-section { overflow: hidden; }
.category-carousel { width: 100%; max-width: 100%; }

/* 6. Header: always viewport-width, never bleeds */
.site-header { left: 0; right: 0; width: 100%; }
.header-inner { max-width: 100%; }

/* 7. Article content: prevent wide code/table/pre overflow */
.article-content { overflow-x: hidden; }
.article-content pre  { overflow-x: auto; white-space: pre; max-width: 100%; }
.article-content code { word-break: break-word; }
.article-content img  { max-width: 100%; height: auto; }

/* 8. Container always full-width on mobile */
@media (max-width: 768px) {
  .container { width: 100%; max-width: 100%; }
  .hero-content { width: 100%; }
  .hero-search-wrap { width: 100%; max-width: 100%; }
  .hero-search { width: 100%; box-sizing: border-box; }
  .hero-search input { width: 100%; min-width: 0; }
  .faq-wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* 9. Small phones (≤480px) */
@media (max-width: 480px) {
  /* Header tighter on very small screens */
  .header-inner { padding: 0.65rem 0.875rem; gap: 0.4rem; }
  .site-logo img { height: 28px; }
  .logo-text { font-size: 1.1rem; }
  .logo-tagline { display: none; }

  /* Hero */
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero p  { font-size: 0.95rem; }

  /* Buttons full-width */
  .hero-ctas .btn { width: 100%; max-width: 100%; box-sizing: border-box; }

  /* Stats row: allow wrapping, no min-width overflow */
  .res-banner-right  { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
  .res-banner-stat   { min-width: 0; flex: 1 1 calc(50% - 0.5rem); padding: 0.75rem 0.5rem; }
  .res-stat-num      { font-size: 1.3rem; }

  /* Category cards */
  .home-cat-card { padding: 0.85rem 0.9rem; }
  .home-cat-name, .home-cat-desc { white-space: normal; overflow: visible; text-overflow: clip; }

  /* Nav load more */
  .btn-load-more { min-width: 0; width: auto; padding: 0.7rem 1.5rem; }

  /* Post content */
  .article-content table { font-size: 0.82rem; }
  .article-content th,
  .article-content td   { padding: 0.4rem 0.5rem; }
  .article-content h2   { font-size: 1.3rem; }
  .article-content h3   { font-size: 1.1rem; }

  /* Post page */
  .post-page-layout { gap: 1.5rem; }
  .post-sidebar     { display: none; }
  .post-title       { font-size: 1.5rem; }
}

/* 10. Very small phones (≤360px) */
@media (max-width: 360px) {
  .header-inner { padding: 0.6rem 0.75rem; }
  .site-logo img { height: 26px; }
  .logo-text     { font-size: 1rem; }
  .menu-toggle   { width: 34px; height: 34px; }

  .hero { padding: 2.75rem 0.875rem 2.25rem; }
  .hero h1 { font-size: 1.75rem; }

  .container { padding-left: 0.875rem; padding-right: 0.875rem; }

  .home-cat-grid { gap: 0.6rem; }
  .home-cat-card { padding: 0.8rem; gap: 0.75rem; }

  .btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }

  .res-banner-stat { flex: 1 1 100%; }
  .res-banner-right { flex-direction: column; align-items: stretch; }
}
