@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --red: #cc2936;
  --red-dark: #a8202b;
  --text-dark: #1a1a2e;
  --text-mid: #555;
  --text-muted: #999;
  --gray-border: #e8e8e8;
  --gray-light: #f7f7f7;
  --max-w: 1200px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text-dark); background: #fff; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════
   TOP BAR
═══════════════════════════════ */
.top-bar { background: #1a1e35; border-bottom: 1px solid rgba(255,255,255,0.08); }
.top-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 10px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.contact-group { display: flex; align-items: center; gap: 28px; }
.contact-item  { display: flex; align-items: center; gap: 10px; }
.contact-icon {
  width: 36px; height: 36px; background: rgba(204,41,54,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
  transition: background 0.3s;
}
.contact-item:hover .contact-icon { background: var(--red); }
.contact-text strong { display: block; font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact-text span   { font-size: 12.5px; font-weight: 600; color: #fff; }

.social-links { display: flex; align-items: center; gap: 7px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: transform 0.3s, box-shadow 0.3s;
}
.social-btn svg { width: 15px; height: 15px; }
.social-btn.facebook  { background: #1877f2; }
.social-btn.instagram { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.social-btn.youtube   { background: #ff0000; }
.social-btn.linkedin  { background: #0077b5; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

/* ═══════════════════════════════
   NAVBAR
═══════════════════════════════ */
.navbar {
  background: #fff; border-bottom: 2px solid var(--gray-border);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-shrink: 0; }
.logo img { height: 55px; width: auto; object-fit: contain; transition: transform 0.3s; }
.logo:hover img { transform: scale(1.04); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .brand { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text-dark); }
.logo-text .BRAND, .logo-text .tagline { font-size: 10px; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

/* Desktop nav links */
.nav-links { display: flex; align-items: center; }
.nav-links > a,
.nav-links .has-dropdown > a {
  padding: 20px 13px; font-size: 12.5px; font-weight: 600;
  color: var(--text-mid); letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; transition: color 0.3s; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.nav-links > a::after,
.nav-links .has-dropdown > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2.5px; background: var(--red); border-radius: 2px; transition: width 0.3s;
}
.nav-links > a:hover, .nav-links > a.active,
.nav-links .has-dropdown > a:hover { color: var(--red); }
.nav-links > a:hover::after, .nav-links > a.active::after,
.nav-links .has-dropdown > a:hover::after { width: 70%; }

.contact-btn {
  background: var(--red); color: white; padding: 11px 22px;
  font-size: 12px; font-weight: 700; border-radius: 5px;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.contact-btn:hover { background: var(--red-dark); color: white; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(204,41,54,0.35); }

.hamburger {
  display: none; flex-direction: column; cursor: pointer; gap: 5px;
  padding: 8px; background: none; border: none; z-index: 50;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 210px; border-top: 2px solid var(--red);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 200;
  border-radius: 0 0 8px 8px; overflow: hidden;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 11px 18px; font-size: 12.5px; font-weight: 500;
  color: var(--text-mid); border-bottom: 1px solid #f0f0f0; white-space: nowrap;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #fff5f5; color: var(--red); padding-left: 24px; }
.dropdown a::after { display: none !important; }
.arrow { font-size: 10px; }

/* ═══════════════════════════════
   OVERLAY
═══════════════════════════════ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);

  pointer-events: none;        /* ← KEY FIX: won't intercept any taps */
}
.nav-overlay.show {
  display: block;
  pointer-events: auto;        /* ← only active area = outside the drawer */
}
.nav-links {
  z-index: 600;
  pointer-events: auto;        /* ← always receives taps when open */
}


/* ═══════════════════════════════
   DESKTOP: nav-links = normal row
═══════════════════════════════ */
@media (min-width: 769px) {
  .nav-links {
    display: flex; flex-direction: row;
    position: static; transform: none !important;
    width: auto; height: auto; background: transparent;
    box-shadow: none; overflow: visible;
  }
  .drawer-header     { display: none; }
  .mobile-contact-btn { display: none; }
  .hamburger         { display: none; }
  .nav-overlay       { display: none !important; }
  .arrow             { display: inline; }
  .has-dropdown:hover .dropdown { display: block; }
  
}

/* ═══════════════════════════════
   MOBILE DRAWER
═══════════════════════════════ */
@media (max-width: 768px) {
  .top-bar-inner { flex-direction: column; align-items: center; padding: 8px 16px; gap: 8px; }
  .contact-group { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .contact-item:nth-child(1),
  .contact-item:nth-child(2) { display: none; }
  .social-links { justify-content: center; }

  .hamburger { display: flex; }
  .nav-inner > .contact-btn { display: none; }

  .nav-links {
    display: flex !important; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px;
    z-index: 600; background: #ffffff;
    box-shadow: 6px 0 32px rgba(0,0,0,0.22);
    overflow-y: auto; overflow-x: hidden;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-links.open { transform: translateX(0); }

  .drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid #f0f0f0; background: #fff;
    position: sticky; top: 0; z-index: 10; flex-shrink: 0;
  }
  .drawer-logo { display: flex; align-items: center; gap: 10px; }
  .drawer-logo img { height: 40px; width: auto; object-fit: contain; }
  .drawer-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
  .drawer-logo-text .d-brand { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--text-dark); }
  .drawer-logo-text .d-sub   { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
  .drawer-close {
    width: 32px; height: 32px; background: #f5f5f5; border: none; border-radius: 50%;
    font-size: 15px; cursor: pointer; color: var(--text-dark);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s; flex-shrink: 0;
  }
  .drawer-close:hover { background: var(--red); color: #fff; }

  .nav-links > a {
    display: flex !important; align-items: center;
    padding: 16px 20px !important; border-bottom: 1px solid #f2f2f2 !important;
    font-size: 14px !important; font-weight: 600 !important; color: #222 !important;
    text-transform: none !important; letter-spacing: 0.02em !important; background: #fff;
    transition: color 0.2s, background 0.2s;
  }
  .nav-links > a:hover, .nav-links > a.active { color: var(--red) !important; background: #fff5f5 !important; }
  .nav-links > a::after { display: none !important; }

  .has-dropdown > a {
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 16px 20px !important; border-bottom: 1px solid #f2f2f2 !important;
    font-size: 14px !important; font-weight: 600 !important; color: #222 !important;
    text-transform: none !important; background: #fff; cursor: pointer;
    transition: color 0.2s, background 0.2s; width: 100%;
  }
  .has-dropdown > a:hover, .has-dropdown.open > a { color: var(--red) !important; background: #fff5f5 !important; }
  .has-dropdown > a::after { display: none !important; }

  .arrow {
    width: 24px; height: 24px; border: 1.5px solid #ddd; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; color: #888; flex-shrink: 0;
    transition: transform 0.25s, border-color 0.2s, color 0.2s;
  }
  .has-dropdown.open > a .arrow { transform: rotate(180deg); border-color: var(--red); color: var(--red); }

  .has-dropdown:hover .dropdown { display: none !important; }
  .has-dropdown .dropdown {
    position: static !important; display: none;
    box-shadow: none !important; border-top: none !important; border-radius: 0 !important;
    background: #fafafa; border-left: 3px solid var(--red); min-width: unset; z-index: auto;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a {
    display: block; padding: 12px 20px 12px 22px !important;
    font-size: 13px !important; font-weight: 500 !important; color: #555 !important;
    border-bottom: 1px solid #efefef !important; text-transform: none !important;
    background: transparent; transition: color 0.2s, background 0.2s !important;
  }
  .dropdown a:last-child { border-bottom: none !important; }
  .dropdown a:hover { color: var(--red) !important; background: #fff0f0 !important; padding-left: 22px !important; }

  .mobile-contact-btn {
    display: block; margin: 20px 16px 28px;
    background: var(--red); color: #fff; padding: 15px 0; border-radius: 7px;
    font-size: 13px; font-weight: 700; text-align: center;
    letter-spacing: 0.1em; text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(204,41,54,0.35); transition: background 0.2s;
  }
  .mobile-contact-btn:hover { background: var(--red-dark); color: #fff; }
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  position: relative; min-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,15,40,0.85) 0%, rgba(10,15,40,0.65) 45%, rgba(10,15,40,0.25) 100%);
}
.hero-inner-row {
  position: relative; z-index: 1;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  flex: 1; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 60px 24px 40px; gap: 40px;
}
.hero-content { flex: 1; max-width: 560px; animation: fadeInUp 0.7s ease both; padding: 0 0 0 60px; }
.hero-content h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(28px,3.5vw,50px);
  color: #fff; line-height: 1.15; margin-bottom: 18px; font-weight: 700;
}
.hero-content p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 28px; max-width: 460px; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-apply {
  background: var(--red); color: #fff; padding: 13px 28px; border-radius: 5px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-apply:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,41,54,0.4); color: #fff; }
.btn-academics {
  background: transparent; color: #fff; padding: 12px 28px; border-radius: 5px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.6); transition: background 0.25s, border-color 0.25s;
}
.btn-academics:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

.hero-badge-card {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; padding: 7px 16px 7px 7px;
}
.badge-avatars { display: flex; }
.badge-avatars img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; object-fit: cover; }
.badge-avatars img:first-child { margin-left: 0; }
.badge-count { background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.badge-label { font-size: 12px; color: #fff; font-weight: 500; }

.hero-right {
  flex-shrink: 0; width: 420px;
  display: flex; align-items: center; justify-content: center;
  animation: fadeInUp 0.7s 0.2s ease both; padding: 0 40px 0 0;
}
.hero-slider {
  position: relative; width: 100%; height: 320px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55); border: 2px solid rgba(255,255,255,0.18);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff; font-size: 13px; font-weight: 600; padding: 28px 16px 12px; letter-spacing: 0.04em;
}
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 10;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-prev:hover, .slider-next:hover { background: var(--red); border-color: var(--red); }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.dot.active { background: #fff; transform: scale(1.35); }

.hero-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); }
.hero-card { display: flex; align-items: flex-start; gap: 14px; padding: 26px 24px; }
.hero-card.dark { background: #1a1e35; }
.hero-card.red  { background: #c0392b; }
.hero-card.blue { background: #1565c0; }
.hero-card .card-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.hero-card h4 { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.hero-card p  { font-size: 12.5px; color: rgba(255,255,255,0.75); line-height: 1.65; }

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

/* ═══════════════════════════════
   ABOUT SECTION
═══════════════════════════════ */
.about-section {
  padding: 80px 24px;
  background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url("image/bg1.png");
  background-size: cover; background-position: center; background-attachment: fixed;
}
.about-inner { max-width: var(--max-w); margin: 0 auto; }
.about-header { margin-bottom: 40px; }
.section-tag { display: inline-block; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(24px,3.5vw,36px); color: var(--text-dark); line-height: 1.2; margin-bottom: 6px; }
.section-sub { font-size: 14px; color: var(--text-muted); font-style: italic; }

.about-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-img-main { width: 100%; height: 390px; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.about-img-thumb { height: 150px; border-radius: 10px; overflow: hidden; }
.about-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
.about-right { display: flex; flex-direction: column; gap: 14px; }
.about-para { font-size: 14.5px; color: var(--text-mid); line-height: 1.85; }
.about-para strong { color: var(--text-dark); }
.about-divider { height: 1px; background: var(--gray-border); }
.about-hl-title { font-size: 12px; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.1em; }
.about-highlights { display: flex; flex-direction: column; gap: 10px; }
.about-hl {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--gray-light); border: 0.5px solid var(--gray-border); transition: background 0.2s, border-color 0.2s;
}
.about-hl:hover { background: #fff0f1; border-color: #f5c0c3; }
.about-hl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 5px; }
.about-hl-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.about-hl-text span   { font-size: 12px; color: var(--text-muted); }
.about-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff0f1;
  border: 0.5px solid #f5c0c3; border-radius: 20px; padding: 7px 16px;
  font-size: 12px; font-weight: 600; color: var(--red-dark);
}

/* ═══════════════════════════════
   FACILITIES SECTION
═══════════════════════════════ */
.facilities-section {
  padding: 100px 24px;
  background: linear-gradient(rgba(8,20,40,0.82), rgba(8,20,40,0.82)), url("image/bg4.png");
  background-size: cover; background-position: center; background-attachment: fixed;
}
.facilities-inner { max-width: var(--max-w); margin: 0 auto; }
.facilities-header { text-align: center; margin-bottom: 55px; }
.facilities-header .section-title { color: #fff; }
.facilities-header .section-sub   { color: rgba(255,255,255,0.8); max-width: 700px; margin: 0 auto; font-size: 15px; line-height: 1.7; }
.facilities-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.facility-card { position: relative; height: 340px; border-radius: 18px; overflow: hidden; cursor: pointer; background: #000; }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.facility-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,17,44,0.96), rgba(4,17,44,0.15));
}
.facility-content { position: absolute; left: 24px; bottom: 24px; right: 20px; z-index: 2; color: #fff; }
.facility-content h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.facility-content p  { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.facility-card:hover img { transform: scale(1.08); }

/* ═══════════════════════════════
   WHY ROYAL SECTION
═══════════════════════════════ */
.why-section { padding: 80px 0; background: #fff; }
.why-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.why-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.why-tag {
  font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase;
  letter-spacing: 0.14em; display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.why-tag::after { content: ''; flex: 1; height: 1.5px; background: var(--red); }
.why-h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px,3vw,34px); font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.why-desc { font-size: 14.5px; color: var(--text-mid); line-height: 1.85; padding-top: 6px; }
.why-body { display: grid; grid-template-columns: 1fr 1fr; }
.why-img { position: relative; min-height: 380px; border-radius: 12px 0 0 12px; overflow: hidden; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-img-accent { position: absolute; bottom: 0; left: 0; width: 16px; height: 80px; background: #1565c0; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; }
.why-card { padding: 30px 24px; border: 0.5px solid var(--gray-border); display: flex; flex-direction: column; gap: 14px; transition: background 0.2s; }
.why-card:hover { background: #fafafa; }
.why-icon { width: 50px; height: 50px; background: #fff0f1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.why-card h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.why-card p  { font-size: 13.5px; color: var(--text-mid); line-height: 1.75; }
    /* ═══════════════════════════════
       STATS SECTION
    ═══════════════════════════════ */
    .stats-section {
      position: relative;
      padding: 20px 24px;
      overflow: hidden;
    }
 
    /* Background image layer */
    .stats-bg {
      position: absolute;
      inset: 0;
      /* ✅ Replace this URL with your own classroom/school photo */
      background-image: url("image/bg5.png");
      background-size: cover;
      background-position: center;
      background-attachment: fixed; /* Parallax-style effect */
      filter: brightness(0.38) saturate(0.7);
      z-index: 0;
    }
 
    /* Dark color overlay for readability */
    .stats-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(15, 18, 40, 0.55) 0%, rgba(204, 41, 54, 0.12) 100%);
      z-index: 1;
    }
 
    .stats-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }
 
    /* ── Header ── */
    .stats-top {
      text-align: center;
      margin-bottom: 52px;
    }
 
    .stats-tag {
      display: inline-block;
      color: #ff8a93;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }
 
    .stats-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(22px, 3vw, 32px);
      font-weight: 700;
      color: #fff;
      line-height: 1.25;
      text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    }
 
    .stats-title span {
      color: var(--red);
    }
 
    /* ── Grid ── */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }
 
    /* ── Stat Card ── */
    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 40px 24px;
      border-right: 1px solid rgba(255, 255, 255, 0.15);
      transition: background 0.35s;
      cursor: default;
    }
 
    .stat-item:last-child {
      border-right: none;
    }
 
    .stat-item:hover {
      background: rgba(255, 255, 255, 0.06);
    }
 
    /* ── Icon ── */
    .stat-icon-wrap {
      width: 66px;
      height: 66px;
      border-radius: 50%;
      background: rgba(204, 41, 54, 0.18);
      border: 1.5px solid rgba(204, 41, 54, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      margin-bottom: 20px;
      transition: background 0.3s, transform 0.3s;
    }
 
    .stat-item:hover .stat-icon-wrap {
      background: rgba(204, 41, 54, 0.35);
      transform: scale(1.1);
    }
 
    /* ── Number ── */
    .stat-number {
      font-family: 'Playfair Display', serif;
      font-size: clamp(38px, 4.5vw, 56px);
      font-weight: 700;
      color: #fff;
      line-height: 1;
      display: flex;
      align-items: flex-end;
      gap: 2px;
      text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    }
 
    .stat-plus {
      font-size: 30px;
      color: var(--red);
      font-weight: 700;
      margin-bottom: 4px;
      line-height: 1.1;
    }
 
    /* ── Label ── */
    .stat-label {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.65);
      text-transform: uppercase;
      letter-spacing: 0.14em;
      margin-top: 10px;
      font-weight: 600;
    }
 
    /* ── Animated underbar ── */
    .stat-bar {
      width: 36px;
      height: 3px;
      background: var(--red);
      border-radius: 2px;
      margin-top: 16px;
      transition: width 0.4s ease;
    }
 
    .stat-item:hover .stat-bar {
      width: 64px;
    }
 
    /* ═══════════════════════════════
       RESPONSIVE
    ═══════════════════════════════ */
    @media (max-width: 768px) {
      .stats-section { padding: 60px 16px; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 30px 14px;
      }
      .stat-item:nth-child(odd)  { border-right: 1px solid rgba(255, 255, 255, 0.12); }
      .stat-item:nth-child(3),
      .stat-item:nth-child(4)    { border-bottom: none; }
    }
 
    @media (max-width: 400px) {
      .stats-grid { grid-template-columns: 1fr; }
      .stat-item  { border-right: none !important; }
    }

  
  /* ── Section wrapper ── */
   /* ── Section wrapper ── */
.courses-section {
  padding: 90px 24px 100px;

  /* Background Image */
  background:
    linear-gradient(
      rgba(238, 230, 246, 0.92),
      rgba(145, 183, 241, 0.92)
    ),
    url("image/bg6.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  position: relative;
  overflow: hidden;
}
 
    /* Watermark text behind */
    .courses-section::before {
      content: 'ROYAL';
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      font-family: 'Playfair Display', serif;
      font-size: clamp(100px, 18vw, 220px);
      font-weight: 800;
      color: rgba(26,35,86,0.04);
      white-space: nowrap;
      pointer-events: none;
      z-index: 0;
      letter-spacing: 0.1em;
    }
 
    .courses-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }
 
    /* ── Heading ── */
    .courses-head {
      text-align: center;
      margin-bottom: 60px;
    }
 
    .courses-tag {
      display: inline-block;
      background: rgba(204,41,54,0.1);
      color: var(--red);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      padding: 6px 18px;
      border-radius: 50px;
      margin-bottom: 16px;
    }
 
    .courses-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(28px, 4vw, 46px);
      font-weight: 800;
      color: var(--navy);
      line-height: 1.15;
      margin-bottom: 16px;
    }
 
    .courses-title span { color: var(--red); }
 
    .courses-desc {
      font-size: 16px;
      color: #555;
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.7;
    }
 
   
 
    .banner-icon {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: rgba(204,41,54,0.2);
      border: 2px solid rgba(204,41,54,0.5);
      display: flex; align-items: center; justify-content: center;
      font-size: 28px;
      flex-shrink: 0;
    }
 
    .banner-content { flex: 1; min-width: 200px; position: relative; z-index: 1; }
 
    .banner-title {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 10px;
    }
 
    .banner-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
 
    .banner-pill {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.85);
      font-size: 13px;
      font-weight: 600;
      padding: 6px 16px;
      border-radius: 50px;
    }
 
    .banner-pill strong {
      color: #fff;
    }
 
    .banner-badge {
      background: var(--red);
      color: #fff;
      font-size: 13px;
      font-weight: 700;
      padding: 8px 20px;
      border-radius: 50px;
      flex-shrink: 0;
      position: relative; z-index: 1;
    }
 
    /* ── Grid ── */
    .courses-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }
 
    /* ── Card ── */
    .course-card {
      background: #fff;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      box-shadow: 0 4px 24px rgba(26,35,86,0.08);
      transition: transform 0.35s cubic-bezier(.22,1,.36,1),
                  box-shadow 0.35s ease;
      cursor: default;
 
      /* Animation: start hidden above */
      opacity: 0;
      transform: translateY(-60px);
    }
 
    .course-card.visible {
      animation: slideDown 0.65s cubic-bezier(.22,1,.36,1) forwards;
    }
 
    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-60px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0)    scale(1); }
    }
 
    .course-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 48px rgba(26,35,86,0.15);
    }
 
    /* Top accent bar */
    .card-bar {
      height: 5px;
      background: var(--navy);
    }
 
    .course-card.featured .card-bar { background: var(--red); }
    .course-card.gold .card-bar     { background: var(--gold); }
 
    /* Grade badge */
    .grade-badge {
      position: absolute;
      top: 20px; right: 20px;
      width: 64px; height: 64px;
      border-radius: 50%;
      background: var(--red);
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      line-height: 1.1;
      box-shadow: 0 4px 16px rgba(204,41,54,0.35);
      transition: transform 0.3s ease;
    }
 
    .course-card.featured .grade-badge { background: #fff; color: var(--red); }
    .course-card.gold .grade-badge     { background: var(--gold); color: #4a2800; }
 
    .course-card:hover .grade-badge { transform: scale(1.1) rotate(-5deg); }
 
    .grade-badge .grade-label {
      font-size: 8px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      opacity: 0.8;
    }
 
    .grade-badge .grade-val {
      font-size: 14px;
      font-weight: 800;
    }
 
    /* Card body */
    .card-body { padding: 28px 28px 32px; }
 
    .card-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: rgba(26,35,86,0.07);
      display: flex; align-items: center; justify-content: center;
      font-size: 22px;
      margin-bottom: 16px;
    }
 
    .course-card.featured .card-icon { background: rgba(255,255,255,0.15); }
 
    .card-title {
      font-family: 'Playfair Display', serif;
      font-size: 20px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 12px;
      padding-right: 70px; /* space for badge */
      line-height: 1.25;
    }
 
    .course-card.featured .card-title { color: #fff; }
 
    .card-desc {
      font-size: 14px;
      color: #666;
      line-height: 1.65;
      margin-bottom: 20px;
    }
 
    .course-card.featured .card-desc { color: rgba(255,255,255,0.8); }
 
    /* Feature list */
    .card-features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
 
    .card-features li {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      color: #555;
      line-height: 1.4;
    }
 
    .course-card.featured .card-features li { color: rgba(255,255,255,0.75); }
 
    .feat-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--red);
      margin-top: 5px;
      flex-shrink: 0;
    }
 
    .course-card.featured .feat-dot { background: #fff; }
    .course-card.gold .feat-dot     { background: var(--gold); }
 
    /* Featured card gets navy bg */
    .course-card.featured {
      background: var(--navy);
    }
 
    /* Bottom learn-more link */
    .card-footer {
      padding: 0 28px 24px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
      color: var(--red);
      cursor: pointer;
      text-decoration: none;
      width: fit-content;
      transition: gap 0.2s;
    }
 
    .course-card.featured .card-footer { color: rgba(255,255,255,0.7); }
 
    .card-footer:hover { gap: 10px; }
 
    .card-footer-arrow {
      font-size: 16px;
      transition: transform 0.2s;
    }
    .card-footer:hover .card-footer-arrow { transform: translateX(4px); }
 
    /* ── Responsive ── */
    @media (max-width: 960px) {
      .courses-grid { grid-template-columns: repeat(2, 1fr); }
    }
 
    @media (max-width: 600px) {
      .courses-grid { grid-template-columns: 1fr; }
        .courses-section { padding: 60px 16px 70px; }
    }

    /* =========================================
   PREMIUM PRINCIPAL SECTION
========================================= */

.principal-section{
  position:relative;
  padding:80px 24px;
  overflow:hidden;

  background:
    linear-gradient(
      135deg,
      #f8fbff 0%,
      #eef4ff 50%,
      #ffffff 100%
    );
}

/* FLOATING SHAPES */

.principal-shape{
  position:absolute;
  border-radius:50%;
  filter:blur(40px);
  z-index:0;
  animation:floatShape 8s ease-in-out infinite;
}

.shape-1{
  width:260px;
  height:260px;
  background:rgba(214,40,57,0.12);
  top:-60px;
  left:-80px;
}

.shape-2{
  width:300px;
  height:300px;
  background:rgba(29,78,216,0.12);
  bottom:-100px;
  right:-80px;
  animation-delay:2s;
}

@keyframes floatShape{
  0%,100%{
    transform:translateY(0px);
  }
  50%{
    transform:translateY(-20px);
  }
}

/* CONTAINER */

.principal-container{
  max-width:1250px;
  margin:0 auto;

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:90px;
  align-items:center;

  position:relative;
  z-index:2;
}

/* LEFT */

.principal-tag{
  display:inline-block;

  padding:8px 20px;
  border-radius:50px;

  background:rgba(214,40,57,0.1);
  color:#d62839;

  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;

  margin-bottom:24px;
}

.principal-title{
  font-family:'Playfair Display', serif;
  font-size:clamp(40px,2vw,64px);
  line-height:1;
  color:#111827;
  margin-bottom:28px;
  font-weight:800;
}

.principal-text{
  font-size:16px;
  line-height:2;
  color:#555;
  margin-bottom:24px;
  max-width:620px;
}

.principal-text strong{
  color:#111827;
}

/* STATS */

.principal-stats{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-top:40px;
  margin-bottom:42px;
}

.principal-stat-card{
  min-width:150px;
  padding:20px 24px;

  background:#fff;
  border-radius:18px;

  box-shadow:0 10px 30px rgba(0,0,0,0.06);

  transition:.35s ease;
}

.principal-stat-card:hover{
  transform:translateY(-8px);
}

.principal-stat-card h3{
  font-size:32px;
  color:#1d4ed8;
  margin-bottom:6px;
  font-weight:800;
}

.principal-stat-card p{
  font-size:13px;
  color:#666;
  font-weight:600;
}

/* BUTTON */

.principal-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:15px 36px;
  border-radius:50px;

  background:linear-gradient(
    135deg,
    #d62839,
    #ef233c
  );

  color:#fff;
  text-decoration:none;

  font-size:14px;
  font-weight:700;

  box-shadow:0 12px 30px rgba(214,40,57,0.28);

  transition:.35s ease;
}

.principal-btn:hover{
  transform:translateY(-4px) scale(1.03);
  box-shadow:0 18px 40px rgba(214,40,57,0.38);
}

/* RIGHT */

.principal-image-area{
  position:relative;
}

/* GLOW */

.principal-glow{
  position:absolute;
  width:350px;
  height:350px;
  border-radius:50%;

  background:rgba(29,78,216,0.15);

  filter:blur(60px);

  top:40px;
  left:40px;

  z-index:0;
}

/* IMAGE BOX */

.principal-image-box{
  position:relative;
  border-radius:32px;
  overflow:hidden;

  background:#fff;

  box-shadow:
    0 20px 60px rgba(0,0,0,0.12);

  z-index:2;

  animation:floatImage 5s ease-in-out infinite;
}

@keyframes floatImage{
  0%,100%{
    transform:translateY(0px);
  }
  50%{
    transform:translateY(-12px);
  }
}

.principal-image-box img{
  width:90%;
  height:500px;
  object-fit:cover;
  display:block;
}

/* FLOATING INFO CARD */

.principal-floating-card{
  position:absolute;

  bottom:-40px;
  left:-40px;

  width:320px;

  padding:28px;

  border-radius:24px;

  background:rgba(255,255,255,0.92);

  backdrop-filter:blur(18px);

  box-shadow:
    0 15px 50px rgba(0,0,0,0.12);

  z-index:3;

  animation:floatCard 6s ease-in-out infinite;
}

@keyframes floatCard{
  0%,100%{
    transform:translateY(0px);
  }
  50%{
    transform:translateY(-10px);
  }
}

.principal-floating-card h3{
  font-size:30px;
  font-weight:800;
  color:#1d4ed8;
  margin-bottom:10px;
}

.principal-role{
  font-size:18px;
  font-weight:700;
  color:#d62839;
  margin-bottom:16px;
}

.principal-qualification{
  font-size:14px;
  line-height:1.8;
  color:#555;
  margin-bottom:6px;
}

.principal-qualification span{
  font-weight:700;
  color:#111827;
}

/* RESPONSIVE */

@media(max-width:992px){

  .principal-container{
    grid-template-columns:1fr;
    gap:80px;
  }

  .principal-title{
    font-size:44px;
  }

  .principal-image-box img{
    height:520px;
  }

  .principal-floating-card{
    left:20px;
    bottom:-30px;
  }
}

@media(max-width:640px){

  .principal-section{
    padding:90px 18px;
  }

  .principal-title{
    font-size:34px;
  }

  .principal-text{
    font-size:15px;
    line-height:1.9;
  }

  .principal-stats{
    gap:12px;
  }

  .principal-stat-card{
    flex:1;
    min-width:120px;
  }

  .principal-image-box img{
    height:400px;
  }

  .principal-floating-card{
    position:relative;
    width:100%;
    left:0;
    bottom:0;
    margin-top:20px;
  }

  .principal-floating-card h3{
    font-size:24px;
  }
}
/* ── SLIDE IN FROM LEFT ANIMATION ── */
@keyframes slideInLeft {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  width: 100%;
  height: 220px;
  background: #5e5ef6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;           /* ← don't cut the image */
  padding-right: 5%;
}

/* student image */
.cta-student {
  position: absolute;
  left: 300px;
  bottom: 0;                   /* anchored to bottom so it bleeds up */
  height: 120%;                /* taller than banner = overflows top & bottom */
  display: flex;
  align-items: flex-end;
}

.cta-student img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  display: block;
  filter: drop-shadow(4px 0 18px rgba(0,0,0,0.18));
}

/* text + button — vertically centered */
.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;         /* ← center button under text */
  justify-content: center;     /* ← vertical center */
  gap: 18px;
  margin-left: 420px;
  text-align: center;          /* ← center heading text */
}

.cta-heading {
  white-space: nowrap;
  font-size: clamp(16px, 1.8vw, 26px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.cta-btn {
  display: inline-block;
  padding: 11px 28px;
  border: 2px solid #fff;
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}

.cta-btn:hover {
  background: #fff;
  color: #1a73c8;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .cta-banner {
    height: 180px;
    padding: 0 20px 0 0;
    justify-content: flex-end;
    overflow: visible;         /* ← don't cut on mobile either */
  }

  .cta-student {
    left: 0;
    height: 110%;
    width: 45%;
  }

  .cta-student img {
    width: 100%;
    height: 100%;
    object-fit: contain;       /* ← contain keeps full image */
    object-position: bottom;
  }

  .cta-content {
    margin-left: 0;
    max-width: 55%;
    gap: 12px;
    align-items: center;
    text-align: center;
  }

  .cta-heading {
    white-space: normal;
    font-size: 15px;
    font-weight: 700;
  }

  .cta-btn {
    padding: 8px 18px;
    font-size: 12px;
  }
}
/* ========================= PREMIUM GALLERY ========================= */
.simple-gallery {
  padding: 80px 24px;
  background: #f4f4f0;
}

.gallery-heading {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-heading span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c0392b;
  border-bottom: 1.5px solid #c0392b;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.gallery-heading h2 {
  font-size: 52px;
  font-weight: 800;
  color: #111;
  font-family: 'Playfair Display', serif;
}

.gallery-heading p {
  color: #888;
  font-size: 14px;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* GRID — masonry style */
.simple-gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 210px;
  gap: 14px;
}

/* First box spans 2 columns — big feature image */
.gallery-box:nth-child(1) { grid-column: 1 / 3; }

/* BOX base */
.gallery-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.gallery-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-box:hover img {
  transform: scale(1.07);
}

/* DARK GRADIENT OVERLAY */
.gallery-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.1) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.gallery-box:hover::before {
  opacity: 1;
}

/* TEXT INFO on hover */
.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  z-index: 2;
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-box:hover .gallery-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffd500;
  border: 1px solid rgba(255,213,0,0.4);
  background: rgba(255,213,0,0.12);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.gallery-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.gallery-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 3px;
}

/* TOP-RIGHT ICON BUTTON */
.gallery-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.35s ease;
}

.gallery-box:hover .gallery-corner {
  opacity: 1;
  transform: scale(1);
}

.gallery-corner svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .simple-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-box:nth-child(1) { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .gallery-heading h2 { font-size: 36px; }
  .simple-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-box:nth-child(1) { grid-column: 1; }
  .gallery-box { height: 220px; }
}


/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer { background: var(--text-dark); color: rgba(255,255,255,0.7); padding: 60px 24px 40px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }

/* 5 columns now */
.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; 
  gap: 36px; 
  margin-bottom: 48px; 
}

.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; margin-top: 4px; }

.footer-col h4 { 
  font-size: 12px; font-weight: 700; color: #fff; 
  text-transform: uppercase; letter-spacing: 0.12em; 
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { 
  font-size: 13px; color: rgba(255,255,255,0.5); 
  transition: color 0.3s, padding-left 0.3s; display: inline-block; 
}
.footer-col ul li a:hover { color: var(--red); padding-left: 6px; }

/* Contact list with icons */
.footer-contact-list { list-style: none; }
.footer-contact-list li { 
  display: flex; 
  align-items: flex-start; 
  gap: 10px; 
  margin-bottom: 16px; 
}
.fc-icon { 
  font-size: 15px; 
  flex-shrink: 0; 
  margin-top: 2px;
  width: 28px; height: 28px;
  background: rgba(204,41,54,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-contact-list li div { display: flex; flex-direction: column; gap: 3px; }
.footer-contact-list li a,
.footer-contact-list li span { 
  font-size: 12.5px; 
  color: rgba(255,255,255,0.5); 
  line-height: 1.6;
  transition: color 0.3s;
}
.footer-contact-list li a:hover { color: var(--red); }

/* Footer bottom */
.footer-bottom { 
  border-top: 1px solid rgba(255,255,255,0.08); 
  padding-top: 24px;
  padding-bottom: 8px;
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 12px; 
  font-size: 12.5px; 
  color: rgba(255, 255, 255, 0.878); 
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 900px) {
  .hero-content { padding: 40px 20px 30px; }
  .facilities-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hero-inner-row { flex-direction: column; padding: 40px 20px 30px; gap: 30px; }
  .hero-content { max-width: 100%; padding: 0; }
  .hero-right { width: 100%; padding: 0; }
  .hero-slider { height: 220px; }
  .hero-btns { flex-direction: column; }
  .btn-apply, .btn-academics { text-align: center; justify-content: center; }
  .hero-cards { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; gap: 32px; }
  .about-img-main { height: 220px; }
  .why-top  { grid-template-columns: 1fr; gap: 20px; }
  .why-body { grid-template-columns: 1fr; }
  .why-img  { min-height: 240px; border-radius: 12px; }
  .why-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .facilities-section { padding: 80px 18px; }
  .facilities-grid { grid-template-columns: 1fr; }
  .facility-card { height: 300px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}