/* ============================================
   MAKE FUTURE MODEL SCHOOL — School Website Template
   Premium Design System & Styles
   ============================================ */

/* ---------- Google Fonts ---------- */
/* Loaded via <link> tags in HTML <head> for parallel loading — see index.html */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette – premium blue (elevated from base blue) */
  --blue-50:  #eef4ff;
  --blue-100: #d9e8ff;
  --blue-200: #bbd5ff;
  --blue-300: #8ab8fd;
  --blue-400: #5b9afa;
  --blue-500: #3478f6;
  --blue-600: #1e5de8;
  --blue-700: #1849d4;
  --blue-800: #193bac;
  --blue-900: #172e7a;

  /* Accent gold – premium prestige */
  --gold-50:  #fefbeb;
  --gold-100: #fdf4c8;
  --gold-200: #fce68b;
  --gold-300: #fad34e;
  --gold-400: #f7c527;
  --gold-500: #e8a708;
  --gold-600: #cc8004;
  --gold-700: #a35b07;
  --gold-800: #86470e;
  --gold-900: #723a12;

  /* Accent warm (preserved & elevated) */
  --amber-400: #f7c527;
  --amber-500: #e8a708;

  /* Neutrals – slightly warmer tint */
  --white:    #ffffff;
  --gray-50:  #f8f9fb;
  --gray-100: #f1f3f6;
  --gray-200: #e3e6eb;
  --gray-300: #cdd2d9;
  --gray-400: #959da8;
  --gray-500: #64707e;
  --gray-600: #475261;
  --gray-700: #334050;
  --gray-800: #1c2a3a;
  --gray-900: #0f1a2a;

  /* Semantic */
  --success: #0ea572;
  --danger:  #ef4444;

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-py: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Premium Shadows – layered with colored blue tint */
  --shadow-sm: 0 1px 3px rgba(23,46,122,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 8px -1px rgba(23,46,122,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 24px -4px rgba(23,46,122,.1), 0 4px 8px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 24px 48px -8px rgba(23,46,122,.12), 0 8px 16px -6px rgba(0,0,0,.05);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.1s var(--ease);
  --transition-base: 0.2s var(--ease);
  --transition-slow: 0.35s var(--ease);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: pageFadeIn 0.3s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.page-exit {
  opacity: 0 !important;
  transition: opacity 0.2s ease-out;
}

/* Lock background scroll when any modal/lightbox is open */
body.modal-open {
  overflow: hidden !important;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: .75rem;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gray-900);
  margin-bottom: .6rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all 0.2s var(--ease);
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(30,93,232,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,93,232,.45);
}
.btn-outline {
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
}
.btn-outline:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
/* ---- Premium CTA Button (Apply Now) ---- */
.btn-cta {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-600) 100%);
  color: var(--gray-900);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(247,197,39,.35), 0 2px 4px rgba(0,0,0,.1);
  border: 1px solid rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.btn-cta:hover::before {
  transform: translateX(100%);
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(247,197,39,.45), 0 4px 8px rgba(0,0,0,.12);
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 50%, var(--gold-500) 100%);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(247,197,39,.35), 0 0 0 0 rgba(247,197,39,.3); }
  50% { box-shadow: 0 4px 16px rgba(247,197,39,.35), 0 0 0 8px rgba(247,197,39,0); }
}
.btn-cta {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.btn-cta:hover {
  animation: none;
}

/* ── Uiverse.io Button Styling ── */
.uiverse-btn {
  border: none;
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  background-color: #488aec;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  user-select: none;
  gap: 0.75rem;
  box-shadow:
    0 4px 6px -1px #488aec31,
    0 2px 4px -1px #488aec17;
  transition: all 0.4s ease;
}

.uiverse-btn:hover {
  box-shadow:
    0 10px 15px -3px #488aec4f,
    0 4px 6px -2px #488aec17;
}

.uiverse-btn:focus,
.uiverse-btn:active {
  opacity: 0.85;
  box-shadow: none;
}

.uiverse-btn:disabled {
  background-color: var(--gray-300);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.uiverse-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.uiverse-btn i {
  font-size: 1.15rem;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1002; /* Must be ABOVE .nav-overlay (1000) so the mobile drawer is clickable */
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: all .35s var(--ease);
}
.navbar.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-700);
}
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: all .25s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}
.nav-cta {
  margin-left: .5rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all .3s var(--ease);
  display: block;
  width: 100%;
}

/* Mobile menu overlay */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter .3s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-backdrop-filter .3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s .3s;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity .3s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter .3s cubic-bezier(0.4, 0, 0.2, 1),
              -webkit-backdrop-filter .3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s;
}

@media (min-width: 769px) {
  .nav-overlay {
    display: none !important;
  }
}
/* ===================================================
   OVERVIEW CARDS (shared — used on homepage & subpages)
   =================================================== */
