/* ============================================================
   BRIGHT INTERNATIONAL ENGLISH SCHOOL — BEED, MAHARASHTRA
   Global Stylesheet — Mobile-First Responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600&family=Noto+Nastaliq+Urdu:wght@400;600&display=swap');

:root {
  --navy: #0A2A5E;
  --navy-dark: #061940;
  --navy-light: #1a4080;
  --gold: #C9922A;
  --gold-light: #E8B84B;
  --gold-pale: #FDF3DC;
  --white: #ffffff;
  --off-white: #F8F7F3;
  --gray-100: #f0eeea;
  --gray-200: #d9d6ce;
  --gray-500: #8a8680;
  --gray-700: #4a4742;
  --gray-900: #1c1a18;
  --green: #2d6a2d;
  --font-en: 'Poppins', sans-serif;
  --font-mr: 'Noto Sans Devanagari', sans-serif;
  --font-ur: 'Noto Nastaliq Urdu', serif;
  --font-display: 'Cinzel', serif;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(10,42,94,0.10);
  --shadow-lg: 0 8px 40px rgba(10,42,94,0.18);
  --transition: 0.25s ease;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-en); color: var(--gray-900); background: var(--white); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
[lang="ur"] * { font-family: var(--font-ur) !important; }
[lang="mr"] * { font-family: var(--font-mr); }

/* RTL */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-buttons { flex-direction: row-reverse; }
[dir="rtl"] .principal-card { flex-direction: row-reverse; }
[dir="rtl"] .footer-col { text-align: right; }
[dir="rtl"] .step-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .whatsapp-fab { right: auto; left: 1rem; }
[dir="rtl"] .inquiry-trigger { right: auto; left: 4.5rem; }

/* Urdu text overflow fix — everywhere */
[lang="ur"] p, [lang="ur"] h1, [lang="ur"] h2, [lang="ur"] h3,
[lang="ur"] h4, [lang="ur"] span, [lang="ur"] li, [lang="ur"] a,
[lang="ur"] blockquote, [lang="ur"] .hero-badge {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
}
[lang="ur"] .card, [lang="ur"] .achiever-card, [lang="ur"] .notice-item,
[lang="ur"] .vm-card, [lang="ur"] .principal-body, [lang="ur"] .brochure-content {
  overflow: hidden;
  word-break: break-word;
}
[lang="ur"] .nav-links a { white-space: normal; line-height: 1.4; padding: 0.5rem 0.4rem; font-size: 0.72rem; }
[lang="ur"] .hero h1 { font-size: clamp(1.2rem, 4vw, 2.8rem); line-height: 1.5; }
[lang="ur"] .hero p { line-height: 2; }
[lang="ur"] .hero-badge { max-width: 90%; margin: 0 auto 1rem; white-space: normal; text-align: center; }
[lang="ur"] .btn { white-space: normal; line-height: 1.4; height: auto; }
[lang="ur"] .stat-item p { font-size: 0.7rem; }
[lang="ur"] .logo-text .school-name { font-family: var(--font-ur); font-size: 0.7rem; }

/* Typography */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 600; color: var(--navy-dark); }
h1 { font-size: clamp(1.6rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.3rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy-dark); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--gold-light); }
.section-navy p { color: rgba(255,255,255,0.85); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header .underline { width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); margin: 0.5rem auto 1rem; border-radius: 2px; }
.section-header p { color: var(--gray-500); max-width: 540px; margin: 0 auto; font-size: 0.95rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }

