@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* CSS CUSTOM PROPERTIES */
:root {
  --primary:        #1565C0;
  --primary-dark:   #0D47A1;
  --primary-deeper: #0a2f6b;
  --dark:           #0D1B2A;
  --charcoal:       #1E293B;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;
  --bg:             #F8FAFF;
  --bg-alt:         #EEF2FF;
  --white:          #FFFFFF;
  --accent:         #FF6B35;
  --accent-soft:    rgba(255,107,53,0.1);
  --success:        #10B981;
  --error:          #EF4444;
  --border:         #E2E8F0;
  --border-blue:    rgba(21,101,192,0.15);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:      0 12px 48px rgba(0,0,0,0.10);
  --shadow-blue:    0 8px 32px rgba(21,101,192,0.22);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      24px;
  --transition:     0.28s cubic-bezier(0.4,0,0.2,1);
  --nav-height:     70px;
}

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  /* Prevent ANY horizontal scroll — fixed/absolute elements cannot push viewport */
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  /* Contain width to exactly the viewport */
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* NAVIGATION  ─ desktop-first, pure-CSS hamburger */

/*  Bar  */
.navbar {
  height: var(--nav-height);
  /* sticky keeps it pinned to top; relative allows ::after positioning */
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Deep-blue glassmorphism — matches the site's primary palette */
  background: linear-gradient(
    135deg,
    rgba(10, 47, 107, 0.97)  0%,
    rgba(13, 71, 161, 0.96) 55%,
    rgba(21,101,192, 0.95) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  /* Outer glow + inner top-edge highlight */
  box-shadow:
    0 4px 28px rgba(10, 47, 107, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* Plain border removed — ::after renders a gradient shimmer line */
  border-bottom: none;
}

/* ── Decorative bottom border: shimmering accent gradient ── */
.navbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent        0%,
    var(--accent)     18%,
    rgba(255,255,255,0.75) 38%,
    var(--primary)    52%,
    rgba(255,255,255,0.75) 66%,
    var(--accent)     82%,
    transparent       100%
  );
  /* Subtle glow so it feels like a lit strip */
  filter: blur(0.5px);
  opacity: 0.90;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 0;
}

/* Logo  */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 2.5rem;
  text-decoration: none;
}
.logo-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

/*  Universal drawer navigation  */
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;                               /* always at right:0 — transform hides it */
  width: min(360px, 86vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: calc(var(--nav-height) + 16px);
  padding-bottom: 24px;
  gap: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: -16px 0 64px rgba(13, 27, 42, 0.18);
  z-index: 1001;
  overflow-y: auto;
  /* Use transform (not right) so the drawer never bleeds outside the viewport */
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu.active { transform: translateX(0); }

.nav-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--charcoal);
  cursor: pointer;
  z-index: 1002;
  transition: var(--transition);
}
.nav-close:hover {
  background: rgba(245,247,255,0.95);
  transform: scale(1.05);
}
.nav-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}
.nav-item {
  position: relative;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  opacity: 0;
  transform: translateX(20px);
}

@keyframes navItemSlideIn {
  to { opacity: 1; transform: translateX(0); }
}
.nav-menu.active .nav-item:nth-child(1) { animation: navItemSlideIn 0.3s ease 0.08s forwards; }
.nav-menu.active .nav-item:nth-child(2) { animation: navItemSlideIn 0.3s ease 0.13s forwards; }
.nav-menu.active .nav-item:nth-child(3) { animation: navItemSlideIn 0.3s ease 0.18s forwards; }
.nav-menu.active .nav-item:nth-child(4) { animation: navItemSlideIn 0.3s ease 0.23s forwards; }
.nav-menu.active .nav-item:nth-child(5) { animation: navItemSlideIn 0.3s ease 0.28s forwards; }
.nav-menu.active .nav-item:nth-child(6) { animation: navItemSlideIn 0.3s ease 0.33s forwards; }

.nav-menu-footer {
  padding: 22px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}
.nav-menu-footer .nav-btn,
.nav-menu-footer .nav-btn-primary,
.nav-menu-footer .nav-btn-moodle,
.nav-menu-footer .nav-btn-logout {
  justify-content: center;
  padding: 13px 16px;
  font-size: 0.92rem;
  width: 100%;
  border-radius: var(--radius-sm);
}
/* Keep the Moodle button prominent even in mobile */
.nav-menu-footer .nav-btn-moodle {
  padding: 14px 16px;
  font-size: 0.95rem;
}

/*
 * Underline hover: a ::after pseudo-element grows from 0 → 100%
 * No background fill — clean, editorial feel.
 */
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 26px;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  background: none;
  border-radius: 0;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after { display: none; }