.overview {
  padding: var(--section-py) 0;
  background: var(--gray-50);
  position: relative;
}
.overview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-400), var(--blue-600));
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.overview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all 0.25s var(--ease);
  text-align: center;
}
.overview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-200);
}
.overview-card .card-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}
.overview-card .card-icon.blue   { background: var(--blue-100); color: var(--blue-600); }
.overview-card .card-icon.green  { background: #d1fae5; color: #059669; }
.overview-card .card-icon.amber  { background: #fef3c7; color: #d97706; }
.overview-card .card-icon.purple { background: #ede9fe; color: #7c3aed; }
.overview-card .card-icon.rose   { background: #ffe4e6; color: #e11d48; }
.overview-card .card-icon.teal   { background: #ccfbf1; color: #0d9488; }
.overview-card .card-icon.indigo { background: #e0e7ff; color: #4338ca; }
.overview-card .card-icon.cyan   { background: #cffafe; color: #0891b2; }
.overview-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: .5rem;
}
.overview-card p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
}
.overview-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: gap .3s var(--ease);
}
.overview-card:hover .card-link { gap: .6rem; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: linear-gradient(180deg, var(--gray-900) 0%, #080f1e 100%);
  color: var(--gray-400);
  padding: 4rem 0 0;
  position: relative;
  margin-top: auto;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--gold-400), var(--blue-700));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--gray-700);
}
.footer-brand .logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-brand .logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: .95rem;
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-social {
  display: flex;
  gap: .75rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gray-800);
  color: var(--gray-400);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.footer-social a:hover {
  background: var(--blue-600);
  color: var(--white);
}
.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a {
  font-size: .85rem;
  color: var(--gray-400);
  transition: color .3s;
}
.footer-col ul a:hover { color: var(--blue-400); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
}
.footer-bottom a { color: var(--blue-400); }

/* ===================================================
   SCROLL REVEAL ANIMATION
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(30,93,232,.35);
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30,93,232,.5);
}

/* ===================================================
   RESPONSIVE — global rules only
   (section-specific rules live in each page CSS)
   =================================================== */

/* ---------- Tablet landscape & small desktop ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Tablet portrait & large phones ---------- */
@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  /* --- Navigation mobile drawer (GPU-accelerated) --- */
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 80%; max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    width: 100%;
    padding: .85rem 0;
    font-size: 1.05rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links a:last-of-type {
    border-bottom: none;
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 1.5rem;
    justify-content: center;
    width: 100%;
    border-bottom: none !important;
  }
  .hamburger { display: flex; }

  /* Hamburger → X animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* --- Footer --- */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-social a { width: 44px; height: 44px; font-size: 1rem; }

  /* --- Back to top --- */
  .back-to-top { width: 42px; height: 42px; bottom: 1.25rem; right: 1.25rem; font-size: 1rem; }

  /* --- Section headers --- */
  .section-header { margin-bottom: 2.5rem; }
  .section-header p { font-size: .95rem; }

  /* --- CTA button on mobile --- */
  .btn-cta { animation: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 480px) {
  :root { --section-py: 3rem; }
  .container { padding: 0 1rem; }

  /* Typography scaling */
  .section-header h2 { font-size: 1.45rem; }

  /* Navbar smaller */
  .navbar .container { height: 60px; }
  .nav-logo { font-size: 1.15rem; }
  .nav-logo .logo-icon { width: 34px; height: 34px; font-size: .95rem; }

  /* Buttons — touch-friendly 48px */
  .btn { padding: .8rem 1.5rem; font-size: .9rem; min-height: 48px; }

  /* Back to top even smaller */
  .back-to-top { width: 40px; height: 40px; bottom: 1rem; right: 1rem; font-size: .9rem; }
}

/* ---------- Very small phones (<=360px) ---------- */
@media (max-width: 360px) {
  .container { padding: 0 .75rem; }
  .section-header h2 { font-size: 1.3rem; }
  .nav-links { width: 90%; }
}

/* ---------- Ensure all images are fluid ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Touch-friendly interactive elements ---------- */
@media (hover: none) and (pointer: coarse) {
  .overview-card:hover,
  .curriculum-card:hover,
  .staff-card:hover,
  .event-card:hover,
  .blog-card:hover,
  .announcement-card:hover,
  .alumni-card:hover {
    transform: none;
  }
  .gallery-item .g-overlay { opacity: 1; }
  .btn-cta { animation: none; }
}



/* ===================================================
   PAGE HERO BANNER (subpages)
   =================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 45%, var(--blue-700) 100%);
  padding: 130px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,.04) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(247,197,39,.07) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }

.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue-300);
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.08);
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.12);
}
.page-hero .breadcrumb a {
  color: var(--blue-300);
  transition: color .25s var(--ease);
}
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb .sep {
  color: var(--blue-500);
  font-size: .7rem;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.page-hero h1 span { color: var(--amber-400); }
.page-hero p {
  font-size: 1.05rem;
  color: var(--blue-200);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .page-hero { padding: 110px 0 55px; }
  .page-hero p { font-size: .95rem; }
}
@media (max-width: 480px) {
  .page-hero { padding: 100px 0 45px; }
  .page-hero h1 { font-size: 1.75rem; }
}
