/*
Theme Name: Clear CPC
Theme URI: https://clearcpc.com
Author: Clear CPC Team
Description: ClearCPC V4 — Free CPC exam prep education theme. Fraunces + Montserrat typography, AAPC-inspired green palette.
Version: 4.0
License: All rights reserved
Text Domain: clearcpc
*/

/* ============================================================
   V4 DESIGN SYSTEM — RESET & VARIABLES
   Fonts: Fraunces (headings) + Montserrat (body/UI)
   Palette: AAPC-inspired green + ClearCPC warmth
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Primary — AAPC-inspired deep green */
  --green:        #0D7A6B;
  --green-dark:   #085C51;
  --green-light:  #E6F4F2;
  --green-mid:    #B8DDD9;

  /* Accent — ClearCPC amber/gold (retained brand) */
  --amber:        #E8960A;
  --amber-light:  #FEF3DC;
  --amber-dark:   #C47D06;

  /* Navy — deep professional anchor */
  --navy:         #12304A;
  --navy-mid:     #1A3D5C;
  --navy-light:   #EBF1F6;

  /* Neutrals */
  --white:        #FFFFFF;
  --cream:        #FAFAF8;
  --warm-gray:    #F2F0EC;
  --border:       #DDD9D2;
  --text:         #1A2A38;
  --text-mid:     #3D5166;
  --text-muted:   #6B7F8F;

  /* Semantic */
  --success:      #1A8C58;
  --success-bg:   #E6F5EE;

  /* Sizing */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  /* Shadows */
  --shadow-xs:    0 1px 4px rgba(18,48,74,0.06);
  --shadow-sm:    0 2px 10px rgba(18,48,74,0.08);
  --shadow-md:    0 6px 24px rgba(18,48,74,0.10);
  --shadow-lg:    0 16px 48px rgba(18,48,74,0.13);
  --shadow-green: 0 8px 32px rgba(13,122,107,0.22);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }

p { line-height: 1.75; color: var(--text-mid); }


/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: 25px;
}
.tag-green { background: var(--green-light); color: var(--green-dark); }
.tag-amber { background: var(--amber-light); color: var(--amber-dark); }
.tag-navy  { background: var(--navy-light);  color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem; font-weight: 700;
  padding: 13px 26px; border-radius: var(--radius-md);
  border: none; cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(13,122,107,.30);
}
.btn-secondary {
  background: var(--white); color: var(--navy);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--green); color: var(--green); }
.btn-amber {
  background: var(--amber); color: var(--white);
}
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: .8rem; display: block;
}
.section-title { margin-bottom: .6rem; }
.section-sub { color: var(--text-muted); max-width: 560px; margin-bottom: 2.5rem; }

/* Links on cards and tags */
a.overview-card, a.phase-tag, a.domain-row-link, a.resource-card, a.blog-card {
  display: block; cursor: pointer;
}


/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
#top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .76rem; font-weight: 500;
  text-align: center; padding: 9px 5%;
  letter-spacing: .02em;
}
#top-bar strong { color: var(--amber); }
#top-bar a { color: var(--green-mid); text-decoration: underline; }


/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  transition: box-shadow .3s;
}
#site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 70px; max-width: 1200px;
  margin: 0 auto; padding: 0 5%;
}

.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-badge {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white); display: flex; align-items: center;
  justify-content: center; font-size: 1rem; font-weight: 800;
  font-family: 'Fraunces', serif;
  box-shadow: 0 3px 10px rgba(13,122,107,.3);
}
.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.18rem; font-weight: 700; color: var(--navy);
  letter-spacing: -.01em;
}
.logo-text span { color: var(--green); }

.nav-links {
  display: flex; align-items: center;
  gap: .25rem; list-style: none;
}
.nav-links li a {
  font-size: .82rem; font-weight: 600;
  color: var(--text-mid); padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .15s; white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--green); background: var(--green-light); }

.nav-cta {
  margin-left: .5rem;
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 3px 12px rgba(13,122,107,.25);
}
.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-mobile-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--navy);
}
.nav-mobile-btn svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 5% 20px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-mobile-btn { display: flex; }
}


/* ============================================================
   HERO
   ============================================================ */
#hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 90px 5% 80px;
}

/* Geometric background pattern */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 50%, rgba(13,122,107,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(232,150,10,.08) 0%, transparent 60%);
}

/* Grid pattern overlay */
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,122,107,.25);
  border: 1px solid rgba(13,122,107,.4);
  color: var(--green-mid); font-size: .74rem;
  font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 14px;
  border-radius: 25px; margin-bottom: 1.4rem;
}
.hero-eyebrow span { color: var(--amber); }

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.hero-content h1 em {
  font-style: italic; color: var(--amber);
  font-size: 1.05em;
}
.hero-content p {
  color: rgba(255,255,255,.65);
  font-size: 1rem; max-width: 520px;
  margin-bottom: 2rem; line-height: 1.8;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-proof {
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.proof-item {
  display: flex; align-items: center; gap: 10px;
}
.proof-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.proof-item span {
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
}

/* Hero Stats Card */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.hero-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.08);
  border-radius: var(--radius-md); overflow: hidden;
  margin-bottom: 1.5rem;
}
.stat-item {
  background: rgba(255,255,255,.04);
  padding: 18px 14px; text-align: center;
}
.stat-item:hover { background: rgba(13,122,107,.15); }

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--white); line-height: 1;
  margin-bottom: 4px;
}
.stat-num.green { color: var(--green-mid); }
.stat-num.amber { color: var(--amber); }

.stat-label {
  font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em; text-transform: uppercase;
}

.domain-list { display: flex; flex-direction: column; gap: 8px; }
.domain-row { display: flex; align-items: center; gap: 10px; }
.domain-row span:first-child {
  font-size: .76rem; color: rgba(255,255,255,.55);
  font-weight: 500; flex: 1;
}
.domain-bar-wrap {
  flex: 2; height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px; overflow: hidden;
}
.domain-bar {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-mid));
}
.domain-bar.amber { background: linear-gradient(90deg, var(--amber-dark), var(--amber)); }
.domain-pct {
  font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.5); width: 32px;
  text-align: right;
}


/* ============================================================
   TRUST BAR
   ============================================================ */
#trust-bar {
  background: var(--green-light);
  border-top: 1px solid var(--green-mid);
  border-bottom: 1px solid var(--green-mid);
  padding: 18px 5%;
}
.trust-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: center; gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600;
  color: var(--green-dark);
}
.trust-icon { font-size: 1rem; }
.trust-divider {
  width: 1px; height: 24px;
  background: var(--green-mid); opacity: .4;
}


/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section { padding: 88px 5%; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy); }
.section-green { background: var(--green); }


/* ============================================================
   EXAM OVERVIEW / SYLLABUS CARDS
   ============================================================ */
#overview .overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.overview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .25s;
  position: relative; overflow: hidden;
  display: block; /* needed for <a> tags */
  color: inherit; text-decoration: none;
}
.overview-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-mid));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.overview-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.overview-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem;
  margin-bottom: 1rem;
}
.overview-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.overview-card p { font-size: .85rem; line-height: 1.7; }

/* Domain Table */
.domain-table-wrap { margin-top: 3rem; }
.domain-table {
  width: 100%; border-collapse: collapse;
  font-size: .85rem;
}
.domain-table th {
  background: var(--navy); color: rgba(255,255,255,.8);
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: .72rem; letter-spacing: .07em; text-transform: uppercase;
  padding: 12px 16px; text-align: left;
}
.domain-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.domain-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.domain-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-family: 'Montserrat', sans-serif;
}
.domain-table tr:hover td { background: var(--green-light); }
.domain-table tr:last-child td { border-bottom: none; }
.pct-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 25px; font-weight: 700; font-size: .75rem;
}
.pct-high   { background: var(--success-bg); color: var(--success); }
.pct-mid    { background: var(--amber-light); color: var(--amber-dark); }
.pct-low    { background: var(--navy-light); color: var(--navy-mid); }
.priority-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-high { background: var(--success); }
.dot-mid  { background: var(--amber); }
.dot-low  { background: var(--text-muted); }


/* ============================================================
   STUDY PLAN TIMELINE
   ============================================================ */
