/* ==========================================================================
   ILMISAFAR — Navy, Gold & Crisp White Redesign Theme
   Scoped to public website & student portal (admin/teacher panels untouched)
   ========================================================================== */

:root {
  --navy-950: #04142c;
  --navy-900: #061c3d;
  --navy-800: #0a2a5c;
  --navy-700: #133b7a;
  --gold: #f4c44e;
  --gold-light: #fcd36a;
  --gold-deep: #d99b1e;
  --gold-soft: #fef8e6;
  --surface: #f5f7fb;
  --border-soft: #e4ebf5;
  --ink: #0f172a;
  --ink-muted: #5b6b82;

  /* Override legacy variables for public/student pages */
  --dark: #061c3d;
  --dark2: #0a2a5c;
  --dark3: #133b7a;
  --white: #ffffff;
  --light-bg: #f5f7fb;
  --text-muted: #cbd5e1;
  --card-bg: #ffffff;
  --radius: 14px;
}

body {
  background: var(--surface);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ── NAVBAR (Crisp White Bar + Active Navy Pill + Gold Sign Up CTA) ── */
.ma-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 14px rgba(6, 28, 61, 0.05);
  position: sticky;
  top: 0;
  z-index: 120;
}

.ma-nav-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.ma-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.ma-logo-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.ma-logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.ma-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.ma-nav-links > li {
  position: relative;
}

.ma-nav-links a,
.ma-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1e293b;
  font-family: var(--font-btn);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ma-nav-links a:hover,
.ma-nav-dropdown-trigger:hover {
  color: var(--navy-800);
  background: #f1f5fb;
}

.ma-nav-links a.active,
.ma-nav-links a[aria-current="page"] {
  background: var(--navy-800);
  color: #ffffff;
  font-weight: 600;
}

.ma-nav-links a.active:hover,
.ma-nav-links a[aria-current="page"]:hover {
  background: var(--navy-900);
  color: #ffffff;
}

.ma-nav-live-ico {
  color: #e11d48;
  display: inline-flex;
  align-items: center;
}

.ma-nav-links a.active .ma-nav-live-ico,
.ma-nav-links a[aria-current="page"] .ma-nav-live-ico {
  color: #fda4af;
}

/* Courses Dropdown */
.ma-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(6, 28, 61, 0.14);
  padding: 8px;
  list-style: none;
  display: none;
  z-index: 200;
}

.ma-nav-dropdown.is-open > .ma-nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

@media (hover: hover) {
  .ma-nav-dropdown:hover > .ma-nav-dropdown-menu {
    display: grid;
    gap: 2px;
  }
}

.ma-nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #1e293b;
}

.ma-nav-dropdown-menu a:hover {
  background: var(--surface);
  color: var(--navy-800);
}

.ma-nav-dropdown-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 6px;
}

.ma-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ma-nav-search-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ma-nav-search-btn:hover {
  background: #f1f5fb;
  color: var(--navy-800);
}

.ma-nav-actions .ma-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-900);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.ma-nav-actions .ma-btn-outline:hover {
  border-color: var(--navy-800);
  background: #f8fafc;
  color: var(--navy-900);
}

.ma-nav-actions .ma-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy-950);
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 12px rgba(244, 196, 78, 0.35);
}

.ma-nav-actions .ma-btn-gold:hover {
  background: var(--gold-light);
}

/* Search Bar Drawer inside Header */
.ma-header-search-bar {
  border-top: 1px solid var(--border-soft);
  background: #f8fafc;
  padding: 12px 24px;
}

.ma-header-search-bar[hidden] {
  display: none;
}

.ma-header-search-form {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  gap: 10px;
}

.ma-header-search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
}

.ma-header-search-form input:focus {
  border-color: var(--navy-800);
  outline: none;
}

.ma-header-search-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: var(--navy-800);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* Hamburger & Mobile Menu */
.ma-hamburger span {
  background: var(--navy-900);
}

.ma-mobile-menu {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 18px 36px rgba(6, 28, 61, 0.12);
}

.ma-mobile-menu ul {
  gap: 4px;
}

.ma-mobile-menu ul li a {
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  border-bottom: none;
}

.ma-mobile-menu ul li a.active,
.ma-mobile-menu ul li a:hover {
  background: var(--navy-800);
  color: #ffffff;
}

.ma-mobile-actions .ma-btn-outline {
  color: var(--navy-900);
  border-color: #cbd5e1;
  text-align: center;
}

