/* Front page styles — extracted from index.html */


/* Global Font Override to enforce Plus Jakarta Sans */
body, h1, h2, h3, h4, h5, h6, input, button, select, textarea, span, p, a, div, li, ul, ol, th, td, label {
  font-family: 'Plus Jakarta Sans', 'Plus_Jakarta_Sans', sans-serif !important;
}
/* =========================================
   LOCAL FONTS — Plus Jakarta Sans
   ========================================= */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations'),
       url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype-variations'),
       url('../fonts/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* =========================================
   DESIGN TOKENS — TrueProfit Homepage Style
   ========================================= */
:root {
  --green: #1a7a5e;
  --green-bright: #23c48c;
  --green-light: rgba(35,196,140,0.1);
  --green-border: rgba(35,196,140,0.25);

  --navy: #0b1826;
  --navy-mid: #0d2233;
  --navy-teal: #0a2535;

  --light: #f7f8fa;
  --light-alt: #f0f2f5;
  --white: #ffffff;

  --text-dark: #0f1724;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #94a3b8;

  --border-light: #e5e7eb;
  --border-dark: rgba(255,255,255,0.08);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth;  }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* =========================================
   ANNOUNCEMENT BAR
   ========================================= */
#announce-bar {
  background: #0a2a1e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  letter-spacing: 0.01em;
}
#announce-bar a {
  background: var(--green-bright);
  color: #071424;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: var(--transition);
}
#announce-bar a:hover { background: #2dd498; }
#announce-bar .close-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  transition: var(--transition);
}
#announce-bar .close-btn:hover { color: #fff; }
.announce-star { color: var(--green-bright); }

/* =========================================
   HEADER
   ========================================= */