#study-plan { background: var(--cream); }

.plan-timeline {
  position: relative; margin-top: 3rem;
  padding-left: 32px;
}
.plan-timeline::before {
  content: ''; position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px; background: var(--green-mid);
}

.plan-phase {
  position: relative; margin-bottom: 2.5rem;
}
.plan-phase:last-child { margin-bottom: 0; }

.phase-marker {
  position: absolute; left: -36px; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: .7rem; font-weight: 700; color: var(--white);
}

.phase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  transition: all .2s;
}
.phase-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow-sm); }

.phase-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1rem;
}
.phase-weeks {
  font-size: .72rem; font-weight: 700;
  color: var(--green); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: .3rem;
}
.phase-card h3 { font-size: 1.05rem; }
.phase-badge {
  flex-shrink: 0; padding: 4px 12px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 25px; font-size: .72rem;
  font-weight: 700;
}
.phase-badge.critical { background: #FEF3DC; color: var(--amber-dark); }

.phase-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .8rem; }
.phase-tag {
  font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 25px;
  background: var(--warm-gray); color: var(--text-mid);
  text-decoration: none;
  transition: all .15s;
}
.phase-tag:hover {
  background: var(--green-light);
  color: var(--green-dark);
}


/* ============================================================
   RESOURCES / DOWNLOADS
   ============================================================ */
#resources { background: var(--navy); }
#resources .section-label { color: var(--amber); }
#resources h2 { color: var(--white); }
#resources .section-sub { color: rgba(255,255,255,.5); }

.resources-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 2.5rem;
}

.resource-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all .25s;
  display: block; color: inherit; text-decoration: none;
}
.resource-card:hover {
  background: rgba(13,122,107,.18);
  border-color: rgba(13,122,107,.4);
  transform: translateY(-3px);
}
.resource-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.resource-card h3 {
  font-size: .95rem; color: var(--white);
  margin-bottom: .5rem;
}
.resource-card p {
  font-size: .8rem; color: rgba(255,255,255,.45);
  line-height: 1.7; margin-bottom: 1.2rem;
}
.resource-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700;
  color: var(--green-mid); transition: color .2s;
}
.resource-link:hover { color: var(--white); }
.resource-link::after { content: '↓'; }


/* ============================================================
   QUIZ SECTION
   ============================================================ */
#quiz { background: var(--cream); }

.quiz-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 2.5rem;
}
.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .25s;
  display: block; color: inherit; text-decoration: none;
}
.quiz-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.quiz-icon { font-size: 2rem; margin-bottom: 1rem; }
.quiz-card h3 { margin-bottom: .5rem; }
.quiz-card p {
  font-size: .85rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 1.2rem;
}
.coming-badge {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 25px;
  background: var(--amber-light); color: var(--amber-dark);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1rem;
}


/* ============================================================
   BLOG PREVIEW
   ============================================================ */
#blog-preview { background: var(--white); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; margin-top: 2.5rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-header { padding: 22px 22px 0; }
.blog-cat {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); margin-bottom: .6rem;
  display: block;
}
.blog-card h3 { font-size: .95rem; line-height: 1.45; margin-bottom: .6rem; }
.blog-card p { font-size: .82rem; line-height: 1.7; margin-bottom: 0; }
.blog-card-footer {
  padding: 16px 22px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
}
.blog-meta { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.blog-read-link {
  font-size: .78rem; font-weight: 700;
  color: var(--green); display: flex; align-items: center; gap: 4px;
}
.blog-read-link:hover { color: var(--green-dark); }

.blog-cta-row {
  display: flex; justify-content: center;
  margin-top: 2.5rem;
}


/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
#newsletter {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--navy) 60%);
  padding: 72px 5%; position: relative; overflow: hidden;
}
#newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.nl-inner {
  max-width: 620px; margin: 0 auto;
  text-align: center; position: relative; z-index: 1;
}
#newsletter .tag { margin-bottom: 1rem; }
#newsletter h2 { color: var(--white); margin-bottom: .8rem; }
#newsletter p { color: rgba(255,255,255,.55); margin-bottom: 2rem; }

