/* ==========================================================================
   FRENCH CONNECT ACADEMY — SHARED STYLESHEET
   Calgary, Alberta, Canada
   ========================================================================== */

/* ===== 1. CSS CUSTOM PROPERTIES (THEME VARIABLES) ===== */
:root {
  /* Colors */
  --navy:         #0f1b3d;
  --navy-light:   #1a2d5a;
  --navy-dark:    #0a1228;
  --navy-rgb:     15, 27, 61;
  --red:          #c1272d;
  --red-hover:    #a01f24;
  --red-light:    #fdf2f2;
  --red-rgb:      193, 39, 45;
  --white:        #ffffff;
  --off-white:    #f7f8fa;
  --slate:        #eef0f4;
  --slate-dark:   #e2e6ed;
  --gray-100:     #f1f5f9;
  --gray-200:     #e2e8f0;
  --gray-300:     #cbd5e1;
  --gray-400:     #94a3b8;
  --gray-500:     #64748b;
  --gray-600:     #475569;
  --gray-700:     #334155;
  --gray-800:     #1e293b;
  --gray-900:     #0f172a;
  --success:      #10b981;
  --success-light:#ecfdf5;
  --warning:      #f59e0b;
  --purple:       #8b5cf6;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;

  /* Layout & Sizing */
  --max-w:        1200px;
  --max-w-narrow: 840px;
  --header-h:     80px;
  --topbar-h:     40px;
  --radius-sm:    6px;
  --radius:       8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-pill:  9999px;

  /* Shadows */
  --shadow-sm:    0 2px 4px rgba(15, 27, 61, 0.04);
  --shadow-md:    0 6px 18px rgba(15, 27, 61, 0.08);
  --shadow-lg:    0 12px 32px rgba(15, 27, 61, 0.12);
  --shadow-xl:    0 20px 48px rgba(15, 27, 61, 0.16);
  --shadow-red:   0 4px 16px rgba(193, 39, 45, 0.35);
  --shadow-navy:  0 4px 16px rgba(15, 27, 61, 0.3);

  /* Transitions */
  --transition-fast: .18s ease;
  --transition:      .3s ease;
  --transition-slow: .5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, picture, video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

/* ===== 3. UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-w-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding: 96px 0;
}

.section-padding-sm {
  padding: 64px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-title span {
  color: var(--red);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-header-left {
  text-align: left;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-navy  { color: var(--navy) !important; }
.text-red   { color: var(--red) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--gray-500) !important; }

.bg-white     { background-color: var(--white) !important; }
.bg-off-white { background-color: var(--off-white) !important; }
.bg-slate     { background-color: var(--slate) !important; }
.bg-navy      { background-color: var(--navy) !important; color: var(--white); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.badge-red {
  background: rgba(193, 39, 45, 0.1);
  color: var(--red);
}

.badge-navy {
  background: rgba(15, 27, 61, 0.08);
  color: var(--navy);
}

.badge-green {
  background: var(--success-light);
  color: var(--success);
}

.badge-slate {
  background: var(--slate);
  color: var(--gray-700);
}

/* ===== 4. BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(193, 39, 45, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--shadow-navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== 5. FRENCH TRICOLOR ACCENT BAR ===== */
.tricolor {
  height: 4px;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.tricolor.thick {
  height: 6px;
}

.tricolor span {
  flex: 1;
  height: 100%;
}

.tricolor .tc-blue  { background: var(--navy); }
.tricolor .tc-white { background: var(--white); }
.tricolor .tc-red   { background: var(--red); }

/* ===== 6. HEADER & NAVBAR (AF CALGARY INSPIRED) ===== */
.header-wrapper,
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled,
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(15, 27, 61, 0.1);
}

/* Row 1: Top Bar (Slim Dark Navy Strip) */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-h);
  padding-top: 6px;
  padding-bottom: 6px;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.top-bar-item a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar-item a:hover {
  color: var(--white);
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
}

.top-bar-cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  background: var(--red);
  color: var(--white) !important;
  border-radius: 4px;
  transition: background-color var(--transition);
}