#header { position: sticky; top: 0;
  
  
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
  display: flex;
  align-items: center;
}
.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: block;
}
.header-collapse { display: contents; }
.header-nav {
  display: flex;
  gap: 2px;
  justify-content: flex-start;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: 7px;
  transition: var(--transition);
  white-space: nowrap;
}
.header-nav > a:hover { background: var(--light); color: var(--text-dark); }
.header-nav > a.active { color: #1d9e75 !important; font-weight: 700; }
.header-nav > a.active:hover { color: #1d9e75 !important; }

/* Resources Hover & Active States */
.header-nav .nav-dropdown-trigger:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-trigger,
.nav-dropdown-wrapper.active .nav-dropdown-trigger,
.header-nav .nav-dropdown-trigger.active {
  color: #1d9e75 !important;
  font-weight: 700;
  background: transparent;
  text-decoration: none !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-ghost {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: transparent;
  border: 1.5px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: #9ca3af; background: var(--light); transform: translateY(-2px); }
.btn-cta {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-cta:hover { background: #155f48; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,122,94,0.3); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   MEGA MENU STYLES
   ========================================= */
.nav-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 1160px;
  min-width: unset;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 99999;
  display: flex;
  overflow: hidden; /* overflow: hidden only on the card itself */
  padding: 0;
}
.nav-dropdown-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-zone {
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.mega-zone-1 {
  background: #ffffff;
  flex: 0 0 35%;
  min-width: 0;
}
.mega-zone-2 {
  background: #f0fdf4;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  flex: 0 0 25%;
  min-width: 0;
}
.mega-zone-3 {
  background: #002d33;
  color: #ffffff;
  flex: 1;
  min-width: 0;
  padding: 32px 40px 40px 40px;
}
.mega-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0a2540;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  align-self: flex-start;
  text-decoration: none;
}
.mega-pill-badge:hover {
  border-color: #1d9e75;
  color: #1d9e75;
  background: #f0fdf4;
}
.mega-pill-badge svg {
  color: #1d9e75;
}
.mega-pill-badge-dark {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.4) !important;
}
.mega-pill-badge-dark:hover {
  border-color: #2dd498 !important;
  color: #2dd498 !important;
  background: rgba(45, 212, 152, 0.1) !important;
}
.mega-pill-badge-dark svg {
  color: #ffffff !important;
}
.mega-pill-badge-dark:hover svg {
  color: #2dd498 !important;
}
.mega-links-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.mega-links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mega-link-item {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.mega-link-item:hover {
  color: #1d9e75;
}
.mega-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.mega-gems-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mega-gem-card {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
  text-decoration: none;
}
.mega-gem-card:hover .mega-gem-img {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.mega-gem-card:hover .mega-gem-text {
  color: #1d9e75;
}
.mega-gem-img {
  width: 92px;
  height: 64px;
  border-radius: 12px;
  background: #e6fbf1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mega-gem-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 2px;
  transition: transform 0.2s ease;
}
.mega-gem-text {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.mega-asset-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #1a3a4a;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}
.mega-asset-card:last-child {
  margin-bottom: 0;
}
.mega-asset-card:hover {
  filter: brightness(1.15);
  border-color: rgba(0,200,150,0.3) !important;
}
.mega-asset-card::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  z-index: 5;
}
.mega-asset-content {
  position: relative;
  z-index: 3;
  flex: 1;
  padding-right: 20px;
  box-sizing: border-box;
}
.mega-asset-name {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 6px;
  transition: color 0.25s ease;
}
.mega-asset-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
}
.mega-asset-card:hover .mega-asset-name {
  color: #2dd498;
}
.mega-mcp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e6fbf1;
  border: 1px dashed #1d9e75;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
  box-sizing: border-box;
  width: 100%;
}
.mega-mcp-card:hover {
  background: #d1f7e4 !important;
  border-color: #157347 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 158, 117, 0.15);
}
.mega-mcp-icon {
  color: #1d9e75;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-mcp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-mcp-title {
  color: #0f5132;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}
.mega-mcp-subtitle {
  color: #157347;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

/* Viewport-relative centering desktop layout overlay rules */
@media (min-width: 1101px) {
  .header-inner {
    position: relative !important;
  }
  .nav-dropdown-wrapper {
    position: static !important;
  }
  .mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    width: 1160px !important;
  }
  .nav-dropdown-wrapper:hover .mega-menu {
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* Mobile & Tablet stacked dropdown layout rules */
@media (max-width: 1100px) {
  .nav-dropdown-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    width: 100% !important;
  }
  .mega-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    max-height: none !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .nav-dropdown-wrapper:hover .mega-menu {
    display: none !important;
  }
  .nav-dropdown-wrapper.active .mega-menu {
    display: flex !important;
  }
  .mega-zone {
    width: 100% !important;
    padding: 24px 16px !important;
    background: transparent !important;
    border: none !important;
  }
  .mega-zone-1 {
    background: #ffffff !important;
  }
  .mega-zone-2 {
    background: #f0fdf4 !important;
    border-top: 1px solid var(--border-light) !important;
    border-bottom: 1px solid var(--border-light) !important;
    border-left: none !important;
    border-right: none !important;
  }
  .mega-zone-3 {
    background: #002d33 !important;
    color: #ffffff !important;
  }
}

/* =========================================
   HERO + FEATURED GUIDES — UNIFIED DARK BAND
   ========================================= */
#hero-band {
    background: #051d29;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 0;
  }

/* Subtle radial glow overlays */
#hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 30%, rgba(35,196,140,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 70%, rgba(35,196,140,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(5,29,41,0.0) 0%, #051d29 100%);
  pointer-events: none;
  z-index: 0;
}

/* Ghosted backdrop elements */
.band-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Hero sub-section */
#hero {
  background: transparent;
  padding: 70px 28px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 7px 16px 7px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-bright);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-h1 {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #FFFFFF;
  margin-bottom: 24px;
}
.hero-h1 .word-green { color: #23c48c; }

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 8px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bright);
  color: #0b1826;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(35, 196, 140, 0.3);
}
.btn-hero-primary:hover {
  background: #2dd498;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35, 196, 140, 0.45);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Organic wave SVG that connects hero to guides */
.band-wave {
  display: block;
  width: 100%;
  height: 80px;
  position: relative;
  z-index: 2;
  margin-top: -2px;
  flex-shrink: 0;
  line-height: 0;
}

/* =========================================
   GUIDES GRID SECTION — Dark band continuation
   ========================================= */
.guides-section {
  padding: 10px 28px 100px;
  background: transparent;
  position: relative;
  z-index: 2;
}
.guides-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Guide Card */
.guide-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.guide-card:hover {
  border-color: var(--green-bright);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.guide-card-img {
  height: 180px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  margin: 0;
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.guide-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  z-index: 2;
}
.guide-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.guide-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.guide-card-tag.general { background: rgba(35,196,140,0.1); color: var(--green); }
.guide-card-tag.community { background: rgba(99,102,241,0.1); color: #6366f1; }
.guide-card-tag.video { background: rgba(249,115,22,0.1); color: #f97316; }

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.guide-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}
.guide-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.guide-card-link:hover {
  color: #155f48;
}
.guide-card-link svg {
  transition: transform 0.2s ease;
}
.guide-card:hover .guide-card-link svg {
  transform: translateX(4px);
}
.full-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: #051d29;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 52px 28px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 28px;
}
.footer-brand {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 10px;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); max-width: 240px; line-height: 1.55; }
.footer-links a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 9px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--green-bright); transform: translateX(4px); }
.footer-links h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.25); margin-bottom: 14px; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* Animations */
.stagger-enter {
  opacity: 0;
  animation: fadeInSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
}
.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSlideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SEARCH SECTION
   ========================================= */