.ma-mobile-actions .ma-btn-gold {
  background: var(--gold);
  color: var(--navy-950);
  text-align: center;
}

/* ── HERO SECTION (Navy Left + Curved Gold-Trimmed Student Visual Right) ── */
.ma-hero-redesign {
  position: relative;
  background: radial-gradient(circle at 18% 25%, #113a7a 0%, #072047 52%, #04142c 100%);
  color: #ffffff;
  overflow: hidden;
  padding-bottom: 64px;
}

.ma-hero-bg-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 56%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ma-hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* S-Curve Gold Border Divider between Navy left panel and Hero visual */
.ma-hero-curve {
  position: absolute;
  top: 0;
  left: 42%;
  height: 100%;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}

.ma-hero-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #061c3d 0%, #061c3d 43%, rgba(6, 28, 61, 0.85) 50%, rgba(6, 28, 61, 0.12) 64%, rgba(6, 28, 61, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.ma-hero-redesign .ma-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin-inline: auto;
  padding: 52px 24px 56px;
  display: flex;
  align-items: center;
  min-height: 460px;
}

.ma-hero-redesign .ma-hero-text {
  flex: 0 0 54%;
  max-width: 590px;
}

.ma-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-btn);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ma-hero-wordmark {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0;
  display: inline-block;
  position: relative;
}

.ma-hero-swoosh {
  display: block;
  width: 170px;
  height: 12px;
  margin: 4px 0 14px;
}

.ma-hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 14px;
}

.ma-hero-headline .ma-gold {
  color: var(--gold);
  display: block;
}

.ma-hero-redesign .ma-hero-sub {
  color: rgba(226, 232, 240, 0.9);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 490px;
}

.ma-hero-redesign .ma-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ma-btn-hero-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy-950);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(244, 196, 78, 0.28);
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.ma-btn-hero-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.ma-btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.ma-btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.ma-hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}

.ma-hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.ma-hero-trust-item:last-child {
  border-right: none;
  padding-right: 0;
}

.ma-hero-trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ── OVERLAPPING FLOATING CATEGORY STRIP ── */
.ma-cat-strip-wrap {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: -46px auto 0;
  padding-inline: 24px;
}

.ma-cat-strip {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(6, 28, 61, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  overflow: hidden;
}

.ma-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 14px;
  text-decoration: none;
  color: var(--ink);
  border-right: 1px solid #eef2f7;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.ma-cat-tile:last-child {
  border-right: none;
}

.ma-cat-tile:hover {
  background: #f8faff;
}

.ma-cat-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #f1f5fb;
  color: var(--navy-800);
}

.ma-cat-tile--islamic .ma-cat-tile-icon { color: #0a2a5c; background: #eef4ff; }
.ma-cat-tile--competition .ma-cat-tile-icon { color: #1e3a8a; background: #eff6ff; }
.ma-cat-tile--school .ma-cat-tile-icon { color: #b45309; background: #fef3c7; }
.ma-cat-tile--programming .ma-cat-tile-icon { color: #0369a1; background: #e0f2fe; }
.ma-cat-tile--all .ma-cat-tile-icon { color: #1d4ed8; background: #eef2ff; }

.ma-cat-tile-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 3px;
}

.ma-cat-tile-sub {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* ── POPULAR COURSES SECTION & CARDS ── */
.ma-home-courses {
  padding: 46px 24px 30px;
  background: var(--surface);
}

.ma-section-bar {
  max-width: 1240px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ma-section-bar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ma-section-bar-accent {
  width: 4px;
  height: 26px;
  border-radius: 999px;
  background: var(--gold);
  flex-shrink: 0;
}

.ma-section-bar h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--navy-900);
  margin: 0;
}

.ma-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-btn);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ma-view-all-link:hover {
  background: #e8effa;
  color: var(--navy-950);
}

.ma-courses-grid {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1120px) {
  .ma-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ma-courses-grid {
    grid-template-columns: 1fr;
  }
}

.ma-course-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 20px rgba(6, 28, 61, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ma-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(6, 28, 61, 0.1);
  border-color: #cbd8eb;
}

.ma-course-img {
  position: relative;
  height: 165px;
  min-height: 165px;
  background: linear-gradient(135deg, #061c3d 0%, #133b7a 100%);
  overflow: hidden;
}

.ma-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ma-course-img-icon {
  position: absolute;
  bottom: 14px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(244, 196, 78, 0.94);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ma-course-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ma-course-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ma-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-btn);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
}

.ma-badge-live {
  background: #ffe4e6;
  color: #be123c;
}

.ma-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d48;
  display: inline-block;
}

.ma-badge-recorded {
  background: #e0ecff;
  color: #1d4ed8;
}

.ma-badge-both {
  background: #fef3c7;
  color: #92400e;
}

.ma-course-cat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-course-body h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 6px;
  line-height: 1.32;
}

.ma-course-card-title-link {
  color: inherit;
  text-decoration: none;
}

.ma-course-card-title-link:hover {
  color: var(--navy-700);
}

.ma-course-body p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0 0 12px;
  flex: 1;
}