.nav-link:hover  { color: var(--primary); background: rgba(21,101,192,0.05); }
.nav-link.active { color: var(--primary); }

/*  Auth buttons  */
.nav-auth { display: none; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  font-size: 0.875rem; font-weight: 600;
  /* White ghost style — readable on dark navbar */
  color: rgba(255,255,255,0.90);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-btn:hover {
  border-color: rgba(255,255,255,0.75);
  color: #ffffff;
  background: rgba(255,255,255,0.18);
}

.nav-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px;
  font-size: 0.875rem; font-weight: 700;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-blue); }

/*
 * "Accéder à l'Espace Étudiant" — high-contrast CTA.
 * Accent orange so it stands out from every other nav element.
 */
.nav-btn-moodle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 20px;
  font-size: 0.88rem; font-weight: 800;
  color: white;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(255,107,53,0.28);
}
.nav-btn-moodle:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.42);
}
.nav-btn-moodle .hb-icon { font-size: 1rem; }

.nav-btn-logout {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--error);
  border: 1.5px solid var(--error);
  border-radius: var(--radius-sm);
  background: transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-btn-logout:hover { background: var(--error); color: white; }

/* PURE-CSS HAMBURGER BUTTON Three bars → animated X using only CSS transforms. No icon library required. */
.hamburger {
  display: flex;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
  /* Semi-transparent dark glass to sit on the dark navbar */
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.10);
  outline: none;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.hamburger:hover               { background: rgba(255,255,255,0.22); transform: translateY(-1px); border-color: rgba(255,255,255,0.38); }
.hamburger:focus-visible        { outline: 2px solid rgba(255,255,255,0.70); outline-offset: 3px; }

/* Three bars — positioned absolutely inside the 44×44 button */
.hb-bar {
  display: block;
  position: absolute;
  left: 9px;
  height: 4px;
  background: #ffffff;
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.20s ease,
    width     0.28s ease,
    top       0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Bar positions — spaced 9px apart, centred in the 44px button */
.hb-bar:nth-child(1) { top: 12px; width: 26px; }
.hb-bar:nth-child(2) { top: 20px; width: 26px; }
.hb-bar:nth-child(3) { top: 28px; width: 20px; }

/*  Active (X) state  */
.hamburger.active .hb-bar:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
  width: 26px;
}
.hamburger.active .hb-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .hb-bar:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
  width: 26px;
}

/* LIVE CLOCK — right side of the navbar, before hamburger */
.nav-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 13px;
  margin-left: 14px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  /* Deep-blue gradient card matching the site palette */
  background: linear-gradient(
    135deg,
    var(--primary-deeper) 0%,
    var(--primary-dark)   55%,
    var(--primary)        100%
  );
  /* Outer glow + inner top-edge highlight */
  box-shadow:
    0 4px 18px rgba(21, 101, 192, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: default;
  transition: box-shadow var(--transition), transform var(--transition);
}
.nav-clock:hover {
  transform: translateY(-1px);
  box-shadow:
    0 7px 26px rgba(21, 101, 192, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
/* Subtle glass sheen on the top half */
.nav-clock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
}

/* Clock icon */
.nav-clock-icon {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.70);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Two-line stack: time on top, date below */
.clock-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}

/* HH MM SS — monospace so digits never jitter */
.clock-time {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  letter-spacing: 1.5px;
  line-height: 1;
}

/* Blinking colons between time segments */
.clock-sep {
  display: inline;
  color: rgba(255, 255, 255, 0.40);
  animation: clockSepBlink 1s step-start infinite;
}
@keyframes clockSepBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.12; }
}

/* Day + date beneath the time */
.clock-date {
  display: block;
  font-size: 0.67rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.4px;
  line-height: 1;
  text-transform: capitalize;
  white-space: nowrap;
}

/* Mobile: compact — hide the date line to save space */
@media (max-width: 900px) {
  .nav-clock       { padding: 5px 10px; margin-left: 8px; gap: 7px; }
  .nav-clock-icon  { font-size: 0.88rem; }
  .clock-time      { font-size: 0.82rem; letter-spacing: 1px; }
  .clock-date      { display: none; }
}

/* Backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* MOBILE NAV  (≤ 900px), Side-drawer sliding in from the right with glassmorphism.*/
@media (max-width: 900px) {
  .nav-logo {
    margin-right: auto;
    /* Allow logo to shrink so clock + hamburger always stay visible */
    flex-shrink: 1;
    min-width: 0;
  }

  /* Keep the hamburger button visible on mobile too */
  .hamburger { display: flex; align-items: center; justify-content: center; }

  /* Desktop auth buttons hidden — duplicated inside the drawer */
  .nav-auth { display: none; }

}

