/* ============================================
   Sabeel Us Salaam Online — Premium Styles
   ============================================ */

:root {
  --primary: #0B5ED7;
  --primary-dark: #084298;
  --primary-light: #3d8bfd;
  --secondary: #198754;
  --secondary-dark: #146c43;
  --accent: #D4AF37;
  --accent-dark: #b8941f;
  --bg: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-soft: #EEF4FB;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --header-bg: #0A3D91;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img, svg, video { max-width: 100%; }

.hero,
.section,
.stats,
.trial-banner,
.site-footer,
main {
  max-width: 100%;
  overflow-x: clip;
}

.site-header {
  max-width: 100%;
  overflow: visible;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: grid;
  place-items: center;
  z-index: 10000;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner { text-align: center; }

.loader-crescent {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--bg-soft);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.loader-inner p {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.7rem 1.35rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(11, 94, 215, 0.35); outline-offset: 2px; }

.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(11, 94, 215, 0.38);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1a1405;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover { color: var(--primary); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.4);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--header-h);
  background: linear-gradient(90deg, #072E70 0%, #0A3D91 45%, #0B5ED7 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s;
  overflow: visible;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(7, 46, 112, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  height: 100%;
  padding: 4px 0;
}

.logo-img {
  width: auto;
  height: calc(var(--header-h) - 8px);
  max-height: calc(var(--header-h) - 8px);
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.logo-footer .logo-img {
  width: 96px;
  height: 96px;
  max-height: none;
  background: transparent;
  border-radius: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  margin-left: 1rem;
}

.main-nav .nav-list {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 2;
}

.main-nav .nav-actions {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: currentColor;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nav-backdrop {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  z-index: 1200;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a1628;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
  transition: transform 0.1s linear;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.58) 40%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: min(720px, 58vw);
  margin-left: max(1rem, calc((100vw - min(100vw - 2rem, var(--max))) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 720px, 58vw);
  text-align: left;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.28;
  opacity: 0.96;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-floats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.float-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  animation: floatY 4s ease-in-out infinite;
}

.float-card:nth-child(2) { animation-delay: 0.4s; }
.float-card:nth-child(3) { animation-delay: 0.8s; }
.float-card:nth-child(4) { animation-delay: 1.2s; }

.float-card span { color: var(--accent); font-weight: 700; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Stats */
.stats {
  background: #EEF4FB;
  color: var(--text);
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(11, 94, 215, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
  align-items: stretch;
}

.stats-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  height: 100%;
  align-self: stretch;
  background: var(--white);
  border: 1px solid rgba(11, 94, 215, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.15rem 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.stat-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 94, 215, 0.22);
}

.stat-item.reveal {
  /* Keep reveal fade without vertical offset (avoids misaligned cards) */
  transform: none;
}

.stat-text {
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  min-height: 1.2em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section:nth-of-type(even) {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.85rem;
}

/* Why Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.1), rgba(25, 135, 84, 0.1));
  color: var(--primary);
  margin-bottom: 1.1rem;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Courses */
.course-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.course-search input {
  width: min(100%, 280px);
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.course-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.15);
}

.course-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 94, 215, 0.22);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.course-card.is-hidden { display: none; }

.course-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  overflow: hidden;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.course-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.course-card:hover .course-media img {
  transform: scale(1.06);
}

.reg-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.reg-badge.is-open {
  background: var(--secondary);
}

.reg-badge.is-closed {
  background: #64748B;
}

.course-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.course-body .btn {
  width: auto;
  min-width: 10.5rem;
  max-width: 100%;
  margin-top: 0.35rem;
  align-self: center;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
  flex-shrink: 0;
}

.course-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1 1 auto;
}

.course-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
  width: 100%;
}

.course-details li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.course-details span {
  color: var(--text-muted);
}

.course-details strong {
  color: var(--primary);
  font-weight: 600;
  text-align: right;
}

.course-details .reg-open {
  color: var(--secondary);
}

.course-details .reg-closed {
  color: #94A3B8;
}

.course-card.is-closed {
  opacity: 0.92;
}

.btn-secondary {
  background: #64748B;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(100, 116, 139, 0.25);
}

.btn-secondary:hover {
  background: #475569;
  box-shadow: 0 10px 22px rgba(100, 116, 139, 0.35);
}

/* Timeline / Process */
.process { background: var(--bg-light); }

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
}

.timeline-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.35;
}

.timeline-4::before {
  display: none;
}

.timeline-item {
  text-align: center;
  position: relative;
  padding-top: 0.25rem;
}

