@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
  --ivory:    #FFFBEB;
  --graphite: #292524;
  --navy:     #0C2340;
  --teal:     #0D9488;
  --teal-light: #14B8A9;
  --teal-pale:  #CCFBF1;
  --navy-mid:   #1E3A5F;
  --sand:     #FEF3C7;
  --stone:    #78716C;
  --border:   #E7E5E4;
  --white:    #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(41,37,36,.06);
  --shadow-md: 0 4px 16px rgba(41,37,36,.10);
  --shadow-lg: 0 12px 40px rgba(41,37,36,.14);

  --transition: .25s ease;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--graphite);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1,h2,h3 { font-family: var(--font-serif); line-height: 1.25; }
h4,h5,h6 { font-family: var(--font-sans);  line-height: 1.35; }

ul,ol { padding-left: 1.5rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===========================
   HEADER
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,251,235,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 24px; height: 24px; fill: var(--ivory); }

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.logo-tagline { font-size: .7rem; color: var(--stone); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--graphite);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--sand); color: var(--navy); }
.nav-link.active { color: var(--teal); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  color: var(--graphite);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-toggle:hover { background: var(--sand); color: var(--navy); }
.nav-dropdown-toggle svg { width: 14px; height: 14px; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 999;
}
.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--graphite);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover { background: var(--sand); color: var(--navy); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-ghost {
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9375rem;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,.35); }

.btn-navy {
  background: var(--navy);
  color: var(--ivory);
}
.btn-navy:hover { background: var(--navy-mid); color: var(--ivory); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-outline-ivory {
  background: transparent;
  border: 2px solid rgba(255,251,235,.5);
  color: var(--ivory);
}
.btn-outline-ivory:hover { background: rgba(255,251,235,.15); }

.btn-sm { font-size: .8125rem; padding: 8px 18px; }
.btn-lg { font-size: 1.0625rem; padding: 16px 36px; }

/* ===========================
   SECTION UTILITIES
=========================== */
.section { padding: 80px 0; position: relative; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.75rem); color: var(--navy); margin-bottom: 16px; }
.section-subtitle { font-size: 1.0625rem; color: var(--stone); max-width: 640px; margin: 0 auto; }

/* ===========================
   CARDS
=========================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}
.card-img img { width: 100%; height: 200px; object-fit: cover; }

.card-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card-title { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.card-body { font-size: .9375rem; color: var(--stone); line-height: 1.6; }

/* ===========================
   COURSE CARD
=========================== */
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.course-card-thumb { position: relative; overflow: hidden; }
.course-card-thumb img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s ease; }
.course-card:hover .course-card-thumb img { transform: scale(1.04); }

.course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--teal);
  color: var(--white);
  font-size: .725rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.course-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-level {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--stone);
  margin-bottom: 10px;
}
.course-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.course-desc { font-size: .9rem; color: var(--stone); line-height: 1.6; flex: 1; }

.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .825rem;
  color: var(--stone);
}
.course-meta span { display: flex; align-items: center; gap: 5px; }

.progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 14px; }
.progress-fill { height: 100%; background: var(--teal); border-radius: 2px; }

/* ===========================
   GRIDS
=========================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }

/* ===========================
   HERO
=========================== */
.hero {
  background: var(--navy);
  color: var(--ivory);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,148,136,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: var(--ivory);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255,251,235,.75);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,251,235,.15);
}
.stat-item {}
.stat-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--ivory); line-height: 1; }
.stat-label { font-size: .8rem; color: rgba(255,251,235,.6); margin-top: 4px; }

.hero-visual {
  position: relative;
}
.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================
   CALCULATOR BLOCK
=========================== */
.calc-block {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--ivory);
}

.calc-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ivory); margin-bottom: 8px; }
.calc-subtitle { font-size: .9rem; color: rgba(255,251,235,.65); margin-bottom: 28px; }

.calc-row { margin-bottom: 20px; }
.calc-row label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,251,235,.8);
  margin-bottom: 8px;
}
.calc-row label span { color: var(--teal-light); font-weight: 700; }

.calc-range {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255,251,235,.2);
  border-radius: 2px;
  outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.calc-result {
  background: rgba(255,251,235,.08);
  border: 1px solid rgba(255,251,235,.15);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.calc-result-label { font-size: .875rem; color: rgba(255,251,235,.7); }
.calc-result-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--teal-light); }

/* ===========================
   TIMELINE
=========================== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal-pale);
}

.timeline-week {
  font-size: .775rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.timeline-topic { font-family: var(--font-serif); font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.timeline-desc { font-size: .875rem; color: var(--stone); line-height: 1.6; }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--teal-pale);
  position: absolute;
  top: 10px;
  left: 24px;
  line-height: 1;
}

.testimonial-text { font-size: .9375rem; color: var(--graphite); line-height: 1.7; margin-bottom: 20px; padding-top: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: .9rem; color: var(--navy); }
.testimonial-role { font-size: .8rem; color: var(--stone); }

.stars { color: #F59E0B; font-size: .9rem; letter-spacing: 2px; margin-bottom: 12px; }

/* ===========================
   ACCORDION / FAQ
=========================== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--navy);
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--sand); }
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition); color: var(--teal); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  background: var(--ivory);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: .9375rem; color: var(--graphite); line-height: 1.7; }

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--stone);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--graphite); font-weight: 500; }

/* ===========================
   BLOG
=========================== */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.article-card-thumb { overflow: hidden; }
.article-card-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card-thumb img { transform: scale(1.04); }