/* HERO SLIDESHOW */
.slideshow-container {
  position: relative;
  width: 100%;
  height: clamp(480px, 70vh, 680px);
  overflow: hidden;
  background: transparent;
  backdrop-filter: blur(0px);
}

.mySlides {
  display: none;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
}
.mySlides.fade { display: flex; animation: heroFade 0.9s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

/* Balanced overlay for readability */
.mySlides::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.45) 0%, rgba(21,101,192,0.30) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 56px;
  max-width: 800px;
  animation: slideUp 0.7s ease-out;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.slide-content p {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.slide-content .slide-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-top: 12px;
  font-weight: 400;
}

.slide-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(4px);
}
.slide-nav:hover { 
  background: var(--primary);
  border-color: transparent;
}
.prev { left: 20px; }
.next { right: 20px; }

.dot-container {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 9px; height: 9px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active, .dot:hover { background: white; transform: scale(1.3); }

.button-container {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  z-index: 10;
}
.cta-button {
  padding: 14px 42px;
  font-size: 1rem; font-weight: 700;
  color: white;
  background: var(--accent);
  border: none; border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(255,107,53,0.40);
  letter-spacing: 0.3px;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(255,107,53,0.55); }

/* LAYOUT & SECTIONS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section wrapper */
.section {
  padding: 30px 0;
}
.section-alt { /* background removed - handled by container */ }
.section-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-deeper) 100%);
  color: white;
}

/* Curved borders for specific sections */
#courses .container {
  border-radius: 40px;
  background: var(--bg-alt);
  padding: 60px 40px;
  margin: 0 20px;
  position: relative;
  box-shadow: 0 8px 32px rgba(21, 101, 192, 0.08);
  border: 1px solid rgba(21, 101, 192, 0.1);
}

#why-us .container {
  border-radius: 40px;
  background: var(--white);
  padding: 60px 40px;
  margin: 0 20px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

/* Section header pattern (like kawacademy) */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,107,53,0.18);
  box-shadow: 0 2px 8px rgba(255,107,53,0.10);
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-dark .section-title { color: white; }
.section-subtitle {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
  margin: 16px auto 0;
  position: relative;
}
/* Soft glow under the divider bar */
.section-divider::after {
  content: '';
  position: absolute;
  inset: 0; top: 2px;
  background: inherit;
  filter: blur(6px);
  opacity: 0.45;
  border-radius: 2px;
}

/*ABOUT SECTION*/
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text .section-header { text-align: left; }
.about-text .section-divider { margin-left: 0; }
.about-description {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 20px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.value-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.value-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(21,101,192,0.12);
  transform: translateY(-3px);
  color: var(--primary);
}
.value-pill i { color: var(--accent); font-size: 1rem; transition: transform 0.25s ease; }
.value-pill:hover i { transform: scale(1.2); }

/* About visual panel */
.about-visual {
  position: relative;
}
.about-card-stack {
  background: linear-gradient(140deg, var(--primary-deeper) 0%, var(--primary) 55%, #1976D2 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13,47,107,0.35);
}
.about-card-stack::before {
  content: '';
  position: absolute; top: -70px; right: -70px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.about-card-stack::after {
  content: '';
  position: absolute; bottom: -50px; left: -50px;
  width: 170px; height: 170px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.about-big-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.about-card-stack h3 {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 10px;
}
.about-card-stack p {
  font-size: 0.97rem; color: rgba(255,255,255,0.80); line-height: 1.7;
}
.about-stat-row {
  display: flex; gap: 20px; margin-top: 28px; position: relative; z-index: 1;
}
.about-stat-item { text-align: center; }
.about-stat-item strong { display: block; font-size: 1.8rem; font-weight: 800; }
.about-stat-item span  { font-size: 0.8rem; color: rgba(255,255,255,0.70); }

/* STATS BAND — video background banner */

/* Banner: fixed height keeps it compact like a divider strip */
.stats-band {
  position: relative;
  height: 240px;            /* banner height — adjusted */
  margin: 40px 20px;        /* spacing on sides and vertical */
  border-radius: 16px;      /* rounded corners for elegance */
  overflow: hidden;
  background: #1a3a5c;      /* fallback while video loads */
  box-shadow: 0 12px 48px rgba(21, 101, 192, 0.20);  /* subtle professional shadow */
}

/*
 * ── Diagonal divider at the TOP of the stats band ───────────
 * A light triangle (about section's colour) sits over the dark
 * video in the top-left corner.  The hypotenuse (top-right →
 * bottom-left) is the visible blade / section separator.
 * z-index 2 places it above the video (0) and overlay (1).
 *
 *  polygon(0 0, 100% 0, 0 100%)
 *  ┌──────────────────────────┐
 *  │░░░░░░░░░░░░░░░░░░░░░░░/  │  ← about colour
 *  │░░░░░░░░░░░░░░░░░░░░/     │
 *  │░░░░░░░░░░░░░░░░░/        │  ← the diagonal blade
 *  │░░░░░░░░░░░░░/   DARK ▓▓▓ │  ← video shows here
 *  └──────────────────────────┘
 */
.stats-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 2;
  pointer-events: none;
}

/* Video covers the full banner area */
.stats-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

/* Light blue professional tint */
.stats-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(100, 180, 240, 0.38);
}

/* ── Grid ────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  background: rgba(255,255,255,0.04);
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,0.11); }
.stat-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   NOS COURS SECTION  — zigzag bottom border
═══════════════════════════════════════════════════════════ */
#courses {
  position: relative;
  background: var(--bg-alt);   /* #EEF2FF — blue-tinted */
  padding: 80px 0 100px;       /* extra bottom padding for zigzag room */
}

