/* Content Playbook listing styles */

/* 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;
  overflow-x: hidden;
  -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;
  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: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.mega-gems-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-gem-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mega-gem-card:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}
.mega-gem-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-gem-img img {
  width: 18px;
  height: 18px;
}
.mega-gem-text {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.mega-asset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.mega-asset-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(45, 212, 152, 0.4);
}
.mega-asset-content {
  flex: 1;
  padding-right: 16px;
}
.mega-asset-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}
.mega-asset-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}
.mega-asset-visual-wrap {
  position: relative;
  width: 50px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-asset-visual-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}
.mega-asset-visual-icon {
  z-index: 2;
  color: #2dd498;
}

/* =========================================
   HERO SECTION
   ========================================= */
.playbook-hero {
  background: linear-gradient(180deg, #eaf3ff 0%, #ffffff 100%);
  padding: 90px 24px 70px;
  text-align: center;
  position: relative;
}
.playbook-hero-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: 20px;
}
.playbook-hero-title {
  font-size: clamp(38px, 5.5vw, 52px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.playbook-hero-subtitle {
  font-size: 17px;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================
   FEATURED GUIDES SECTION
   ========================================= */
.featured-section {
  padding: 60px 24px 80px;
  background: #ffffff;
}
.featured-container {
  max-width: 1200px;
  margin: 0 auto;
}
.featured-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.featured-card-image {
  height: 240px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}
.featured-card:hover .featured-card-image {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.featured-card-content {
  display: flex;
  flex-direction: column;
}
.card-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  background: #E8F5F2;
  color: #007F62;
  display: inline-block;
}

.featured-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.featured-card:hover .featured-card-title {
  color: var(--green);
}

/* =========================================
   FILTERABLE LIBRARY SECTION
   ========================================= */
.library-section {
  padding: 80px 24px 100px;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}
.library-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.library-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filter-btn-side {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 14px;
}
.filter-btn-side:hover {
  background: transparent;
  color: var(--green);
}
.filter-btn-side.active {
  background: transparent;
  color: var(--navy);
}

.filter-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #111;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.filter-checkbox svg {
  width: 12px;
  height: 12px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.filter-btn-side.active .filter-checkbox {
  background: var(--green-bright);
  border-color: #111;
}
.filter-btn-side.active .filter-checkbox svg {
  opacity: 1;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.library-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  opacity: 1;
}
.library-card.hidden {
  display: none !important;
}
.library-card-image {
  height: 240px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 16px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: block;
}
.library-card-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.library-card-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.library-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}
.library-card-title:hover {
  color: var(--green);
}
.library-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 100px;
  background: #E8F5F2;
  color: #007F62;
  display: inline-block;
  margin-bottom: 8px;
}
.library-empty-state {
  display: none;
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}
.library-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.library-empty-desc {
  font-size: 15px;
  color: var(--text-body);
}

/* =========================================
   FOOTER & BOTTOM CTA
   ========================================= */
.cta-section {
  background: #051d29;
  background-image: url('../images/trueprofit_affiliate_background.svg');
  background-size: cover;
  background-position: center;
  padding: 80px 24px;
  text-align: center;
}
.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}
.cta-h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.cta-h2 span { color: var(--green-bright); }
.cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.btn-cta-white {
  background: #fff;
  color: #051d29;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}
.btn-cta-white:hover { opacity: 0.95; }
.btn-cta-ghost {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 8px;
  transition: border-color 0.2s ease;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.6); }

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-tagline { font-size: 13px; color: rgba(255,255,255,0.35); max-width: 240px; line-height: 1.55; }
.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-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-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); }
}

/* =========================================
   RESPONSIVE LAYOUTS
   ========================================= */
@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;
  }
  
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .library-container { grid-template-columns: 1fr; gap: 32px; }
  .library-sidebar { position: relative; top: 0; }
}

@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-btns { flex-direction: column; }
  
  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 8px;
    gap: 8px;
  }
  .filter-btn-side {
    width: auto;
    white-space: nowrap;
    padding: 8px 16px;
  }
}

/* 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%;
}

/* Pagination Styling */
.library-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.pagination-btn.active {
  background: var(--navy, #0b1826);
  color: var(--white, #ffffff);
  border: 1px solid var(--navy, #0b1826);
}
.pagination-btn.inactive {
  background: var(--white, #ffffff);
  color: var(--text-dark, #0f1724);
  border: 1px solid var(--border-light, #e5e7eb);
}
.pagination-btn.inactive:hover {
  border-color: #9ca3af;
  background: var(--light, #f7f8fa);
}
.pagination-btn.disabled {
  background: var(--light, #f7f8fa);
  color: var(--text-light, #94a3b8);
  border: 1px solid var(--border-light, #e5e7eb);
  cursor: not-allowed;
  opacity: 0.6;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-size: 14px;
  color: var(--text-muted, #6b7280);
  user-select: none;
}

/* =========================================
   FEATURED GUIDES CAROUSEL
   ========================================= */
.featured-container {
  position: relative;
}
.fg-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  width: 100%;
}
.fg-header .featured-title {
  margin-bottom: 0;
  text-align: center;
}
.fg-arrows {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Desktop shows 3 cards at once — hide the Featured Guides arrows when the
   carousel has 3 cards or fewer (no 4th card to scroll to). */
@media (min-width: 1025px) {
  .featured-section:not(:has(.fg-track > .featured-card:nth-child(4))) .fg-arrows {
    display: none;
  }
}
.fg-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  color: var(--navy);
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}
.fg-arrow-btn:hover {
  background: var(--light);
  border-color: #9ca3af;
  transform: translateY(-1px);
}
.fg-arrow-btn:active {
  transform: scale(0.93);
}
.fg-arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none !important;
  box-shadow: none;
}
.fg-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;
}
.fg-outer {
  margin-left: 0;
  margin-right: 0;
  padding-top: 12px;
  padding-bottom: 20px;
  margin-top: -12px;
  margin-bottom: -20px;
  overflow: hidden;
}
.fg-viewport {
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  width: 100%;
}
.fg-track {
  display: flex;
  gap: 30px;
  transition: transform 0.46s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.fg-track .featured-card {
  flex-shrink: 0;
  min-width: 0;
}

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


/* =========================================
   Library pagination (content-playbook archive)
   Matches content-playbook.html: navy active, white inactive.
   ========================================= */
.library-section .pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.library-section .pagination .screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.library-section .pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.library-section .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
  background: var(--white, #ffffff);
  color: var(--text-dark, #0f1724);
  border: 1px solid var(--border-light, #e5e7eb);
}
.library-section a.page-numbers:hover {
  border-color: #9ca3af;
  background: var(--light, #f7f8fa);
}
.library-section .page-numbers.current {
  background: var(--navy, #0b1826);
  color: var(--white, #ffffff);
  border: 1px solid var(--navy, #0b1826);
}
.library-section .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--text-muted, #6b7280);
  cursor: default;
}

/* Offset the library section anchor below the sticky header when paging. */
#library-section {
  scroll-margin-top: 100px;
}
