:root {
    --navy: #1a237e;
    --navy-dark: #10164a;
    --navy-deep: #0a0e33;
    --gold: #f9a825;
    --gold-dark: #f57f17;
    --soft: #f5f7fc;
    --green-wa: #25d366;
    --radius: 1rem;
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: #333; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; }
img { max-width: 100%; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-soft { background: var(--soft); }
.rounded-4 { border-radius: var(--radius) !important; }
.skip-link { position: absolute; z-index: 2000; background: var(--gold); color: var(--navy); padding: .5rem 1rem; border-radius: 0 0 .5rem 0; }

/* Buttons */
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); transition: all .3s; }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,35,126,.3); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy-deep); border: none; transition: all .3s; }
.btn-gold:hover { color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(249,168,37,.45); filter: brightness(1.05); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); transition: all .3s; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-whatsapp { background: var(--green-wa); color: #fff; border: none; transition: all .3s; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,.4); }

/* Topbar */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.85); font-size: .82rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.85); transition: color .2s; }
.topbar a:hover { color: var(--gold); }

/* Navbar */
.main-navbar { background: #fff; padding: .65rem 0; transition: box-shadow .3s, padding .3s; }
.main-navbar.scrolled { box-shadow: 0 4px 24px rgba(16,22,74,.12); padding: .4rem 0; }
.brand-logo { height: 54px; width: auto; transition: height .3s; }
.main-navbar.scrolled .brand-logo { height: 44px; }
.brand-text { font-weight: 700; color: var(--navy); font-size: 1.15rem; line-height: 1.1; }
.brand-text small { display: block; font-size: .68rem; font-weight: 600; color: var(--gold-dark); letter-spacing: .06em; text-transform: uppercase; }
.main-navbar .nav-link { color: var(--navy); font-weight: 700; font-size: .92rem; padding: .5rem .8rem; position: relative; }
.main-navbar .nav-link::after { content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 3px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.main-navbar .nav-link:hover::after, .main-navbar .nav-link.active::after { transform: scaleX(1); }
.main-navbar .nav-link.active { color: var(--gold-dark); }
.navbar-toggler { border: 2px solid var(--navy); }

/* Hero */
.hero-section { position: relative; }
.hero-section .carousel-item { min-height: 86vh; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,14,51,.88) 0%, rgba(16,22,74,.65) 55%, rgba(16,22,74,.25) 100%); }
.hero-content { position: relative; z-index: 2; min-height: 86vh; display: flex; align-items: center; padding-top: 4rem; padding-bottom: 6rem; }
.hero-badge { display: inline-block; background: rgba(249,168,37,.18); border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: .85rem; padding: .4rem 1.1rem; border-radius: 50rem; margin-bottom: 1.2rem; animation: pulseGlow 2.4s infinite; }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(249,168,37,.35); } 50% { box-shadow: 0 0 0 10px rgba(249,168,37,0); } }
.hero-title { color: #fff; font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.12; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.hero-subtitle { color: var(--gold); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.4rem); letter-spacing: .04em; margin-top: .8rem; }
.hero-desc { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 560px; margin-top: .8rem; }
.hero-wave, .page-hero .hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }
.carousel-control-prev, .carousel-control-next { width: 6%; z-index: 4; }
.carousel-indicators { z-index: 4; }
.carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; opacity: .7; }
.carousel-indicators .active { background: var(--gold); border-color: var(--gold); opacity: 1; }