/*
 * Zigzag bottom edge — pure CSS gradient trick.
 * Two overlapping 45° gradients form repeating "V" teeth.
 * Background-color = next section's bg (#F8FAFF) fills the gaps.
 */
#courses::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40px;
  background-image:
    linear-gradient(135deg, var(--bg-alt) 25%, transparent 25%),
    linear-gradient(-135deg, var(--bg-alt) 25%, transparent 25%);
  background-color: var(--bg);  /* colour of the section below */
  background-size: 40px 40px;
  background-position: left top;
  background-repeat: repeat-x;
}

/* ── Course grid ─────────────────────────────────────────── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ── Course card ─────────────────────────────────────────── */
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.34,1.3,0.64,1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 60px rgba(21, 101, 192, 0.18);
  border-color: rgba(21, 101, 192, 0.32);
}

/* ── Image area ──────────────────────────────────────────── */
.course-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--primary-deeper);
}
/* The actual photo */
.course-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.course-card:hover .course-image img {
  transform: scale(1.08);
}
/* Dark-to-transparent gradient scrim at the bottom of the image */
.course-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 23, 50, 0.10) 0%,
    rgba(10, 23, 50, 0.55) 100%
  );
  pointer-events: none;
}
/* Accent line at the very bottom edge */
.course-image::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  z-index: 3;
}
/* Category floating badge, top-left of the image */
.course-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 0.71rem; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid rgba(21,101,192,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  z-index: 2;
  transition: background 0.22s, color 0.22s;
}
.course-card:hover .course-badge {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* ── Card body ───────────────────────────────────────────── */
.course-body {
  padding: 24px 24px 22px;
  flex: 1; display: flex; flex-direction: column;
}
.course-title {
  font-size: 1.08rem; font-weight: 800; color: var(--dark);
  margin-bottom: 10px; line-height: 1.38;
  letter-spacing: -0.2px;
}
.course-description {
  font-size: 0.885rem; color: var(--text-muted);
  line-height: 1.70; flex: 1; margin-bottom: 20px;
  /* clamp to 4 lines — hides overflow elegantly */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card footer ─────────────────────────────────────────── */
.course-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto;
  gap: 12px;
}
.course-meta {
  display: flex; flex-direction: column; gap: 4px;
}
.course-meta span {
  font-size: 0.75rem; color: var(--text-light); font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}
.course-meta span i { color: var(--primary); font-size: 0.7rem; }
.course-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.83rem; font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(21,101,192,0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
}
.course-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.38);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   POURQUOI NOUS SECTION
═══════════════════════════════════════════════════════════ */
#why-us {
  background: var(--bg);
  padding: 80px 0 100px;     /* extra bottom room for scallop */
  position: relative;
}

/*
 * ── Scalloped / bubble bottom border ─────────────────────────
 * Repeating radial-gradient creates half-circles of the why-us
 * colour (#F8FAFF) along the bottom edge, set against the
 * testimonials background (#EEF2FF).  The effect looks like
 * rounded "bubbles" or scallop shells meeting the next section.
 *
 *   ╭──╮  ╭──╮  ╭──╮  ╭──╮   ← #F8FAFF bumps
 *  ░░░░░░░░░░░░░░░░░░░░░░░░   ← #EEF2FF fills the gaps
 */