.timeline-4 .timeline-item {
  background: var(--white);
  border: 1px solid rgba(11, 94, 215, 0.22);
  border-radius: 12px;
  padding: 1.35rem 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.timeline-num {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(11, 94, 215, 0.3);
  position: relative;
  z-index: 1;
}

.timeline-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Teachers */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.teacher-card {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(11, 94, 215, 0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.teacher-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 94, 215, 0.14);
}

.teacher-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(160deg, #dbe7f8, #eef4fb);
}

.teacher-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(to top, rgba(8, 66, 152, 0.28), transparent);
  pointer-events: none;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.teacher-card:hover .teacher-photo img {
  transform: scale(1.04);
}

.teacher-info {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.teacher-info h3 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(11, 94, 215, 0.12);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--primary-dark);
}

.teacher-qual {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}

.teacher-info ul {
  margin: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.55rem;
}

.teacher-info li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.teacher-info strong {
  color: var(--text);
  font-weight: 600;
}

.teacher-meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
}

.teacher-meta-stack strong {
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.teacher-meta-stack span {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  padding-left: 0;
}

/* Success */
.success-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.success-stats div {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.success-stats strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.success-stats span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.success-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.success-video {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.success-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 94, 215, 0.92);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, background 0.25s;
  z-index: 1;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--primary-dark);
}

.success-body { padding: 1.25rem; }

.stars {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.success-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0.5rem 0 1rem;
}

.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(25, 135, 84, 0.08);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
}

/* Testimonials Marquee — slides right to left */
.testimonials {
  overflow: hidden;
  background: var(--bg-light);
}

.testimonials .section-header {
  margin-bottom: 2rem;
}

.marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marqueeRTL 55s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 auto;
  width: min(260px, 72vw);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.marquee-item cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary);
  white-space: normal;
  display: inline;
}

@keyframes marqueeRTL {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* Trial Banner */
.trial-banner {
  position: relative;
  padding: 5rem 0;
  background:
    linear-gradient(120deg, rgba(8, 66, 152, 0.94), rgba(11, 94, 215, 0.88) 50%, rgba(20, 108, 67, 0.9)),
    url('https://images.unsplash.com/photo-1564769625905-50e93615e769?w=1600&q=70') center/cover;
  color: var(--white);
  text-align: center;
}

.trial-inner { max-width: 640px; }

.trial-banner h2 {
  color: var(--white);
  margin-bottom: 0.85rem;
}

.trial-banner p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

/* About */
.about {
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%, var(--bg) 100%);
}

.about-intro {
  max-width: 760px;
  margin: 0 auto 2.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: left;
}

.about-intro p {
  margin-bottom: 1.15rem;
}

.about-intro p strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.about-intro h3 {
  color: var(--primary);
  font-size: 1.15rem;
  margin: 2rem 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(11, 94, 215, 0.15);
}

.about-aims {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: grid;
  gap: 0.65rem;
}

.about-aims li {
  position: relative;
  padding: 0.8rem 0.9rem 0.8rem 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 94, 215, 0.12);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.about-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(11, 94, 215, 0.14);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
}

.about-card h3 {
  margin-bottom: 0.65rem;
  color: var(--primary);
}

.about-card p { color: var(--text-muted); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* FAQs */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-light); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 94, 215, 0.1);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.3s, background 0.3s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--white);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #dc3545;
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.success { color: var(--secondary); }
.form-status.error { color: #dc3545; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-block {
  background: var(--white);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.info-block-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  border-color: #25D366;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.info-block-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.38);
}

.info-block h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-block h3 a {
  color: inherit;
  font-weight: inherit;
}

.info-block h3 a:hover {
  text-decoration: underline;
}

.info-block a {
  color: var(--text);
  font-weight: 500;
}

.info-block a:hover { color: var(--primary); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: #0a1628;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4rem;
  overflow-x: clip;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}