.search-section {
  padding: 24px 28px 48px;
  background: transparent;
  position: relative;
  z-index: 10;
}
.search-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-input {
  flex: 1;
  border: none;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text-dark);
  outline: none;
  background: transparent;
}
.search-filter {
  display: flex;
  gap: 8px;
}
.filter-btn {
  background: var(--light);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--green-bright);
  color: #fff;
  border-color: var(--green-bright);
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   3. FEATURED GUIDES — Dark band version
   ========================================= */
.guides-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Guide card — light version for unified band */
.guide-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s cubic-bezier(0.4,0,0.2,1), border-color 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.guide-card:hover {
  border-color: var(--green-bright);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transform: translateY(-8px);
}
.guide-card-img {
  height: 180px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  width: 100%;
  margin: 0;
}
.guide-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.guide-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-card:hover .guide-card-icon {
  transform: scale(1.1);
}
.guide-card-content {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.guide-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.guide-card-tag.general { background: rgba(35,196,140,0.1); color: var(--green); }
.guide-card-tag.community { background: rgba(99,102,241,0.1); color: #6366f1; }
.guide-card-tag.video { background: rgba(249,115,22,0.1); color: #f97316; }

.guide-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.guide-card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}
.guide-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.guide-card-link:hover {
  color: #155f48;
  gap: 10px;
}
.guide-card-link svg {
  transition: transform 0.2s ease;
}
.guide-card:hover .guide-card-link svg {
  transform: translateX(4px);
}
.full-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}

/* =========================================
   4. NEW 3-STEP SECTION
   ========================================= */
.step-section {
  padding: 80px 28px 120px 28px;
  background: var(--light-alt);
  position: relative;
  overflow: hidden;
}
.step-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.step-section .section-header {
  margin-bottom: 96px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step-col {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
/* Connectors */
.step-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}
.step-arrow-1 {
  bottom: 100%;
  margin-bottom: 12px;
  left: 25%;
  width: 17%;
  height: 80px;
}
.step-arrow-2 {
  top: 100%;
  margin-top: 12px;
  left: 58%;
  width: 17%;
  height: 80px;
}
.step-mockup {
  height: auto;
  background: transparent;
  border-radius: var(--radius-lg);
  border: none;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.step-mockup-img {
  width: 100%;
  height: auto;
  display: block;
}
.step-mockup-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--light);
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.step-num {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 8px;
  opacity: 0.8;
}
.step-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
}

/* =========================================
   5. WHY THIS IS WORTH PROMOTING
   ========================================= */
.why-promote-section {
  padding: 120px 28px;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.why-promote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(35, 196, 140, 0.15) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.why-promote-inner {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.why-promote-header {
  text-align: center;
  margin-bottom: 80px;
}
.why-promote-header h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.why-promote-header p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark-directory-card {
  background: #0a2535;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 0;
  display: flex;
  align-items: stretch;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}
.dark-directory-card.slide-left {
  transform: translateX(-50px);
  opacity: 0;
}
.dark-directory-card.slide-right {
  transform: translateX(50px);
  opacity: 0;
}
.dark-directory-card.animated {
  opacity: 1;
  transform: translateX(0) !important;
}
.dark-directory-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: rgba(35,196,140,0.3);
}
.dark-directory-content {
  flex: 2.2;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.dark-directory-content h3 {
  color: #24c48e !important;
  font-weight: 800;
  line-height: 1.2;
}
.dark-directory-content p {
  line-height: 1.75;
}
.dark-directory-card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green-bright);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}
.dark-directory-card:nth-child(odd)::after {
  right: 0;
}
.dark-directory-card:nth-child(even)::after {
  left: 0;
}
.dark-directory-card:hover::after {
  opacity: 1;
}
.dark-directory-graphic {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 260px;
}
.dark-directory-card:nth-child(even) .dark-directory-graphic {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.dark-directory-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .dark-directory-card {
    flex-direction: column !important;
  }
  .dark-directory-content {
    padding: 32px 24px;
  }
  .dark-directory-graphic {
    width: 100%;
    height: 200px;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }
}

/* =========================================
   6. NOT SURE (GUIDED PATH) — REDESIGNED
   ========================================= */
.path-section {
  padding: 100px 28px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.path-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(35,196,140,0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(35,196,140,0.04) 0%, transparent 40%);
  pointer-events: none;
  display: none;
}
.path-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.path-header {
  text-align: center;
  margin-bottom: 64px;
}
.path-header h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.path-header p {
  font-size: 17px;
  color: #7aa3be;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.path-card {
  background: #0d2a3d;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 40px 48px 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), border-color 0.22s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  cursor: pointer;
}
.path-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35,196,140,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(35,196,140,0.12);
}
.path-card-text {
  flex: 1;
  min-width: 0;
  z-index: 2;
  position: relative;
}
.path-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #23c48c;
  margin-bottom: 14px;
}
.path-card-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: #23c48c;
  flex-shrink: 0;
}
.path-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.path-card-desc {
  font-size: 14px;
  color: #7aa3be;
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 20px;
}
.path-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #23c48c;
  transition: gap 0.18s ease;
}
.path-card:hover .path-card-link { gap: 10px; }
.path-card-illus {
  width: 170px;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  margin-right: -48px;
  margin-bottom: -40px;
}
.path-card-illus-inner {
  width: 170px;
  height: 180px;
  border-radius: 14px 14px 0 0;
  transform: rotate(6deg) translateY(20px) translateZ(0);
  transform-origin: bottom right;
  overflow: hidden;
  position: relative;
  backface-visibility: hidden;
  will-change: transform;
  box-shadow: 
    0 24px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.04);
  transition: box-shadow 0.25s ease;
}
.path-card-illus-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(45, 212, 191, 0.18);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  transition: border-color 0.25s ease;
}
.path-card-illus-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: 
    inset 1px 1px 0 rgba(45, 212, 191, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.08), 
    inset 0 -24px 60px rgba(0, 0, 0, 0.22);
  border-radius: inherit;
  z-index: 2;
}
.path-card:hover .path-card-illus-inner {
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.45), 
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 16px rgba(45, 212, 191, 0.2);
}
.path-card:hover .path-card-illus-inner::before {
  border-color: rgba(45, 212, 191, 0.45);
}
.path-card-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.path-card-illus-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
/* Individual card fallback gradients */
.path-card-illus-fallback.blog { background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #0d2a3d 100%); }
.path-card-illus-fallback.video { background: linear-gradient(135deg, #1a0533 0%, #2d1b69 50%, #0d2a3d 100%); }
.path-card-illus-fallback.community { background: linear-gradient(135deg, #003d2d 0%, #00704a 50%, #0a2535 100%); }
.path-card-illus-fallback.agency { background: linear-gradient(135deg, #1a2a0a 0%, #2d4a12 50%, #0d2a3d 100%); }

/* =========================================
   7. HIGH-CONVERTING ANGLES
   ========================================= */
.angle-alternating-section {
  padding: 120px 28px;
  background: var(--white);
}
.angle-alt-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.angle-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.angle-block:nth-child(even) .angle-text {
  order: 2;
}
.angle-block:nth-child(even) .angle-visual {
  order: 1;
}
.angle-text h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 0.25s ease;
}
.angle-block:hover .angle-text h3 {
  color: var(--green-bright);
}
.angle-text p {
  font-size: 18px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 32px;
}
.angle-text ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.angle-text li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.angle-text li svg {
  color: var(--green-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.angle-visual {
  height: 360px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 24px;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.angle-block:hover .angle-visual {
  transform: translateY(-5px);
  border-color: var(--green-bright);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.angle-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  display: block;
  transition: transform 0.25s ease;
}
.angle-block:hover .angle-visual-img {
  transform: scale(1.1);
}
.angle-visual-inner {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px dashed #cbd5e1;
  padding: 24px 48px;
  border-radius: 12px;
}

/* =========================================
   BOTTOM CTA
   ========================================= */
.cta-section {
  background: #051d29;
  background-image: url('../images/trueprofit_affiliate_background.svg');
  background-size: cover;
  background-position: center;
  padding: 100px 28px;
  text-align: center;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}
.cta-h2 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.cta-h2 span { color: var(--green-bright); }
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.btn-cta-white {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-block;
}
.btn-cta-white:hover { background: var(--light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.2); }
.btn-cta-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-block;
}
.btn-cta-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

@keyframes ribbonOscillate {
  0% { transform: translateX(20px); }
  50% { transform: translateX(-20px); }
  100% { transform: translateX(20px); }
}
.hero-bg-svg path {
  animation: ribbonOscillate 8s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .path-grid { grid-template-columns: 1fr; }
  .path-card-illus { display: none; }
  .path-card { min-height: auto; padding: 36px; }
  .inside-inner { grid-template-columns: 1fr; gap: 48px; }
  .inside-left { text-align: center; }
}
@media (max-width: 900px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .angle-block, .angle-block:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .angle-block:nth-child(even) .angle-text { order: 1; }
  .angle-block:nth-child(even) .angle-visual { order: 2; }
}
@media (max-width: 1100px) {
  .header-nav { display: none; }
  .header-actions { display: none; }
  .hamburger { display: flex; }
  #header.nav-open { background: #ffffff; }
  #header.nav-open .header-collapse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    z-index: 999;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  #header.nav-open .header-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  #header.nav-open .header-nav a {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-light);
  }
  #header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 16px 0 0;
    width: 100%;
  }
  #header.nav-open .header-actions a {
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .guides-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 36px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* New sections responsive */
  .search-section { display: none; }
  .guides-section { padding: 0 20px 72px; }
  
  .step-section, .inside-section, .path-section, .angle-alternating-section { padding: 64px 24px; }
  .cta-section { padding: 64px 24px; }
  .cta-btns { flex-direction: column; }
  
  .path-card { flex-direction: column; gap: 16px; padding: 24px; }
  .angle-visual { height: 240px; }
  
  /* Hero band backdrop elements hidden on mobile for performance */
  .band-backdrop { display: none; }
}

/* Hover Micro-interactions - Navbar Links */
.header-nav > a,
.nav-dropdown-trigger {
  position: relative;
}
.header-nav > a::after,
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #00C896;
  transition: width 0.2s ease;
}
.header-nav > a:hover::after,
.header-nav > a.active::after,
.nav-dropdown-trigger:hover::after,
.nav-dropdown-trigger.active::after,
.nav-dropdown-wrapper:hover .nav-dropdown-trigger::after,
.nav-dropdown-wrapper.active .nav-dropdown-trigger::after {
  width: 100%;
}


@media (max-width: 1200px) {
  .mega-menu {
    padding: 20px 16px;
    gap: 16px;
  }
  .mega-zone-1 {
    flex: 0 0 30%;
  }
  .mega-zone-2 {
    flex: 0 0 24%;
  }
  .mega-zone-3 {
    flex: 1;
  }
  .mega-gem-img {
    width: 64px !important;
    height: 64px !important;
  }
  .mega-asset-name { font-size: 13px !important; }
  .mega-asset-desc { font-size: 11px !important; }
  .mega-gem-text { font-size: 12px !important; }
  .mega-link-item { font-size: 13px !important; }
  .mega-mcp-title { font-size: 15px !important; }
}

@media (max-width: 1024px) {
  .mega-menu {
    flex-wrap: wrap;
  }
  .mega-zone-1 {
    flex: 0 0 48%;
  }
  .mega-zone-2 {
    flex: 0 0 48%;
  }
  .mega-zone-3 {
    flex: 0 0 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
  .mega-navy-title {
    grid-column: 1 / -1;
  }
  .mega-asset-card {
    margin-bottom: 0 !important;
  }
}

/* =========================================
   RESOURCE CAROUSEL — Everything You Need
   =========================================
   Architecture:
   - .rc-outer clips overflow for the section.
   - .rc-viewport has horizontal padding so partial
     "upcoming" cards peek in from both edges.
   - Cards get a fixed pixel width stamped by JS once
     on load+resize so they NEVER resize during sliding.
   ========================================= */

/* ---- Section inner: just needs relative positioning ---- */
#hub-overview .guides-inner {
  position: relative;
}

/* ---- Header row ---- */
.rc-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
  width: 100%;
}
.rc-header .section-header {
  margin-bottom: 0;
  text-align: center;
  max-width: 720px;
}

/* ---- Arrow buttons ---- */
.rc-arrows {
  position: absolute;
  right: 0;
  bottom: 4px;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
  padding-bottom: 2px;
}
/* Desktop shows 3 cards at once — hide the carousel arrows when the
   upcoming-resource carousel has 3 cards or fewer (no 4th card to scroll to). */
@media (min-width: 1025px) {
  #hub-overview:not(:has(.rc-track > .guide-card:nth-child(4))) .rc-arrows {
    display: none;
  }
}
.rc-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.20), 0 1px 3px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  color: #0f1724;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}
.rc-arrow-btn:hover {
  background: #f4f6f8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22), 0 1px 4px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.rc-arrow-btn:active {
  transform: scale(0.93);
  box-shadow: 0 1px 6px rgba(0,0,0,0.14);
}
.rc-arrow-btn:disabled {
  opacity: 0.30;
  cursor: default;
  transform: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.rc-arrow-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ---- Carousel outer: clips peek overflow ---- */
.rc-outer {
  margin-left: 0;
  margin-right: 0;
  padding-top: 16px;
  padding-bottom: 24px;
  margin-top: -16px;
  margin-bottom: -24px;
  overflow: hidden;    /* clips the peeking card edges */
}

/* ---- Viewport: has horizontal padding for peek effect ---- */
.rc-viewport {
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  width: 100%;
}

/* ---- Track: horizontal flex strip ---- */
.rc-track {
  display: flex;
  gap: 28px;
  transition: transform 0.46s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ---- Cards inside the carousel track ----
   Width is set by JS as inline style.
   flex-shrink:0 prevents any compression.
   Keep all original card styles intact — no overrides here. ---- */
.rc-track .guide-card {
  flex-shrink: 0;
  /* width is set dynamically via JS */
  min-width: 0;
  /* Restore original hover — translateY(-8px) — exactly as designed */
  transition:
    transform 0.28s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.28s cubic-bezier(0.4,0,0.2,1),
    border-color 0.28s cubic-bezier(0.4,0,0.2,1);
}
.rc-track .guide-card:hover {
  border-color: var(--green-bright);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}
.rc-track .guide-card:hover .guide-card-icon {
  transform: scale(1.1);
}
.rc-track .guide-card:hover .guide-card-link svg {
  transform: translateX(4px);
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
  .rc-header {
    flex-direction: column !important;
    align-items: center !important;
    position: static !important;
    gap: 16px;
    margin-bottom: 36px;
  }
  .rc-header .section-header {
    text-align: center !important;
    width: 100%;
  }
  .rc-arrows {
    position: static !important;
    width: 100%;
    justify-content: center !important;
  }
  .rc-outer {
    margin-left: 0;
    margin-right: 0;
    padding-top: 16px;
    padding-bottom: 24px;
    margin-top: -16px;
    margin-bottom: -24px;
  }
  .rc-viewport {
    padding-left: 0;
    padding-right: 0;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 540px) {
  .rc-outer {
    margin-left: 0;
    margin-right: 0;
  }
  .rc-viewport {
    padding-left: 0;
    padding-right: 0;
  }
}