.top-bar-cta:hover {
  background: var(--red-hover);
}

/* Row 2: Main Nav Bar */
.main-nav,
.navbar {
  background: var(--white);
  border-bottom: 1px solid rgba(15, 27, 61, 0.08);
  height: var(--header-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.main-nav .container,
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--slate);
  box-shadow: var(--shadow-sm);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--navy);
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item > a,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0 16px;
  height: 100%;
  position: relative;
  transition: color var(--transition);
}

.nav-item > a:hover,
.nav-link:hover {
  color: var(--red);
}

/* Active Page Indicator */
.nav-item.active > a,
.nav-link.active,
.nav-links a.active {
  color: var(--red);
  font-weight: 600;
}

.nav-item.active > a::after,
.nav-link.active::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.has-dropdown > a .chevron {
  display: inline-block;
  transition: transform var(--transition);
  margin-left: 6px;
  vertical-align: middle;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 12px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 0;
  box-shadow: 0 12px 36px rgba(15, 27, 61, 0.12);
  border: 1px solid rgba(15, 27, 61, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  pointer-events: none;
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.has-dropdown:hover > a .chevron {
  transform: rotate(-180deg);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: background-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--slate);
  color: var(--red);
  padding-left: 24px;
}

.dropdown-menu a.active {
  color: var(--red);
  font-weight: 600;
  background: rgba(193, 39, 45, 0.05);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 6px 0;
}

.nav-cta {
  font-size: 0.85rem !important;
  padding: 10px 22px !important;
  margin-left: 12px;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  z-index: 1100;
  transition: background-color var(--transition);
}

.hamburger:hover {
  background: var(--slate);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background-color var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--white);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--white);
}

/* ===== 7. MOBILE MENU OVERLAY ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--navy);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 32px 40px;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.mobile-nav-item {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 0;
  transition: color var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--red);
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 6px 0;
}

.mobile-dropdown-toggle .chevron-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
}

.mobile-dropdown-toggle.open .chevron-icon {
  transform: rotate(-135deg);
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 6px 16px;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 0;
}

.mobile-submenu a:hover,
.mobile-submenu a.active {
  color: var(--white);
}

.mobile-menu-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.mobile-menu-contact {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  line-height: 1.6;
}

.mobile-menu-contact a {
  color: rgba(255, 255, 255, 0.85);
  display: block;
}

/* ===== 8. HERO SECTION ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #162654 50%, var(--navy-light) 100%);
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(193, 39, 45, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  padding: 80px 0 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px 18px 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--red);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* ===== 9. PAGE HERO (FOR INNER PAGES) ===== */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #162654 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(193, 39, 45, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-content {
  max-width: 780px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.page-hero h1 span {
  color: var(--red);
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  line-height: 1.65;
}

/* ===== 10. BREADCRUMBS ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  user-select: none;
}

.breadcrumb-current,
.breadcrumb span:last-child {
  color: var(--white);
  font-weight: 600;
}

/* Light Theme Breadcrumb (for white background sections) */
.breadcrumb-light {
  color: var(--gray-500);
}

.breadcrumb-light a {
  color: var(--gray-600);
}

.breadcrumb-light a:hover {
  color: var(--red);
}

.breadcrumb-light .breadcrumb-separator {
  color: var(--gray-400);
}

.breadcrumb-light .breadcrumb-current {
  color: var(--navy);
}

/* ===== 11. COURSE CARDS GRID ===== */
.courses {
  background: var(--off-white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  border: 1px solid rgba(15, 27, 61, 0.06);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(193, 39, 45, 0.2);
}

.course-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.course-icon svg {
  width: 24px;
  height: 24px;
}

.course-icon.blue   { background: rgba(15, 27, 61, 0.08); color: var(--navy); }
.course-icon.red    { background: rgba(193, 39, 45, 0.08); color: var(--red); }
.course-icon.green  { background: rgba(16, 185, 129, 0.08); color: var(--success); }
.course-icon.purple { background: rgba(139, 92, 246, 0.08); color: var(--purple); }

.course-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.course-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 18px;
}