/* ── LIQUID BUTTON EFFECT ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.7rem 1.5rem; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; border: 2px solid transparent;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn:hover::before { width: 300px; height: 300px; opacity: 1; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,146,42,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,42,94,0.3); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.8rem; }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; transition: transform var(--transition), box-shadow var(--transition); border: 1px solid rgba(201,146,42,0.12); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; }

/* ── HEADER ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h); background: rgba(6,25,64,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(201,146,42,0.2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 0.5rem; padding: 0 1.25rem; max-width: 1200px; margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; min-width: 0; }
.logo-wrap img { height: 42px; width: auto; border-radius: 5px; flex-shrink: 0; }
.logo-text { min-width: 0; }
.logo-text .school-name { font-family: var(--font-display); font-size: 0.82rem; color: var(--gold-light); font-weight: 600; display: block; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.logo-text .school-loc { font-size: 0.65rem; color: rgba(255,255,255,0.55); display: block; }
.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 500; padding: 0.35rem 0.55rem; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); background: rgba(201,146,42,0.12); }
.lang-switcher { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.lang-btn { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); padding: 3px 8px; border-radius: 20px; cursor: pointer; font-size: 0.7rem; transition: all var(--transition); font-family: inherit; }
.lang-btn:hover, .lang-btn.active { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); font-weight: 600; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; flex-shrink: 0; margin-left: 0.25rem; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Notice Ticker */
.notice-bar { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999; background: var(--gold); color: var(--navy-dark); font-size: 0.78rem; font-weight: 600; overflow: hidden; height: 28px; display: flex; align-items: center; }
.notice-track { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.notice-track span { padding: 0 2.5rem; }
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
.main-content { margin-top: calc(var(--header-h) + 28px); }

/* Hero */
.hero { min-height: 92vh; background: linear-gradient(135deg, var(--navy-dark) 0%, #1a3a7a 50%, #0d2654 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 3rem 1.25rem; text-align: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23C9922A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-stars::after { content: ''; position: absolute; inset: -50%; background: radial-gradient(ellipse at 20% 50%, rgba(201,146,42,0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(100,150,255,0.06) 0%, transparent 50%); }
.hero-badge { display: inline-block; background: rgba(201,146,42,0.2); color: var(--gold-light); border: 1px solid rgba(201,146,42,0.4); padding: 0.35rem 1.1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.25rem; animation: fadeUp 0.8s ease both; max-width: 95%; }
.hero h1 { color: var(--white); font-family: var(--font-display); text-shadow: 0 2px 20px rgba(0,0,0,0.4); margin-bottom: 0.9rem; max-width: 780px; animation: fadeUp 0.8s 0.15s ease both; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 540px; margin: 0 auto 1.75rem; animation: fadeUp 0.8s 0.3s ease both; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; animation: fadeUp 0.8s 0.45s ease both; }
.hero-logos { display: flex; gap: 1rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-logos img { height: 52px; width: auto; border-radius: 8px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* Brochure */
.brochure-section { background: var(--off-white); padding: 4rem 0; }
.brochure-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.brochure-img-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 40px rgba(10,42,94,0.2); border: 3px solid var(--gold); }
.brochure-img-wrap img { width: 100%; display: block; object-fit: cover; }
.brochure-content .underline { width: 56px; height: 3px; background: linear-gradient(90deg,var(--gold),var(--gold-light)); border-radius: 2px; margin: 0.5rem 0 1.25rem; }
.brochure-content ul { margin-bottom: 1.5rem; }
.brochure-content ul li { display: flex; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.9rem; color: var(--gray-700); }
.brochure-btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Stats */
.stats-bar { background: var(--gold); padding: 2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item h3 { font-size: 2rem; color: var(--navy-dark); font-family: var(--font-display); margin-bottom: 0.2rem; }
.stat-item p { font-size: 0.82rem; color: var(--navy-dark); font-weight: 600; margin: 0; opacity: 0.8; }

/* Principal */
.principal-card { display: flex; gap: 2rem; align-items: flex-start; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; border-left: 4px solid var(--gold); }
.principal-avatar { min-width: 110px; height: 130px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold-light); flex-shrink: 0; border: 3px solid var(--gold-pale); font-size: 2.2rem; }
.principal-avatar small { font-size: 0.55rem; letter-spacing: 0.1em; margin-top: 4px; color: rgba(255,255,255,0.6); }
.principal-body blockquote { font-style: italic; color: var(--gray-700); font-size: 0.95rem; line-height: 1.8; border-left: 3px solid var(--gold-pale); padding-left: 1rem; margin-bottom: 0.9rem; overflow-wrap: break-word; }
.principal-name { font-weight: 700; color: var(--navy-dark); font-size: 1rem; margin-bottom: 0.1rem; }
.principal-title-label { color: var(--gold); font-size: 0.82rem; font-weight: 600; margin-bottom: 0; }

/* Features */
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
.feature-item .fi { width: 60px; height: 60px; border-radius: 14px; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; transition: transform 0.3s ease; }
.feature-item:hover .fi { transform: scale(1.12) rotate(-4deg); }
.feature-item h4 { color: var(--navy-dark); font-size: 0.95rem; }
.feature-item p { font-size: 0.82rem; color: var(--gray-500); margin: 0; }

/* Achievers */
.achiever-card { text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--gray-100); border-radius: var(--radius); background: var(--white); transition: all var(--transition); overflow: hidden; }
.achiever-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--gold-pale); }
.achiever-medal { font-size: 1.8rem; margin-bottom: 0.4rem; }
.achiever-card h4 { color: var(--navy-dark); margin-bottom: 0.2rem; font-size: 0.95rem; overflow-wrap: break-word; }
.achiever-card .class-badge { display: inline-block; background: var(--gold-pale); color: var(--gold); font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border-radius: 20px; margin-bottom: 0.4rem; }
.achiever-card p { font-size: 0.82rem; color: var(--gray-500); margin: 0; overflow-wrap: break-word; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(6,25,64,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); color: var(--white); font-size: 1.4rem; }
.gallery-item:hover .overlay { opacity: 1; }
.gallery-empty { text-align: center; padding: 3rem 2rem; color: var(--gray-500); border: 2px dashed var(--gray-200); border-radius: var(--radius); }
.gallery-empty .icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.15); border: none; color: var(--white); width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: var(--white); width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: 0.75rem; } .lightbox-next { right: 0.75rem; }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.video-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-item iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.video-item .video-info { padding: 0.9rem; background: var(--white); }
.yt-wrap { border-radius: 14px; overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,0.4); }
.yt-wrap iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }

/* Admission Steps */
.step-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.step-num { min-width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.88rem; flex-shrink: 0; }
.step-text h4 { font-size: 0.95rem; color: var(--navy-dark); margin-bottom: 0.15rem; overflow-wrap: break-word; }
.step-text p { font-size: 0.84rem; color: var(--gray-500); margin: 0; }
.doc-list li { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.88rem; color: var(--gray-700); overflow-wrap: break-word; }
.doc-list li:last-child { border-bottom: none; }
.doc-list .check { color: var(--green); flex-shrink: 0; }

/* Contact */
.contact-info-item { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 320px; border: none; display: block; }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-control { width: 100%; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200); font-size: 0.88rem; font-family: inherit; transition: border-color var(--transition), box-shadow var(--transition); background: var(--white); color: var(--gray-900); }
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,42,94,0.1); }
textarea.form-control { min-height: 110px; resize: vertical; }

/* Form status messages */
.form-success { background: #e8f5e9; color: #2d6a2d; border: 1px solid #a5d6a7; border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.88rem; margin-top: 0.75rem; display: none; }
.form-error { background: #fdecea; color: #b03a2e; border: 1px solid #f5c6c6; border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.88rem; margin-top: 0.75rem; display: none; }

/* Inquiry Popup */
.inquiry-popup { display: none; position: fixed; inset: 0; z-index: 8000; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; padding: 1rem; }
.inquiry-popup.open { display: flex; }
.popup-box { background: var(--white); border-radius: var(--radius); max-width: 440px; width: 100%; padding: 1.75rem; box-shadow: var(--shadow-lg); position: relative; max-height: 90vh; overflow-y: auto; }
.popup-close { position: absolute; top: 0.9rem; right: 0.9rem; background: var(--gray-100); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }

/* WhatsApp FAB */
.whatsapp-fab { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 2000; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform var(--transition); font-size: 1.5rem; color: var(--white); animation: pulse-wa 2.5s infinite; }
.whatsapp-fab:hover { transform: scale(1.12); color: var(--white); animation: none; }
@keyframes pulse-wa { 0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 28px rgba(37,211,102,0.7); } }
.inquiry-trigger { position: fixed; bottom: 1.25rem; right: 5rem; z-index: 2000; background: var(--navy); color: var(--white); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.76rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); border: none; transition: all var(--transition); }
.inquiry-trigger:hover { background: var(--navy-light); transform: translateY(-2px); }

/* Vision/Mission */
.vm-card { border-radius: var(--radius); padding: 2.25rem; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); color: var(--white); text-align: center; overflow: hidden; }
.vm-card .icon { font-size: 2.25rem; margin-bottom: 0.9rem; display: block; }
.vm-card h3 { color: var(--gold-light); margin-bottom: 0.9rem; }
.vm-card p { color: rgba(255,255,255,0.82); font-size: 0.92rem; line-height: 1.75; margin: 0; overflow-wrap: break-word; }

/* Page Banner */
.page-banner { background: linear-gradient(135deg, var(--navy-dark), var(--navy-light)); padding: 4rem 1.25rem 3rem; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: linear-gradient(to bottom right, transparent 50%, var(--white) 50%); }
.page-banner h1 { color: var(--white); margin-bottom: 0.5rem; font-family: var(--font-display); }
.page-banner p { color: rgba(255,255,255,0.75); margin: 0; overflow-wrap: break-word; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.75rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold-light); }

/* Notices */
.notice-item { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); border-left: 3px solid var(--gold); background: var(--white); margin-bottom: 0.65rem; box-shadow: 0 1px 6px rgba(10,42,94,0.06); overflow: hidden; }
.notice-item .notice-date { font-size: 0.72rem; color: var(--gold); font-weight: 600; margin-bottom: 0.2rem; }
.notice-item p { font-size: 0.88rem; color: var(--gray-700); margin: 0; overflow-wrap: break-word; }