.nl-form {
  display: flex; gap: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  overflow: hidden; padding: 6px;
}
.nl-form input {
  flex: 1; background: transparent; border: none;
  padding: 10px 16px; font-family: 'Montserrat', sans-serif;
  font-size: .88rem; color: var(--white); outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,.35); }
.nl-form button {
  background: var(--amber); color: var(--white);
  border: none; padding: 10px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: .84rem; font-weight: 700;
  border-radius: var(--radius-sm); cursor: pointer;
  white-space: nowrap; transition: background .2s;
}
.nl-form button:hover { background: var(--amber-dark); }
.nl-fine { font-size: .7rem; color: rgba(255,255,255,.3); margin-top: .8rem; }


/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 60px 5% 0;
}

.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text span { color: var(--green-mid); }
.footer-desc {
  font-size: .82rem; color: rgba(255,255,255,.38);
  line-height: 1.8; margin: 1rem 0 1.4rem;
  max-width: 280px;
}
.footer-disclaimer {
  font-size: .72rem; color: rgba(255,255,255,.22);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--green-mid); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 0; gap: 1rem; flex-wrap: wrap;
}
.footer-copy {
  font-size: .74rem; color: rgba(255,255,255,.22);
}
.footer-legal {
  display: flex; gap: 1.5rem;
}
.footer-legal a {
  font-size: .74rem; color: rgba(255,255,255,.3);
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.6); }


/* ============================================================
   WORDPRESS POST / ARTICLE LAYOUT
   ============================================================ */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 40px; max-width: 1000px;
  margin: 0 auto; padding: 40px 5%;
}

.article-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.article-hero-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 36px 32px;
}
.art-breadcrumb { font-size: .72rem; color: rgba(255,255,255,.4); margin-bottom: .8rem; }
.art-cat-badge {
  display: inline-block; background: var(--amber);
  color: var(--navy); font-size: .65rem; font-weight: 700;
  padding: 3px 10px; border-radius: 25px;
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: .8rem;
}
.article-hero-strip h1 {
  color: var(--white); font-size: 1.4rem;
  line-height: 1.2; margin-bottom: .8rem;
}
.art-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: .72rem; color: rgba(255,255,255,.4);
  font-weight: 500;
}

.article-body { padding: 32px; }
.article-body h2 {
  font-size: 1.2rem; margin: 1.8rem 0 .7rem;
  color: var(--navy); padding-bottom: .5rem;
  border-bottom: 2px solid var(--green-light);
}
.article-body p { font-size: .88rem; margin-bottom: 1rem; }

/* Callout boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px; margin: 1.2rem 0;
  border-left: 4px solid;
  font-size: .84rem; line-height: 1.7;
}
.callout strong { display: block; margin-bottom: .3rem; font-weight: 700; }
.callout-tip   { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.callout-warn  { background: #FEF3DC; border-color: var(--amber); color: #7A4F00; }
.callout-exam  { background: var(--navy-light); border-color: var(--navy); color: var(--navy); }
.callout-red   { background: #FEE; border-color: #D32F2F; color: #7B1A1A; }

/* Ad spots */
.ad-spot {
  background: var(--warm-gray); border: 2px dashed var(--border);
  border-radius: var(--radius-md); padding: 20px;
  text-align: center; color: var(--text-muted);
  font-size: .75rem; font-weight: 600; margin: 1.5rem 0;
  letter-spacing: .06em; text-transform: uppercase;
}

/* Sidebar */
.article-sidebar {}
.sidebar-widget {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-size: .82rem; font-family: 'Montserrat', sans-serif;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted);
  margin-bottom: 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links li a {
  font-size: .8rem; font-weight: 500;
  color: var(--green); display: flex; align-items: center; gap: 6px;
}
.sidebar-links li a::before { content: '→'; font-size: .7rem; }
.sidebar-links li a:hover { color: var(--green-dark); }


/* ============================================================
   WORDPRESS BLOG INDEX STYLES
   ============================================================ */
.blog-archive { padding: 40px 5% 80px; }
.blog-archive .container { max-width: 1200px; margin: 0 auto; }


/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: 60vh; display: flex;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 5%;
}
.page-404 h1 { color: var(--navy); margin-bottom: 1rem; }
.page-404 p { margin-bottom: 2rem; }