.course-levels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}

.course-level {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--slate);
  color: var(--navy);
}

.course-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-link:hover {
  color: var(--red-hover);
}

/* ===== 12. SCHEDULE CARDS ===== */
.schedules {
  background: var(--white);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.schedule-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 27, 61, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.schedule-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 27, 61, 0.15);
}

.schedule-card-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(15, 27, 61, 0.06);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-card-header h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}

.schedule-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(193, 39, 45, 0.08);
  color: var(--red);
}

.schedule-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.schedule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.schedule-row + .schedule-row {
  border-top: 1px solid rgba(15, 27, 61, 0.04);
}

.schedule-row svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.schedule-details {
  display: flex;
  flex-direction: column;
}

.schedule-days {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.schedule-time {
  font-size: 0.825rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.schedule-card-action {
  margin-top: auto;
  padding-top: 20px;
}

/* ===== 13. EXAM PREP CARDS ===== */
.exam-prep {
  background: var(--off-white);
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.exam-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  border: 1px solid rgba(15, 27, 61, 0.06);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.exam-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(193, 39, 45, 0.2);
}

.exam-card-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
  width: fit-content;
}

.exam-card-tag.tef  { background: rgba(15, 27, 61, 0.08);  color: var(--navy); }
.exam-card-tag.tcf  { background: rgba(193, 39, 45, 0.08); color: var(--red); }
.exam-card-tag.delf { background: rgba(16, 185, 129, 0.08); color: var(--success); }

.exam-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.exam-card > p {
  font-size: 0.925rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.65;
}

.exam-features {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 24px;
}

.exam-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.exam-feature svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
}

/* ===== 14. EXAM DETAIL PAGE STYLES ===== */
.exam-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #162654 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}

.exam-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(193, 39, 45, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.exam-hero .container {
  position: relative;
  z-index: 1;
}

.exam-hero-content {
  max-width: 800px;
}

.exam-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.18;
}

.exam-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  line-height: 1.65;
}

/* Detail Content Layout (2fr main, 1fr sidebar) */
.exam-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.exam-main-col {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.exam-section {
  background: var(--white);
}

.exam-section h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.exam-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.exam-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 14px;
}

.exam-section p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 18px;
}

.exam-section ul {
  margin-bottom: 24px;
}

.exam-benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.exam-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.exam-benefit svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.exam-benefit-text {
  font-size: 0.925rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.5;
}

/* Exam Structure Cards */
.exam-structure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.exam-structure-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--white);
}

.exam-structure-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.exam-structure-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.exam-structure-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* Exam Sidebar */
.exam-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.exam-info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid rgba(15, 27, 61, 0.08);
  box-shadow: var(--shadow-sm);
}

.exam-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.exam-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.exam-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.exam-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

.exam-info-label {
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-500);
  display: block;
}

.exam-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-top: 2px;
}

.exam-sidebar-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.exam-sidebar-cta h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.exam-sidebar-cta p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ===== 15. CONTACT SECTION ===== */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 0.975rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
}

.contact-detail + .contact-detail {
  border-top: 1px solid rgba(15, 27, 61, 0.06);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--slate);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-detail-value a {
  color: var(--navy);
  transition: color var(--transition);
}

.contact-detail-value a:hover {
  color: var(--red);
}

/* Map placeholder */
.map-placeholder {
  margin-top: 32px;
  background: var(--slate);
  border-radius: var(--radius-md);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(15, 27, 61, 0.08);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Form */
.contact-form-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid rgba(15, 27, 61, 0.06);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(15, 27, 61, 0.12);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 27, 61, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
}