#why-us::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background:
    radial-gradient(circle at 50% 100%, var(--bg) 19px, transparent 20px);
  background-size: 40px 40px;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-color: var(--bg-alt);  /* testimonials' colour */
  pointer-events: none;
}

/* ── Features grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/*
 * Feature cards: flat, clean, clip-path and stagger removed.
 * An accent bar slides in from the left on hover.
 */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Top accent bar — grows from left to right on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s ease;
}
.feature-card:hover::before  { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(21, 101, 192, 0.11);
  border-color: rgba(21, 101, 192, 0.22);
}

/* Icon container — gradient fill on hover */
.feature-icon {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 1.6rem;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.13);
  border: 1px solid rgba(21,101,192,0.10);
  transition: background 0.30s ease, color 0.30s ease,
              box-shadow 0.30s ease, transform 0.30s ease, border-color 0.30s ease;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deeper) 100%);
  color: white;
  box-shadow: 0 10px 28px rgba(21, 101, 192, 0.35);
  transform: scale(1.10) rotate(-3deg);
  border-color: transparent;
}

.feature-card h3 {
  font-size: 1.02rem; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   COMMENTS / TESTIMONIALS SECTION
═══════════════════════════════════════════════════════════ */

/* Section background + positioning context for the V-peak */
#testimonials {
  background: var(--bg-alt);
  position: relative;
  padding-bottom: 100px;   /* clearance for the 60px V-peak */
}

/*
 * ── V-peak (upward chevron) at the bottom ────────────────────
 * Dark triangle tip pointing UP eases the eye into the CTA's
 * dark gradient.  Looks like a mountain peak surfacing through
 * the light section.
 *
 *               ▲            ← peak tip at 50% x, 0% y
 *             ▲   ▲
 *           ▲       ▲
 * ██████████           ██████ ← bottom-left / bottom-right
 */
#testimonials::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--dark);         /* CTA section's opening colour */
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  pointer-events: none;
}

/* Two-column: form panel left, comment wall right */
.comments-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Form panel ─────────────────────────────────────────── */
.comment-form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}
.comment-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 22px;
}

.cform-group { margin-bottom: 16px; }
.cform-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--bg);
  transition: border-color var(--transition);
  resize: none;
  box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.09);
}
.btn-comment-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.btn-comment-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.cform-error {
  font-size: 0.82rem;
  color: var(--error);
  margin-top: 10px;
  min-height: 18px;
}

/* ── Comment wall ────────────────────────────────────────── */
.comments-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-content: start;
  min-height: 280px;     /* keeps the section height consistent */
}
.comments-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 60px 16px;
  font-size: 0.95rem;
}

/* ── Individual comment card ─────────────────────────────── */
.comment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: commentFadeIn 0.38s ease both;
}
.comment-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
@keyframes commentFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Decorative opening quote */
.comment-card::before {
  content: '\201C';
  position: absolute;
  top: 14px; right: 18px;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--bg-alt);
  font-family: Georgia, serif;
  pointer-events: none;
}
.comment-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
  font-style: italic;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.comment-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-card-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.comment-card-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
}
.comment-card-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .comments-layout         { grid-template-columns: 1fr; }
  .comment-form-panel      { position: static; }
  .comments-wall           { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   CALL TO ACTION
═══════════════════════════════════════════════════════════ */
.cta-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 80%, var(--primary) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -100px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: white;
  letter-spacing: -0.5px; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.cta-section p {
  font-size: 1.05rem; color: rgba(255,255,255,0.75);
  margin-bottom: 36px; position: relative; z-index: 1;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-cta-primary {
  padding: 15px 36px;
  background: var(--accent); color: white;
  font-weight: 700; font-size: 1rem;
  border-radius: 50px; border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(255,107,53,0.40);
}
.btn-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(255,107,53,0.55); }
.btn-cta-outline {
  padding: 14px 34px;
  background: transparent; color: white;
  font-weight: 600; font-size: 1rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.45);
  transition: var(--transition);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* ═══════════════════════════════════════════════════════════
   MOODLE BRIDGE (post-registration)
═══════════════════════════════════════════════════════════ */
.moodle-bridge {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  padding: 44px 40px;
  text-align: center;
  color: white;
  margin-top: 24px;
}
.moodle-bridge h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.moodle-bridge p  { color: rgba(255,255,255,0.75); margin-bottom: 26px; font-size: 1rem; }
.btn-moodle-goto {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  background: white; color: var(--primary-dark);
  border-radius: 50px;
  font-weight: 800; font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-moodle-goto:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); background: var(--bg-alt); }
