@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #f7f4ef;
  --dark: #111118;
  --navy: #1a1f3a;
  --gold: #b8913a;
  --gold-light: #d4a94a;
  --muted: #6b6b78;
  --border: #e0dbd3;
  --white: #ffffff;
  --red: #c0392b;
  --red-light: #e74c3c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--dark); font-size: 15px; line-height: 1.65; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: rgba(247,244,239,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 700; color: var(--navy);
  text-decoration: none; letter-spacing: 0.08em; line-height: 1;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.nav-logo span {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(184,145,58,0.8), 0 0 30px rgba(184,145,58,0.45), 0 0 55px rgba(184,145,58,0.2);
}
.nav-logo:hover span {
  text-shadow: 0 0 18px rgba(184,145,58,1), 0 0 40px rgba(184,145,58,0.65), 0 0 80px rgba(184,145,58,0.3);
}
.nav-links { display: flex; gap: 1.4rem; list-style: none; flex-wrap: nowrap; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: all 0.3s; }
.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); }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.5rem 5%; z-index: 99; flex-direction: column; gap: 1.2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--dark); font-size: 1rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

/* BUTTONS */
.btn { display: inline-block; padding: 0.75rem 2rem; border-radius: 3px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--dark); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); }

/* SECTIONS */
section { padding: 5rem 5%; }
.section-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 1rem; }
.section-sub { color: var(--muted); max-width: 480px; font-size: 0.92rem; line-height: 1.7; }

/* HERO */
.hero { min-height: 100vh; padding-top: 64px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; }
.hero-text { padding: 5% 5% 5% 6%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1.5px; background: var(--gold); }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 700; color: var(--navy); line-height: 1.08; margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.8; max-width: 400px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }
.hero-image { position: relative; height: 100vh; overflow: hidden; background: var(--bg); }
/* Strong left fade - kills any white background bleed from photos with bg */
.hero-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg) 0%, var(--bg) 5%, rgba(247,244,239,0.7) 25%, transparent 55%); z-index: 1; pointer-events: none; }
/* ANY img placed inside .hero-image fills it absolutely — can never escape or push content */
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-image .photo-placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, #1a1f3a 0%, #2d3561 60%, #b8913a22 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.hero-image .photo-placeholder svg { opacity: 0.15; }
.hero-image .photo-placeholder p { color: rgba(255,255,255,0.25); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
/* Hide placeholder the moment an img is injected inside */
.hero-image:has(img) .photo-placeholder { display: none; }

/* ACHIEVERS */
.achievers { background: var(--navy); }
.achievers .section-title { color: var(--white); }
.achievers .section-label { color: var(--gold-light); }
.achievers .section-sub { color: rgba(255,255,255,0.45); }
.achievers-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.achievers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5px; }
.achiever-card { background: rgba(255,255,255,0.04); overflow: hidden; transition: background 0.25s; border: 1.5px solid rgba(255,255,255,0.06); border-radius: 4px; }
.achiever-card:hover { background: rgba(255,255,255,0.08); }
.achiever-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; display: block; }
.achiever-img-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); display: flex; align-items: center; justify-content: center; }
.achiever-img-placeholder svg { opacity: 0.12; }
.achiever-body { padding: 1.25rem 1.5rem 1.5rem; position: relative; }
.achiever-rank { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: rgba(184,145,58,0.15); line-height: 1; position: absolute; top: 0.75rem; right: 1rem; }
.achiever-exam { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.achiever-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--white); margin-bottom: 0.25rem; }
.achiever-score { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.achiever-score strong { color: rgba(255,255,255,0.8); font-weight: 500; }

/* FACULTY */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.faculty-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.faculty-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.09); transform: translateY(-3px); }
/* Bulletproof faculty photo - img injected inside never escapes or resizes the card */
.faculty-photo { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #e8e4de 0%, #d8d2c8 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.faculty-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.faculty-photo:has(img) .ph { display: none; }
.faculty-photo .ph { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #aaa5a0; }
.faculty-photo .ph svg { opacity: 0.4; }
.faculty-photo .ph span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.faculty-info { padding: 1.4rem 1.5rem; }
.faculty-subject { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.faculty-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.faculty-exp { font-size: 0.8rem; color: var(--muted); }

/* BATCH BANNER */
.batch-banner { padding: 5rem 5%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; transition: background 0.5s ease; }
.batch-banner.open { background: var(--dark); }
.batch-banner.closed { background: #1c0606; }
.banner-left { flex: 1; min-width: 0; }
.banner-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 2px; margin-bottom: 1.2rem; color: white; transition: background 0.5s; }
.batch-banner.open .banner-tag { background: var(--gold); }
.batch-banner.closed .banner-tag { background: var(--red); }
.banner-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--white); line-height: 1.15; margin-bottom: 0.75rem; }
.banner-title .banner-highlight { transition: color 0.5s; }
.batch-banner.open .banner-highlight { color: var(--gold); }
.batch-banner.closed .banner-highlight { color: #e07070; }
.banner-sub { color: rgba(255,255,255,0.45); font-size: 0.88rem; }
/* BANNER BUTTON — bulletproof, always has background, never looks like hypertext */
.banner-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff !important;
  background: #b8913a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.banner-btn:hover { background: #d4a94a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,145,58,0.45); }
.batch-banner.closed .banner-btn { background: #c0392b; cursor: default; pointer-events: none; }
.batch-banner.closed .banner-btn:hover { background: #c0392b; transform: none; box-shadow: none; }

/* GALLERY PAGE */
.gallery-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.gf-btn { padding: 0.5rem 1.2rem; border-radius: 3px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1.5px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.gf-btn.active, .gf-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.gallery-masonry { columns: 3; column-gap: 1rem; }
@media(max-width:900px) { .gallery-masonry { columns: 2; } }
@media(max-width:500px) { .gallery-masonry { columns: 1; } }
.g-item { break-inside: avoid; margin-bottom: 1rem; border-radius: 6px; overflow: hidden; background: #e8e4de; position: relative; }
.g-item img { width: 100%; display: block; transition: transform 0.35s; }
.g-item:hover img { transform: scale(1.04); }
.g-ph { aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: #bbb; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.video-section-title { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 600; color: var(--navy); margin-bottom: 1.5rem; padding-top: 3rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.video-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1rem; }
.v-item { aspect-ratio: 16/9; background: linear-gradient(135deg,#1a1f3a,#2d3561); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; overflow: hidden; position: relative; cursor: pointer; }
.v-item video { position: absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.45; }
.v-overlay { position: relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:0.6rem; }
.play-btn { width:48px; height:48px; border:2px solid rgba(255,255,255,0.3); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.v-item:hover .play-btn { border-color:var(--gold); background:rgba(184,145,58,0.15); }
.v-label { color:rgba(255,255,255,0.4); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; }
.empty-gallery { text-align:center; padding:4rem; color:var(--muted); font-size:0.9rem; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.4); padding: 3rem 5%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }
.foot-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.6); }
.foot-logo span { color: var(--gold); text-shadow: 0 0 14px rgba(184,145,58,0.7), 0 0 35px rgba(184,145,58,0.35); }
footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,0.7); }

/* PAGE HERO */
.page-hero { padding: 10rem 5% 5rem; background: var(--navy); text-align: center; }
.page-hero .section-title { color: var(--white); }
.page-hero .section-sub { color: rgba(255,255,255,0.45); margin: 0 auto; }

/* CLASS TABS */
.class-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.class-tab { padding: 0.65rem 1.4rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); background: none; border: none; cursor: pointer; border-bottom: 2.5px solid transparent; transition: all 0.2s; margin-bottom: -1px; }
.class-tab:hover { color: var(--navy); }
.class-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.class-panel { display: none; }
.class-panel.active { display: block; }
.class-panel-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.class-panel-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 2.5rem; }

/* BOOKS */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-bottom: 3rem; }
.book-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem 1.25rem; display: flex; align-items: flex-start; gap: 1rem; }
.book-icon { width: 38px; height: 48px; background: var(--navy); border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1rem; color: var(--gold); }
.book-title { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.2rem; }
.book-subject { font-size: 0.75rem; color: var(--muted); }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; margin-top: 2rem; }

