html {
  scroll-behavior: smooth;
}

:root {
  --color-primary: #1a4d8f;
  --color-secondary: #2eb67d;
  --color-accent: #f5b82e;
  --color-dark: #1f2933;
  --color-text: #23272f;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fb;
  --color-footer-bg: #0b1220;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: #f9fafc;
  line-height: 1.6;
}


/* Layout helpers */
.section {
  padding: 88px 24px;
}

.section--soft {
  background: #f3f6fd;
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__header h2 {
  font-size: 30px;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.section__header p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.footer_logo{
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}



/* Hero */
.hero {
  background: linear-gradient(135deg, #f7f9ff 0%, #ebf3ff 38%, #e9fff7 100%);
  color: var(--color-text);
  padding: 88px 24px 104px;
}

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 72vh;
}

.hero__content {
  max-width: 720px;
  text-align: left;
}

.hero__content h1 {
  font-size: 38px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 18px;
}

.hero__tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.hero__description {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero__trust {
  font-size: 14px;
  color: var(--color-dark);
}

.hero__trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  gap: 6px;
}
.hero__trust-pill strong {
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.1s ease,
    border-color 0.2s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.22);
}

.btn--primary:hover {
  background: #153e7e;
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(26, 77, 143, 0.9);
}

.btn--outline:hover {
  background: rgba(26, 77, 143, 0.06);
}

.btn--secondary {
  background: var(--color-secondary);
  color: #0b1120;
}

.btn--secondary:hover {
  background: #22a56e;
}

.btn--outline-light {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--color-dark);
  background: #f9fafb;
}

.btn--outline-light:hover {
  transform: translateY(-1px);
  background: #d6d8dc;
}


/* Cards */
.feature-card{
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.feature-card h3{
  font-size: 17px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.feature-card p{
  font-size: 14px;
  color: var(--color-muted);
}

/* Why SwaLearn Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.why-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px 26px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.why-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.55;
  margin-top: 6px;
}

.why-icon {
  width: 44px;
  height: 44px;
  background: #eff5ff;
  color: var(--color-primary);
  font-size: 22px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}


/* Hover elevation */
.feature-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(105, 106, 108, 0.14);
  border-color: rgba(148, 163, 184, 0.8);
  background: #ffffff;
}

/* Program card link */
.program-card .link-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.program-card .link-arrow::after {
  content: "→";
  margin-left: 6px;
  font-size: 14px;
  transition: transform 0.16s ease;
}

.program-card:hover .link-arrow::after {
  transform: translateX(3px);
}

/* ---------------------------
   PROGRAM OVERVIEW — DARK THEME
---------------------------- */
.program-section {
  padding: 90px 24px;
  background: #0e1320; /* soft charcoal */
}

.program-header {
  text-align: center;
  margin-bottom: 48px;
}

.program-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.program-header p {
  color: #aab3c0;
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto;
}

/* Dark Grid */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* Dark Cards */
.program-dark-card {
  background: #161b28;
  border-radius: 16px;
  padding: 26px 24px 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  color: #e8ecf5;

  /* Make cards equal height + push button down */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-dark-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.program-dark-card p {
  font-size: 14px;
  color: #c0c6d2;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Hover Elevation */
.program-dark-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}

/* CTA Button Inside Cards */
.program-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  color: #0e1320;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.program-btn:hover {
  background: #e4e8ef;
  transform: translateY(-2px);
}

.program-btn .arrow {
  font-size: 18px;
  font-weight: bolder;
  margin-left: 6px;
  color: white;
  background-color: black;
  padding: 2px 25px;
  border-radius: 25px;
  border: 0PX;
}


/* --------------------------------------------
   Academic Excellence Model – Premium Vertical Style
--------------------------------------------- */

.academic-model {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 50px;
  margin-top: 40px;

  /* Fix alignment */
  justify-items: center;

  /* Prevent over-stretching */
  max-width: 1000px;
  margin-inline: auto;
}


.academic-item {
  padding: 10px 18px;
  max-width: 360px;
  margin: 0 auto;
  
  transition:
    transform 0.2s ease-out,
    opacity 0.2s ease-out;
}

.academic-item:hover {
  transform: translateY(-4px);
}

.academic-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.academic-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.academic-item p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 300px;
}