.moodle-bridge-countdown { margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.50); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
}
.Container-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 2rem 48px;
}
.footer-content h3 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: white; margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent); display: inline-block;
}
.footer-content p, .footer-content a {
  color: rgba(255,255,255,0.65); font-size: 0.9rem;
  margin-bottom: 8px; display: block;
  transition: var(--transition); line-height: 1.8;
}
.footer-content a:hover { color: var(--accent); padding-left: 4px; }
.footer-content ul { padding: 0; }
.footer-content ul li { margin-bottom: 6px; }

.social-icons {
  display: flex; gap: 10px; margin-top: 4px;
  flex-direction: row !important;
}
.social-icons li a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: var(--transition); margin: 0 !important;
}
.social-icons li a:hover { background: var(--accent); color: white; transform: translateY(-2px); }

.bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; padding: 20px 2rem;
  color: rgba(255,255,255,0.40); font-size: 0.85rem;
}
.credit-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.credit-link:hover {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255,107,53,0.55);
}

/* ── Toast notification ──────────────────────────────────── */
.toast-notify {
  position: fixed;
  bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  display: flex; align-items: flex-start; gap: 14px;
  min-width: 320px; max-width: 480px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 16px 48px rgba(13,27,42,0.18);
  opacity: 0; pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.34,1.3,0.64,1);
}
.toast-notify.show {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.toast-icon {
  font-size: 1.35rem; color: var(--primary); flex-shrink: 0; margin-top: 2px;
}
.toast-body {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
}
.toast-body strong {
  font-size: 0.9rem; font-weight: 800; color: var(--dark);
}
.toast-body span {
  font-size: 0.83rem; color: var(--text-muted); line-height: 1.5;
}
.toast-close {
  background: none; border: none; font-size: 1.1rem; line-height: 1;
  color: var(--text-muted); cursor: pointer; padding: 0 0 0 6px;
  flex-shrink: 0; transition: color 0.18s;
}
.toast-close:hover { color: var(--error); }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO BANNER (interior pages)
═══════════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 64px 20px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(21,101,192,0.3) 0%, transparent 65%);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  color: white; margin-bottom: 10px; position: relative; z-index: 1;
}
.page-hero p { color: rgba(255,255,255,0.70); font-size: 1rem; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   PRICING (used in pricing.php)
═══════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--dark) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 5px 20px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.pricing-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; color: var(--dark); }
.pricing-card.featured .pricing-name { color: white; }
.pricing-tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-card.featured .pricing-tagline { color: rgba(255,255,255,0.65); }
.pricing-price { font-size: 2.6rem; font-weight: 800; color: var(--primary); margin: 14px 0 24px; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-card.featured .pricing-price { color: white; }
.pricing-card.featured .pricing-price span { color: rgba(255,255,255,0.55); }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: var(--text-muted);
}
.pricing-card.featured .pricing-features li { border-color: rgba(255,255,255,0.10); color: rgba(255,255,255,0.80); }
.pricing-features li i { color: var(--success); flex-shrink: 0; }
.pricing-card.featured .pricing-features li i { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.88rem;
  color: var(--charcoal); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit;
  color: var(--text); background: white;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.form-group input.error  { border-color: var(--error); }
.form-group input.is-valid { border-color: var(--success); }
.error-message { color: var(--error); font-size: 0.82rem; margin-top: 5px; display: block; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS (general)
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  font-size: 0.95rem; font-weight: 700;
  border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary); color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.btn-secondary {
  background: var(--bg-alt); color: var(--primary);
  border: 1.5px solid var(--border-blue);
}
.btn-secondary:hover { background: var(--border); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.35); }

/* ═══════════════════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  font-size: 0.93rem; font-weight: 500;
  margin-bottom: 20px;
}
.alert-success { background: #ECFDF5; color: #065F46; border-color: var(--success); }
.alert-error   { background: #FEF2F2; color: #991B1B; border-color: var(--error); }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-color: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
═══════════════════════════════════════════════════════════ */
.whatsapp-container { position: fixed; bottom: 28px; right: 28px; z-index: 900; }
.whatsapp-button {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  background: #25D366; color: white;
  border-radius: 50%; font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.40);
  transition: var(--transition); border: 3px solid white;
}
.whatsapp-button:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.55); }
.whatsapp-tooltip {
  position: absolute; bottom: 70px; right: 0;
  background: var(--dark); color: white;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.whatsapp-tooltip::after {
  content: ''; position: absolute; bottom: -5px; right: 18px;
  width: 10px; height: 10px; background: var(--dark); transform: rotate(45deg);
}
.whatsapp-tooltip.show { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════════════
   UTILITY
═══════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.hidden      { display: none; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-5px); }
}

