/* ============================================
   BASE TYPOGRAPHY & ACCESSIBILITY
   ============================================ */
:root {
  /* ============================================
     EDUCATION PLATFORM COLOR PALETTE
     Professional, trustworthy, calm colors
     ============================================ */
  /* ============================================
     PRIMARY BRAND COLOR
     #2563EB - Professional, trustworthy blue
     ============================================ */
  --primary-color: #2563EB;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-lightest: #dbeafe;
  
  /* ============================================
     SUCCESS COLOR
     #22C55E - Green for success states
     ============================================ */
  --success-color: #22C55E;
  --success-light: #4ade80;
  --success-bg: #dcfce7;
  
  /* ============================================
     GAMIFICATION / BADGES COLOR
     #7C3AED - Purple for gamification elements
     ============================================ */
  --gamification-color: #7C3AED;
  --gamification-light: #8b5cf6;
  --gamification-bg: #ede9fe;
  
  /* ============================================
     ERROR/WARNING COLORS
     #DC2626 - Red for errors/warnings only
     ============================================ */
  --danger-color: #DC2626;
  --danger-light: #ef4444;
  --danger-bg: #fee2e2;
  --warning-color: #f59e0b;
  --warning-light: #fbbf24;
  --warning-bg: #fef3c7;
  
  /* ============================================
     NEUTRAL COLORS
     Clean, professional grays
     ============================================ */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* ============================================
     BACKGROUND COLORS
     White and light grays
     ============================================ */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-lighter: #F1F5F9;
  --bg-section: #F8FAFC;
  
  /* ============================================
     BORDER COLORS
     Subtle borders
     ============================================ */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;
  
  /* ============================================
     INFO COLOR
     Blue for informational messages
     ============================================ */
  --info-color: #2563EB;
  --info-light: #3b82f6;
  --info-bg: #dbeafe;
  
  /* ============================================
     SPACING SYSTEM
     Consistent 8px base unit
     ============================================ */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 2.5rem;    /* 40px */
  --spacing-3xl: 3rem;      /* 48px */
  --spacing-4xl: 4rem;      /* 64px */
  --spacing-5xl: 5rem;      /* 80px */
  
  /* ============================================
     TYPOGRAPHY SYSTEM
     Professional, readable hierarchy
     ============================================ */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Base Typography */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* ============================================
     BORDER RADIUS
     Modern, consistent rounding
     ============================================ */
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-2xl: 20px;
  --border-radius-full: 9999px;

  /* Premium card shadows */
  --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(0, 0, 0, 0.15);
  --section-alt-bg: #F6F8FC;
  --section-alt-light: #f5f9ff;
  --section-alt-grey: #f8fafc;
  
  /* ============================================
     SHADOWS
     Subtle, professional depth
     ============================================ */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* ============================================
     TRANSITIONS
     Smooth, professional animations
     ============================================ */
  --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --traffic-pattern-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg opacity='0.16'%3E%3Cg transform='translate(85,85) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,0 70,60 0,60' fill='%23f59e0b' stroke='%23d97706' stroke-width='1.5'/%3E%3C/g%3E%3Cg transform='translate(205,85) scale(0.5) translate(-35,-35)'%3E%3Ccircle cx='35' cy='30' r='28' fill='%23dc2626' stroke='%23b91c1c' stroke-width='1.5'/%3E%3Cline x1='12' y1='30' x2='58' y2='30' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(325,85) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,5 65,25 65,55 35,75 5,55 5,25' fill='%23dc2626' stroke='%23b91c1c' stroke-width='1.5'/%3E%3C/g%3E%3Cg transform='translate(85,205) scale(0.5) translate(-35,-35)'%3E%3Crect x='5' y='5' width='60' height='60' rx='6' fill='%232563eb' stroke='%231e40af' stroke-width='1.5'/%3E%3Ccircle cx='35' cy='25' r='6' fill='%23fff'/%3E%3Cline x1='35' y1='33' x2='35' y2='48' stroke='%23fff' stroke-width='2.5'/%3E%3Cline x1='35' y1='48' x2='28' y2='58' stroke='%23fff' stroke-width='2.5'/%3E%3Cline x1='35' y1='48' x2='42' y2='58' stroke='%23fff' stroke-width='2.5'/%3E%3C/g%3E%3Cg transform='translate(205,205) scale(0.5) translate(-35,-35)'%3E%3Cimage href='/images/trafiksayfasi-pattern-logo.png' x='0' y='0' width='70' height='70' preserveAspectRatio='xMidYMid meet'/%3E%3C/g%3E%3Cg transform='translate(325,205) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,0 70,50 42,50 42,70 28,70 28,50 0,50' fill='%232563eb' stroke='%231e40af' stroke-width='1.5'/%3E%3C/g%3E%3Cg transform='translate(85,325) scale(0.5) translate(-35,-35)'%3E%3Crect x='5' y='5' width='60' height='60' rx='6' fill='%232563eb' stroke='%231e40af' stroke-width='1.5'/%3E%3Ctext x='35' y='45' font-size='36' font-weight='bold' fill='%23fff' text-anchor='middle' font-family='Arial,sans-serif'%3EP%3C/text%3E%3C/g%3E%3Cg transform='translate(205,325) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,60 5,10 65,10' fill='none' stroke='%23dc2626' stroke-width='3'/%3E%3Cline x1='20' y1='35' x2='50' y2='35' stroke='%23fff' stroke-width='4'/%3E%3C/g%3E%3Cg transform='translate(325,325) scale(0.5) translate(-35,-35)'%3E%3Crect x='5' y='5' width='60' height='60' rx='6' fill='%232563eb' stroke='%231e40af' stroke-width='1.5'/%3E%3Ccircle cx='35' cy='25' r='5' fill='%23fff'/%3E%3Crect x='32' y='32' width='6' height='25' fill='%23fff' rx='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --traffic-pattern-visible: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='420' height='560' viewBox='0 0 420 560'%3E%3Cg opacity='0.28'%3E%3Cg transform='translate(85,85) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,0 70,60 0,60' fill='%23f59e0b' stroke='%23d97706' stroke-width='1.5'/%3E%3C/g%3E%3Cg transform='translate(205,85) scale(0.5) translate(-35,-35)'%3E%3Ccircle cx='35' cy='30' r='28' fill='%23dc2626' stroke='%23b91c1c' stroke-width='1.5'/%3E%3Cline x1='12' y1='30' x2='58' y2='30' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(325,85) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,5 65,25 65,55 35,75 5,55 5,25' fill='%23dc2626' stroke='%23b91c1c' stroke-width='1.5'/%3E%3C/g%3E%3Cg transform='translate(85,205) scale(0.5) translate(-35,-35)'%3E%3Ccircle cx='35' cy='30' r='28' fill='%23dc2626' stroke='%23b91c1c' stroke-width='1.5'/%3E%3Cline x1='12' y1='30' x2='58' y2='30' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3Cg transform='translate(205,205) scale(0.5) translate(-35,-35)'%3E%3Cimage href='/images/trafiksayfasi-pattern-logo.png' x='0' y='0' width='70' height='70' preserveAspectRatio='xMidYMid meet'/%3E%3C/g%3E%3Cg transform='translate(325,205) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,0 70,50 42,50 42,70 28,70 28,50 0,50' fill='%232563eb' stroke='%231e40af' stroke-width='1.5'/%3E%3C/g%3E%3Cg transform='translate(85,325) scale(0.5) translate(-35,-35)'%3E%3Crect x='5' y='5' width='60' height='60' rx='6' fill='%232563eb' stroke='%231e40af' stroke-width='1.5'/%3E%3Ctext x='35' y='45' font-size='36' font-weight='bold' fill='%23fff' text-anchor='middle' font-family='Arial,sans-serif'%3EP%3C/text%3E%3C/g%3E%3Cg transform='translate(205,325) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,60 5,10 65,10' fill='none' stroke='%23dc2626' stroke-width='3'/%3E%3Cline x1='20' y1='35' x2='50' y2='35' stroke='%23fff' stroke-width='4'/%3E%3C/g%3E%3Cg transform='translate(325,325) scale(0.5) translate(-35,-35)'%3E%3Crect x='5' y='5' width='60' height='60' rx='6' fill='%232563eb' stroke='%231e40af' stroke-width='1.5'/%3E%3Ccircle cx='35' cy='25' r='5' fill='%23fff'/%3E%3Crect x='32' y='32' width='6' height='25' fill='%23fff' rx='1'/%3E%3C/g%3E%3Cg transform='translate(85,445) scale(0.5) translate(-35,-35)'%3E%3Cimage href='/images/trafiksayfasi-pattern-logo.png' x='0' y='0' width='70' height='70' preserveAspectRatio='xMidYMid meet'/%3E%3C/g%3E%3Cg transform='translate(205,445) scale(0.5) translate(-35,-35)'%3E%3Cpolygon points='35,5 65,25 65,55 35,75 5,55 5,25' fill='%23dc2626' stroke='%23b91c1c' stroke-width='1.5'/%3E%3C/g%3E%3Cg transform='translate(325,445) scale(0.5) translate(-35,-35)'%3E%3Ccircle cx='35' cy='30' r='28' fill='%23dc2626' stroke='%23b91c1c' stroke-width='1.5'/%3E%3Cline x1='12' y1='30' x2='58' y2='30' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  font-weight: var(--font-weight-semibold);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
  height: 100%;
}