/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  #overview .overview-grid { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .quiz-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 640px) {
  #overview .overview-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .hero-actions { flex-direction: column; }
  .trust-inner { gap: 1rem; }
  .trust-divider { display: none; }
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: fadeUp .6s ease both; }
.hero-content h1 { animation: fadeUp .6s .1s ease both; }
.hero-content p  { animation: fadeUp .6s .2s ease both; }
.hero-actions    { animation: fadeUp .6s .3s ease both; }
.hero-proof      { animation: fadeUp .6s .4s ease both; }
.hero-card       { animation: fadeUp .7s .2s ease both; }


/* ============================================================
   WORDPRESS OVERRIDES — Prevent plugin/default conflicts
   ============================================================ */
/* Reset WordPress default margins on entry-content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Fraunces', serif;
  color: var(--navy);
}

/* Ensure WordPress menu items use our styles */
.menu-item a {
  font-size: .82rem; font-weight: 600;
  color: var(--text-mid);
  transition: all .15s;
}
.menu-item a:hover { color: var(--green); }

/* WPForms style overrides */
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="text"] {
  font-family: 'Montserrat', sans-serif;
  border-radius: var(--radius-sm);
}
.wpforms-container .wpforms-form button[type="submit"],
.wpforms-container .wpforms-form .wpforms-submit {
  font-family: 'Montserrat', sans-serif !important;
  background: #0D7A6B !important;
  background-color: #0D7A6B !important;
  border-color: #0D7A6B !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}
.wpforms-container .wpforms-form button[type="submit"]:hover,
.wpforms-container .wpforms-form .wpforms-submit:hover {
  background: #085C51 !important;
  background-color: #085C51 !important;
  border-color: #085C51 !important;
}

/* ============================================================
   BLOG INDEX PAGE (home.php)
   ============================================================ */
.blog-index-hero {
  background: var(--navy);
  padding: 80px 5% 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-index-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 100%, rgba(13,122,107,.12) 0%, transparent 70%);
}
.blog-index-hero h1 {
  color: var(--white);
  position: relative;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.blog-index-hero p {
  color: rgba(255,255,255,.5);
  max-width: 520px;
  margin: 1rem auto 0;
  position: relative;
}

.blog-index-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 5% 80px;
}

/* Category Filter Strip */
.blog-category-strip {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cat-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-mid);
  padding: 6px 16px;
  border-radius: 25px;
  background: var(--warm-gray);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cat-btn:hover {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: var(--green-mid);
}
.cat-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Blog Full Grid — 3-column card layout */
.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* Blog Cards — used on both home.php and homepage preview */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-header {
  padding: 22px 22px 14px;
  flex: 1;
}
.blog-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
  display: block;
}
.blog-card h3 {
  font-size: .95rem;
  line-height: 1.45;
  margin-bottom: .5rem;
  color: var(--navy);
}
.blog-card p,
.blog-card-header p {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}

.blog-card-footer {
  padding: 14px 22px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-meta {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.blog-read-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.blog-read-link:hover { color: var(--green-dark); }


/* ============================================================
   SINGLE POST PAGE (single.php)
   ============================================================ */

/* Article Hero */
.article-hero-strip {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 100px 5% 48px;
  position: relative;
  overflow: hidden;
}
.article-hero-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 50%, rgba(13,122,107,.14) 0%, transparent 70%);
}

.art-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.art-breadcrumb {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-bottom: .8rem;
}
.art-breadcrumb a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}
.art-breadcrumb a:hover { color: rgba(255,255,255,.8); }

.art-cat-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-size: .65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .8rem;
}

.article-hero-strip h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: .8rem;
}

.art-meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* Article Layout — Content + Sidebar */
.article-outer {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 5% 60px;
}

@media (max-width: 900px) {
  .article-outer { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

/* Article Content */
.article-content {
  min-width: 0; /* prevent grid blowout */
}

.entry-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 2.2rem 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--green-light);
}
.entry-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.8rem 0 .6rem;
}
.entry-content p {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2rem 1.5rem;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--text-mid);
}
.entry-content li {
  margin-bottom: .5rem;
}
.entry-content strong {
  color: var(--navy);
}