/* ── BULLETPROOF PHOTO CONTAINER ──────────────────────────────
   The box has a fixed aspect-ratio and overflow:hidden.
   Any img injected by JS goes position:absolute inside it.
   It can NEVER escape the box or push any sibling content down.
   Works for any image size, portrait or landscape.
─────────────────────────────────────────────────────────────── */
.about-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e8e4de 0%, #d8d2c8 100%);
  border-radius: 6px;
  position: sticky;
  top: 80px;
  overflow: hidden;
  /* Keep placeholder centered */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: #aaa5a0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Injected img always fills the box — NEVER affects siblings */
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}
/* Placeholder hides the moment img exists inside */
.about-photo:has(img) svg,
.about-photo:has(img) span { display: none; }
.about-bio { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--navy); line-height: 1.75; margin-bottom: 2rem; }
.about-points { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.about-points li { display: flex; gap: 1rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.about-points li::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-top: 0.45rem; flex-shrink: 0; }

/* ADMIN */
.admin-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--white); overflow-x: auto; }
.admin-tab { padding: 1rem 1.4rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); background: none; border: none; cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; transition: all 0.2s; }
.admin-tab:hover { color: var(--navy); }
.admin-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-container { max-width: 940px; margin: 0 auto; padding: 2rem; }
.admin-card { background: var(--white); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 2rem; overflow: hidden; }
.admin-card-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-card-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.admin-card-body { padding: 1.5rem; }
.admin-field { margin-bottom: 1.25rem; }
.admin-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.admin-input, .admin-select, .admin-textarea { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: 4px; font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--dark); background: var(--bg); transition: border-color 0.2s; }
.admin-input:focus, .admin-select:focus, .admin-textarea:focus { outline: none; border-color: var(--gold); }
.admin-textarea { resize: vertical; min-height: 80px; }
.admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.upload-box { border: 2px dashed var(--border); border-radius: 6px; padding: 2rem; text-align: center; cursor: pointer; transition: border-color 0.2s; background: var(--bg); display: block; }
.upload-box:hover { border-color: var(--gold); }
.upload-box input[type="file"] { display: none; }
.upload-box svg { opacity: 0.25; margin-bottom: 0.5rem; }
.upload-box p { font-size: 0.82rem; color: var(--muted); }
.upload-box p strong { color: var(--gold); }