@media (max-width: 900px) {
  .about-grid       { grid-template-columns: 1fr; gap: 40px; }
  .about-text .section-header { text-align: center; }
  .about-text .section-divider { margin-left: auto; margin-right: auto; }
  .course-grid      { grid-template-columns: 1fr 1fr; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .Container-footer { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 20px 0; }
  .course-grid  { grid-template-columns: 1fr; }
  .features-grid{ grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .cta-buttons  { flex-direction: column; align-items: center; }
  .Container-footer { grid-template-columns: 1fr; padding: 40px 1.5rem 32px; }
  .slideshow-container { height: 420px; }
  .slide-content { padding: 30px 24px; }
  .button-container { bottom: 52px; }
  .course-grid  { grid-template-columns: 1fr; }
  /* Shrink zigzag teeth on mobile so they scale with the narrower viewport */
  #courses::after { height: 24px; background-size: 24px 24px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT SECTION  (#contact on index.php)
═══════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 48px;
  align-items: start;
  margin-top: 44px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-info-item:hover { box-shadow: var(--shadow-blue); transform: translateY(-2px); }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-deeper), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(21,101,192,0.25);
}
.contact-info-item h4 {
  font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px;
}
.contact-info-item a,
.contact-info-item p {
  font-size: 0.93rem; color: var(--charcoal); font-weight: 500;
  margin: 0; line-height: 1.55; text-decoration: none;
}
.contact-info-item a:hover { color: var(--primary); }

.contact-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; font-weight: 700; font-size: 0.94rem;
  box-shadow: 0 4px 18px rgba(37,211,102,0.30);
  transition: transform var(--transition), box-shadow var(--transition);
  align-self: flex-start; text-decoration: none;
}
.contact-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.42); color: #fff; }
.contact-whatsapp i { font-size: 1.25rem; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
}
.contact-form-idx .cform-group { margin-bottom: 16px; }
.contact-form-idx .cform-group label {
  display: block; font-weight: 600; font-size: 0.84rem;
  color: var(--charcoal); margin-bottom: 7px;
}
.contact-form-idx #contactSubmitBtn {
  width: 100%; justify-content: center; margin-top: 4px;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE
   Targets real phone widths: 768px → 480px → 360px
═══════════════════════════════════════════════════════════ */

/* ── ≤ 768px  (tablets & large phones) ──────────────────── */
@media (max-width: 768px) {
  /* General containers */
  .container     { padding: 0 1.25rem; }
  .nav-container { padding: 0 1.25rem; }

  /* Rounded pill containers — scale radius down */
  #courses .container,
  #why-us  .container {
    margin: 0 12px;
    padding: 44px 24px;
    border-radius: 24px;
  }

  /* Section header gap */
  .section-header { margin-bottom: 36px; }

  /* Stats band narrower on tablet */
  .stats-band  { margin: 24px 12px; }

  /* About card internal padding */
  .about-card-stack { padding: 36px 28px; }

  /* CTA section top/bottom breathing room */
  .cta-section { padding: 60px 0; }

  /* Footer grid + padding */
  .Container-footer { padding: 48px 1.5rem 36px; gap: 32px; }

  /* Moodle bridge */
  .moodle-bridge { padding: 36px 28px; }
}