/* Article Tables */
.art-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .85rem;
}
.art-table th {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: .75rem 1rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.art-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.art-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.art-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: top;
  font-size: .85rem;
}
.art-table tr:hover td { background: var(--green-light); }
.art-table tr:nth-child(even) td { background: var(--cream); }
.art-table tr:nth-child(even):hover td { background: var(--green-light); }

/* Callout Boxes — from article HTML */
.callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  color: var(--green-dark);
  font-size: .88rem;
  line-height: 1.7;
}
.callout strong {
  display: block;
  margin-bottom: .3rem;
  font-weight: 700;
  color: var(--navy);
}
.callout.gold,
.callout-warn {
  border-left-color: var(--amber);
  background: var(--amber-light);
  color: #7A4F00;
}
.callout-tip {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
}
.callout-exam {
  background: var(--navy-light);
  border-color: var(--navy);
  color: var(--navy);
}

/* Ad Spots */
.ad-spot {
  background: var(--warm-gray);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  margin: 1.5rem 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Sidebar Widgets */
.article-sidebar .sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.article-sidebar .sidebar-widget h4 {
  font-size: .82rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sidebar-links li a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.sidebar-links li a::before { content: '→'; font-size: .7rem; }
.sidebar-links li a:hover { color: var(--green-dark); }

/* Related Posts */
.related-posts {
  background: var(--cream);
  padding: 48px 5%;
  margin-top: 2rem;
}
.related-posts-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.related-posts h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}

.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  transition: all .2s;
  display: block;
}
.related-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.related-card .r-cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
  margin-bottom: .4rem;
  display: block;
}
.related-card h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* Post Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-nav a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.post-nav a:hover { color: var(--green-dark); }
/* ============================================================
   BLOG INDEX — Client-Side Category Filter Fix
   ADD THIS to your theme's style.css
   File: /wp-content/themes/clear-cpc/style.css
   
   NOTE: Some of these rules may already exist in your theme.
   Check for duplicates before adding. If a rule already exists,
   skip it — don't duplicate.
   ============================================================ */

/* --- Category Filter Strip --- */
.blog-category-strip {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Filter Buttons (NOT links) */
.cat-btn {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 25px;
  background: var(--warm-gray);
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  outline: none;
}

.cat-btn:hover {
  background: rgba(11, 158, 138, 0.08);
  color: var(--navy);
  border-color: var(--teal);
}

.cat-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(11, 158, 138, .25);
}

.cat-btn.active {
  background: var(--teal);
  color: #FFFFFF;
  border-color: var(--teal);
}

/* --- Blog Grid --- */
.blog-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Blog Card Hidden State (for JS filtering) --- */
.blog-card.hidden {
  display: none !important;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .blog-full-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-category-strip { gap: .4rem; }
}

@media (max-width: 600px) {
  .blog-full-grid { grid-template-columns: 1fr; }
  .cat-btn { font-size: .72rem; padding: 6px 14px; }
}

/* ── WPFORMS CONFIRMATION MESSAGE ── */
.wpforms-confirmation-container-full,
.wpforms-confirmation-container {
  background: var(--green) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 20px 24px !important;
  text-align: center !important;
}
.wpforms-confirmation-container-full p,
.wpforms-confirmation-container p {
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
```

**Then:** Update File → Purge LiteSpeed Cache

---

## Also Two More Issues I Spotted

**1. Contact page 404** — `/contact/` is returning a 404 error. The page may have been accidentally deleted or the slug changed. Check **WP Admin → Pages** and confirm the Contact page exists with slug `contact`.

**2. Confirmation message text** — Currently says *"Thanks for contacting us! We will get in touch with you shortly."* — that's the WPForms default. For a **newsletter form** it should say something more relevant like *"You're in! Check your inbox for your free CPC Study Kit."*

You can change this in: **WP Admin → WPForms → Edit Form (ID 46) → Settings → Confirmations → Confirmation Message**

Change to:
```
🎉 You're in! Check your inbox for your free CPC Study Kit — 
6 guides including the CPT Cheat Sheet, ICD-10-CM Summary, 
and 90-Day Study Planner.