.file-preview { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.preview-thumb { width: 70px; height: 54px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }

.admin-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.admin-list-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--bg); border-radius: 4px; gap: 1rem; }
.admin-list-item-left { display: flex; align-items: center; gap: 0.85rem; flex: 1; min-width: 0; }
.ali-thumb { width: 56px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; }
.ali-thumb-ph { width: 56px; height: 44px; border-radius: 4px; background: #e0dbd3; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.admin-list-item-info { min-width: 0; }
.admin-list-item-name { font-weight: 500; color: var(--navy); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-list-item-sub { font-size: 0.75rem; color: var(--muted); }
.admin-list-item-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.admin-btn-sm { padding: 0.35rem 0.8rem; font-size: 0.72rem; font-weight: 600; border-radius: 3px; border: none; cursor: pointer; letter-spacing: 0.04em; text-transform: uppercase; }
.admin-btn-delete { background: #fef2f2; color: #dc2626; }
.admin-save { background: var(--navy); color: var(--white); border: none; padding: 0.75rem 2rem; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
.admin-save:hover { background: var(--dark); }

/* Admission preview box */
.admission-live-preview { border-radius: 8px; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; transition: all 0.4s; }
.admission-live-preview.is-open { background: #111118; }
.admission-live-preview.is-closed { background: #2a0808; border: 1.5px solid rgba(192,57,43,0.4); }
.alp-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.25rem 0.8rem; border-radius: 2px; margin-bottom: 0.75rem; color: white; transition: background 0.4s; }
.is-open .alp-tag { background: var(--gold); }
.is-closed .alp-tag { background: var(--red); }
.alp-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: white; line-height: 1.2; }
.alp-title .alp-hl { transition: color 0.4s; }
.is-open .alp-hl { color: var(--gold); }
.is-closed .alp-hl { color: #e07070; }
.alp-sub { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.25rem; }
.alp-btn { padding: 0.6rem 1.4rem; border-radius: 3px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: none; color: white; pointer-events: none; transition: background 0.4s; }
.is-open .alp-btn { background: var(--gold); }
.is-closed .alp-btn { background: var(--red); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; background: var(--bg); border-radius: 6px; margin-top: 1rem; }
.toggle-label { font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.toggle-label small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
.toggle-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #4ade80; border-radius: 28px; transition: 0.3s; }
.toggle-slider:before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; left: 4px; bottom: 4px; background: white; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--red); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(24px); }

/* Gallery admin grid */
.gal-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 0.75rem; margin-top: 1rem; }
.gal-admin-item { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: #e8e4de; }
.gal-admin-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-admin-item .gai-del { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.75); color: white; border: none; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.gal-admin-item:hover .gai-del { opacity: 1; }
.gal-admin-item .gai-type { position: absolute; bottom: 5px; left: 5px; background: rgba(0,0,0,0.65); color: white; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 2px; }
.gal-admin-item .gai-ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#bbb; font-size:1.5rem; }

.instructions { background: #fffbf0; border: 1px solid #f0d98a; border-radius: 6px; padding: 1rem 1.25rem; font-size: 0.82rem; color: #7a5f10; margin-bottom: 1.5rem; line-height: 1.7; }
.instructions strong { color: #5a4200; }
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--navy); color: var(--white); padding: 0.9rem 1.5rem; border-radius: 4px; font-size: 0.85rem; transform: translateY(100px); opacity: 0; transition: all 0.3s; z-index: 999; }
.toast.show { transform: translateY(0); opacity: 1; }

@media(max-width:900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { height: 65vw; order: -1; }
  .hero-image::before { background: linear-gradient(to bottom, transparent 60%, var(--bg)); }
  .hero-text { padding: 2rem 5%; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; aspect-ratio: 4/3; max-width: 480px; }
  .batch-banner { padding: 3rem 5%; }
  .achievers-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media(max-width:700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media(max-width:600px) {
  section { padding: 3rem 5%; }
  .hero-image { height: 75vw; }
  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .stat-num { font-size: 1.7rem; }
  .batch-banner { flex-direction: column; align-items: flex-start; padding: 2.5rem 5%; }
  .banner-btn { width: 100%; text-align: center; justify-content: center; }
  .achievers-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .faculty-grid { grid-template-columns: 1fr 1fr; }
  .admin-row { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; gap: 1.25rem; }
  footer > div:last-child { flex-wrap: wrap; justify-content: center; }
}
@media(max-width:420px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .banner-btn { padding: 0.85rem 1.5rem; font-size: 0.78rem; }
}