/* Sections */
.section-eyebrow { display: inline-block; color: var(--gold-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: .5rem; }
.section-eyebrow.light { color: var(--gold); }
.section-title { color: var(--navy); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.section-lead { max-width: 640px; }
section { position: relative; }

/* Feature cards */
.feature-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.4rem; box-shadow: 0 4px 18px rgba(16,22,74,.07); transition: transform .3s, box-shadow .3s; border-bottom: 4px solid transparent; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 16px 36px rgba(16,22,74,.14); border-bottom-color: var(--gold); }
.feature-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: var(--navy); background: linear-gradient(135deg, #fff3d6, #ffe082); transition: transform .3s; }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }

/* About */
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; object-fit: cover; }
.experience-badge { position: absolute; right: -12px; bottom: -22px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1rem 1.4rem; display: flex; align-items: center; gap: .8rem; border: 4px solid #fff; }
.experience-badge .number { font-size: 2.2rem; font-weight: 800; color: var(--gold); font-family: 'Poppins', sans-serif; }
.experience-badge .label { font-size: .78rem; line-height: 1.2; font-weight: 700; }
.mini-card { display: flex; gap: .8rem; background: #fff; border-radius: .8rem; padding: 1rem; box-shadow: 0 3px 12px rgba(16,22,74,.06); height: 100%; }
.mini-card i { font-size: 1.5rem; }
.about-excerpt { line-height: 1.8; }

/* Programmes */
.programme-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.4rem; box-shadow: 0 4px 18px rgba(16,22,74,.07); border-top: 5px solid var(--navy); transition: transform .3s, box-shadow .3s; }
.programme-card:hover { transform: translateY(-8px); box-shadow: 0 16px 36px rgba(16,22,74,.15); }
.programme-pink { border-top-color: #ec407a; } .programme-pink .programme-icon { background: #fce4ec; color: #ec407a; }
.programme-gold { border-top-color: var(--gold); } .programme-gold .programme-icon { background: #fff8e1; color: var(--gold-dark); }
.programme-green { border-top-color: #43a047; } .programme-green .programme-icon { background: #e8f5e9; color: #43a047; }
.programme-blue { border-top-color: #1e88e5; } .programme-blue .programme-icon { background: #e3f2fd; color: #1e88e5; }
.programme-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.age-badge { background: var(--soft); color: var(--navy); font-weight: 700; }

/* Stats */
.stats-band { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.stat-icon { font-size: 2.2rem; color: var(--gold); }
.stat-number { font-size: 2.6rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: #fff; }
.stat-number::after { content: '+'; color: var(--gold); }
.stat-label { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; opacity: .8; }

/* Event cards */
.event-card { border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(16,22,74,.15) !important; }
.event-card-img { height: 180px; object-fit: cover; }
.event-date-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--navy); color: #fff; border-radius: .7rem; text-align: center; padding: .4rem .8rem; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.event-date-badge .day { display: block; font-size: 1.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.event-date-badge .month { font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.event-card h3 a { color: var(--navy); }
.event-card h3 a:hover { color: var(--gold-dark); }
.read-more { color: var(--gold-dark); font-weight: 800; font-size: .88rem; }
.read-more i { transition: transform .25s; display: inline-block; }
.read-more:hover i { transform: translateX(5px); }

/* Album cards */
.album-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(16,22,74,.12); }
.album-card img { width: 100%; height: 270px; object-fit: cover; transition: transform .5s; }
.album-card:hover img { transform: scale(1.08); }
.album-card-overlay { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(10,14,51,.92)); color: #fff; }
.album-card-overlay span { color: var(--gold); font-size: .85rem; font-weight: 700; }

/* Post cards */
.post-card { border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(16,22,74,.15) !important; }
.post-card-img { height: 200px; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-img { transform: scale(1.06); }
.post-card-img-link { overflow: hidden; display: block; }
.post-card-placeholder { background: linear-gradient(135deg, var(--navy), #3949ab); color: var(--gold); }
.post-card .card-title a { color: var(--navy); }
.post-card .card-title a:hover { color: var(--gold-dark); }
.badge-category { background: #fff3d6; color: var(--gold-dark); font-weight: 700; }

/* Testimonials */
.testimonial-section { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.testimonial-card .stars { color: var(--gold); }
.testimonial-card .quote { color: #555; font-style: italic; line-height: 1.7; }
.testimonial-light { background: var(--soft); box-shadow: 0 4px 16px rgba(16,22,74,.07); }
.avatar-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.avatar-initials { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Poppins', sans-serif; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #3949ab); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(249,168,37,.25), transparent 70%); top: -160px; right: -100px; }
.cta-lead { max-width: 640px; }
.cta-mini { background: linear-gradient(135deg, var(--navy), #3949ab); }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); background-size: cover; background-position: center; padding: 5rem 0 4.5rem; position: relative; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* About page */
.mvv-card { background: #fff; border-radius: var(--radius); padding: 2.2rem 1.6rem; box-shadow: 0 4px 18px rgba(16,22,74,.07); transition: transform .3s; }
.mvv-card:hover { transform: translateY(-6px); }
.mvv-icon { width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #3949ab); color: var(--gold); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.value-badge { background: #fff3d6; color: var(--gold-dark); font-size: .85rem; padding: .5em .9em; }
.level-card { background: #fff; border-radius: .9rem; padding: 1.4rem; box-shadow: 0 3px 14px rgba(16,22,74,.07); border-left: 5px solid var(--gold); transition: transform .3s; }
.level-card:hover { transform: translateY(-4px); }
.level-card-cta { background: linear-gradient(135deg, var(--navy), #3949ab); color: #fff; border-left-color: var(--gold); }
.headteacher-card { background: #fff; border-radius: var(--radius); padding: 2.4rem; box-shadow: 0 8px 28px rgba(16,22,74,.1); border-top: 6px solid var(--gold); }
.headteacher-avatar { width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #3949ab); color: var(--gold); font-size: 4rem; display: flex; align-items: center; justify-content: center; }

/* Blog */
.blog-search .form-control { border-radius: 50rem 0 0 50rem; padding-left: 1.3rem; border: 2px solid #e3e8f4; }
.blog-search .btn { border-radius: 0 50rem 50rem 0; }
.category-pill { border: 2px solid #e3e8f4; color: var(--navy); border-radius: 50rem; padding: .35rem 1.1rem; font-weight: 700; font-size: .85rem; transition: all .25s; }
.category-pill:hover, .category-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.side-post { padding: .7rem 0; border-bottom: 1px dashed #e3e8f4; color: var(--navy); }
.side-post:last-of-type { border-bottom: none; }
.side-post:hover strong { color: var(--gold-dark); }
.side-post-img { width: 64px; height: 52px; object-fit: cover; border-radius: .5rem; flex-shrink: 0; }
.article-body { font-size: 1.05rem; line-height: 1.9; color: #444; }
.article-body h2, .article-body h3 { color: var(--navy); font-weight: 700; margin: 1.8rem 0 .9rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--gold-dark); font-weight: 700; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .25s; }
.share-btn:hover { transform: translateY(-3px); color: #fff; }
.share-btn.whatsapp { background: var(--green-wa); }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #111; }
.rich-content p { margin-bottom: 1rem; }

/* Events page */
.info-chip { background: var(--soft); border-radius: 50rem; padding: .5rem 1.1rem; font-weight: 700; font-size: .88rem; color: var(--navy); }
.side-event { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; border-bottom: 1px dashed #e3e8f4; color: var(--navy); }
.side-event:hover strong { color: var(--gold-dark); }
.side-date { background: var(--navy); color: #fff; border-radius: .6rem; text-align: center; padding: .35rem .7rem; flex-shrink: 0; }
.side-date span { display: block; font-weight: 800; color: var(--gold); font-size: 1.1rem; line-height: 1; }
.side-date small { font-size: .68rem; text-transform: uppercase; }
#eventsCalendar { --fc-border-color: #e8ecf6; --fc-today-bg-color: #fff8e1; }
#eventsCalendar .fc-event { border-radius: .4rem; font-weight: 700; font-size: .78rem; cursor: pointer; }
#eventsCalendar .fc-toolbar-title { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy); font-size: 1.3rem; }
#eventsCalendar .fc-button-primary { background: var(--navy); border-color: var(--navy); }
#eventsCalendar .fc-button-primary:not(:disabled):hover { background: var(--navy-dark); }

/* Gallery */
.gallery-item { display: block; position: relative; border-radius: .8rem; overflow: hidden; box-shadow: 0 3px 12px rgba(16,22,74,.1); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(16,22,74,.45); color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* Contact */
.contact-info-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.2rem; box-shadow: 0 4px 18px rgba(16,22,74,.07); transition: transform .3s; }
.contact-info-card:hover { transform: translateY(-6px); }
.contact-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, #fff3d6, #ffe082); color: var(--navy); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.contact-info-card a { color: var(--navy); font-weight: 700; }
.contact-info-card a:hover { color: var(--gold-dark); }
.map-wrap iframe { display: block; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(249,168,37,.2); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 4rem 0 1rem; }
.site-footer h5 { color: var(--gold); font-weight: 700; margin-bottom: 1.2rem; font-size: 1.05rem; }
.footer-about { font-size: .92rem; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.75); transition: color .2s, padding-left .2s; font-size: .92rem; }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; font-size: .9rem; }
.footer-contact i { color: var(--gold); margin-top: .15rem; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--gold); }
.social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: all .3s; }
.social-links a:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.footer-divider { border-color: rgba(255,255,255,.15); margin: 2.4rem 0 1rem; }
.footer-bottom { font-size: .85rem; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.78); }
.footer-credit { color: var(--gold); font-weight: 800; }
.footer-credit:hover { color: #ffd166; text-decoration: underline; }
.footer-tagline { color: rgba(255,255,255,.52) !important; font-size: .78rem; }

/* Mobile bottom nav */
.mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; display: flex; box-shadow: 0 -4px 20px rgba(16,22,74,.15); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); }
.mobile-bottom-nav a { flex: 1; text-align: center; color: #7a819e; font-size: .62rem; font-weight: 800; padding: .3rem 0; position: relative; transition: color .2s; }
.mobile-bottom-nav a i { display: block; font-size: 1.25rem; margin-bottom: .1rem; }
.mobile-bottom-nav a.active { color: var(--navy); }
.mobile-bottom-nav a.active::before { content: ''; position: absolute; top: -0.35rem; left: 25%; right: 25%; height: 3px; border-radius: 0 0 4px 4px; background: var(--gold); }

/* WhatsApp float */
.whatsapp-float { position: fixed; right: 20px; bottom: 24px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: var(--green-wa); color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.5); animation: waPulse 2.2s infinite; transition: transform .25s; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes waPulse { 0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.4); } 50% { box-shadow: 0 6px 20px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); } }
.whatsapp-tooltip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: var(--navy-deep); color: #fff; font-size: .75rem; font-weight: 700; padding: .4rem .9rem; border-radius: .5rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* Back to top */
.back-to-top { position: fixed; right: 26px; bottom: 96px; z-index: 1039; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--navy); color: #fff; font-size: 1.1rem; opacity: 0; visibility: hidden; transition: all .3s; box-shadow: 0 4px 14px rgba(16,22,74,.35); }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--navy-deep); }

/* Modals */
.login-modal-content { border-radius: 1.25rem; box-shadow: 0 30px 70px rgba(10,14,51,.35); }
.login-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 520px; }
.login-brand-panel { position: relative; background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 55%, #283593 100%); color: #fff; padding: 2.4rem 2rem; display: flex; align-items: center; overflow: hidden; }
.login-brand-panel::before { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(249,168,37,.28), transparent 65%); top: -90px; right: -110px; }
.login-brand-panel::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); bottom: -80px; left: -80px; }
.login-brand-inner { position: relative; z-index: 1; }
.login-brand-logo { width: 78px; height: 78px; border-radius: 1.1rem; background: #fff; display: flex; align-items: center; justify-content: center; padding: .4rem; margin-bottom: 1.4rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.login-brand-logo img { max-height: 100%; width: auto; border-radius: .6rem; }
.login-brand-title { font-size: 1.55rem; font-weight: 800; margin-bottom: .35rem; }
.login-brand-tagline { color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.6; margin-bottom: 1.6rem; }
.login-brand-points li { display: flex; align-items: center; gap: .65rem; font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: .85rem; }
.login-brand-points i { width: 30px; height: 30px; border-radius: 50%; background: rgba(249,168,37,.18); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.login-brand-foot { margin-top: 1.8rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.login-form-panel { position: relative; background: #fff; padding: 2.6rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.login-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; opacity: .55; }
.login-close:hover { opacity: 1; }
.login-pane { animation: loginFade .25s ease; }
@keyframes loginFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.login-eyebrow { display: inline-block; color: var(--gold-dark); font-weight: 800; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .45rem; }
.login-title { color: var(--navy); font-weight: 800; margin-bottom: .35rem; }
.login-subtitle { color: #7a819e; font-size: .87rem; margin-bottom: 1.35rem; }
.login-form .form-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #4a5170; margin-bottom: .35rem; }
.login-input { position: relative; }
.login-input > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #9aa2bd; font-size: .95rem; pointer-events: none; }
.login-input .form-control { height: 48px; border-radius: .7rem; border: 1.5px solid #e2e6f3; background: #f8f9fd; padding-left: 2.6rem; padding-right: 2.8rem; font-size: .9rem; font-weight: 600; color: #2c3352; transition: all .2s; }
.login-input .form-control:focus { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(249,168,37,.16); }
.password-toggle { position: absolute; right: .65rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8c94b0; width: 34px; height: 34px; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; }
.password-toggle:hover { background: #eef0f9; color: var(--navy); }
.login-meta { font-size: .8rem; }
.login-meta .form-check-label { color: #5c6485; font-weight: 600; }
.login-meta .form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.forgot-link { border: 0; background: none; color: var(--gold-dark); font-weight: 800; font-size: .8rem; padding: 0; }
.forgot-link:hover { color: var(--navy); text-decoration: underline; }
.btn-login { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border: 0; border-radius: .7rem; padding: .8rem 1rem; font-weight: 800; letter-spacing: .01em; box-shadow: 0 10px 24px rgba(26,35,126,.28); transition: all .25s; }
.btn-login:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26,35,126,.36); background: linear-gradient(135deg, var(--navy-dark), var(--navy-deep)); }
.login-secure-note { text-align: center; color: #9aa2bd; font-size: .74rem; font-weight: 600; margin: 1rem 0 0; }
.back-to-login { display: inline-flex; align-items: center; border: 0; background: none; color: var(--navy); font-weight: 800; font-size: .82rem; margin-top: 1.1rem; padding: 0; }
.back-to-login:hover { color: var(--gold-dark); }
.login-form .alert { border-radius: .65rem; }

/* Password reset page */
.auth-page { background: radial-gradient(circle at 15% 20%, #eef1ff 0, transparent 45%), radial-gradient(circle at 85% 80%, #fff6e0 0, transparent 40%), var(--soft); min-height: 60vh; }
.auth-card { background: #fff; border-radius: 1.25rem; padding: 2.5rem 2.2rem; box-shadow: 0 18px 50px rgba(16,22,74,.12); border: 1px solid rgba(16,22,74,.04); }
.auth-card-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, #fff3d6, #ffe082); color: var(--navy); font-size: 1.7rem; display: flex; align-items: center; justify-content: center; }

.announcement-modal { border-radius: var(--radius); }
.announcement-ribbon { background: var(--navy); color: var(--gold); font-weight: 800; text-align: center; padding: .6rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.announcement-success .announcement-ribbon { background: #2e7d32; color: #fff; }
.announcement-warning .announcement-ribbon { background: var(--gold-dark); color: #fff; }
.announcement-close { position: absolute; top: 2.55rem; right: .9rem; z-index: 5; background-color: #fff; border-radius: 50%; padding: .5rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.announcement-image { width: 100%; max-height: 140px; object-fit: cover; }
.announcement-modal .modal-body { padding: 1rem 1.4rem 1.35rem; }
.announcement-icon { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: linear-gradient(135deg, #fff3d6, #ffe082); color: var(--gold-dark); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; animation: bounceIn .8s; }
@keyframes bounceIn { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.announcement-body { font-size: .92rem; }
.announcement-body p { margin-bottom: .5rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .main-navbar .navbar-collapse { background: #fff; border-radius: .8rem; margin-top: .6rem; padding: 1rem; box-shadow: 0 12px 30px rgba(16,22,74,.15); }
    .main-navbar .nav-link::after { display: none; }
    .hero-section .carousel-item, .hero-content { min-height: 74vh; }
    /* Horizontal AOS offsets widen the layout on phones before they animate */
    [data-aos="fade-left"], [data-aos="fade-right"] { transform: translate3d(0, 24px, 0); }
}
@media (max-width: 767.98px) {
    body { padding-bottom: 64px; }
    .login-modal-grid { grid-template-columns: 1fr; min-height: 0; }
    .login-brand-panel { padding: 1.6rem 1.4rem; }
    .login-brand-logo { width: 58px; height: 58px; margin-bottom: .9rem; }
    .login-brand-title { font-size: 1.2rem; }
    .login-brand-tagline { margin-bottom: 0; font-size: .82rem; }
    .login-brand-points, .login-brand-foot { display: none; }
    .login-form-panel { padding: 2rem 1.4rem 1.7rem; }
    .auth-card { padding: 2rem 1.3rem; }
    .hero-section .carousel-item, .hero-content { min-height: 68vh; }
    .hero-content { padding-bottom: 5rem; }
    .whatsapp-float { bottom: 84px; width: 52px; height: 52px; font-size: 1.6rem; }
    .back-to-top { bottom: 148px; right: 23px; width: 40px; height: 40px; }
    .experience-badge { right: 8px; bottom: -18px; padding: .7rem 1rem; }
    .experience-badge .number { font-size: 1.6rem; }
    .page-hero { padding: 3.4rem 0 3rem; }
    .brand-logo { height: 44px; }
    .brand-text { font-size: 1rem; }
    .album-card img { height: 220px; }
    .gallery-item img { height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* Admissions page */
.admission-section-title { display: flex; align-items: center; gap: .65rem; font-size: 1.02rem; font-weight: 800; color: var(--navy); margin-bottom: 1rem; }
.admission-section-title span { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #3949ab); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.admission-steps li { display: flex; gap: .9rem; padding-bottom: 1.15rem; }
.admission-steps li:last-child { padding-bottom: 0; }
.admission-steps > li > span { width: 36px; height: 36px; border-radius: 50%; background: rgba(26,35,126,.08); color: var(--navy); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Site preloader */
.site-preloader { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #fff 0, #f4f6ff 60%, #eef1ff 100%); transition: opacity .45s ease, visibility .45s ease; }
.site-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.site-preloader-inner { text-align: center; }
.site-preloader-logo { height: 76px; width: auto; margin-bottom: 1.4rem; animation: preloaderPulse 1.6s ease-in-out infinite; }
.site-preloader-spinner { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; border: 3px solid rgba(26,35,126,.14); border-top-color: var(--navy); border-right-color: var(--gold); animation: preloaderSpin .85s linear infinite; }
@keyframes preloaderSpin { to { transform: rotate(360deg); } }
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .72; } }
@media (max-width: 575.98px) {
    .site-preloader-logo { height: 62px; }
    .site-preloader-spinner { width: 38px; height: 38px; }
}

