/* ============ TOKENS ============ */
:root {
  --primary-navy: #0B1C3F;
  --secondary-navy: #152B5B;
  --accent-red: #D72638;
  --accent-red-hover: #B81F2E;
  --text-dark: #1E293B;
  --text-gray: #64748B;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px -5px rgba(11, 28, 63, 0.15);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--primary-navy); }
p { margin: 0; line-height: 1.6; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; position: relative; }

/* ============ ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger .reveal:nth-child(1) { transition-delay: 0.1s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.2s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.4s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.5s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 100px; font-weight: 600; font-size: 14px;
  transition: all 0.3s ease; gap: 8px; position: relative; overflow: hidden;
}
.btn-red { background: var(--accent-red); color: var(--white); box-shadow: 0 4px 14px rgba(215, 38, 56, 0.4); }
.btn-red::before{
  content:''; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(115deg, transparent, rgba(255,255,255,.5), transparent);
  transform:skewX(-20deg); transition:left .7s var(--ease);
}
.btn-red:hover::before{ left:130%; }
.btn-red:hover { background: var(--accent-red-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(215, 38, 56, 0.5); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn:focus-visible{ outline:2px solid var(--accent-red); outline-offset:3px; }

/* ============ TOP BAR ============ */
.top-bar { background: var(--primary-navy); color: var(--white); padding: 10px 0; font-size: 12px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-contact { display: flex; gap: 20px; align-items: center; }
.top-contact div { display: flex; align-items: center; gap: 6px; }
.top-contact svg { width: 14px; height: 14px; opacity: 0.8; }
.top-socials { display: flex; gap: 12px; }
.top-socials svg { width: 16px; height: 16px; transition: 0.3s; }
.top-socials a:hover svg { fill: var(--accent-red); }

/* ============ NAVBAR ============ */
.header { background: var(--white); position: sticky; top: 0; z-index: 1001; box-shadow: var(--shadow-sm); transition: padding 0.3s, box-shadow 0.3s; }
.header .container { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(11,28,63,0.15); transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; }
.brand-text b { font-family: var(--font-heading); font-size: 22px; color: var(--primary-navy); text-transform: uppercase; letter-spacing: 1px; line-height: 1.1; }
.brand-text span { font-size: 11px; color: var(--text-gray); }
.brand-text b span { color: var(--accent-red); font-size: inherit; font-family: inherit; }

/* Dims the header bar itself in sync with the menu overlay, so the whole
   page (not just the area below the header) darkens when the sidebar opens. */
.header::after{
  content:''; position:absolute; inset:0; background:rgba(11,28,63,0.6); backdrop-filter:blur(4px);
  opacity:0; visibility:hidden; pointer-events:none; transition:all 0.4s var(--ease); z-index:1;
}
.header.menu-open::after{ opacity:1; visibility:visible; }
.header .container{ position:relative; z-index:2; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--primary-navy); position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent-red); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 22px; position: relative; }
.mobile-toggle span{ position:absolute; left:0; right:0; height:2.5px; border-radius:2px; background:var(--primary-navy); transition:all 0.3s var(--ease); }
.mobile-toggle span:nth-child(1){ top:0; }
.mobile-toggle span:nth-child(2){ top:9px; }
.mobile-toggle span:nth-child(3){ top:18px; }
.mobile-toggle.active span:nth-child(1){ transform:translateY(9px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2){ opacity:0; }
.mobile-toggle.active span:nth-child(3){ transform:translateY(-9px) rotate(-45deg); }
.close-menu { display: none; }

/* Menu Overlay */
.menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 28, 63, 0.6); backdrop-filter: blur(4px);
  z-index: 999; opacity: 0; visibility: hidden; transition: all 0.4s var(--ease);
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative; color: var(--white);
  padding: 90px 0 170px; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(8,17,38,.94) 0%, rgba(11,28,63,.90) 55%, rgba(11,28,63,.96) 100%),
    url('https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&w=1600&q=80') center 30% / cover no-repeat;
  background-attachment: scroll;
}
.hero::before {
  content: ''; position: absolute; top: -20%; left: -10%; width: 800px; height: 800px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 100px rgba(255,255,255,0.05) inset; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; right: -10%; width: 600px; height: 600px;
  border-radius: 50%; border: 1px solid rgba(255, 215, 0, 0.2); pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.hero-content h4 { color: var(--accent-red); font-family: var(--font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; }
.hero-content h1 { color: var(--white); font-size: clamp(30px, 8vw, 64px); line-height: 1.1; margin-bottom: 18px; text-shadow: 0 4px 24px rgba(0,0,0,.35); white-space: nowrap; }
.hero-content h1 span { color: var(--accent-red); }
.hero-content h2 { color: var(--white); font-size: clamp(20px, 2.5vw, 28px); font-weight: 400; margin-bottom: 22px; line-height: 1.35; }
.hero-content p { color: #CBD5E1; font-size: 16px; margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-badge{
  display:inline-flex; align-items:center; gap:10px; margin-bottom: 22px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); backdrop-filter:blur(6px);
  border-radius:100px; padding:6px 18px 6px 6px;
}
.hero-badge img{ width:32px; height:32px; border-radius:50%; background:#fff; }
.hero-badge b{ display:block; font-family:var(--font-heading); font-size:13.5px; color:#fff; line-height:1.1; }
.hero-badge span{ display:block; font-size:9.5px; color:var(--ash-300,#CBD5E1); letter-spacing:.06em; text-transform:uppercase; margin-top:2px; }


/* ============ STATS BAR ============ */
.stats-wrapper { position: relative; z-index: 10; margin-top: -60px; padding: 0 24px; }
.stats-container {
  background: var(--primary-navy); border-radius: 12px; padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
}
.stat-item { display: flex; align-items: center; gap: 16px; color: var(--white); flex: 1; min-width: 200px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 50%; }
.stat-icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 1.5; }
.stat-text span { display: block; font-size: 13px; color: #94A3B8; }
.stat-text b { font-size: 24px; font-family: var(--font-heading); }

/* ============ INFO CARDS ============ */
.info-cards { padding: 100px 0; background: var(--bg-light); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-card {
  position: relative; overflow: hidden;
  background: var(--white); padding: 44px 32px; border-radius: 16px;
  box-shadow: var(--shadow-lg); text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.info-card::before{
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-red), var(--primary-navy));
  background-size: 200% auto; animation: navShine2 3.5s linear infinite;
}
@keyframes navShine2{ to{ background-position: -200% center; } }
.info-card::after{
  content: ''; position: absolute; top: -40%; left: -60%; width: 60%; height: 220%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.6), transparent);
  transform: rotate(20deg); pointer-events: none;
  animation: cardSweep 4.5s ease-in-out infinite;
}
@keyframes cardSweep{ 0%,60%{ left: -60%; } 100%{ left: 140%; } }
.info-card:nth-child(2)::after{ animation-delay: 1.1s; }
.info-card:nth-child(3)::after{ animation-delay: 2.2s; }
.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(11,28,63,0.25), 0 0 0 1px rgba(215,38,56,0.06);
}
.info-icon {
  width: 76px; height: 76px; margin: 0 auto 24px; background: linear-gradient(155deg, var(--secondary-navy), var(--primary-navy));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
  box-shadow: 0 10px 24px -8px rgba(11,28,63,0.5), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.info-icon::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent-red), transparent 40%);
  animation: spinRing 3s linear infinite;
}
.info-card:hover .info-icon::before { animation-duration: 1.4s; }
@keyframes spinRing{ to{ transform: rotate(360deg); } }
.info-icon svg { width: 32px; height: 32px; stroke: var(--white); stroke-width: 1.5; fill: none; position: relative; z-index: 1; }
.info-card h3 { font-size: 22px; margin-bottom: 16px; }
.info-card p { color: var(--text-gray); font-size: 14.5px; line-height: 1.75; flex: 1; }