body {
  margin-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* ============================================
   TYPOGRAPHY HIERARCHY
   Professional, readable headings
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

.display-1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.04em;
}

.display-2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
}

.display-3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

.display-4 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
}

.display-5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

/* Improve readability - avoid awkward line breaks in headings */
h1, h2, h3 {
  text-wrap: balance;
}

/* Paragraph readability - max-width for long blocks */
.content-prose p {
  max-width: 65ch;
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

/* ============================================
   TRAFFIC WALLPAPER - Subtle themed background
   SVG pattern: triangle (warning), circle (sign), rect (sign), diamond (direction)
   Applied to body margins + light sections for visibility
   ============================================ */
.traffic-wallpaper {
  background-color: #f8fafc;
  background-image:
    linear-gradient(175deg, #fafbff 0%, #f5f8fc 35%, #f1f5f9 70%, #f8fafc 100%),
    url('/images/traffic-pattern-kurslarim.svg');
  background-size: 100% 100%, 3840px auto;
  background-repeat: repeat, repeat;
  background-position: 0 0, -50px -30px;
}
/* Home page: no traffic signs */
.traffic-wallpaper.page-home {
  background-image: linear-gradient(175deg, #fafbff 0%, #f5f8fc 35%, #f1f5f9 70%, #f8fafc 100%);
}
.traffic-wallpaper.page-home .section-light {
  background-image: none !important;
  background-color: #f8fafc;
}
.traffic-wallpaper.page-home .section-soft-blue {
  background-image: none !important;
  background-color: #f5f9ff;
}
.traffic-wallpaper.page-home .section-alt {
  background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
.traffic-wallpaper.page-home .section-tint-blue,
.traffic-wallpaper.page-home .section-tint-soft {
  background-image: none !important;
  background-color: #f8fafc;
}
/* Eğitim Paneli, Eğlen ve Öğren, Frenleme Simülatörü, Trafik Rehberi: no traffic signs */
.traffic-wallpaper.page-dashboard,
.traffic-wallpaper.page-funlearn,
.traffic-wallpaper.page-braking,
.traffic-wallpaper.page-trafik-rehberi {
  background-image: linear-gradient(175deg, #fafbff 0%, #f5f8fc 35%, #f1f5f9 70%, #f8fafc 100%);
}
.traffic-wallpaper.page-dashboard .section-light,
.traffic-wallpaper.page-dashboard .section-soft-blue,
.traffic-wallpaper.page-dashboard .section-alt,
.traffic-wallpaper.page-dashboard .section-tint-blue,
.traffic-wallpaper.page-dashboard .section-tint-soft,
.traffic-wallpaper.page-funlearn .section-light,
.traffic-wallpaper.page-funlearn .section-soft-blue,
.traffic-wallpaper.page-funlearn .section-alt,
.traffic-wallpaper.page-funlearn .section-tint-blue,
.traffic-wallpaper.page-funlearn .section-tint-soft,
.traffic-wallpaper.page-braking .section-light,
.traffic-wallpaper.page-braking .section-soft-blue,
.traffic-wallpaper.page-braking .section-alt,
.traffic-wallpaper.page-braking .section-tint-blue,
.traffic-wallpaper.page-braking .section-tint-soft,
.traffic-wallpaper.page-trafik-rehberi .section-light,
.traffic-wallpaper.page-trafik-rehberi .section-soft-blue,
.traffic-wallpaper.page-trafik-rehberi .section-alt,
.traffic-wallpaper.page-trafik-rehberi .section-tint-blue,
.traffic-wallpaper.page-trafik-rehberi .section-tint-soft {
  background-image: none !important;
}
.traffic-wallpaper.page-dashboard .section-light,
.traffic-wallpaper.page-dashboard .section-soft-blue,
.traffic-wallpaper.page-dashboard .section-tint-blue,
.traffic-wallpaper.page-dashboard .section-tint-soft,
.traffic-wallpaper.page-funlearn .section-light,
.traffic-wallpaper.page-funlearn .section-soft-blue,
.traffic-wallpaper.page-funlearn .section-tint-blue,
.traffic-wallpaper.page-funlearn .section-tint-soft,
.traffic-wallpaper.page-braking .section-light,
.traffic-wallpaper.page-braking .section-soft-blue,
.traffic-wallpaper.page-braking .section-tint-blue,
.traffic-wallpaper.page-braking .section-tint-soft,
.traffic-wallpaper.page-trafik-rehberi .section-light,
.traffic-wallpaper.page-trafik-rehberi .section-soft-blue,
.traffic-wallpaper.page-trafik-rehberi .section-tint-blue,
.traffic-wallpaper.page-trafik-rehberi .section-tint-soft {
  background-color: #f8fafc;
}
.traffic-wallpaper.page-dashboard .section-soft-blue,
.traffic-wallpaper.page-funlearn .section-soft-blue,
.traffic-wallpaper.page-funlearn .section-tint-soft,
.traffic-wallpaper.page-braking .section-soft-blue,
.traffic-wallpaper.page-trafik-rehberi .section-soft-blue {
  background-color: #f5f9ff;
}
.traffic-wallpaper.page-dashboard .section-alt,
.traffic-wallpaper.page-funlearn .section-alt,
.traffic-wallpaper.page-braking .section-alt,
.traffic-wallpaper.page-trafik-rehberi .section-alt {
  background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
/* Kurslarım: keep traffic signs (MyCourses is under Dashboard) */
.traffic-wallpaper.page-dashboard .page-kurslarim.section-soft-blue {
  background-image: url('/images/traffic-pattern-kurslarim.svg') !important;
  background-size: 3840px auto !important;
  background-repeat: repeat !important;
  background-position: -50px -30px !important;
  background-color: #f5f9ff !important;
}
/* Light sections show the pattern - same as Kurslarım */
.traffic-wallpaper .section-light {
  background-color: #f8fafc;
  background-image: url('/images/traffic-pattern-kurslarim.svg');
  background-size: 3840px auto;
  background-repeat: repeat;
  background-position: -50px -30px;
}
.traffic-wallpaper .section-soft-blue {
  background-color: #f5f9ff;
  background-image: url('/images/traffic-pattern-kurslarim.svg');
  background-size: 3840px auto;
  background-repeat: repeat;
  background-position: -50px -30px;
}
.traffic-wallpaper .section-alt {
  background-color: #f8fafc;
  background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%), url('/images/traffic-pattern-kurslarim.svg');
  background-size: 100% 100%, 3840px auto;
  background-repeat: repeat, repeat;
  background-position: 0 0, -50px -30px;
}
.traffic-wallpaper .section-tint-blue,
.traffic-wallpaper .section-tint-soft {
  background-color: #f8fafc;
  background-image: url('/images/traffic-pattern-kurslarim.svg');
  background-size: 3840px auto;
  background-repeat: repeat;
  background-position: -50px -30px;
}
/* Eğlen ve Öğren: same pattern as Kurslarım */
.traffic-wallpaper .page-funlearn.section-tint-soft {
  background-color: #f5f9ff;
  background-image: url('/images/traffic-pattern-kurslarim.svg');
  background-size: 3840px auto;
  background-repeat: repeat;
  background-position: -50px -30px;
}
/* Kurslarım */
.traffic-wallpaper .page-kurslarim.section-soft-blue {
  background-color: #f5f9ff;
  background-image: url('/images/traffic-pattern-kurslarim.svg');
  background-size: 3840px auto;
  background-repeat: repeat;
  background-position: -50px -30px;
}
/* White sections and cards stay solid for readability */
.traffic-wallpaper .section-white { background: #ffffff !important; }
/* FAQ section: no traffic signs behind questions for readability */
.traffic-wallpaper .faq-section { background: #f8fafc !important; background-image: none !important; }
.traffic-wallpaper .trust-badge-row { background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%) !important; }
/* Alias for reuse on other pages/elements */
.page-traffic-pattern,
.app-background-themed {
  background-color: #f8fafc;
  background-image: linear-gradient(175deg, #fafbff 0%, #f5f8fc 40%, #f1f5f9 75%, #f8fafc 100%), url('/images/traffic-pattern-kurslarim.svg');
  background-size: 100% 100%, 3840px auto;
  background-repeat: repeat, repeat;
  background-position: 0 0, -50px -30px;
}

/* ============================================
   REUSABLE UI SYSTEM
   Modern SaaS / Education platform consistency
   ============================================ */

/* --- SECTION SYSTEM --- */
.section-standard {
  padding: 2px 0 36px;
}
.section-compact {
  padding: 16px 0 28px;
}
.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.section-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border-top: 1px solid #e0e7ff;
  border-bottom: 1px solid #e0e7ff;
}

@media (min-width: 768px) {
  .section-standard { padding: 48px 0 64px; }
  .section-compact { padding: 28px 0 44px; }
}
@media (max-width: 575.98px) {
  .section-standard { padding: 20px 0 32px; }
  .section-compact { padding: 16px 0 28px; }
  .section-cta { padding: 24px 0 36px; }
  .card-standard .card-body { padding: 1rem 1.25rem; }
  .heading-block { margin-bottom: 1.25rem; }
}

/* --- CONTAINER SYSTEM --- */
.container-standard {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 576px) {
  .container-standard { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .container-standard { padding-left: 2rem; padding-right: 2rem; }
}

/* --- CARD SYSTEM --- */
.card-standard {
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: var(--transition-base);
  background: #fff;
}
.card-standard:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.card-standard:not(.course-card):hover {
  transform: translateY(-2px);
}
.card-standard .card-body {
  padding: 1.25rem 1.5rem;
}
.card-feature {
  border-radius: var(--border-radius-lg);
  border: 1px solid #e0e7ff;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.06);
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
  transition: var(--transition-base);
}
.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

/* --- CARD GRID --- */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 576px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.card-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 576px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* --- HEADING BLOCK --- */
.heading-block {
  margin-bottom: 1.5rem;
}
.heading-block .heading-block-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.heading-block .heading-block-title.heading-block-title-lg {
  font-size: var(--font-size-3xl);
}
.heading-block .heading-block-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* --- BUTTON REFINEMENTS --- */
.btn-primary {
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1.25rem;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.btn-secondary, .btn-outline-primary {
  border-radius: var(--border-radius-md);
  transition: var(--transition-base);
}

/* --- CTA SECTION COMPONENT (extends existing) --- */
.cta-section {
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #e0e7ff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}
.cta-section .cta-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.cta-section .cta-section-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn {
  min-width: 160px;
}

/* ============================================
   CONVERSION - Premium trust & CTA enhancements
   ============================================ */
.trust-strip-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  margin-top: 1rem;
}
.trust-strip-compact span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-strip-compact i { opacity: 0.9; }
@media (max-width: 575.98px) {
  .trust-strip-compact { font-size: 0.75rem; gap: 0.75rem 1rem; margin-top: 0.75rem; }
}

.cta-premium-block {
  padding: 2.25rem 1.75rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
  transition: var(--transition-base);
}
.cta-premium-block .cta-premium-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.cta-premium-block .cta-premium-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-premium-block .btn {
  min-width: 180px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}

/* Nasıl Öğrenirsiniz? - 3-Step Learning Flow */
.nasil-ogrenirsiniz-section {
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--section-alt) 100%);
}
.nasil-ogrenirsiniz-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  height: 100%;
  text-align: center;
}
.nasil-ogrenirsiniz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-lightest);
}
.nasil-ogrenirsiniz-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.nasil-ogrenirsiniz-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.nasil-ogrenirsiniz-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.nasil-ogrenirsiniz-icon {
  font-size: 2rem;
  color: var(--primary-lightest);
}

/* Why Choose Us - scannable benefit section */
.why-choose-section {
  padding: 2.5rem 0 3rem;
}
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 992px) {
  .why-choose-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (min-width: 1200px) {
  .why-choose-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}
.why-choose-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: var(--transition-base);
  text-align: center;
}
.why-choose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--primary-lightest);
}
.why-choose-card .why-choose-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}
.why-choose-card .why-choose-icon.icon-blue { background: #dbeafe; color: var(--primary-color); }
.why-choose-card .why-choose-icon.icon-green { background: #dcfce7; color: #059669; }
.why-choose-card .why-choose-icon.icon-purple { background: #ede9fe; color: #7c3aed; }
.why-choose-card .why-choose-icon.icon-amber { background: #fef3c7; color: #d97706; }
.why-choose-card .why-choose-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.why-choose-card .why-choose-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

/* MTSK premium benefit cards */
.mtsk-benefit-card {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-base);
}
.mtsk-benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  border-color: #c7d2fe;
}
.mtsk-benefit-card .mtsk-benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.mtsk-benefit-card .mtsk-benefit-icon.blue { background: #dbeafe; color: var(--primary-color); }
.mtsk-benefit-card .mtsk-benefit-icon.green { background: #dcfce7; color: #059669; }
.mtsk-benefit-card .mtsk-benefit-icon.purple { background: #ede9fe; color: #7c3aed; }
.mtsk-benefit-card .mtsk-benefit-icon.amber { background: #fef3c7; color: #d97706; }
.mtsk-benefit-card .mtsk-benefit-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.mtsk-benefit-card .mtsk-benefit-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.5; }

/* ============================================
   SECTION BACKGROUND UTILITIES - Alternating
   Avoids white wall effect, premium SaaS feel
   ============================================ */
.section-light {
  background: #f8fafc;
}

.section-soft-blue {
  background: #f5f9ff;
}

.section-white {
  background: #ffffff;
}

/* Page section - tighter, consistent vertical rhythm (SaaS/EdTech) */
.page-section {
  padding: 20px 0 28px;
}

.page-section-tight {
  padding: 16px 0 24px;
}

@media (min-width: 768px) {
  .page-section {
    padding: 28px 0 40px;
  }
  .page-section-tight {
    padding: 24px 0 32px;
  }
}

@media (max-width: 575.98px) {
  .page-section {
    padding: 16px 0 24px;
  }
  .page-section-tight {
    padding: 14px 0 20px;
  }
}

/* ============================================
   CTA INQUIRY - Premium contact/demo sections
   ============================================ */
.cta-inquiry-section {
  padding: 28px 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}
.cta-inquiry-section:hover,
.cta-premium-block:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.12);
}

.cta-inquiry-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cta-inquiry-section p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cta-inquiry-box {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cta-inquiry-box h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-inquiry-box p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cta-inquiry-box .btn {
  width: 100%;
}

/* Driving school value - compact benefit strip */
.mtsk-value-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.mtsk-value-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.mtsk-value-strip i {
  color: #10b981;
  font-size: 0.75rem;
}

@media (max-width: 575.98px) {
  .cta-inquiry-section {
    padding: 20px 16px;
  }
  .cta-inquiry-section h3 {
    font-size: 1rem;
  }
  .cta-inquiry-section p {
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
  }
  .cta-inquiry-box {
    padding: 0.875rem 1rem;
  }
  /* Cards stack cleanly - reduce gap on mobile */
  .row.g-4 { --bs-gutter-y: 1rem; }
}

/* Tinted section backgrounds - subtle colour variation */
.section-tint-blue {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-tint-soft {
  background: #fafbff;
}

/* Override section-specific backgrounds when utilities applied */
.mtsk-intro-section.section-white { background: #ffffff; }
.mtsk-b2b-section.section-soft-blue { background: #f5f9ff; }
.how-it-works-section.section-white { background: #ffffff; }
.testimonials-section-premium.section-light { background: #f8fafc; }

/* Content box / alert refinement - premium feel */
.alert {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card-header {
  padding: 16px 20px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

@media (max-width: 575.98px) {
  .card-body {
    padding: 16px;
  }
  .card-header {
    padding: 14px 16px;
  }
}

/* Panel styling - match homepage card design (Bootstrap 3 panel compatibility) */
.panel {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  background: #fff;
}

.panel:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.panel-default {
  border-color: #e5e7eb;
}

.panel-heading {
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
}

.panel-body {
  padding: 20px;
}

/* ============================================
   TRUST BADGE ROW - Under hero
   ============================================ */
.trust-badge-row {
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
}

.trust-badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 29px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-badge-item i {
  color: #10b981;
  font-size: 0.875rem;
}

@media (max-width: 575.98px) {
  .trust-badge-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* ============================================
   CARD BASE - Premium SaaS floating cards
   ============================================ */
.card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Apply premium card style to homepage and site-wide cards */
.hero-card,
.step-card,
.feature-mini-card,
.testimonial-card-premium,
.feature-grid-card,
.preparation-step-card,
.course-card,
.panel-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.hero-card:hover,
.step-card:hover,
.feature-mini-card:hover,
.testimonial-card-premium:hover,
.feature-grid-card:hover,
.preparation-step-card:hover,
.course-card:hover,
.panel-card:hover,
.trafik-rehberi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.program-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Icon circle backgrounds - Premium EdTech */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #2563eb;
}

.icon-green {
  background: #ecfdf5;
  color: #10b981;
}

.icon-orange {
  background: #fff7ed;
  color: #f59e0b;
}

.icon-purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================
   NAVIGATION BAR
   Clean, professional header
   ============================================ */
.navbar {
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  background: var(--bg-white) !important;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
  transition: var(--transition-base);
}
.navbar-brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-brand:hover {
  color: var(--primary-dark) !important;
}

.nav-link {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  color: var(--text-secondary) !important;
  transition: var(--transition-base);
  position: relative;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  border-radius: var(--border-radius-md);
  margin: 0 var(--spacing-xs);
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--primary-lightest);
}

/* Active navigation state — blue box, white text */
.nav-link.active,
.nav-link[aria-current="page"] {
  color: #fff !important;
  background-color: var(--primary-color, #2563eb) !important;
  font-weight: var(--font-weight-semibold);
}

.nav-link.active i,
.nav-link[aria-current="page"] i {
  color: #fff !important;
}

/* Sidebar / test menu active items */
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus,
a.list-group-item.active,
button.list-group-item.active {
  background-color: var(--primary-color, #2563eb) !important;
  border-color: var(--primary-color, #2563eb) !important;
  color: #fff !important;
}

.list-group-item.active i,
.list-group-item.active:hover i,
.list-group-item.active:focus i {
  color: #fff !important;
}

/* Kurslarım / Eğitim Paneli tabs on Dashboard */
.dashboard-kurslarim-subnav .nav-pills .nav-link {
  color: var(--text-secondary, #475569) !important;
  background-color: transparent;
}

.dashboard-kurslarim-subnav .nav-pills .nav-link:hover {
  color: var(--primary-color, #2563eb) !important;
  background-color: var(--primary-lightest, #eff6ff);
}

.dashboard-kurslarim-subnav .nav-pills .nav-link.active {
  color: #fff !important;
  background-color: var(--primary-color, #2563eb) !important;
  font-weight: var(--font-weight-semibold);
}

.dashboard-kurslarim-subnav .nav-pills .nav-link.active i {
  color: #fff !important;
}

.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.nav-link i {
  margin-right: var(--spacing-xs);
  font-size: 0.9em;
}

/* Nav submenus (Kurslarım, Test Çöz) — not Bootstrap .dropdown-menu (stays display:none without .show) */
header .site-nav-details-panel {
  position: relative;
}

header .site-nav-details-panel summary {
  list-style: none;
  cursor: pointer;
}

header .site-nav-details-panel summary::-webkit-details-marker {
  display: none;
}

header .site-nav-details-menu {
  display: none !important;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0;
  min-width: 14rem;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-color, #dee2e6);
  border-radius: var(--border-radius-md, 0.375rem);
  box-shadow: var(--shadow-md, 0 0.5rem 1rem rgba(0, 0, 0, 0.12));
}

header .site-nav-details-panel[open] .site-nav-details-menu {
  display: block !important;
}

header .site-nav-details-menu .site-nav-sub-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 1rem;
  color: var(--text-primary, #212529);
  text-decoration: none;
  white-space: nowrap;
}

header .site-nav-details-menu .site-nav-sub-link:hover,
header .site-nav-details-menu .site-nav-sub-link:focus {
  background: var(--bg-light, #f8f9fa);
  color: var(--primary-color, #2563eb);
}

header .site-nav-summary::after {
  display: inline-block;
  margin-left: 0.35em;
  vertical-align: 0.15em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
}

/* Desktop: keep all top nav labels on one line (icon + text inline) */
@media (min-width: 992px) {
  header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  header .navbar > .container-fluid {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  header .navbar-brand {
    font-size: 1.05rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
  }

  header .navbar-brand-logo {
    height: 34px;
  }

  header .navbar-collapse {
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
  }

  header .navbar-nav.flex-grow-1 {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.1rem;
    min-width: 0;
    overflow-x: visible;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  header .navbar-collapse {
    overflow: visible;
  }

  header .navbar-nav.flex-grow-1 .nav-item.dropdown {
    position: relative;
  }

  header .navbar-nav.flex-grow-1 .nav-item.dropdown .dropdown-menu {
    z-index: 1055;
  }

  header .site-nav-details-panel {
    z-index: 1;
  }

  header .site-nav-details-panel[open] {
    z-index: 1070;
  }

  header .site-nav-details-panel .site-nav-details-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 1060;
  }

  header .navbar-nav.flex-grow-1::-webkit-scrollbar {
    display: none;
  }

  header .navbar-nav .nav-item {
    flex: 0 0 auto;
    width: auto;
  }

  header .navbar-nav .nav-link {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 0.8rem;
    line-height: 1.15;
    padding: 0.35rem 0.5rem !important;
    margin: 0 !important;
    gap: 0.25rem;
  }

  header .navbar-nav .nav-link i {
    margin-right: 0 !important;
    flex-shrink: 0;
    display: inline-block !important;
  }

  header .navbar-nav:not(.flex-grow-1) {
    flex-shrink: 0;
    margin-left: 0.35rem;
  }

  header .navbar-nav:not(.flex-grow-1) .nav-link {
    font-size: 0.75rem;
    max-width: 10.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header .navbar-nav:not(.flex-grow-1) .btn-link.nav-link {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (min-width: 1200px) {
  header .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.55rem !important;
  }

  header .navbar-nav:not(.flex-grow-1) .nav-link {
    font-size: 0.8rem;
    max-width: 12rem;
  }
}

@media (min-width: 1400px) {
  header .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.45rem 0.65rem !important;
  }
}

/* ============================================
   CTA BUTTONS
   Professional, trustworthy, clear hierarchy
   ============================================ */
.btn {
  border-radius: 10px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-height: 48px; /* WCAG 2.5.5 - Minimum touch target size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: -0.01em;
  line-height: 1;
}

.btn-lg {
  padding: 12px 24px;
  font-size: var(--font-size-lg);
  min-height: 56px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
  min-height: 40px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Primary CTA - Main action button */
.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: white;
  transform: translateY(-2px);
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px var(--primary-lightest), var(--shadow-md);
}

/* Secondary CTA */
.btn-secondary {
  background: white;
  border: 1px solid #d1d5db;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 500;
}

.btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
}

/* Secondary CTA - Outline style */
.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Light CTA - For dark backgrounds */
.btn-light {
  background: white;
  color: var(--text-primary);
  border-color: white;
  box-shadow: var(--shadow-md);
}

.btn-light:hover:not(:disabled) {
  background: var(--bg-light);
  border-color: var(--bg-light);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.btn-outline-light:hover:not(:disabled) {
  background: white;
  border-color: white;
  color: var(--text-primary);
}

/* Success, Warning, Danger buttons */
.btn-success {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-success:hover:not(:disabled) {
  background: var(--success-color);
  border-color: var(--success-color);
  opacity: 0.9;
}

.btn-warning {
  background: var(--warning-color);
  border-color: var(--warning-color);
  color: white;
}

.btn-danger {
  background: var(--danger-color);
  border-color: var(--danger-color);
  color: white;
}

/* Button groups - Better spacing */
.btn-group .btn {
  margin-right: var(--spacing-sm);
}

.btn-group .btn:last-child {
  margin-right: 0;
}

/* ============================================
   CARDS
   Clean, professional card design
   ============================================ */
.card {
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.card-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.card-body {
  padding: var(--spacing-xl);
}

.card-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg);
}

.card-img-top {
  transition: var(--transition-slow);
  width: 100%;
  height: auto;
  display: block;
}

.card-img-top.h-100 {
  height: 100% !important;
  object-fit: cover;
}

.card:hover .card-img-top {
  transform: scale(1.03);
}

/* Card variants */
.card-borderless {
  border: none;
  box-shadow: var(--shadow-md);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-elevated:hover {
  box-shadow: var(--shadow-xl);
}

/* ============================================
   COURSE CARDS
   Professional course card design
   ============================================ */
.course-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:nth-child(1) { animation-delay: 0.05s; }
.course-card:nth-child(2) { animation-delay: 0.1s; }
.course-card:nth-child(3) { animation-delay: 0.15s; }
.course-card:nth-child(4) { animation-delay: 0.2s; }
.course-card:nth-child(5) { animation-delay: 0.25s; }
.course-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card .card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.course-card .card-text {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  flex-grow: 1;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   HERO SECTION
   Professional, trustworthy hero design
   Exclude .badge to prevent ghosting on small pill badges
   ============================================ */
.bg-primary:not(.badge) {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.bg-primary:not(.badge)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section {
  padding: var(--spacing-5xl) 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-section h1 {
  color: white;
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
}

.hero-feature-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  transition: var(--transition-base);
  height: 100%;
}

.hero-feature-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-feature-card i {
  color: white;
  margin-bottom: var(--spacing-md);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-feature-card h5 {
  color: white;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0;
}

/* ============================================
   HERO PREMIUM - EdTech/SaaS Conversion-Focused
   Clean, modern, professional layout
   ============================================ */
.hero-premium {
  background: linear-gradient(135deg, #2d5bff 0%, #4f7cff 50%, #3b6bff 100%);
  color: white;
  padding: 10px 0 18px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-premium { padding: 14px 0 22px; }
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

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

.hero-premium-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-premium-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
  max-width: 480px;
}

.hero-premium-copy {
  text-align: left;
}

.hero-premium-copy .hero-premium-title,
.hero-premium-copy .hero-premium-lead,
.hero-premium-copy .hero-premium-prose,
.hero-premium-copy .hero-mtsk-teaser {
  max-width: none;
  width: 100%;
}

.hero-premium-copy .hero-premium-title {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.hero-premium-copy .hero-premium-lead {
  font-size: clamp(0.865rem, 1.73vw, 0.973rem);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.hero-premium-prose {
  margin-bottom: var(--spacing-md);
}

.hero-premium-copy .hero-premium-prose {
  margin-bottom: 0.35rem;
}

.hero-premium-copy .hero-premium-prose:last-child {
  margin-bottom: 0;
}

.hero-premium-prose strong {
  font-weight: var(--font-weight-bold);
  color: #fff;
}

.hero-mtsk-teaser {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-premium-copy .hero-mtsk-teaser {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.hero-mtsk-teaser-title {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-snug);
}

.hero-premium-copy .hero-mtsk-teaser-title {
  margin-bottom: 0.25rem;
  line-height: 1.25;
  font-size: clamp(0.908rem, 1.73vw, 1.038rem);
}

.hero-mtsk-inline .hero-mtsk-teaser-title {
  display: inline;
  font-weight: var(--font-weight-bold);
  margin: 0 0.35em 0 0;
  margin-bottom: 0;
}

.hero-mtsk-inline {
  line-height: 1.4;
}

.hero-mtsk-teaser-link {
  color: #fff;
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}

.hero-mtsk-teaser-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-xl) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-xl);
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.98);
}

.hero-benefits li i {
  color: rgba(34, 197, 94, 0.95);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.hero-cta-primary {
  background: white;
  color: var(--primary-color);
  border-color: white;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 12px 24px;
  border-radius: 10px;
}

.hero-cta-primary:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-premium .hero-cta-secondary.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.hero-premium .hero-cta-secondary.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
}

/* Hero feature cards - premium SaaS style */
.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: var(--spacing-lg);
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.hero-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.hero-card-icon {
  font-size: 2.25rem;
  color: white;
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
  flex-shrink: 0;
}

.hero-card-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: white;
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-snug);
}

.hero-card-desc {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: var(--line-height-normal);
  flex-grow: 1;
}

@media (max-width: 575.98px) {
  .hero-premium {
    padding: 10px 0 16px;
  }

  .hero-benefits {
    flex-direction: column;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .hero-card {
    min-height: 140px;
    padding: var(--spacing-md);
  }

  .hero-card-icon {
    font-size: 1.5rem;
  }
}

/* ============================================
   MTSK INTRO SECTION - Türkiye'deki Sürücü Kursları
   B2B-focused, premium SaaS style
   ============================================ */
.mtsk-intro-section {
  padding: 16px 0 48px;
  background: var(--section-alt-light);
}

.mtsk-intro-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-snug);
}

.mtsk-intro-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: var(--line-height-relaxed);
}

.mtsk-intro-benefits {
  margin-bottom: 20px;
}

.mtsk-intro-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  margin-bottom: 12px;
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.mtsk-intro-benefit:nth-child(1) { background: #f1f5ff; border-color: #e0e7ff; }
.mtsk-intro-benefit:nth-child(2) { background: #ecfdf5; border-color: #a7f3d0; }
.mtsk-intro-benefit:nth-child(3) { background: #fff7ed; border-color: #fed7aa; }
.mtsk-intro-benefit:nth-child(4) { background: #f1f5ff; border-color: #e0e7ff; }
.mtsk-intro-benefit:nth-child(5) { background: #ecfdf5; border-color: #a7f3d0; }

.mtsk-intro-benefit:hover {
  border-color: var(--primary-lightest);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mtsk-intro-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: white;
}

.mtsk-intro-icon-blue { background: #3B82F6; }
.mtsk-intro-icon-purple { background: #8B5CF6; }
.mtsk-intro-icon-green { background: #10B981; }
.mtsk-intro-icon-orange { background: #F59E0B; }

.mtsk-intro-benefit-title {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-snug);
}

.mtsk-intro-benefit-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--line-height-normal);
}

.mtsk-intro-cta {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 12px 24px;
  border-radius: 10px;
}

.mtsk-intro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Dashboard placeholder card */
.mtsk-intro-dashboard-card {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.mtsk-dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.mtsk-dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-dark);
}

.mtsk-dashboard-dot:nth-child(1) { background: #ef4444; }
.mtsk-dashboard-dot:nth-child(2) { background: #f59e0b; }
.mtsk-dashboard-dot:nth-child(3) { background: #22c55e; }

.mtsk-dashboard-label {
  margin-left: var(--spacing-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}

.mtsk-dashboard-body {
  padding: var(--spacing-2xl);
}

.mtsk-dashboard-stat {
  display: inline-block;
  text-align: center;
  margin-right: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
}

.mtsk-dashboard-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--primary-color);
  line-height: 1.2;
}

.mtsk-dashboard-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mtsk-dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
}

.mtsk-dashboard-row-label {
  color: var(--text-secondary);
}

.mtsk-dashboard-row-value {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.mtsk-dashboard-progress {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.mtsk-dashboard-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: var(--border-radius-full);
  transition: width 0.5s ease;
}

@media (max-width: 991.98px) {
  .mtsk-intro-section .row {
    flex-direction: column;
  }

  .mtsk-intro-dashboard-card {
    margin-top: var(--spacing-xl);
  }
}

@media (max-width: 575.98px) {

  .mtsk-intro-benefit {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mtsk-intro-icon {
    margin: 0 auto;
  }
}

/* ============================================
   MTSK Premium Section - Sürücü Kursları
   Yeni nesil eğitim platformu, conversion-focused
   ============================================ */
#mtsk-platform {
  scroll-margin-top: 80px;
}

.mtsk-premium-section {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 50%, #ffffff 100%);
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  border-bottom: 1px solid var(--border-light);
}

.mtsk-premium-header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.mtsk-premium-title {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.mtsk-premium-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.mtsk-premium-card {
  background: var(--bg-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-xl);
  padding: 1.5rem 1.375rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtsk-premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #c7d2fe;
}

.mtsk-premium-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.mtsk-premium-icon-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.mtsk-premium-icon-green { background: linear-gradient(135deg, #10B981, #059669); }
.mtsk-premium-icon-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.mtsk-premium-icon-amber { background: linear-gradient(135deg, #F59E0B, #D97706); }

.mtsk-premium-card-title {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.mtsk-premium-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.mtsk-premium-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 50%, #f0f9ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--border-radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

.mtsk-premium-cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.mtsk-premium-cta-title {
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.mtsk-premium-cta-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.mtsk-premium-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.mtsk-premium-cta-btn-primary {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.mtsk-premium-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mtsk-premium-cta-btn-secondary:hover {
  transform: translateY(-2px);
}

.mtsk-premium-cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.mtsk-premium-cta-note i {
  color: #10b981;
}

.mtsk-premium-dashboard-preview {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .mtsk-premium-section {
    padding: 36px 0 44px;
  }
  .mtsk-premium-cta {
    padding: 1.5rem 1.25rem;
  }
  .mtsk-premium-cta-buttons {
    flex-direction: column;
  }
  .mtsk-premium-cta-buttons .btn {
    width: 100%;
  }
}

.mtsk-b2b-section {
  padding: 36px 0 22px;
  background: var(--section-alt-grey);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.mtsk-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: var(--line-height-snug);
}

.mtsk-lead {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.mtsk-cta {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 12px 24px;
  border-radius: 10px;
}

.mtsk-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.mtsk-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mtsk-benefits li {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: 12px;
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.mtsk-benefits li:nth-child(1) { background: #f1f5ff; border-color: #e0e7ff; }
.mtsk-benefits li:nth-child(2) { background: #ecfdf5; border-color: #a7f3d0; }
.mtsk-benefits li:nth-child(3) { background: #fff7ed; border-color: #fed7aa; }
.mtsk-benefits li:nth-child(4) { background: #f1f5ff; border-color: #e0e7ff; }
.mtsk-benefits li:nth-child(5) { background: #ecfdf5; border-color: #a7f3d0; }

.mtsk-benefits li:last-child {
  margin-bottom: 0;
}

.mtsk-benefits li:hover {
  border-color: var(--primary-lightest);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.mtsk-benefits li i {
  font-size: 1.5rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.mtsk-benefits li:nth-child(1) i { color: #3B82F6; }
.mtsk-benefits li:nth-child(2) i { color: #8B5CF6; }
.mtsk-benefits li:nth-child(3) i { color: #10B981; }
.mtsk-benefits li:nth-child(4) i { color: #F59E0B; }
.mtsk-benefits li:nth-child(5) i { color: #EF4444; }

@media (max-width: 991.98px) {
  .mtsk-b2b-section .row {
    flex-direction: column-reverse;
  }

  .mtsk-benefits {
    margin-bottom: var(--spacing-xl);
  }
}

/* ============================================
   HOW IT WORKS - Driving Schools
   4-step timeline cards
   ============================================ */
.how-it-works-section {
  padding: 23px 0 28px;
  background: var(--section-alt-light);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 20px;
}

.how-it-works-audience {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-md);
  margin-bottom: 16px;
}

.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--spacing-xl);
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.how-it-works-section .row .col:nth-child(1) .step-card { background: #f1f5ff; border-color: #e0e7ff; }
.how-it-works-section .row .col:nth-child(2) .step-card { background: #ecfdf5; border-color: #a7f3d0; }
.how-it-works-section .row .col:nth-child(3) .step-card { background: #fff7ed; border-color: #fed7aa; }
.how-it-works-section .row .col:nth-child(4) .step-card { background: #f1f5ff; border-color: #e0e7ff; }

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-lightest);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  font-weight: var(--font-weight-extrabold);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-md);
}

.step-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-snug);
}

.step-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--line-height-normal);
}

.step-card-student {
  border-left: 4px solid var(--primary-lightest);
}

/* ============================================
   FEATURES SECTION - Alternating background
   ============================================ */
section.py-5[aria-labelledby="features-heading"] {
  padding: 36px 0 !important;
  background: var(--section-alt-grey);
}

/* ============================================
   FEATURE MINI CARDS
   Clean, scannable feature list
   ============================================ */
section[aria-labelledby="features-heading"] .row.g-4.mb-5 {
  margin-bottom: 20px !important;
  row-gap: 20px !important;
}

.feature-mini-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--spacing-2xl);
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-lightest);
}

.feature-mini-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}

/* Colorful icons and soft card colors for feature-mini-cards */
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(1) .feature-mini-icon { color: #3B82F6; }
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(1) .feature-mini-card { background: #f1f5ff; border-color: #e0e7ff; }
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(2) .feature-mini-icon { color: #8B5CF6; }
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(2) .feature-mini-card { background: #ecfdf5; border-color: #a7f3d0; }
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(3) .feature-mini-icon { color: #10B981; }
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(3) .feature-mini-card { background: #fff7ed; border-color: #fed7aa; }
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(4) .feature-mini-icon { color: #F59E0B; }
section[aria-labelledby="features-heading"] .row.g-4 > div:nth-child(4) .feature-mini-card { background: #f1f5ff; border-color: #e0e7ff; }

.feature-mini-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-snug);
}

.feature-mini-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* ============================================
   PREPARATION PATH - Study Steps
   Structured 4-step study path
   ============================================ */
.preparation-path-section {
  padding: 0 0 24px;
  background: transparent;
  border-radius: var(--border-radius-xl);
  margin: 12px 0 6px;
}

.preparation-path-section .section-title {
  margin-bottom: var(--spacing-sm);
}

.preparation-intro {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

.preparation-step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--spacing-2xl);
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: center;
}

.preparation-path-section .row .col:nth-child(1) .preparation-step-card { background: #f1f5ff; border-color: #e0e7ff; }
.preparation-path-section .row .col:nth-child(2) .preparation-step-card { background: #ecfdf5; border-color: #a7f3d0; }
.preparation-path-section .row .col:nth-child(3) .preparation-step-card { background: #fff7ed; border-color: #fed7aa; }
.preparation-path-section .row .col:nth-child(4) .preparation-step-card { background: #f1f5ff; border-color: #e0e7ff; }

.preparation-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.preparation-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  font-weight: var(--font-weight-extrabold);
  border-radius: 50%;
  margin: 0 auto var(--spacing-lg);
}

.preparation-step-title {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-snug);
}

.preparation-step-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--line-height-normal);
}

.preparation-note {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0 !important;
}

/* ============================================
   FEATURE GRID - Premium style
   ============================================ */
.feature-grid-section {
  padding: 6px 0 32px;
}

.feature-grid-section .row.g-4 {
  row-gap: 20px;
}

.feature-grid-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--spacing-2xl);
  height: 100%;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.feature-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-lightest);
}

.feature-grid-section .row .col:nth-child(3n+1) .feature-grid-card { background: #f1f5ff; border-color: #e0e7ff; }
.feature-grid-section .row .col:nth-child(3n+2) .feature-grid-card { background: #ecfdf5; border-color: #a7f3d0; }
.feature-grid-section .row .col:nth-child(3n) .feature-grid-card { background: #fff7ed; border-color: #fed7aa; }

.feature-grid-icon {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}

/* Colorful icons for feature-grid - EdTech accent palette */
.feature-grid-card .feature-grid-icon.text-primary { color: #3B82F6 !important; }
.feature-grid-card .feature-grid-icon.text-warning { color: #F59E0B !important; }
.feature-grid-card .feature-grid-icon.text-danger { color: #EF4444 !important; }
.feature-grid-card .feature-grid-icon.text-info { color: #3B82F6 !important; }
.feature-grid-card .feature-grid-icon.text-success { color: #10B981 !important; }
.feature-grid-card .feature-grid-icon.text-secondary { color: #8B5CF6 !important; }

.feature-grid-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-snug);
}

.feature-grid-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
  flex-grow: 1;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .feature-grid-section {
    padding: var(--spacing-3xl) 0;
  }

  .feature-grid-card {
    padding: var(--spacing-xl);
  }

  .feature-grid-icon {
    font-size: 2.25rem;
  }

  .feature-grid-section .row.g-4 {
    row-gap: var(--spacing-xl);
  }
}

@media (max-width: 767.98px) {
  .how-it-works-section,
  .mtsk-b2b-section,
  .mtsk-intro-section,
  .popular-programs-section,
  .testimonials-section-premium,
  .stats-section-premium {
    padding: 48px 0;
  }

  .hero-premium {
    padding: 10px 0 16px;
  }

  .section-title {
    margin-bottom: var(--spacing-lg);
  }

  .preparation-step-card {
    padding: var(--spacing-xl);
  }
}

/* ============================================
   POPULAR PROGRAMS
   ============================================ */
.popular-programs-section {
  padding: 32px 0;
  background: var(--section-alt-light);
}

.popular-programs-section .section-title {
  margin-bottom: 12px;
}

.program-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.popular-programs-section .row .col:nth-child(1) .program-card .program-card-body { background: #f1f5ff; }
.popular-programs-section .row .col:nth-child(2) .program-card .program-card-body { background: #ecfdf5; }
.popular-programs-section .row .col:nth-child(3) .program-card .program-card-body { background: #fff7ed; }
.popular-programs-section .row .col:nth-child(4) .program-card .program-card-body { background: #f1f5ff; }

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.program-card-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.program-card-image i {
  opacity: 0.9;
}

.program-card-image-b {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.program-card-image-a {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.program-card-image-c {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.program-card-image-d {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.program-card-body {
  padding: var(--spacing-lg);
  flex-grow: 1;
}

.program-card-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.program-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-normal);
}

/* ============================================
   STATISTICS PREMIUM
   ============================================ */
.stats-section-premium {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}

.stats-section-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stats-section-premium .container {
  position: relative;
  z-index: 1;
}

.stats-section-premium .row.g-4 {
  row-gap: var(--spacing-lg);
}

.stats-tagline {
  font-size: 1rem;
  opacity: 0.9;
}

.stat-item-premium {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.stat-number-premium {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  display: block;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .stat-number-premium {
    font-size: 42px;
    font-weight: 800;
  }
}

.stat-label-premium {
  opacity: 0.85;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 575.98px) {
  .stats-section-premium {
    padding: var(--spacing-3xl) 0;
  }

  .stat-item-premium {
    padding: var(--spacing-lg);
  }

  .stat-number-premium {
    font-size: 2rem;
  }

  .stat-label-premium {
    font-size: var(--font-size-sm);
  }
}

/* ============================================
   TESTIMONIALS PREMIUM
   ============================================ */
.testimonials-section-premium {
  padding: 40px 0;
  background: var(--section-alt-grey);
}

.testimonials-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: var(--font-size-base);
}

.testimonial-card-premium {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 20px;
  height: 100%;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonials-section-premium .row .col:nth-child(1) .testimonial-card-premium { background: #f1f5ff; border-color: #e0e7ff; }
.testimonials-section-premium .row .col:nth-child(2) .testimonial-card-premium { background: #ecfdf5; border-color: #a7f3d0; }
.testimonials-section-premium .row .col:nth-child(3) .testimonial-card-premium { background: #fff7ed; border-color: #fed7aa; }

.testimonial-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-lightest);
}

.testimonial-card-premium .stars {
  margin-bottom: var(--spacing-lg);
}

.testimonial-card-premium .stars i {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-right: 4px;
}

.testimonial-quote {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
  font-style: italic;
}


.testimonial-author-block {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar-blue {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.testimonial-avatar-green {
  background: linear-gradient(135deg, #059669, #047857);
}

.testimonial-avatar-red {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.testimonial-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================
   MTSK DEMO CTA SECTION - High-conversion
   ============================================ */
.mtsk-demo-cta-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 30%, #2563eb 70%, #3b82f6 100%);
  color: white;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 575.98px) {
  .mtsk-demo-cta-section { padding: 36px 0 44px; }
}

.mtsk-demo-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 45%);
  pointer-events: none;
}

.mtsk-demo-cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mtsk-demo-cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.mtsk-demo-cta-subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 32px;
}

.mtsk-demo-cta-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.mtsk-demo-cta-benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: white;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.mtsk-demo-cta-benefit-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mtsk-demo-cta-benefit-item i {
  font-size: 1.125rem;
  opacity: 0.95;
}

.mtsk-demo-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}

.mtsk-demo-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e40af;
  background: white;
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(255,255,255,0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.mtsk-demo-cta-btn-primary:hover {
  background: #f8fafc;
  color: #1e3a8a;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 6px 16px rgba(255,255,255,0.4);
}

.mtsk-demo-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: white;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.mtsk-demo-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mtsk-demo-cta-trust {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0;
}

@media (max-width: 575.98px) {
  .mtsk-demo-cta-section {
    padding: 40px 0;
  }

  .mtsk-demo-cta-title {
    margin-bottom: 12px;
  }

  .mtsk-demo-cta-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .mtsk-demo-cta-benefits {
    margin-bottom: 28px;
  }

  .mtsk-demo-cta-benefit-item {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .mtsk-demo-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .mtsk-demo-cta-btn-primary,
  .mtsk-demo-cta-btn-secondary {
    justify-content: center;
  }

  .mtsk-demo-cta-btn-primary {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .mtsk-demo-cta-btn-secondary {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* ============================================
   FAQ SECTION - Cleaner, less crowded
   ============================================ */
.faq-section {
  padding: 24px 0 8px;
}

.faq-subtitle {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: var(--font-size-base);
}

.accordion-faq .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
}

.accordion-faq .accordion-item:last-child {
  margin-bottom: 0;
}

.accordion-faq .accordion-button {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  background: var(--bg-white);
}

.accordion-faq .accordion-button:not(.collapsed) {
  background: var(--primary-lightest);
  color: var(--primary-dark);
}

.accordion-faq .accordion-body {
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

.faq-show-more-wrapper {
  text-align: center;
}

.faq-more[hidden] {
  display: none !important;
}

/* ============================================
   FOOTER PREMIUM
   ============================================ */
.footer-premium {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.footer-logo:hover {
  color: white;
  opacity: 0.9;
}

.footer-trust {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-normal);
}

.footer-ssl {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-links h5 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: white;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: var(--spacing-xs) 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--spacing-md);
}

.footer-copy {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TEST PAGES - breathing room above footer
   ============================================ */
body.page-test main {
  padding-bottom: 5rem;
}

body.page-test-taking main {
  padding-bottom: 3rem;
}

body.page-test .footer-premium {
  padding: var(--spacing-lg) 0 var(--spacing-sm);
  margin-top: 2rem;
}

body.page-test-taking .footer-premium {
  padding: 0.4rem 0;
  margin-top: 1.5rem;
}

body.page-test-taking .footer-grid {
  display: none;
}

body.page-test-taking .footer-bottom {
  padding-top: 0;
  border-top: none;
}

body.page-test-taking .footer-copy {
  margin: 0;
  line-height: 1.2;
  font-size: 11px;
  text-align: center;
}

body.page-test .footer-grid {
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

body.page-test .footer-logo {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
}

body.page-test .footer-trust {
  font-size: var(--font-size-xs);
  margin-bottom: var(--spacing-xs);
}

body.page-test .footer-links h5 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xs);
}

body.page-test .footer-links a {
  font-size: var(--font-size-xs);
  padding: 2px 0;
}

body.page-test .footer-bottom {
  padding-top: var(--spacing-sm);
}

body.page-test .footer-copy {
  font-size: var(--font-size-xs);
}

/* ============================================
   MCQ TEST CARDS
   ============================================ */
.mcq-classification-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.mcq-classification-btn {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.mcq-classification-btn.practice {
  background-color: #f0ad4e;
  color: white;
}

.mcq-classification-btn.practice:hover {
  background-color: #e09d3e;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
}

.mcq-classification-btn.final-mock {
  background-color: #4CAF50;
  color: white;
}

.mcq-classification-btn.final-mock:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
}

.mcq-classification-btn.active {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.section-test-heading {
  font-size: 24px;
  font-weight: bold;
  margin: 30px 0 20px 0;
  color: #333;
}

.section-test-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.section-test-grid--fluid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.section-test-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 200px;
  min-width: 0;
}

.section-test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.section-test-card-top {
  background: linear-gradient(135deg, #87CEEB 0%, #6BB6FF 100%);
  padding: 20px 12px;
  text-align: center;
  position: relative;
  height: 120px;
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-test-card-icon {
  font-size: 48px;
  color: white;
  opacity: 0.9;
}

.section-test-card-checkmark {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.section-test-card-bottom {
  background-color: #FF8C42;
  padding: 10px 8px;
  text-align: center;
  height: 80px;
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.section-test-card-category,
.section-test-card-round {
  color: white;
  font-size: 13px;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section-test-card-round {
  font-size: 14px;
  text-transform: none;
  -webkit-line-clamp: 1;
}

@media (max-width: 1199.98px) {
  .section-test-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .section-test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  .section-test-grid {
    grid-template-columns: 1fr;
  }

  .section-test-card {
    height: 190px;
  }
}

.section-test-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.section-test-progress {
  padding: 0 2px 4px;
}

.section-test-progress-track {
  width: 100%;
  height: 16px;
  background-color: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.section-test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50 0%, #22C55E 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
  min-width: 0;
}

.section-test-progress-label {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-align: center;
  line-height: 1.2;
}

/* ============================================
   GLOBAL SAAS PREMIUM POLISH (Homepage)
   ============================================ */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

/* Card shadows - using premium values from component definitions */

/* Feature Cards */
.card-body {
  padding: 2rem;
}

.card-body i {
  transition: transform 0.3s ease;
}

.card:hover .card-body i {
  transform: scale(1.1) rotate(5deg);
}

/* ============================================
   STATISTICS SECTION
   Professional stats display
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
  color: white;
  padding: var(--spacing-5xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  display: block;
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.95) !important;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TESTIMONIALS
   Trustworthy testimonial design
   ============================================ */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-lightest);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  margin-bottom: var(--spacing-lg);
  border: 3px solid var(--primary-lightest);
}

.testimonial-text {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   Professional footer design
   ============================================ */
.footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-5xl);
  border-top: 1px solid var(--border-color);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-base);
  font-weight: var(--font-weight-medium);
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer h5,
.footer h6 {
  color: white;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-lg);
}

.footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ============================================
   FORM ENHANCEMENTS
   Improved accessibility and UX
   ============================================ */
.form-control,
.form-select {
  border-radius: var(--border-radius-md);
  border: 2px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  font-size: var(--font-size-base);
  min-height: 44px; /* Better touch target on mobile */
  width: 100%;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--danger-color);
}

.form-control:valid:not(:focus):not(:placeholder-shown) {
  border-color: var(--success-color);
}

/* Form labels */
.form-label {
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  display: block;
}

/* Required field indicator */
.form-label.required::after {
  content: " *";
  color: var(--danger-color);
  font-weight: var(--font-weight-bold);
}

/* Form help text */
.form-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

/* Form groups */
.form-group {
  margin-bottom: var(--spacing-lg);
}

/* Error states */
.is-invalid {
  border-color: var(--danger-color) !important;
}

.invalid-feedback {
  display: block;
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* Badge Enhancements */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 20px;
  font-size: 0.875rem;
}

/* Gamification Badge - Purple for badges/achievements */
.badge-gamification {
  background-color: var(--gamification-color);
  color: white;
}

/* Success Badge - Green for completed/success states */
.badge-success-custom {
  background-color: var(--success-color);
  color: white;
}

/* Primary Badge - Blue for categories/info */
.badge-primary-custom {
  background-color: var(--primary-color);
  color: white;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE DESIGN IMPROVEMENTS
   ============================================ */
/* Mobile First Approach */
@media (max-width: 575.98px) {
  h1, .display-1 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
  }
  
  h2, .display-2 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-snug);
  }
  
  .display-3 {
    font-size: var(--font-size-xl);
  }
  
  .display-4 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-normal);
  }
  
  .display-5 {
    font-size: var(--font-size-lg);
  }
  
  .stat-number {
    font-size: var(--font-size-3xl);
  }
  
  .hero-section {
    padding: var(--spacing-3xl) 0;
  }
  
  .hero-section h1 {
    font-size: var(--font-size-2xl);
  }
  
  .hero-section .lead {
    font-size: var(--font-size-base);
  }
  
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .card-body {
    padding: var(--spacing-lg);
  }
  
  .btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    min-height: 48px;
  }
  
  section {
    padding: var(--spacing-3xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--spacing-2xl);
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1, .display-1 {
    font-size: var(--font-size-4xl);
  }
  
  h2, .display-2 {
    font-size: var(--font-size-3xl);
  }
  
  .display-3 {
    font-size: var(--font-size-2xl);
  }
  
  .display-4 {
    font-size: var(--font-size-2xl);
  }
  
  .display-5 {
    font-size: var(--font-size-xl);
  }
  
  .stat-number {
    font-size: var(--font-size-4xl);
  }
  
  .hero-section {
    padding: var(--spacing-4xl) 0;
  }
}

/* Desktop */
@media (min-width: 768px) {
  h1, .display-1 {
    font-size: var(--font-size-5xl);
  }
  
  h2, .display-2 {
    font-size: var(--font-size-4xl);
  }
  
  .display-3 {
    font-size: var(--font-size-3xl);
  }
  
  .display-4 {
    font-size: var(--font-size-2xl);
  }
  
  .display-5 {
    font-size: var(--font-size-xl);
  }
  
  .stat-number {
    font-size: var(--font-size-5xl);
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Grid improvements for better responsive layout */
.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--bs-gutter-x) / 2);
  margin-right: calc(-1 * var(--bs-gutter-x) / 2);
  overflow-x: hidden;
}

.row > * {
  padding-left: calc(var(--bs-gutter-x) / 2);
  padding-right: calc(var(--bs-gutter-x) / 2);
  margin-top: var(--bs-gutter-y);
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Smooth Transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   SECTION SPACING
   Tighter, professional spacing (SaaS/EdTech)
   ============================================ */
section {
  padding: var(--spacing-3xl) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--spacing-3xl) 0 var(--spacing-4xl);
  }
}

section.bg-light {
  background-color: var(--bg-section);
}

/* Container improvements */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

/* Prevent container overflow */
.container-fluid {
  width: 100%;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
  overflow-x: hidden;
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-4xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   CONTENT CLARITY IMPROVEMENTS
   Helper text, tooltips, and explanations
   ============================================ */
.alert {
    border-radius: var(--border-radius-lg);
}

.alert-link {
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
}

.alert-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Info boxes for first-time users */
.alert-info {
    background-color: #e7f3ff;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.alert-success {
    background-color: #d1e7dd;
    border-left: 4px solid var(--success-color);
}

/* Helper text styling */
.text-muted small {
    line-height: var(--line-height-loose);
}

/* Feature cards with explanations */
.hero-feature-card p {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    margin-top: var(--spacing-xs);
}

/* ============================================
   BREADCRUMBS
   SEO-friendly navigation
   ============================================ */
.breadcrumb {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 var(--spacing-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: var(--font-weight-medium);
}

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

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item.active a {
    color: var(--text-secondary);
    pointer-events: none;
    cursor: default;
}

@media (max-width: 575.98px) {
    .breadcrumb {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-xs);
    }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-bold);
}

/* Container improvements */
.container {
  max-width: 1200px;
}

/* Search and Filter improvements */
.form-control, .form-select {
  transition: all 0.3s ease;
}

.form-control:hover, .form-select:hover {
  border-color: #667eea;
}

/* Badge improvements */
.badge {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Hero section icon cards */
.bg-white.bg-opacity-20 {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.bg-white.bg-opacity-20:hover {
  background: rgba(255,255,255,0.3) !important;
  transform: translateY(-5px);
}

/* Feature cards hover effect */
.card.shadow-sm {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth page transitions - Respects reduced motion */
main {
  animation: fadeIn 0.5s ease-in;
  flex: 1 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
}

/* Performance optimizations */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lazy loading support */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Content visibility for better performance */
.card,
.section {
  content-visibility: auto;
  contain-intrinsic-size: 200px;
}

/* Improved spacing */
.mb-5 {
  margin-bottom: 3rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Text color improvements */
.text-muted {
  color: #6c757d !important;
}

.text-white-50 {
  color: rgba(255,255,255,0.7) !important;
}

/* List improvements */
.list-unstyled li {
  margin-bottom: 0.5rem;
}

/* Social media icons */
.fab, .fas {
  transition: transform 0.3s ease;
}

.fab:hover, .fas:hover {
  transform: scale(1.2);
}

/* Mobile improvements */
@media (max-width: 576px) {
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }
}

/* Mobile menu improvements */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    margin-top: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .navbar-nav .nav-link {
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 0.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 16px;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background: var(--bg-light);
    color: var(--primary-color);
  }
  
  .navbar-nav .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
  }

  .navbar-nav .nav-item.dropdown .dropdown-menu,
  .navbar-nav .site-nav-details-panel .site-nav-details-menu {
    position: static !important;
    float: none;
    border: none;
    box-shadow: none;
    padding-left: 0.5rem;
    margin-top: 0;
  }

  .navbar-nav .site-nav-details-panel[open] .site-nav-details-menu {
    display: block !important;
  }

  .navbar-nav .site-nav-details-panel summary {
    width: 100%;
  }

  .navbar-nav .site-nav-details-menu .site-nav-sub-link {
    border-radius: var(--border-radius-md);
    padding: 0.65rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Print styles */
@media print {
  .navbar, .footer {
    display: none;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================
   Footer and image styles extracted from inline styles
   to reduce HTML parsing overhead and improve cache efficiency.
   ============================================ */
.footer-custom {
  background-color: var(--bg-light);
}

.footer-copyright {
  color: var(--text-primary);
}

.footer-text-secondary {
  color: var(--text-secondary);
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-color);
}

/* ============================================
   IMAGE OPTIMIZATION STYLES
   Performance: Extracted inline styles to reduce parsing
   ============================================ */
.course-thumbnail {
  object-fit: cover;
}

.course-thumbnail-sm {
  height: 150px;
  object-fit: cover;
}

.course-image-detail {
  max-height: 400px;
  object-fit: cover;
  /* Override site.css: lazy images start opacity:0 until .loaded - force visible */
  opacity: 1 !important;
}

.course-detail-page {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  margin-top: -0.375rem;
}

main.container > .course-detail-page {
  margin-top: -0.375rem;
}

.course-detail-page .course-detail-container {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 576px) {
  .course-detail-page .course-detail-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 768px) {
  .course-detail-page .course-detail-layout {
    --bs-gutter-x: 1.5rem;
    flex-wrap: nowrap;
  }

  .course-detail-page .course-detail-main-col {
    flex: 1 1 auto;
    max-width: calc(100% - 544px);
    min-width: 0;
    width: auto;
  }

  .course-detail-page .course-detail-sidebar-col {
    flex: 0 0 520px;
    max-width: 520px;
    min-width: 0;
    width: auto;
  }
}

.course-detail-page .course-detail-hero {
  padding: 1rem 1rem 0;
}

.course-detail-page .course-detail-img-wrap {
  background-color: #f8f9fa;
  line-height: 0;
  flex-shrink: 0;
}

.course-detail-page .course-image-detail {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  object-position: left center;
}

.course-detail-page .course-detail-breadcrumb {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.course-detail-page .breadcrumb {
  font-size: 0.722rem;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
}

.course-detail-page .course-detail-hero-text {
  font-size: 0.773rem;
}

.course-detail-page .course-detail-hero-text h1 {
  font-size: 1.444rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 576px) {
  .course-detail-page .course-detail-hero-text {
    padding-top: 0.25rem;
  }
}

.course-detail-page .course-detail-main .card-body {
  font-size: 0.773rem;
}

.course-detail-page .course-detail-main .card-body .h5,
.course-detail-page .course-detail-main .card-body .h6,
.course-detail-page .course-detail-main .card-body h3 {
  font-size: 1.1em;
}

.course-detail-page .course-detail-sidebar .card-body {
  font-size: 0.928rem;
  padding: 0.65rem 0.75rem;
}

.course-detail-page .course-detail-sidebar .course-detail-enrolled-msg {
  font-size: 0.96rem;
  line-height: 1.2;
}

.course-detail-page .course-detail-sidebar .course-detail-sidebar-btn {
  margin-bottom: 0.7rem;
}

.course-detail-page .course-detail-sidebar .course-detail-sidebar-action .btn,
.course-detail-page .course-detail-sidebar .course-detail-sidebar-action {
  margin-bottom: 0.35rem;
}

.course-detail-page .course-detail-sidebar a.course-detail-sidebar-action {
  margin-bottom: 0.7rem;
}

.course-detail-page .course-detail-sidebar .btn {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.975rem;
  line-height: 1.25;
}

.course-detail-page .course-detail-sidebar h3 {
  font-size: 1.361rem;
}

.course-detail-page .course-detail-sidebar h4 {
  font-size: 0.99rem;
}

.course-detail-page .course-detail-sidebar .course-detail-sidebar-divider {
  margin: 0.7rem 0;
}

.course-detail-page .course-detail-sidebar .course-detail-sidebar-cta {
  margin-bottom: 2rem;
}

.course-detail-page .course-detail-sidebar .cta-inquiry-box {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
}

.course-detail-page .course-detail-sidebar .cta-inquiry-box h4 {
  font-size: 0.975rem;
  margin-bottom: 0.25rem;
}

.course-detail-page .course-detail-sidebar .cta-inquiry-box .btn {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.9rem;
}

.course-detail-page .course-detail-sidebar .course-detail-books-intro {
  font-size: 0.864rem;
  line-height: 1.3;
}

.course-detail-page .course-detail-book-row {
  flex-wrap: nowrap;
  min-width: 0;
}

.course-detail-page .course-detail-book-meta {
  width: 4.75rem;
  min-width: 4.75rem;
  flex-shrink: 0;
}

.course-detail-page .course-detail-book-progress {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 6px;
  background-color: #e9ecef;
}

.course-detail-page .course-detail-book-percent {
  flex-shrink: 0;
  width: 1.75rem;
  min-width: 1.75rem;
  font-size: 0.804rem;
  white-space: nowrap;
  line-height: 1;
  text-align: right;
}

.course-detail-page .course-detail-sidebar .course-detail-book-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.28rem 0.45rem;
  overflow: hidden;
}

.course-detail-page .course-detail-sidebar .course-detail-book-btn .badge {
  font-size: 0.78rem;
  padding: 0.15rem 0.35rem;
}

.course-detail-page .course-detail-sidebar .course-detail-book-label {
  font-size: 1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.course-detail-page .course-detail-container > section .card-header,
.course-detail-page .course-detail-container > section .card-body {
  font-size: 0.773rem;
}

.course-detail-page.section-standard {
  padding-top: 0;
}

@media (min-width: 768px) {
  .course-detail-page.section-standard {
    padding-top: 0;
  }
}

@media (max-width: 575.98px) {
  .course-detail-page.section-standard {
    padding-top: 0;
  }
}

/* ============================================
   COMPLETION MESSAGE STYLES
   Performance: Extracted from inline styles
   ============================================ */
.completion-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
/* Focus indicators - WCAG 2.1 AA compliant */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn, .card, .nav-link {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Loading states */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* ============================================
   ADMIN SIDEBAR
   White text on dark background for readability
   ============================================ */
.sidebar .nav-link,
.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.sidebar .nav-link i,
.sidebar .nav-link button {
  color: #ffffff !important;
}