/* ── ≤ 640px  (small phones) — EXTEND existing rules ────── */
@media (max-width: 640px) {
  /*
   * iOS Safari zooms into any input whose font-size is < 16px.
   * Force 16px on all inputs so the form never auto-zooms.
   */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* ── Navbar: keep logo, clock & hamburger all on one row ── */
  .nav-container { padding: 0 0.9rem; gap: 0; }

  /* Logo text — shorten so the whole nav still fits */
  .logo-text {
    font-size: 0.78rem;
    letter-spacing: -0.3px;
    /* prevent the long title from pushing hamburger off-screen */
    white-space: normal;
    line-height: 1.25;
    max-width: 160px;
  }

  /* Clock: shrink further but keep it visible */
  .nav-clock { padding: 4px 8px; margin-left: 6px; gap: 5px; }
  .clock-time { font-size: 0.75rem; letter-spacing: 0.5px; }

  /* Tighten rounded section containers */
  #courses .container,
  #why-us  .container {
    margin: 0 8px;
    padding: 36px 18px;
    border-radius: 16px;
  }

  /* Section header */
  .section-header { margin-bottom: 28px; }
  .section-subtitle { font-size: 0.92rem; }
  .section-title    { letter-spacing: -0.3px; }

  /* Stats band */
  .stats-band { margin: 18px 8px; height: 200px; }

  /* About card */
  .about-card-stack { padding: 28px 20px; }
  .about-big-icon   { width: 58px; height: 58px; font-size: 1.75rem; margin-bottom: 16px; }
  .about-card-stack h3 { font-size: 1.15rem; }
  .about-card-stack p  { font-size: 0.9rem; }

  /* Feature cards */
  .feature-card { padding: 26px 18px; }

  /* CTA section */
  .cta-section    { padding: 48px 0; }
  .cta-section h2 { margin-bottom: 10px; }
  .cta-section p  { margin-bottom: 28px; font-size: 0.95rem; }

  /* CTA buttons — each full width so they stack neatly */
  .btn-cta-primary,
  .btn-cta-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }

  /* Toast — edge-to-edge on small screens */
  .toast-notify {
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    bottom: 16px;
  }

  /* WhatsApp button — slightly smaller & closer to edge */
  .whatsapp-container { bottom: 16px; right: 14px; }
  .whatsapp-button    { width: 50px; height: 50px; font-size: 1.45rem; }

  /* Hero slideshow sub-title */
  .slide-content .slide-sub { font-size: 0.9rem; }

  /* Moodle bridge */
  .moodle-bridge { padding: 28px 20px; }
  .moodle-bridge h3 { font-size: 1.2rem; }

  /* Footer bottom bar */
  .bottom-bar { padding: 16px 1rem; font-size: 0.8rem; line-height: 1.8; }
}

/* ── ≤ 480px  (extra-small / older phones) ───────────────── */
@media (max-width: 480px) {
  /* Shrink V-peak / section decorators so they don't clip content */
  #testimonials         { padding-bottom: 60px; }
  #testimonials::after  { height: 36px; }
  #why-us::after        { height: 28px; background-size: 28px 28px; }

  /* Reduce about-description line-height */
  .about-description { font-size: 0.95rem; line-height: 1.7; }

  /* Hide clock to free up crucial navbar width */
  .nav-clock { display: none; }

  /* Logo text — absolute minimum readable size */
  .logo-text { font-size: 0.72rem; max-width: 200px; }

  /* Hero: shorter on tiny screens */
  .slideshow-container { height: 360px; }
  .slide-content       { padding: 24px 16px; }
  .button-container    { bottom: 48px; }
  .cta-button          { padding: 12px 30px; font-size: 0.92rem; }

  /* Stats band */
  .stats-band { height: 160px; margin: 14px 6px; }

  /* Section */
  .section { padding: 14px 0; }

  /* Rounded section containers — minimal margin */
  #courses .container,
  #why-us  .container {
    margin: 0 4px;
    padding: 28px 14px;
    border-radius: 12px;
  }

  /* About card: compress further */
  .about-card-stack { padding: 24px 16px; }

  /* Course card description — 3 lines max on tiny screens */
  .course-description { -webkit-line-clamp: 3; }

  /* Course card image height */
  .course-image { height: 180px; }

  /* Feature card icon */
  .feature-icon { width: 56px; height: 56px; font-size: 1.3rem; margin-bottom: 16px; }

  /* Section header bottom margin */
  .section-header { margin-bottom: 22px; }

  /* CTA */
  .cta-section { padding: 40px 0; }

  /* Footer */
  .Container-footer { padding: 36px 1rem 24px; gap: 24px; }

  /* Comment wall: single column always (already done at 900px) */

  /* Pricing card */
  .pricing-card { padding: 28px 20px; }

  /* Page hero */
  .page-hero { padding: 44px 16px; }
}

/* ── ≤ 360px  (very narrow / older budget phones) ────────── */
@media (max-width: 360px) {
  /* Logo: clip with ellipsis if still overflowing */
  .logo-text {
    font-size: 0.65rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Nav container sides */
  .nav-container { padding: 0 0.65rem; }

  /* Hamburger: keep full size so it's always tappable */
  .hamburger { width: 40px; height: 40px; border-radius: 11px; }

  /* Slideshow */
  .slideshow-container { height: 320px; }

  /* Sections */
  .section         { padding: 10px 0; }
  .container       { padding: 0 0.85rem; }
  #courses .container,
  #why-us  .container { margin: 0 2px; padding: 22px 12px; border-radius: 10px; }

  /* CTA buttons stacked, full-width */
  .btn-cta-primary,
  .btn-cta-outline { max-width: 100%; }

  /* Toast */
  .toast-notify { min-width: calc(100vw - 20px); max-width: calc(100vw - 20px); bottom: 12px; }
}