/* ===== 16. FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-name {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: block;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition), padding-left var(--transition);
}

.footer ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-list li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer-contact-list li a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-list li a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.45);
}

/* ===== 17. SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible,
.reveal.active,
.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible,
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.is-visible,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== 18. RESPONSIVE BREAKPOINTS ===== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .section-padding {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exam-detail-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .exam-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* Header & Navigation */
  .top-bar-left {
    display: none;
  }

  .top-bar .container {
    justify-content: flex-end;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 60px 0 48px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
    margin-top: 40px;
    padding-top: 28px;
  }

  .hero-stat-value {
    font-size: 1.85rem;
  }

  .page-hero {
    min-height: 240px;
    padding: 48px 0;
  }

  .page-hero h1 {
    font-size: 2.15rem;
  }

  .exam-hero-title {
    font-size: 2.2rem;
  }

  /* Grids to Single Column */
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .exam-grid {
    grid-template-columns: 1fr;
  }

  .exam-benefits-list {
    grid-template-columns: 1fr;
  }

  .exam-structure-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* Extra Small Devices (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--navy);
  padding: 64px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== CARD LINK TEXT ===== */
.card-link-text {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  transition: color var(--transition);
}

.card-link-text:hover,
.exam-card:hover .card-link-text {
  color: var(--red-hover);
}

/* ===== EXAM CARDS AS LINKS ===== */
a.exam-card,
a.course-card {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

/* ===== EXAM PAGE GENERAL LAYOUT ===== */
.exam-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #162654 100%);
  color: var(--white);
  padding: 64px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.exam-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(193, 39, 45, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.exam-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.exam-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--white);
  font-weight: 600;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(193, 39, 45, 0.18);
  border: 1px solid rgba(193, 39, 45, 0.4);
  color: #ff9da1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}

.exam-hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 18px;
}

.exam-hero p.subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 740px;
}

.exam-detail-section {
  padding: 72px 0 88px;
  background: var(--white);
}

.exam-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.exam-main {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.content-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.content-block p {
  font-size: 1.02rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.info-callout {
  background: var(--off-white);
  border-left: 4px solid var(--navy);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 20px;
}

.info-callout p {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin: 0;
}

/* Component Cards (TEF & TCF components) */
.components-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.component-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.component-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 27, 61, 0.15);
}

.component-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.component-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 27, 61, 0.06);
  color: var(--navy);
  flex-shrink: 0;
}

.component-card:nth-child(2) .component-icon {
  background: rgba(193, 39, 45, 0.08);
  color: var(--red);
}

.component-card:nth-child(3) .component-icon {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.component-card:nth-child(4) .component-icon {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}

.component-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.component-title span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: 2px;
}

.component-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--slate-100);
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--slate-50);
  color: var(--gray-700);
}

.meta-tag svg {
  width: 13px;
  height: 13px;
  color: var(--gray-500);
}

/* Benefits & Checklist styles */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--off-white);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.benefit-item:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: rgba(15, 27, 61, 0.1);
}

.benefit-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e6f7ef;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.benefit-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.benefit-text p {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Audience List */
.audience-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.audience-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--red);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.audience-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.audience-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sticky sidebar and widgets */
.exam-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-md);
}

.sidebar-cta-card {
  background: linear-gradient(145deg, #ffffff 0%, #fdf5f5 100%);
  border: 1.5px solid rgba(193, 39, 45, 0.18);
  position: relative;
  overflow: hidden;
}

.sidebar-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--red);
}

.sidebar-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.sidebar-cta-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 22px;
}

.sidebar-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-phone-link:hover {
  color: var(--red);
  background: rgba(15, 27, 61, 0.04);
}

.quick-facts-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-100);
}

.quick-facts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-fact-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--slate-100);
}

.quick-fact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fact-label svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
  flex-shrink: 0;
}

.fact-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

.sidebar-help-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.sidebar-help-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.sidebar-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
}

.sidebar-contact-link:hover {
  color: var(--red-hover);
}

.cta-banner-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(193, 39, 45, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta-banner-text h2 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
}

.cta-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .exam-detail-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .exam-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .exam-hero h1 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .exam-hero {
    padding: 48px 0 60px;
  }
  .exam-hero h1 {
    font-size: 2.1rem;
  }
  .exam-hero p.subtitle {
    font-size: 1rem;
  }
  .components-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .exam-sidebar {
    grid-template-columns: 1fr;
  }
}