.article-card-body { padding: 24px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--stone);
  margin-bottom: 10px;
}
.article-category {
  color: var(--teal);
  font-weight: 600;
}
.article-title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.article-excerpt { font-size: .875rem; color: var(--stone); line-height: 1.6; }

/* ===========================
   CONTACT FORM
=========================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--graphite); margin-bottom: 6px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--graphite);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.form-textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  background: var(--teal-pale);
  border: 1px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  color: #0f4f4b;
  font-weight: 500;
  margin-top: 20px;
}
.form-success.visible { display: block; }

/* ===========================
   TAGS / PILLS
=========================== */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--sand);
  color: var(--navy);
  letter-spacing: .03em;
}
.tag-teal { background: var(--teal-pale); color: #0f4f4b; }

/* ===========================
   FEATURES / INFO BOXES
=========================== */
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--teal); fill: none; }

.info-box {
  background: var(--sand);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: .9375rem;
  color: var(--graphite);
  margin: 24px 0;
}

/* ===========================
   TABLE
=========================== */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
  background: var(--navy);
  color: var(--ivory);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--ivory); }

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero {
  background: var(--navy);
  padding: 64px 0 56px;
  color: var(--ivory);
}
.page-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); color: var(--ivory); margin-bottom: 12px; }
.page-hero p { color: rgba(255,251,235,.7); font-size: 1.0625rem; max-width: 600px; }

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  background: var(--teal);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { font-family: var(--font-serif); font-size: clamp(1.6rem,3vw,2.25rem); color: var(--white); margin-bottom: 14px; }
.cta-banner p { font-size: 1.0625rem; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--graphite);
  color: rgba(255,251,235,.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,251,235,.1);
}

.footer-brand .logo-name { color: var(--ivory); }
.footer-brand .logo-tagline { color: rgba(255,251,235,.45); }
.footer-brand .logo-icon { background: var(--teal); }

.footer-desc {
  font-size: .875rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,251,235,.55);
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .875rem; color: rgba(255,251,235,.6); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--teal-light); }

.footer-contact p { font-size: .875rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; color: rgba(255,251,235,.6); }
.footer-contact p svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--teal); fill: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,251,235,.35);
}
.footer-bottom a { color: rgba(255,251,235,.45); }
.footer-bottom a:hover { color: var(--teal-light); }
.footer-policy-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===========================
   COOKIE BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--graphite);
  color: var(--ivory);
  z-index: 9999;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 2px solid var(--teal);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { font-size: .875rem; flex: 1; color: rgba(255,251,235,.8); }
.cookie-text a { color: var(--teal-light); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept { background: var(--teal); color: var(--white); border: none; padding: 8px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem; cursor: pointer; }
.cookie-decline { background: transparent; color: rgba(255,251,235,.6); border: 1px solid rgba(255,251,235,.3); padding: 8px 16px; border-radius: var(--radius-sm); font-size: .875rem; cursor: pointer; }

/* ===========================
   ARTICLE / CONTENT PAGES
=========================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.article-content h2 { font-size: 1.75rem; color: var(--navy); margin: 32px 0 14px; }
.article-content h3 { font-size: 1.25rem; color: var(--navy); margin: 24px 0 10px; }
.article-content p  { margin-bottom: 1.1rem; font-size: .9875rem; line-height: 1.75; }
.article-content ul, .article-content ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
.article-content li { font-size: .9875rem; line-height: 1.7; margin-bottom: .4rem; }
.article-content strong { color: var(--navy); }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ===========================
   GLOSSARY
=========================== */
.glossary-letter {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--teal);
  font-weight: 700;
  padding: 16px 0 8px;
  border-bottom: 2px solid var(--teal-pale);
  margin-bottom: 20px;
}

.glossary-term { margin-bottom: 24px; padding-left: 16px; border-left: 2px solid var(--border); }
.glossary-term dt { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.glossary-term dd { font-size: .9375rem; color: var(--graphite); line-height: 1.65; }

/* ===========================
   TABS
=========================== */
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  color: var(--stone);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover  { color: var(--navy); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===========================
   UTILITY
=========================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-12 { gap: 12px; }
.flex   { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

.bg-ivory  { background: var(--ivory); }
.bg-white  { background: var(--white); }
.bg-navy   { background: var(--navy); color: var(--ivory); }
.bg-sand   { background: var(--sand); }
.bg-teal   { background: var(--teal); }

.text-navy  { color: var(--navy); }
.text-teal  { color: var(--teal); }
.text-stone { color: var(--stone); }

/* ===========================
   BACK TO TOP
=========================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--ivory);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 500;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-grid { gap: 40px; }
  .article-layout { grid-template-columns: 1fr; }
  /* article pages with inline sidebar grid */
  .container > .section > .container [style*="grid-template-columns: 1fr 300px"] { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* article pages with inline sidebar */
  [style*="grid-template-columns: 1fr 300px"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 300px"]  { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-ghost { display: none; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-dropdown-toggle { width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; }

  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }

  .tabs-nav { flex-direction: column; }
  .tab-btn { border-bottom: none; border-left: 2px solid transparent; margin: 0; }
  .tab-btn.active { border-left-color: var(--teal); border-bottom-color: transparent; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .cookie-banner { flex-direction: column; }
}


/* === AUTO-FIXED: SVG size rules === */
.course-card-body svg,.course-meta svg { width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0;display:inline-block;vertical-align:middle; }
.grid-3 svg,.grid-4 svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0; }
.site-footer svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0; }