/* CTA section */
.section--cta {
  background: radial-gradient(circle at top left, #1a4d8f 0, #020617 65%);
  color: #e5e7eb;
}

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

.section--cta h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.section--cta p {
  color: #cbd5f5;
}

.section__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* Footer */
.site-footer {
  background: var(--color-footer-bg);
  color: #e5e7eb;
  padding: 32px 24px 18px;
  margin-top: 32px;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer__col h3,
.footer__col h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer__col p,
.footer__col li {
  font-size: 14px;
  color: #cbd5f5;
}

.footer__col ul {
  list-style: none;
}

.footer__col li + li {
  margin-top: 6px;
}

.footer__col a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer__col a:hover {
  text-decoration: underline;
}

.footer__contact {
  margin-top: 8px;
}

.footer__bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}


/* =========================================================
   RESPONSIVE TWEAKS (INCLUDING MOBILE NAV DRAWER)
   ========================================================= */

@media (max-width: 900px) {
  /* ---------------------------
     Existing page responsiveness
     (kept same as your original)
     --------------------------- */

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .section__inner--cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 72px 20px 80px;
  }

  .hero__content h1 {
    font-size: 30px;
  }

  .hero__description {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 60px 20px;
  }

  .academic-model {
    gap: 32px;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =========================================================
   SCROLL REVEAL + FORM MESSAGES
   ========================================================= */

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.form-message.success {
  background-color: #e8fbe6;
  border-left: 4px solid #16a34a;
  color: #166534;
}

.form-message.error {
  background-color: #fde2e2;
  border-left: 4px solid #dc2626;
  color: #7f1d1d;
}

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


/* =========================================================
   FINAL NAVBAR STICKY FIX
   (keep header + navbar above content layers)
   ========================================================= */

#navbar {
  position: relative;
  z-index: 650;
}


/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 999;
  border-bottom: 1px solid #ddd;
}

.navbar {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  color: #164e8e;
}

/* Desktop menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a,
.dropdown-btn {
  font-size: 16px;
  color: #333;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu a:hover,
.dropdown-btn:hover {
  color: #164e8e;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 30px;
  left: 0;
  display: none;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  width: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: #333;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile nav trigger */
.nav-toggle {
  display: none;
  width: 30px;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  background: #333;
  border-radius: 3px;
}

.nav-menu a.active,
.dropdown-btn.active {
  color: #164e8e;
  font-weight: 600;
}


/* ===========================================
   BACKDROP OVERLAY
=========================================== */
#navOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

#navOverlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ===========================================
   HAMBURGER ANIMATION
=========================================== */
.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 3px;
  width: 100%;
  background: #222;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X transformation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-menu a.active,
.dropdown-btn.active {
  color: #164e8e !important;
  font-weight: 700;
}


/* ===========================================
   FINAL MOBILE NAV FIX – PERFECT BEHAVIOR
=========================================== */
@media (max-width: 768px) {

  /* FIX 1 — Ensure header stays on top */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
  }

  /* FIX 2 — Menu appears BELOW the navbar */
  .nav-menu {
    position: absolute;
    top: 64px;         /* height of navbar */
    left: 0;
    width: 100%;
    background: #fff;
    display: none !important;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #eee;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex !important;
  }

  .nav-toggle {
    display: flex !important;
    z-index: 1001; /* stays above menu */
  }

  /* Make items vertical */
  .nav-menu li {
    width: 100%;
  }

  /* Mobile dropdown accordion */
  .dropdown-menu {
    display: none !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 20px;
  }

  .dropdown-menu.open {
    display: block !important;
  }

  .dropdown-btn {
    background: none;
    border: none;
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
    text-align: left;
  }

  .no-scroll {
  position: fixed;
  width: 100%;
}


  /* Smooth accordion */
  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding-left: 20px;
  }

  .dropdown-menu.open {
    max-height: 500px; /* enough height */
  }

  /* Smooth mobile menu slide */
  .nav-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-menu.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  :root {
    --header-height: 64px; /* adjust if your header is taller */
  }

  /* Mobile menu should be FIXED below header */
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #eee;
    z-index: 2000;
  }

  .nav-menu.open {
    display: flex !important;
  }

  /* Overlay also must be fixed */
  #navOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1500;
  }

  #navOverlay.show {
    opacity: 1;
    pointer-events: all;
  }

  /* HEADER FIX WHEN MENU IS OPEN */
.site-header.fixed-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
}
}