/* ============ ACADEMIC LEVELS ============ */
.academic { background: var(--primary-navy); color: var(--white); padding: 100px 0; text-align: center; }
.academic h2 { color: var(--white); font-size: 36px; margin-bottom: 12px; }
.academic h2 span { color: var(--accent-red); }
.academic p.sub { color: #CBD5E1; margin-bottom: 50px; font-size: 16px; }
.acad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.acad-card {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--secondary-navy);
  padding-top: 180px; padding-bottom: 30px; transition: transform 0.4s;
}
.acad-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.acad-img { position: absolute; top: 0; left: 0; right: 0; height: 200px; overflow: hidden; }
.acad-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px 16px 0 0; transition: transform 0.6s var(--ease); }
.acad-card:hover .acad-img img{ transform: scale(1.08); }
.acad-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--secondary-navy)); }
.acad-icon {
  position: absolute; top: 160px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px;
  background: var(--accent-red); border-radius: 50%; border: 4px solid var(--secondary-navy);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.acad-icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; }
.acad-card h4 { color: var(--white); font-size: 20px; margin: 30px 0 8px; position: relative; z-index: 2; }
.acad-card p { color: #94A3B8; font-size: 13px; position: relative; z-index: 2; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dot.active { background: var(--accent-red); }

/* ============ WHY CHOOSE US ============ */
.why-us { background: var(--bg-light); text-align: center; }
.why-us h2 { font-size: 32px; margin-bottom: 50px; }
.why-us h2 span { color: var(--accent-red); }
.why-grid { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.why-item { display: flex; flex-direction: column; align-items: center; width: 160px; padding: 8px; border-radius: 16px; transition: transform 0.3s, box-shadow 0.3s; }
.why-item-icon { width: 80px; height: 80px; background: var(--white); border-radius: 50%; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; border: 1px solid #E2E8F0; transition: transform 0.3s, border-color 0.3s; }
.why-item:hover .why-item-icon { transform: scale(1.1); border-color: var(--primary-navy); }
.why-item-icon svg { width: 36px; height: 36px; stroke: var(--primary-navy); fill: none; stroke-width: 1.5; }
.why-item p { font-size: 14px; font-weight: 600; color: var(--primary-navy); line-height: 1.4; }

/* ============ CTA BANNER ============ */
.cta {
  background: var(--primary-navy); position: relative; padding: 60px 0;
  color: var(--white); overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1200&q=80') center/cover;
  opacity: 0.15; mix-blend-mode: luminosity;
}
.cta .container { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; flex-wrap: wrap; gap: 24px; }
.cta-text h2 { color: var(--white); font-size: 32px; margin-bottom: 8px; }
.cta-text p { color: #CBD5E1; font-size: 16px; }

/* ============ FOOTER ============ */
.footer { background: var(--white); padding: 60px 0 20px; border-top: 1px solid #E2E8F0; }
.footer-grid { display: grid; grid-template-columns: 1fr; max-width: 380px; gap: 32px; margin-bottom: 40px; }
.footer h4 { font-size: 16px; margin-bottom: 20px; font-family: var(--font-body); font-weight: 600; }
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer a { color: var(--text-gray); font-size: 14px; }
.footer a:hover { color: var(--accent-red); }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; color: var(--text-gray); margin-bottom: 12px; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--primary-navy); fill: none; flex-shrink: 0; }
.newsletter p { font-size: 14px; color: var(--text-gray); margin-bottom: 16px; }
.news-form { display: flex; }
.news-form input { flex: 1; padding: 12px; border: 1px solid #E2E8F0; border-radius: 6px 0 0 6px; outline: none; font-family: inherit; }
.news-form button { background: var(--accent-red); color: white; padding: 0 16px; border-radius: 0 6px 6px 0; transition: background 0.3s; }
.news-form button:hover { background: var(--accent-red-hover); }
.news-form button svg { width: 18px; height: 18px; stroke: white; fill: none; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #F1F5F9; color: var(--text-gray); font-size: 13px; }

/* ============ RESPONSIVE (INCLUDES SIDEBAR MENU) ============ */
@media (max-width: 1024px) {
  .info-grid { grid-template-columns: 1fr; }
  .acad-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header .btn-red { display: none; }
  .mobile-toggle { display: block; }

  /* Keep "Alhidayah Academy" on one line in the header */
  .brand { gap: 8px; }
  .brand img{ width: 40px; height: 40px; }
  .brand-text b { font-size: 15px; letter-spacing: 0.3px; white-space: nowrap; }
  .brand-text span { font-size: 9px; white-space: nowrap; }

  /* Hero buttons sit side by side instead of stacking */
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1; padding: 13px 10px; font-size: 12.5px; white-space: nowrap; }

  /* Sidebar Mobile Menu */
  .nav-links {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: linear-gradient(165deg, #FFFFFF 0%, #F4F7FC 55%, #E9EFF9 100%);
    border-left: 1px solid #E2E8F0;
    flex-direction: column; align-items: flex-start;
    padding: 80px 30px; box-shadow: -10px 0 30px rgba(11,28,63,0.18); z-index: 1000;
    transition: right 0.4s var(--ease); overflow: hidden; overflow-y: auto;
  }
  .nav-links::before{
    content:''; position:absolute; top:0; left:0; right:0; height:4px;
    background:linear-gradient(90deg, var(--primary-navy), var(--accent-red), var(--primary-navy));
    background-size:200% auto; animation: navShine 4s linear infinite;
  }
  @keyframes navShine{ to{ background-position:-200% center; } }
  .nav-links::after{
    content:''; position:absolute; top:-20%; right:-30%; width:220px; height:220px; border-radius:50%;
    background:radial-gradient(circle, rgba(215,38,56,.1), transparent 70%); pointer-events:none;
  }
  .nav-links.active { right: 0; }
  
  /* Close Button in Sidebar */
  .close-menu {
    position: absolute; top: 24px; right: 24px;
    background: rgba(11,28,63,0.06); border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; padding: 5px; z-index: 2;
  }
  .close-menu svg { width: 18px; height: 18px; stroke: var(--primary-navy); }
  
  /* Staggered Link Animations */
  .nav-links a { position: relative; z-index: 2; font-size: 18px; width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(11,28,63,0.08); transform: translateX(30px); opacity: 0; transition: all 0.4s var(--ease); }
  .nav-links a::after { display: none; } /* Remove hover underline on mobile */
  
  /* Activate animations when sidebar is open */
  .nav-links.active a { transform: translateX(0); opacity: 1; }
  .nav-links.active a:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.active a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active a:nth-child(4) { transition-delay: 0.3s; }
  .nav-links.active a:nth-child(5) { transition-delay: 0.4s; }
  .nav-links.active a:nth-child(6) { transition-delay: 0.5s; }

  /* Overlay active state */
  .menu-overlay.active { opacity: 1; visibility: visible; }

  .stats-container { padding: 20px; flex-direction: column; text-align: center; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; justify-content: center; width: 100%; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .acad-grid { grid-template-columns: 1fr; }
  .cta .container { flex-direction: column; text-align: center; }

  /* Footer — Contact Us on top, Newsletter below, left-aligned */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .footer h4 {
    font-size: 14px; position: relative; padding-bottom: 10px; margin-bottom: 16px;
  }
  .footer h4::after{
    content:''; position:absolute; left:0; bottom:0; width:26px; height:2.5px;
    background: var(--accent-red); border-radius: 2px;
  }
  .footer ul { gap: 10px; }
  .footer a { font-size: 13px; }
  .footer-contact li { justify-content: flex-start; align-items: flex-start; font-size: 12.5px; margin-bottom: 14px; }
  .footer-contact svg { margin-top: 1px; }
  .newsletter p { font-size: 13px; margin-bottom: 12px; }
  .news-form { flex-direction: column; gap: 10px; max-width: 320px; }
  .news-form input { border-radius: 8px; }
  .news-form button { border-radius: 8px; height: 42px; }
  .hero-badge{ padding:6px 16px 6px 6px; }
  .hero-badge b{ font-size:13px; }
  .hero-badge span{ font-size:9px; }

  /* Why Choose Us — 2-column card grid on mobile */
  .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .why-item {
    width: auto; background: var(--white); border: 1px solid #E2E8F0; border-radius: 16px;
    padding: 24px 14px; box-shadow: var(--shadow-sm);
  }
  .why-item:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .why-item:nth-child(5){ grid-column: 1 / -1; max-width: 220px; margin: 0 auto; }
  .why-item-icon{ width: 68px; height: 68px; box-shadow: none; background: var(--bg-light); }
  .why-item-icon svg{ width: 30px; height: 30px; }
  .why-item p{ font-size: 13px; }
}
/* ============ ADMISSIONS INQUIRY FORM ============ */
.inquiry-section { background: var(--bg-light); }
.inquiry-card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 48px; max-width: 800px; margin: 0 auto; position: relative; overflow: hidden;
}
.inquiry-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--primary-navy), var(--accent-red), var(--primary-navy));
  background-size: 200% auto; animation: navShine2 3.5s linear infinite;
}
.inquiry-intro { text-align: center; margin-bottom: 32px; }
.inquiry-intro h3 { font-size: 26px; color: var(--primary-navy); margin-bottom: 10px; }
.inquiry-intro p { color: var(--text-gray); font-size: 15px; }
.inquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.inquiry-form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.inquiry-form label { font-size: 13px; font-weight: 600; color: var(--primary-navy); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  padding: 12px 14px; border: 1px solid #E2E8F0; border-radius: 8px; font-family: var(--font-body);
  font-size: 14px; color: var(--text-dark); outline: none; transition: border-color 0.3s;
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--accent-red); }
.inquiry-form textarea { resize: vertical; }
.inquiry-form button { width: 100%; justify-content: center; }
.inquiry-note { margin-top: 14px; font-size: 14px; text-align: center; min-height: 20px; }
.inquiry-note.success { color: #1a7f4b; }
.inquiry-note.error { color: var(--accent-red); }

@media (max-width: 768px) {
  .inquiry-card { padding: 32px 24px; }
  .inquiry-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============ SCHOOL LIFE / GALLERY ============ */
.school-life { background: var(--white); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-title h2 { font-size: 32px; color: var(--primary-navy); margin-bottom: 12px; }
.section-title h2 span { color: var(--accent-red); }
.section-title p { color: var(--text-gray); font-size: 15px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
  position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.2; transition: transform 0.45s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
  background: linear-gradient(0deg, rgba(11,28,63,0.85), transparent);
}
.gallery-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-red); font-weight: 700; margin-bottom: 6px;
}
.gallery-overlay h4 { color: var(--white); font-size: 17px; font-weight: 600; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-overlay h4 { font-size: 14px; }
}

/* ============ GALLERY EXPAND ICON ============ */
.gallery-item { cursor: pointer; position: relative; }
.gallery-expand {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px); display: flex; align-items: center;
  justify-content: center; opacity: 0; transform: scale(.8); transition: all 0.35s var(--ease);
}
.gallery-item:hover .gallery-expand { opacity: 1; transform: scale(1); }
.gallery-expand svg { width: 16px; height: 16px; stroke: #fff; }

/* ============ GALLERY LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 14, 30, 0.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 900px; width: 100%; text-align: center; }
.lightbox-content img {
  max-width: 100%; max-height: 72vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  margin: 0 auto; transform: scale(0.96); transition: transform 0.4s var(--ease);
}
.lightbox.open .lightbox-content img { transform: scale(1); }
.lightbox-caption { margin-top: 18px; color: #fff; }
.lightbox-caption h4 { font-size: 18px; font-weight: 600; margin-top: 6px; }
.lightbox-caption .gallery-tag { color: var(--accent-red); }
.lightbox-counter { display: block; margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #fff; transition: all 0.3s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent-red); border-color: var(--accent-red); }
.lightbox-close { top: 24px; right: 24px; width: 42px; height: 42px; }
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 768px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav svg { width: 18px; height: 18px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; }
}