.ma-course-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 12px;
}

.ma-rating-star {
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
}

.ma-rating-star--empty {
  color: #cbd5e1;
}

.ma-rating-score {
  font-weight: 700;
  color: var(--navy-900);
}

.ma-rating-meta {
  color: var(--ink-muted);
}

.ma-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.ma-pill-free {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.ma-pill-price {
  background: #eff6ff;
  color: var(--navy-800);
  border: 1px solid #bfdbfe;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.ma-enroll-btn {
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
}

.ma-enroll-btn:hover {
  background: var(--navy-800);
  color: #ffffff;
  border-color: var(--navy-800);
}

/* ── REAL DATABASE STATS STRIP ── */
.ma-stats-strip-wrap {
  max-width: 1240px;
  margin: 12px auto 48px;
  padding-inline: 24px;
}

.ma-stats-strip {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(6, 28, 61, 0.05);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 18px 12px;
}

.ma-stats-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px;
  border-right: 1px solid #eef2f7;
}

.ma-stats-strip-item:last-child {
  border-right: none;
}

.ma-stats-strip-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5fb;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ma-stats-strip-val {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
}

.ma-stats-strip-lbl {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── PROMO VIDEO SECTION (Moved below Popular Courses) ── */
.ma-promo-section {
  padding: 44px 24px;
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.ma-promo-inner {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.ma-promo-copy h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--navy-900);
  margin-bottom: 12px;
}

.ma-promo-copy p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ma-promo-frame-wrap .ma-hero-video-frame {
  border: 2px solid var(--gold);
  box-shadow: 0 20px 45px rgba(6, 28, 61, 0.16);
}

.ma-promo-frame-wrap .ma-hero-video-caption {
  color: var(--ink-muted);
  margin-top: 10px;
  font-size: 13.5px;
}

/* ── WHY CHOOSE, LEADERSHIP, FAQ, CTA, FOOTER ── */
.ma-why {
  background: linear-gradient(135deg, #04142c 0%, #0a2a5c 100%);
}

.ma-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(244, 196, 78, 0.25);
}

.ma-cta {
  background: linear-gradient(135deg, #eef4ff 0%, #fef9eb 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.ma-btn-dark,
.ma-btn-cta {
  background: var(--navy-800);
  color: #ffffff;
}

.ma-btn-dark:hover,
.ma-btn-cta:hover {
  background: var(--navy-900);
}

.ma-footer {
  background: var(--navy-900);
  color: rgba(226, 232, 240, 0.8);
}

.ma-footer .ma-logo-title {
  color: #ffffff;
}

.ma-footer .ma-logo-sub {
  color: rgba(203, 213, 225, 0.78);
}

.ma-footer-teacher-btn {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(244, 196, 78, 0.1);
}

.ma-footer-teacher-btn:hover {
  background: var(--gold);
  color: var(--navy-950);
}

/* ── LEADERSHIP SECTION (Editorial Split-Header Cards) ── */
.ma-leadership-section {
  background: var(--surface);
  padding: 68px 24px;
}

.ma-leadership-inner {
  max-width: 1240px;
  margin-inline: auto;
}

.ma-leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.ma-leader-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 26px rgba(6, 28, 61, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ma-leader-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(6, 28, 61, 0.11);
}

.ma-leader-card-top {
  background: linear-gradient(135deg, #04142c 0%, #0a2a5c 100%);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 104px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 8px;
  align-items: center;
  text-align: left;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.ma-leader-card-top::after {
  content: "";
  position: absolute;
  top: -36px;
  right: -36px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 196, 78, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ma-leader-avatar-wrap {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 104px;
  height: 104px;
  margin: 0;
  border-radius: 50%;
  border: 3px solid var(--gold);
  padding: 3px;
  background: #061c3d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.ma-leader-name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.ma-leader-avatar-placeholder {
  color: var(--gold);
  font-size: 40px;
}

.ma-leader-designation {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  background: rgba(244, 196, 78, 0.16);
  color: var(--gold);
  border: 1px solid rgba(244, 196, 78, 0.42);
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 999px;
}

.ma-leader-card-body {
  padding: 24px 28px 26px;
  gap: 14px;
}

.ma-leader-quote {
  background: #f8fafd;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.ma-leader-bio {
  color: var(--ink-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

/* ── FAQ SECTION (2-Column Sticky Sidebar + Airy White Accordion Cards) ── */
.ma-faq-section {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 72px 24px;
}

.ma-faq-container {
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  row-gap: 24px;
  align-items: start;
}

.ma-faq-header {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  margin-bottom: 0;
}

.ma-faq-header .ma-divider {
  justify-content: flex-start;
  margin: 0 0 14px !important;
}

.ma-faq-badge {
  background: #eff6ff;
  color: var(--navy-800);
  border-color: #bfdbfe;
}

.ma-faq-title {
  color: var(--navy-900);
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.2;
}

.ma-faq-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
}

.ma-faq-accordion {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ma-faq-item {
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(6, 28, 61, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ma-faq-item:hover {
  border-color: #bfd0ea;
  box-shadow: 0 8px 22px rgba(6, 28, 61, 0.08);
  transform: translateY(-1px);
}

.ma-faq-item.active {
  border-color: var(--navy-800);
  box-shadow: 0 12px 28px rgba(6, 28, 61, 0.1);
}

.ma-faq-question {
  background: #ffffff;
  color: var(--navy-900);
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
}

.ma-faq-question:hover {
  background: #f8faff;
  color: var(--navy-900);
}

.ma-faq-q-text,
.ma-faq-q-text span {
  color: inherit;
}

.ma-faq-q-num {
  background: #eef4ff;
  border-color: #d6e4ff;
  color: var(--navy-800) !important;
  border-radius: 9px;
}

.ma-faq-item:hover .ma-faq-q-num {
  background: #dce8ff;
  color: var(--navy-900) !important;
}

.ma-faq-icon {
  background: #f1f5fb;
  border-color: #dce5f2;
  color: var(--navy-800);
}

.ma-faq-item:hover .ma-faq-icon {
  background: #e2eaf6;
  border-color: #c5d4ea;
  color: var(--navy-900);
}

.ma-faq-item.active .ma-faq-question {
  background: linear-gradient(135deg, #061c3d 0%, #0a2a5c 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--gold);
}

.ma-faq-item.active .ma-faq-q-text,
.ma-faq-item.active .ma-faq-q-text span {
  color: #ffffff;
}

.ma-faq-question:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.ma-faq-item.active .ma-faq-q-num,
.ma-faq-item.active .ma-faq-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-950) !important;
}

.ma-faq-answer {
  padding: 20px 24px;
  font-size: 14.5px;
  color: #334155;
  background: #ffffff;
}

.ma-faq-footer-cta {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 96px;
  margin-top: 4px;
  padding: 26px;
  background: linear-gradient(135deg, #04142c 0%, #0a2a5c 100%);
  border: 1px solid rgba(244, 196, 78, 0.28);
  border-radius: 18px;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(6, 28, 61, 0.14);
}

.ma-faq-footer-cta .ma-btn-gold {
  background: var(--gold);
  color: var(--navy-950);
  display: inline-block;
}

.faq-toggle {
  background: #ffffff !important;
  color: var(--navy-900) !important;
  transition: background 0.2s ease !important;
}

.faq-toggle span {
  color: var(--navy-900) !important;
}

.faq-toggle svg {
  stroke: var(--navy-800) !important;
}

.faq-toggle:hover {
  background: #f8faff !important;
}

.ma-about-cta {
  background: linear-gradient(135deg, #eef4ff 0%, #fef9eb 100%);
  border-top: 1px solid var(--border-soft);
}

.ma-about-cta h2 {
  color: var(--navy-900);
}

@media (max-width: 960px) {
  .ma-faq-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ma-faq-header {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
  }
  .ma-faq-header .ma-divider {
    justify-content: center;
    margin: 0 auto 14px !important;
  }
  .ma-faq-subtitle {
    margin: 0 auto;
  }
  .ma-faq-accordion {
    grid-column: 1;
    grid-row: 2;
  }
  .ma-faq-footer-cta {
    grid-column: 1;
    grid-row: 3;
    position: static;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .ma-leadership-grid {
    grid-template-columns: 1fr;
  }
  .ma-leader-card-top {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center;
    justify-items: center;
    padding: 26px 20px;
  }
  .ma-leader-avatar-wrap {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 8px;
  }
  .ma-leader-name {
    grid-column: 1;
    grid-row: 2;
  }
  .ma-leader-designation {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }
}

/* ── TABLES, DOWNLOADS & MISC COMPONENTS ── */
.ma-schedule-table thead th {
  background: var(--navy-900);
  color: #ffffff;
}

.ma-download-btn {
  color: var(--navy-900);
  background: var(--gold);
}

.ma-download-btn:hover {
  background: var(--gold-light);
}

.ma-contact-form input:focus,
.ma-contact-form select:focus,
.ma-contact-form textarea:focus {
  border-color: var(--navy-800);
}

/* ── INNER PAGES & BANNERS ── */
.ma-page-banner {
  background: linear-gradient(135deg, #04142c 0%, #0a2a5c 65%, #133b7a 100%);
  border-bottom: 3px solid rgba(244, 196, 78, 0.45);
}

.ma-courses-page {
  padding: 40px 24px 64px;
  background: var(--surface);
}

.ma-courses-filter {
  max-width: 1240px;
  margin: 0 auto 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ma-courses-filter + .ma-courses-grid {
  margin-top: 26px;
}

.ma-filter-pill {
  background: #ffffff;
  border: 1px solid #d5dfee;
  color: var(--navy-900);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.ma-filter-pill:hover,
.ma-filter-pill.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #ffffff;
}

.ma-live-info {
  margin-bottom: 48px;
}

.ma-live-num {
  color: var(--navy-900) !important;
}

.ma-live-schedule h2 {
  margin-top: 8px;
  margin-bottom: 24px;
  color: var(--navy-900);
}

.ma-live-empty {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  color: var(--ink-muted);
  margin: 16px 0 36px;
}

.ma-live-empty p {
  margin: 4px 0;
  font-size: 15px;
}

/* ── COURSE REVIEWS SECTION (course-detail.php) ── */
.ma-reviews-section {
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
}

.ma-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ma-reviews-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
}

.ma-review-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.ma-review-stars-input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ma-review-star-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
}

.ma-review-star-chip:has(input:checked) {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #ffffff;
}

.ma-review-star-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ma-review-list {
  display: grid;
  gap: 12px;
}

.ma-review-item {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
}

.ma-review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

/* ── AUTH PAGES OVERRIDES ── */
.ma-auth-left {
  background: linear-gradient(160deg, #04142c 0%, #0a2a5c 55%, #061c3d 100%) !important;
}

.ma-auth-heading,
.ma-auth-heading-navy {
  color: var(--navy-900) !important;
}

.ma-auth-submit {
  background: var(--navy-800) !important;
  color: #ffffff !important;
}

.ma-auth-submit:hover {
  background: var(--navy-900) !important;
}

.ma-input-icon-wrap input:focus {
  border-color: var(--navy-800) !important;
}

.ma-checkbox-label input[type="checkbox"]:checked + .ma-checkmark {
  background: var(--navy-800) !important;
  border-color: var(--navy-800) !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1040px) {
  .ma-nav-links {
    display: none;
  }
  .ma-nav-actions .ma-btn-outline,
  .ma-nav-actions .ma-btn-gold {
    display: none;
  }
  .ma-hamburger {
    display: flex !important;
  }
  .ma-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ma-stats-strip-item {
    border-right: none;
    justify-content: flex-start;
  }
  .ma-promo-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ma-hero-bg-photo {
    width: 100%;
    opacity: 0.25;
  }
  .ma-hero-curve {
    display: none;
  }
  .ma-hero-bg-scrim {
    background: linear-gradient(180deg, rgba(6, 28, 61, 0.92) 0%, rgba(6, 28, 61, 0.88) 100%);
  }
  .ma-hero-redesign .ma-hero-content {
    padding: 40px 20px 64px;
    min-height: 0;
  }
  .ma-hero-redesign .ma-hero-text {
    flex: 1 1 auto;
    max-width: 100%;
  }
  .ma-cat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ma-cat-tile {
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
  }
}

@media (max-width: 560px) {
  .ma-stats-strip {
    grid-template-columns: 1fr;
  }
  .ma-cat-strip {
    grid-template-columns: 1fr;
  }
  .ma-hero-trust-item {
    border-right: none;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