/* Downloads */
.download-item { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; background: var(--white); border-radius: var(--radius-sm); margin-bottom: 0.65rem; border: 1px solid var(--gray-100); transition: all var(--transition); }
.download-item:hover { box-shadow: var(--shadow); border-color: var(--gold-pale); }
.download-item .di { width: 38px; height: 38px; border-radius: 8px; background: var(--gold-pale); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.download-item h5 { font-size: 0.9rem; color: var(--navy-dark); margin-bottom: 0.1rem; overflow-wrap: break-word; }
.download-item p { font-size: 0.78rem; color: var(--gray-500); margin: 0; }
.download-item .dl-btn { margin-left: auto; flex-shrink: 0; }

/* Campus */
.campus-feature { position: relative; border-radius: var(--radius); overflow: hidden; }
.campus-feature .cf-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(6,25,64,0.9), transparent); padding: 1.25rem 1rem 0.9rem; color: var(--white); }
.campus-feature .cf-label h4 { color: var(--white); margin-bottom: 0.15rem; font-size: 0.95rem; }
.campus-feature .cf-label p { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin: 0; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--gold-light); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col p { font-size: 0.82rem; line-height: 1.7; overflow-wrap: break-word; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom p { font-size: 0.78rem; margin: 0; }
.footer-logo { height: 38px; width: auto; border-radius: 4px; }
.footer-map { border-radius: var(--radius-sm); overflow: hidden; margin-top: 0.65rem; }
.footer-map iframe { width: 100%; height: 110px; border: none; display: block; filter: grayscale(40%); }

/* Scroll animate */
[data-animate] { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .brochure-wrap { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ============================================================
   MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  /* Header layout — logo left, lang+hamburger right, tightly packed */
  .header-inner { padding: 0 0.75rem; gap: 0.4rem; }
  .logo-wrap img { height: 34px; }
  .logo-text .school-name { font-size: 0.68rem; max-width: 130px; }
  .logo-text .school-loc { display: none; }
  .lang-switcher { gap: 2px; }
  .lang-btn { padding: 2px 6px; font-size: 0.62rem; }

  /* Hamburger — visible, left of edge with comfortable margin */
  .hamburger {
    display: flex;
    margin-left: 0.25rem;
    margin-right: 0;
    padding: 7px;
    flex-shrink: 0;
  }

  /* Nav dropdown */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-h) + 28px);
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 0.4rem 0 0.75rem;
    gap: 0;
    border-bottom: 2px solid rgba(201,146,42,0.3);
    max-height: calc(100vh - var(--header-h) - 28px);
    overflow-y: auto;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.8rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9rem;
    width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
  }

  /* Hero */
  .hero { min-height: 80vh; padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.45rem; }
  .hero p { font-size: 0.86rem; }
  .hero-badge { font-size: 0.7rem; padding: 3px 10px; }
  .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; margin: 0 auto; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-logos img { height: 40px; }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 1.75rem; }
  .section-header h2 { font-size: 1.25rem; }
  .brochure-section { padding: 2.5rem 0; }

  /* Principal */
  .principal-card { flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
  .principal-avatar { width: 100%; height: 72px; flex-direction: row; gap: 0.75rem; font-size: 1.8rem; min-width: unset; border-radius: var(--radius-sm); }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  /* Contact map */
  .contact-map iframe { height: 220px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-map { display: none; }

  /* FAB */
  .whatsapp-fab { width: 46px; height: 46px; font-size: 1.25rem; bottom: 1rem; right: 0.9rem; }
  .inquiry-trigger { bottom: 1rem; right: 4.25rem; font-size: 0.7rem; padding: 0.42rem 0.8rem; }
}

/* ============================================================
   SMALL MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 0.85rem; }
  .hero { padding: 2rem 0.85rem; }
  .hero h1 { font-size: 1.25rem; }
  .hero-logos img { height: 34px; }
  .hero-logos { gap: 0.5rem; margin-top: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; padding: 0 0.85rem; }
  .stat-item h3 { font-size: 1.4rem; }
  .stat-item p { font-size: 0.68rem; }
  .stats-bar { padding: 1.25rem 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.15rem; }
  .page-banner { padding: 3rem 0.85rem 2.5rem; }
  .page-banner h1 { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brochure-btn-row { flex-direction: column; }
  .brochure-btn-row .btn { width: 100%; justify-content: center; }
  .card { padding: 1.15rem; }
  .popup-box { padding: 1.15rem; }
  .video-grid { grid-template-columns: 1fr; }
  .admission-banner .banner-img { display: none; }

  /* Urdu specific small screen */
  [lang="ur"] .hero h1 { font-size: 1.1rem; }
  [lang="ur"] .nav-links a { font-size: 0.85rem; padding: 0.9rem 1rem; }
}

@media print {
  .site-header, .notice-bar, .whatsapp-fab, .inquiry-trigger { display: none !important; }
  .main-content { margin-top: 0; }
}