.footer-grid > div {
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .logo,
.logo-footer {
  height: auto;
  align-self: flex-start;
}

.footer-brand p {
  margin: 1rem 0 1.25rem;
  font-size: 0.92rem;
  max-width: 28ch;
  line-height: 1.5;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.footer-links a:hover { color: var(--accent); }

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-link {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating Actions */
.float-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 900;
}

.float-btn {
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease);
}

.float-btn:hover { transform: scale(1.08); }

.float-wa {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
}

.float-enroll {
  height: 42px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 850;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 880;
  box-shadow: var(--shadow-md);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--primary-dark); }

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1100px) {
  .stats-grid,
  .stats-grid-4 { grid-template-columns: repeat(4, 1fr); }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
    gap: 1rem;
  }

  .course-card {
    border-radius: 14px;
  }

  .course-media {
    aspect-ratio: 16 / 9;
    max-height: 148px;
  }

  .reg-badge {
    top: 0.55rem;
    left: 0.55rem;
    font-size: 0.68rem;
    padding: 0.28rem 0.55rem;
  }

  .course-body {
    padding: 0.95rem 1.05rem 1.05rem;
    gap: 0.45rem;
  }

  .course-body h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0;
  }

  .course-body .btn {
    min-width: 8.5rem;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
  }

  .course-body p {
    font-size: 0.84rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .course-details {
    gap: 0.28rem;
    margin: 0.15rem 0 0;
    padding: 0.55rem 0 0;
    border-bottom: none;
  }

  .course-details li {
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .teachers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .teacher-info {
    padding: 1.15rem 1.2rem 1.35rem;
  }

  .teacher-info h3 {
    font-size: 1.08rem;
  }

  .timeline { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .timeline-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }
  .timeline:not(.timeline-4)::before { display: none; }
  .timeline-4 .timeline-num {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
  }
  .timeline-4 .timeline-item {
    text-align: justify;
    padding: 1rem 0.55rem 0.85rem;
  }
  .timeline-4 .timeline-item h3 {
    font-size: 0.88rem;
    text-align: center;
  }
  .timeline-4 .timeline-item p {
    display: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 40ch;
  }

  .nav-link {
    font-size: 0;
    line-height: 0;
    padding: 0.5rem;
    gap: 0;
  }
  .nav-link .nav-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1250;
  }

  .site-header {
    z-index: 1200;
  }

  .header-inner { gap: 0.5rem; }

  .logo {
    flex: 1 1 auto;
    max-width: calc(100% - 56px);
    height: 100%;
    position: relative;
    z-index: 1250;
  }

  .logo-img {
    height: 100%;
    max-height: calc(var(--header-h) - 10px);
    width: auto;
    max-width: 100%;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #061F4A 0%, #0A3D91 55%, #0B5ED7 100%);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2.5rem;
    gap: 1.25rem;
    box-shadow: none;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.35s var(--ease), visibility 0.35s;
    z-index: 1180;
    visibility: hidden;
    pointer-events: none;
    margin-left: 0;
  }

  .main-nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1170;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list,
  .main-nav .nav-list {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0;
    border-radius: 0;
    width: min(100%, 340px);
    margin-left: 0;
    margin-right: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-link {
    padding: 0.85rem 1.1rem;
    font-size: 1.05rem;
    line-height: 1.3;
    border-radius: 14px;
    width: 100%;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 340px);
    margin-left: 0;
  }

  .nav-actions .btn,
  .nav-actions .btn-ghost,
  .nav-actions .btn-outline,
  .nav-actions .btn-whatsapp { display: inline-flex; width: 100%; }

  /* Hide floating WhatsApp / Enroll on mobile */
  .float-actions {
    display: none !important;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: min(100% - 1.5rem, 720px);
    max-width: 100%;
    align-items: center;
  }

  .hero h1,
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
    max-width: 22ch;
  }

  .hero-sub {
    max-width: 36ch;
    text-align: center;
  }

  .hero-floats {
    display: none !important;
  }

  .hero-ctas {
    justify-content: center;
  }

  .success-grid { grid-template-columns: 1fr; }
  .success-stats { grid-template-columns: 1fr; }
  .about-grid,
  .about-grid-3 { grid-template-columns: 1fr; }

  .about-intro {
    max-width: 100%;
    margin-bottom: 2.25rem;
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .about-intro h3 {
    font-size: 1.08rem;
    margin-top: 1.75rem;
  }

  .about-aims {
    gap: 0.55rem;
  }

  .about-card {
    padding: 1.4rem 1.25rem;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero-floats { gap: 0.5rem; }
  .float-card {
    font-size: 0.8rem;
    padding: 0.55rem 0.8rem;
  }

  .btn-lg { padding: 0.85rem 1.35rem; font-size: 0.95rem; }

  .marquee-item { width: min(220px, 70vw); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }

  .container { width: min(100% - 1.25rem, var(--max)); }

  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }

  .about {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .about .section-header h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .about .section-header p {
    font-size: 0.95rem;
    max-width: 28ch;
    margin-inline: auto;
  }

  .about-intro {
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
  }

  .about-intro p {
    margin-bottom: 0.95rem;
  }

  .about-intro h3 {
    font-size: 1.02rem;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.35rem;
  }

  .about-aims {
    gap: 0.5rem;
  }

  .about-aims li {
    padding: 0.7rem 0.75rem 0.7rem 0.9rem;
    font-size: 0.88rem;
    border-radius: 8px;
  }

  .about-grid,
  .about-grid-3 {
    gap: 0.85rem;
  }

  .about-card {
    padding: 1.15rem 1rem;
    border-radius: 14px;
  }

  .about-card h3 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
  }

  .about-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .logo { max-width: calc(100% - 52px); }
  .logo-img {
    max-height: calc(var(--header-h) - 4px);
  }

  .stats { padding: 1.25rem 0; }
  .stats-grid,
  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .stat-item {
    padding: 0.9rem 0.6rem;
  }
  .stat-item:last-child { grid-column: auto; }
  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: 0.78rem; }

  .features-grid { grid-template-columns: 1fr; }

  .courses-grid {
    grid-template-columns: minmax(0, 300px);
    justify-content: center;
    gap: 0.9rem;
  }

  .course-media {
    max-height: 140px;
  }

  .course-body {
    padding: 0.85rem 0.95rem 0.95rem;
  }

  .course-body h3 {
    font-size: 1rem;
  }

  .course-body p {
    font-size: 0.82rem;
  }

  .course-details li {
    font-size: 0.78rem;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 420px;
    margin-inline: auto;
  }

  .teacher-card {
    border-radius: 16px;
  }

  .teacher-photo {
    aspect-ratio: 16 / 10;
    max-height: 200px;
  }

  .teacher-info {
    padding: 1.15rem 1.2rem 1.35rem;
  }

  .teacher-info h3 {
    font-size: 1.12rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.65rem;
  }

  .teacher-info ul {
    gap: 0.6rem;
  }

  .teacher-info li {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .teacher-meta-stack strong {
    font-size: 0.74rem;
  }

  .teacher-meta-stack span {
    font-size: 0.95rem;
  }

  .timeline:not(.timeline-4) {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .timeline:not(.timeline-4) .timeline-item {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.9rem;
    row-gap: 0.2rem;
    align-items: start;
  }

  .timeline:not(.timeline-4) .timeline-num {
    margin: 0;
    grid-row: span 2;
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .timeline:not(.timeline-4) .timeline-item h3 { margin: 0.15rem 0 0; }
  .timeline:not(.timeline-4) .timeline-item p { grid-column: 2; }

  .timeline-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }

  .timeline-4 .timeline-item {
    text-align: justify;
    display: block;
    padding: 0.75rem 0.35rem 0.65rem;
    border-radius: 10px;
  }

  .timeline-4 .timeline-num {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    margin: 0 auto 0.5rem;
    grid-row: auto;
  }

  .timeline-4 .timeline-item h3 {
    font-size: 0.72rem;
    margin: 0;
    text-align: center;
  }

  .timeline-4 .timeline-item p {
    display: none;
  }

  .gallery-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    grid-column: auto;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-brand .logo,
  .logo-footer {
    align-self: center;
  }

  .logo-footer .logo-img {
    width: 72px;
    height: 72px;
  }

  .footer-brand p {
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }

  .social-icons {
    justify-content: center;
  }

  .site-footer {
    padding-top: 3rem;
  }

  .site-footer h3 {
    margin-bottom: 0.75rem;
  }

  .footer-links a {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .footer-bottom {
    padding: 1rem 0;
    font-size: 0.82rem;
  }

  .hero { min-height: auto; }
  .hero-content {
    padding: 3.25rem 0 2.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: min(100% - 1.25rem, 720px);
    max-width: 100%;
  }
  .hero-img { object-position: center center; }
  .hero h1 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }
  .hero-sub {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn { width: 100%; }
  .hero-floats {
    flex-direction: column;
    align-items: center;
  }
  .float-card { justify-content: center; width: min(100%, 280px); }

  .course-card,
  .teacher-card,
  .feature-card,
  .about-card,
  .success-card,
  .contact-form,
  .info-block {
    border-radius: 14px;
  }

  .contact-form { padding: 1.25rem; }

  .trial-banner { padding: 3.25rem 0; }
  .trial-banner h2 { font-size: 1.45rem; }

  .mobile-cta {
    display: block;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
  .float-actions {
    display: none !important;
  }
  .back-top {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    left: auto;
  }

  .faq-question {
    font-size: 0.92rem;
    padding: 1rem;
    align-items: flex-start;
  }

  body { padding-bottom: 0; }
}

@media (max-width: 380px) {
  :root { --header-h: 60px; }
  .nav-actions .btn-sm { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  .loader-crescent { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
