/* =========================================================
   Jaycees’ Convent, Bhandara — Main Stylesheet
   ========================================================= */
:root {
  --navy: #364582;
  --navy-2: #4a5aa0;
  --navy-dark: #1f2857;
  --gold: #d4a017;
  --gold-2: #f2c94c;
  --gold-soft: #fff4d6;
  --maroon: #8b1e3f;
  --cream: #f5f6fb;
  --ink: #1f2937;
  --muted: #5b6475;
  --line: #e3e6f0;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(54, 69, 130, 0.12);
  --shadow-lg: 0 20px 50px rgba(54, 69, 130, 0.18);
  --radius: 16px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.placeholder { background: #fff3c4; color: #7a5a00; padding: 0 6px; border-radius: 4px; font-size: .92em; border: 1px dashed #e0b400; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #cfd8ea; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #cfd8ea; }
.topbar a:hover { color: var(--gold-2); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .jubilee-pill { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: var(--navy-dark); font-weight: 600; padding: 2px 12px; border-radius: 30px; font-size: 12px; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.06); transition: padding .3s; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; transition: padding .3s; }
.site-header.scrolled .container { padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 62px; width: auto; flex-shrink: 0; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 21px; color: var(--navy); line-height: 1.1; }
.brand-text span { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

.nav ul { display: flex; gap: 2px; align-items: center; }
.nav a { display: block; padding: 8px 11px; font-size: 14px; font-weight: 500; color: var(--navy); border-radius: 8px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px; background: var(--gold); transition: all .3s; transform: translateX(-50%); }
.nav a:hover::after, .nav a.active::after { width: 60%; }
.nav a.active { color: var(--gold); }
.nav .nav-cta { background: var(--navy); color: #fff; padding: 9px 18px; margin-left: 8px; border-radius: 30px; }
.nav .nav-cta:hover { background: var(--gold); color: var(--navy-dark); }
.nav .nav-cta::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; position: relative; }
.menu-toggle span { position: absolute; left: 9px; width: 24px; height: 2px; background: var(--navy); transition: .3s; }
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 40px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: all .3s; font-family: var(--font-body); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy-dark); box-shadow: 0 8px 22px rgba(212,160,23,.35); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(212,160,23,.5); color: var(--navy-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-3px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-dark); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.08); }
.hero-slide.active { opacity: 1; animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(110deg, rgba(31,40,87,.93) 0%, rgba(54,69,130,.78) 45%, rgba(54,69,130,.25) 100%); }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(212,160,23,.18); border: 1px solid rgba(242,201,76,.5); color: var(--gold-2); padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold-2); display: block; font-style: italic; }
.hero p.lead { font-size: 19px; color: #dde6f5; max-width: 560px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: .3s; }
.hero-dots button.active { background: var(--gold-2); border-color: var(--gold-2); width: 30px; border-radius: 10px; }

/* Animated jubilee badge */
.jubilee-badge { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.jubilee-badge svg { width: 100%; height: 100%; overflow: visible; }
.jb-rotate { transform-origin: 150px 150px; animation: spin 30s linear infinite; }
.jb-pulse { transform-origin: 150px 150px; animation: pulse 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* floating shapes */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.floaters span { position: absolute; display: block; border-radius: 50%; background: rgba(242,201,76,.15); animation: floatUp linear infinite; bottom: -80px; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; } }

/* ---------- Golden Jubilee strip ---------- */
.jubilee-strip { position: relative; overflow: hidden; background: linear-gradient(90deg, #b8860b, var(--gold), var(--gold-2), var(--gold), #b8860b); background-size: 300% 100%; animation: shimmer 8s linear infinite; color: var(--navy-dark); }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }
.jubilee-strip .container { display: flex; align-items: center; gap: 22px; padding-top: 22px; padding-bottom: 22px; }
.jubilee-strip .js-num { font-family: var(--font-head); font-size: 58px; font-weight: 800; line-height: 1; color: var(--navy-dark); text-shadow: 2px 2px 0 rgba(255,255,255,.4); }
.jubilee-strip h3 { color: var(--navy-dark); font-size: 22px; }
.jubilee-strip p { font-size: 15px; color: #3a2d00; }
.jubilee-strip .js-year { margin-left: auto; background: var(--navy-dark); color: var(--gold-2); padding: 8px 18px; border-radius: 30px; font-weight: 700; white-space: nowrap; }
#confetti { position: absolute; inset: 0; pointer-events: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 110px 0 90px; color: #fff; text-align: center; background-size: cover; background-position: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(31,40,87,.92), rgba(74,90,160,.75)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); margin-bottom: 10px; }
.page-hero p { color: #dbe4f3; font-size: 18px; max-width: 700px; margin: 0 auto; }
.breadcrumb { display: inline-flex; gap: 8px; font-size: 14px; color: var(--gold-2); margin-bottom: 14px; }
.breadcrumb a { color: #fff; }
.page-hero .wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; z-index: 2; }

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; overflow-x: clip; }
.section-alt { background: #fff; }
.section-navy { background: linear-gradient(135deg, var(--navy-dark), var(--navy-2)); color: #e6ecf7; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 55px; }
.section-head .eyebrow, .eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-navy .section-head p { color: #c8d4ea; }
.divider { width: 80px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); position: relative; }
.divider::after { content: "✦"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--gold); background: var(--cream); padding: 0 8px; font-size: 14px; }
.section-alt .divider::after { background: #fff; }
.section-navy .divider::after { background: transparent; color: var(--gold-2); }

/* two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split p { margin-bottom: 16px; color: #3e4757; }
.split h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 18px; }
.img-stack { position: relative; }
.img-stack .img-main { border-radius: 20px; box-shadow: var(--shadow-lg); height: 420px; width: 100%; object-fit: cover; }
.img-stack .img-small { position: absolute; width: 50%; height: 200px; object-fit: cover; bottom: -40px; right: -30px; border-radius: 16px; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.img-stack .exp-badge { position: absolute; top: -25px; left: -25px; width: 130px; height: 130px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow-lg); animation: bob 4s ease-in-out infinite; }
.exp-badge strong { font-family: var(--font-head); font-size: 42px; line-height: 1; }
.exp-badge span { font-size: 12px; font-weight: 600; line-height: 1.2; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* image fallback */
.img-fallback { background: linear-gradient(135deg, var(--navy-2), var(--gold)) !important; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; position: relative; overflow: hidden; border: 1px solid #e6e9f3; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.icon-circle { width: 66px; height: 66px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 18px; background: linear-gradient(135deg, var(--gold-soft), #fff); border: 1px solid #dfe3f1; transition: transform .5s; }
.card:hover .icon-circle { transform: rotateY(360deg); }

/* image cards */
.img-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.img-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.img-card .ic-img { height: 210px; overflow: hidden; position: relative; background: linear-gradient(135deg, var(--navy-2), var(--gold)); }
.img-card .ic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.img-card:hover .ic-img img { transform: scale(1.1); }
.img-card .ic-tag { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--navy-dark); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.img-card .ic-body { padding: 24px; }
.img-card h3 { font-size: 20px; margin-bottom: 8px; }
.img-card p { color: var(--muted); font-size: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 14px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: .3s; }
.stat:hover { background: rgba(255,255,255,.12); transform: translateY(-6px); }
.stat .s-icon { font-size: 34px; margin-bottom: 8px; display: inline-block; animation: bob 3.5s ease-in-out infinite; }
.stat strong { display: block; font-family: var(--font-head); font-size: 34px; color: var(--gold-2); line-height: 1.2; }
.stat span { color: #c8d4ea; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 26px; padding: 60px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; box-shadow: var(--shadow-lg); }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -150px; background: radial-gradient(circle, rgba(242,201,76,.35), transparent 70%); animation: pulse 5s ease-in-out infinite; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 10px; }
.cta p { color: #d3ddef; font-size: 17px; }
.cta .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 2; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th { background: var(--navy); color: #fff; text-align: left; padding: 15px 20px; font-weight: 600; font-size: 15px; }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--gold-soft); }
td:first-child { font-weight: 600; color: var(--navy); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--gold), var(--navy)); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 40px 40px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item::before { content: ""; position: absolute; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold); }
.tl-item:nth-child(odd)::before { right: -10px; }
.tl-item:nth-child(even)::before { left: -10px; }
.tl-item .tl-year { display: inline-block; font-family: var(--font-head); font-size: 26px; color: var(--gold); font-weight: 700; }
.tl-item .tl-box { background: #fff; padding: 20px 24px; border-radius: 14px; box-shadow: var(--shadow); margin-top: 6px; }
.tl-item.highlight .tl-box { background: linear-gradient(135deg, var(--gold-soft), #fff); border: 2px solid var(--gold-2); }

/* ---------- Lists ---------- */
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.section-navy .check-list li::before { background: var(--gold-2); }

/* ---------- Values ---------- */
.value-card { text-align: center; padding: 34px 20px; }
.value-card .icon-circle { margin: 0 auto 16px; }

/* motto */
.motto { text-align: center; padding: 70px 20px; background: linear-gradient(135deg, var(--gold-soft), #fff); }
.motto blockquote { font-family: var(--font-head); font-size: clamp(26px, 4vw, 42px); font-style: italic; color: var(--navy); }
.motto blockquote::before, .motto blockquote::after { content: "\201C"; color: var(--gold); font-size: 1.4em; vertical-align: -0.3em; margin: 0 6px; }
.motto blockquote::after { content: "\201D"; }

/* ---------- Messages ---------- */
.message { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; background: #fff; padding: 50px; border-radius: 24px; box-shadow: var(--shadow); position: relative; }
.message + .message { margin-top: 40px; }
.message::before { content: "\201C"; position: absolute; top: -10px; right: 40px; font-family: var(--font-head); font-size: 180px; line-height: 1; color: var(--gold-soft); }
.message .m-photo { text-align: center; }
.message .m-photo .avatar { width: 220px; height: 220px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: flex; align-items: center; justify-content: center; border: 6px solid var(--gold-soft); box-shadow: 0 0 0 3px var(--gold); overflow: hidden; }
.message .m-photo .avatar svg { width: 60%; height: 60%; }
.message .m-photo h4 { font-size: 19px; }
.message .m-photo small { color: var(--muted); }
.message .m-body { position: relative; z-index: 1; }
.message .m-body h2 { font-size: 30px; margin-bottom: 16px; }
.message .m-body p { margin-bottom: 14px; color: #3e4757; }
.message .signature { font-family: var(--font-head); font-style: italic; font-size: 20px; color: var(--navy); margin-top: 18px; }

/* ---------- Academics stage cards ---------- */
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 34px; }
.stage:nth-child(even) .stage-img { order: 2; }
.stage-img { min-height: 320px; background-size: cover; background-position: center; position: relative; background-color: var(--navy-2); }
.stage-img .stage-badge { position: absolute; top: 20px; left: 20px; background: rgba(31,40,87,.85); color: var(--gold-2); padding: 6px 16px; border-radius: 30px; font-weight: 600; font-size: 13px; }
.stage-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.stage-body h3 { font-size: 28px; margin-bottom: 6px; }
.stage-body .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-block; padding: 4px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; background: var(--gold-soft); color: #7a5a00; }
.chip.navy { background: #e6edf9; color: var(--navy); }
.stage-body p { color: #3e4757; }

/* streams */
.stream { border-top: 5px solid var(--gold); }
.stream.sci { border-top-color: #2563eb; }
.stream.com { border-top-color: #059669; }
.stream.art { border-top-color: var(--maroon); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 38px; left: 10%; right: 10%; height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 22px); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step .num { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; background: var(--navy); color: var(--gold-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 30px; font-weight: 700; border: 5px solid var(--cream); box-shadow: 0 0 0 3px var(--gold); transition: .4s; }
.step:hover .num { background: var(--gold); color: var(--navy-dark); transform: scale(1.1) rotate(10deg); }
.step h4 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 4px 16px rgba(54,69,130,.07); overflow: hidden; border: 1px solid #e6e9f3; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 60px 20px 24px; font-size: 17px; font-weight: 600; color: var(--navy); cursor: pointer; position: relative; font-family: var(--font-body); }
.faq-q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-size: 22px; display: flex; align-items: center; justify-content: center; transition: .3s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); background: var(--gold); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Docs list ---------- */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-list li { background: #fff; padding: 16px 20px; border-radius: 12px; display: flex; gap: 14px; align-items: center; box-shadow: 0 4px 14px rgba(54,69,130,.06); border-left: 4px solid var(--gold); transition: .3s; }
.doc-list li:hover { transform: translateX(6px); }
.doc-list li .d-ic { font-size: 22px; }

/* ---------- Facilities ---------- */
.facility .ic-img { height: 200px; }
.ic-emoji { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c1, var(--navy)), var(--c2, var(--gold))) !important; }
.ic-emoji::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); animation: pulse 4s ease-in-out infinite; }
.ic-emoji .big { font-size: 84px; position: relative; animation: bob 3.5s ease-in-out infinite; transition: transform .5s; }
.img-card:hover .ic-emoji .big { transform: scale(1.15) rotate(-6deg); }
.ic-emoji .big.drive { animation: drive 5s ease-in-out infinite; }
@keyframes drive { 0% { transform: translateX(-120px); } 45%,55% { transform: translateX(0); } 100% { transform: translateX(140px); } }

/* ---------- Houses ---------- */
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.house { border-radius: 18px; padding: 34px 20px; text-align: center; color: #fff; position: relative; overflow: hidden; transition: .4s; }
.house:hover { transform: translateY(-10px) scale(1.02); }
.house .flag { font-size: 46px; display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: left bottom; }
@keyframes wave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
.house h3 { color: #fff; font-size: 24px; margin-top: 8px; }
.house p { font-size: 14px; opacity: .9; }
.house.red { background: linear-gradient(135deg, #c62828, #ef5350); }
.house.blue { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.house.green { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.house.yellow { background: linear-gradient(135deg, #f9a825, #ffd54f); color: #4a3800; }
.house.yellow h3 { color: #4a3800; }

/* clubs */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.club { background: #fff; border-radius: 14px; padding: 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); transition: .3s; }
.club:hover { transform: translateY(-5px); background: var(--navy); }
.club:hover h4 { color: #fff; }
.club .c-ic { font-size: 32px; width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--gold-soft); }
.club h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; transition: .3s; }

/* events calendar */
.events { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.event { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: .3s; }
.event:hover { transform: translateY(-6px) rotate(-1deg); }
.event .ev-month { background: var(--navy); color: var(--gold-2); padding: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 14px; position: relative; }
.event .ev-month::before, .event .ev-month::after { content: ""; position: absolute; top: -6px; width: 8px; height: 16px; border-radius: 4px; background: var(--gold); }
.event .ev-month::before { left: 25%; } .event .ev-month::after { right: 25%; }
.event .ev-body { padding: 18px 14px; font-size: 14px; color: #3e4757; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.gallery-filters button { border: 2px solid var(--navy); background: transparent; color: var(--navy); padding: 8px 20px; border-radius: 30px; cursor: pointer; font-weight: 600; font-family: var(--font-body); transition: .3s; }
.gallery-filters button.active, .gallery-filters button:hover { background: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: 14px; cursor: pointer; background: linear-gradient(135deg, var(--navy-2), var(--gold)); transition: opacity .4s, transform .4s; }
.g-item.wide { grid-column: span 2; }
.g-item.tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-item:hover img { transform: scale(1.12); }
.g-item .g-cap { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(31,40,87,.9)); color: #fff; font-weight: 600; transform: translateY(100%); transition: .4s; }
.g-item:hover .g-cap { transform: translateY(0); }
.g-item.hide { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(5,15,35,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; animation: fadeIn .3s; }
.lightbox img { max-height: 82vh; max-width: 90vw; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 500; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 26px; cursor: pointer; transition: .3s; }
.lightbox button:hover { background: var(--gold); color: var(--navy-dark); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Notices ---------- */
.notice-board { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.notice-board .nb-head { background: var(--navy); color: #fff; padding: 18px 26px; display: flex; align-items: center; gap: 12px; }
.notice-board .nb-head h3 { color: #fff; font-size: 20px; }
.notice-board .nb-head .live { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); } 100% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } }
.nb-scroll { height: 340px; overflow: hidden; position: relative; }
.nb-track { animation: scrollUp 22s linear infinite; }
.nb-scroll:hover .nb-track { animation-play-state: paused; }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.notice { display: flex; gap: 16px; padding: 18px 26px; border-bottom: 1px dashed var(--line); }
.notice .n-date { flex-shrink: 0; width: 58px; text-align: center; background: var(--gold-soft); border-radius: 10px; padding: 6px 0; color: var(--navy); line-height: 1.2; }
.notice .n-date strong { display: block; font-size: 22px; font-family: var(--font-head); }
.notice .n-date span { font-size: 11px; text-transform: uppercase; font-weight: 600; }
.notice h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.notice p { font-size: 13px; color: var(--muted); }
.notice .n-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: #fee2e2; color: #b91c1c; margin-left: 6px; vertical-align: middle; }

/* marquee ticker */
.ticker { background: var(--navy-dark); color: #fff; display: flex; align-items: center; overflow: hidden; font-size: 14px; }
.ticker .t-label { background: var(--gold); color: var(--navy-dark); font-weight: 700; padding: 10px 18px; white-space: nowrap; position: relative; z-index: 2; }
.ticker .t-track { display: flex; gap: 60px; white-space: nowrap; animation: marquee 35s linear infinite; padding-left: 30px; }
.ticker:hover .t-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info .ci { display: flex; gap: 18px; background: #fff; padding: 22px; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 16px; transition: .3s; }
.contact-info .ci:hover { transform: translateX(8px); }
.contact-info .ci .c-ic { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; background: var(--navy); color: var(--gold-2); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.contact-info .ci h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-info .ci p { color: var(--navy); font-weight: 500; }
.form-card { background: #fff; padding: 40px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 26px; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 10px; font-size: 15px; font-family: var(--font-body); background: #fafbfe; transition: .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(212,160,23,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #b91c1c; font-size: 13px; display: none; margin-top: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ef4444; }
.field.invalid .err { display: block; }
.form-success { display: none; text-align: center; padding: 30px; }
.form-success.show { display: block; animation: fadeIn .5s; }
.form-success .tick { width: 80px; height: 80px; margin: 0 auto 14px; }
.map-wrap { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); height: 380px; margin-top: 50px; background: #e5e7eb; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* careers */
.careers { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Achievements ---------- */
.trophy-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trophy { text-align: center; background: #fff; border-radius: 18px; padding: 30px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.trophy .t-ic { font-size: 50px; display: inline-block; animation: shine 3s ease-in-out infinite; }
@keyframes shine { 0%,100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 transparent); } 50% { transform: scale(1.1) rotate(-6deg); filter: drop-shadow(0 0 12px rgba(242,201,76,.8)); } }
.trophy .t-year { color: var(--gold); font-weight: 700; font-size: 14px; }
.trophy p { font-size: 15px; color: #3e4757; margin-top: 6px; }

.alumni-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.alumni-fields { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.alumni-fields span { background: rgba(255,255,255,.1); border: 1px solid rgba(242,201,76,.4); color: #fff; padding: 6px 16px; border-radius: 30px; font-size: 14px; transition: .3s; }
.alumni-fields span:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c5dc; padding-top: 70px; position: relative; }
.site-footer .f-wave { position: absolute; top: -59px; left: 0; width: 100%; height: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 1.6fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--gold); border-radius: 3px; }
.site-footer a { color: #b9c5dc; }
.site-footer a:hover { color: var(--gold-2); padding-left: 4px; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer li a { transition: .3s; }
.footer-brand p { font-size: 14px; margin: 14px 0 20px; }
.footer-brand .brand-text strong { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: .3s; }
.socials a:hover { background: var(--gold); transform: translateY(-4px); padding-left: 0; }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.socials a:hover svg { fill: var(--navy-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; text-align: center; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-dark); font-size: 22px; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .4s; z-index: 900; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy); color: var(--gold-2); }

/* preloader */
.preloader { position: fixed; inset: 0; background: var(--navy-dark); z-index: 5000; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .6s, visibility .6s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .pl-ring { width: 90px; height: 90px; border-radius: 50%; border: 4px solid rgba(242,201,76,.2); border-top-color: var(--gold-2); animation: spin 1s linear infinite; }
.preloader .pl-text { color: var(--gold-2); font-family: var(--font-head); font-size: 22px; margin-top: 18px; letter-spacing: 2px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.left { transform: translateX(-50px); }
.reveal.right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.88); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .2s; } .delay-3 { transition-delay: .3s; } .delay-4 { transition-delay: .4s; } .delay-5 { transition-delay: .5s; }

/* typing caret */
.typed::after { content: "|"; color: var(--gold-2); animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 13px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .events { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; top: 0; right: 0; transform: translateX(100%); visibility: hidden; width: 290px; height: 100vh; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15); padding: 90px 20px 20px; transition: transform .4s, visibility .4s; overflow-y: auto; z-index: 999; }
  .nav.open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { font-size: 16px; padding: 12px 14px; }
  .nav a::after { display: none; }
  .nav a.active { background: var(--gold-soft); }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .menu-toggle { z-index: 1001; }
  .hero .container, .split, .cta, .contact-grid, .careers, .alumni-band, .message, .stage { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-3, .grid-4, .trophy-row, .houses { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { display: none; }
  .stage:nth-child(even) .stage-img { order: 0; }
  .stage-img { min-height: 240px; }
  .message { padding: 34px 26px; gap: 24px; }
  .cta { padding: 40px 30px; }
  .cta .cta-actions { justify-content: flex-start; }
  .timeline::before { left: 18px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 30px 50px; }
  .tl-item:nth-child(odd) { text-align: left; }
  .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: 8px; right: auto; }
  .img-stack .img-small { right: 10px; }
  .img-stack .exp-badge { left: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .jubilee-strip .container { flex-wrap: wrap; }
  .jubilee-strip .js-year { margin-left: 0; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .trophy-row, .houses, .doc-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .events { grid-template-columns: repeat(2, 1fr); }
  .topbar .tb-right { display: none; }
  .brand-text strong { font-size: 18px; }
  .brand-logo { height: 50px; }
  .hero { min-height: 80vh; }
  .hero p.lead { font-size: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .g-item.wide { grid-column: span 2; }
  .form-card { padding: 26px 20px; }
  .img-stack .img-main { height: 300px; }
  .img-stack .img-small { display: none; }
  .message .m-photo .avatar { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* crest on dark footer sits on a white badge */
.site-footer .brand-logo { height: 92px; background: #fff; padding: 8px 10px; border-radius: 14px; }

/* portrait photos: keep faces in frame */
.img-stack .img-small.portrait { width: 36%; height: 300px; bottom: -60px; object-position: center 20%; }
.g-item img.pos-top { object-position: center 18%; }

.nowrap { white-space: nowrap; }
.message .m-photo .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* confirmation dialog */
#enquiry { scroll-margin-top: 110px; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 4000; background: rgba(15,20,45,.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s; }
.dialog { background: #fff; border-radius: 20px; padding: 34px 30px 28px; width: 100%; max-width: 380px; text-align: center; box-shadow: var(--shadow-lg); animation: popIn .25s ease-out; }
.dialog .tick { width: 64px; height: 64px; margin: 0 auto 14px; }
.dialog p { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 22px; }
.dialog .btn { min-width: 120px; justify-content: center; }
@keyframes popIn { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
