:root {
    --navy: #1f4785;
    --navy-dark: #0e244a;
    --navy-deep: #0a1a36;
    --gold: #c8b832;
    --gold-dark: #a8981f;
    --cream: #faf8ef;
    --ink: #1d2433;
    --muted: #5d6677;
    --line: #e6e9f0;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(14, 36, 74, .08);
    --shadow-lg: 0 20px 50px rgba(14, 36, 74, .16);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { font-family: var(--font-body); color: var(--ink); font-size: 15.5px; line-height: 1.75; background: #fff; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-head); color: var(--navy-dark); font-weight: 700; line-height: 1.25; }
h4, h5, h6 { font-weight: 600; color: var(--navy-dark); }
a { color: var(--navy); }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.letter-wide { letter-spacing: .12em; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* Buttons */
.btn { border-radius: 50px; font-weight: 500; padding: .6rem 1.5rem; transition: all .25s ease; }
.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); border: 2px solid var(--gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200, 184, 50, .35); }
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 71, 133, .3); }
.btn-outline-navy { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* Top bars */
.announce-bar { background: var(--gold); color: var(--navy-deep); font-size: .88rem; padding: .45rem 0; font-weight: 500; text-align: center; }
.announce-link { color: var(--navy-deep); font-weight: 700; text-decoration: none; white-space: nowrap; }
.announce-link:hover { color: #fff; }
.topbar { background: var(--navy-deep); color: #cfd8ea; font-size: .84rem; padding: .45rem 0; }
.topbar a { color: #cfd8ea; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

/* Header */
.site-header { background: var(--navy); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); z-index: 1030; }
.site-header .navbar { padding: .55rem 0; }
.site-header .navbar-brand img { height: 56px; width: auto; }
.site-header .nav-link { color: rgba(255, 255, 255, .88) !important; font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--gold) !important; }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px; background: var(--gold); border-radius: 2px; }
.site-header .dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; border-top: 3px solid var(--gold); }
.site-header .dropdown-item { border-radius: 8px; padding: .55rem 1rem; font-size: .92rem; }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--cream); color: var(--navy); }
.offcanvas { background: var(--navy-dark); color: #fff; }
@media (min-width: 1200px) {
    .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    .offcanvas.offcanvas-end { background: transparent; }
}

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 26, 54, .9) 0%, rgba(14, 36, 74, .7) 45%, rgba(14, 36, 74, .25) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.3rem); font-weight: 800; }
.hero h1 span { color: var(--gold); }
.hero .lead { font-size: 1.2rem; max-width: 560px; opacity: .92; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-badge { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); border-radius: 50px; padding: .45rem 1rem; font-size: .88rem; }
.hero-badge i { color: var(--gold); margin-right: .35rem; }
.hero-scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: 1.6rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Page hero */
.page-hero { background-size: cover; background-position: center; color: #fff; padding: 5.5rem 0 4.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .5rem; }
.page-hero .lead { opacity: .9; max-width: 680px; }
.page-hero .breadcrumb { margin-bottom: 1rem; font-size: .88rem; }
.page-hero .breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item.active { color: rgba(255, 255, 255, .8); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: .5rem 0 1rem; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-left: .6rem; }
.prose p, .prose li { color: #3a4356; }
.prose h2, .prose h3 { margin-top: 2rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.45rem; }
.prose ul li { margin-bottom: .45rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; height: auto; }
.prose blockquote { border-left: 4px solid var(--gold); background: var(--cream); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-style: italic; color: var(--navy-dark); }
.prose table { width: 100%; margin: 1rem 0; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .65rem; }
.check-list li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-size: 1.15rem; }

/* Image frame */
.img-frame { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-accent { position: relative; }
.img-accent::before { content: ""; position: absolute; top: -18px; left: -18px; width: 45%; height: 55%; border: 4px solid var(--gold); border-radius: 20px; z-index: -1; }
.exp-badge { position: absolute; right: -10px; bottom: 30px; background: var(--gold); color: var(--navy-deep); border-radius: 16px; padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); text-align: center; }
.exp-badge strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }

/* Stats */
.stats-band { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding: 3.5rem 0; position: relative; overflow: hidden; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--gold); line-height: 1; }
.stat .label { margin-top: .5rem; font-size: .95rem; opacity: .85; }

/* Cards */
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; height: 100%; transition: all .3s ease; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card .icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); margin-bottom: 1.25rem; font-size: 1.8rem; color: var(--navy); }
.feature-card .icon img { width: 38px; height: 38px; }
.feature-card h3 { font-size: 1.3rem; }
.feature-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--gold); transition: width .35s ease; }
.feature-card:hover::after { width: 100%; }

.stage-card ul { list-style: none; padding: 0; margin: 0; }
.stage-card li { padding: .3rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.stage-card li:last-child { border-bottom: 0; }
.stage-card .tag { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.post-card { border: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; transition: all .3s ease; background: #fff; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--cream); display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .card-body { padding: 1.5rem; }
.post-card .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 1rem; margin-bottom: .5rem; }
.post-card h3 { font-size: 1.2rem; line-height: 1.4; }
.post-card h3 a { color: var(--navy-dark); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card .badge-type { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: var(--navy-deep); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 50px; }

/* Leadership */
.leader-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 100%; }
.leader-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; }
.leader-card .body { padding: 1.75rem; }
.leader-card .role { color: var(--gold-dark); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

.quote-block { background: var(--cream); border-radius: 20px; padding: 2.5rem; position: relative; }
.quote-block::before { content: "\201C"; font-family: var(--font-head); font-size: 7rem; color: var(--gold); position: absolute; top: -1.5rem; left: 1.5rem; line-height: 1; opacity: .7; }

/* Tabs (motto/mission/vision) */
.mmv-tabs .nav-link { border-radius: 50px; color: var(--navy); font-weight: 600; padding: .55rem 1.4rem; }
.mmv-tabs .nav-link.active { background: var(--navy); color: #fff; }
.mmv-panel { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); margin-top: 1.25rem; }

/* Testimonials */
.testimonial-card { background: #fff; border-radius: 20px; padding: 2.25rem; box-shadow: var(--shadow); height: 100%; position: relative; }
.testimonial-card .stars { color: var(--gold); margin-bottom: .75rem; }
.testimonial-card p { color: #3a4356; font-size: .97rem; }
.testimonial-card .who { display: flex; align-items: center; gap: .9rem; margin-top: 1.25rem; }
.testimonial-card .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-grid a, .gallery-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--cream); }
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a::after { content: "\F52A"; font-family: bootstrap-icons; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: rgba(14, 36, 74, .5); opacity: 0; transition: opacity .3s ease; }
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid a.is-video::after { content: "\F4F4"; opacity: 1; background: rgba(14, 36, 74, .35); font-size: 3rem; }
.gallery-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: .82rem; z-index: 1; }
.album-card { display: block; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 4/3; box-shadow: var(--shadow); text-decoration: none; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album-card:hover img { transform: scale(1.07); }
.album-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 26, 54, .92)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: #fff; }
.album-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .25rem; }
.album-card .count { position: absolute; top: 1rem; right: 1rem; background: var(--gold); color: var(--navy-deep); font-weight: 600; border-radius: 50px; padding: .25rem .75rem; font-size: .8rem; }

/* Side cards */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-nav .list-group-item { border: 0; border-radius: 10px !important; margin-bottom: .25rem; font-size: .93rem; color: var(--ink); }
.side-nav .list-group-item.active { background: var(--navy); color: #fff; }
.side-nav .list-group-item:not(.active):hover { background: var(--cream); color: var(--navy); }
.side-cta { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.side-cta h3 { color: #fff; }

/* Tables */
.table-school { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.table-school thead th { background: var(--navy); color: #fff; font-weight: 500; border: 0; padding: .9rem 1rem; }
.table-school td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--line); }
.table-school tbody tr:nth-child(even) { background: #f8f9fc; }

.info-tile { background: #fff; border-radius: var(--radius); padding: 1.6rem; border-left: 4px solid var(--gold); box-shadow: var(--shadow); height: 100%; }
.info-tile h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
.info-tile .time { font-size: 1.05rem; font-weight: 600; color: var(--navy); }

/* Forms */
.form-card { background: #fff; border-radius: 20px; padding: 2.25rem; box-shadow: var(--shadow-lg); }
.form-control, .form-select { border-radius: 10px; padding: .7rem 1rem; border-color: #d9deea; }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(31, 71, 133, .12); }
.form-label { font-weight: 500; font-size: .9rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-item .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--cream); color: var(--navy); display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.hours-table td { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.map-frame { border: 0; width: 100%; height: 420px; border-radius: 20px; box-shadow: var(--shadow); }

/* Community / CTA / Footer */
.community-band { background: var(--navy-dark) url('/media/site/Flags.jpg') center/cover; background-blend-mode: multiply; color: #dbe3f2; padding: 4.5rem 0; }
.cta-strip { background: linear-gradient(120deg, var(--navy), var(--navy-dark)); color: #fff; padding: 2.75rem 0; border-top: 4px solid var(--gold); }
.cta-strip h2 { color: #fff; }
.site-footer { background: var(--navy-deep); color: #b9c4da; padding: 4.5rem 0 0; font-size: .93rem; }
.footer-logo { max-width: 260px; }
.footer-title { color: #fff; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 1.25rem; position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.site-footer a { color: #b9c4da; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .9rem; }
.footer-contact i { color: var(--gold); margin-top: .2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3.5rem; padding: 1.4rem 0; font-size: .85rem; }

/* Floating actions */
.float-actions { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: .6rem; z-index: 1040; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); border: 0; transition: transform .2s ease; text-decoration: none; }
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn.whatsapp { background: #25d366; }
.float-btn.call { background: var(--navy); }
.float-btn.to-top { background: var(--gold); color: var(--navy-deep); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.float-btn.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-scroll { animation: none; } }

.pagination .page-link { border-radius: 10px !important; margin: 0 .2rem; color: var(--navy); border: 1px solid var(--line); }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }

.alert-success-custom { background: #edf7ee; border: 1px solid #b7dfbb; color: #24572a; border-radius: 14px; }

@media (max-width: 991.98px) {
    .section { padding: 4rem 0; }
    .hero { min-height: 78vh; }
    .exp-badge { right: 10px; }
    .site-header .navbar-brand img { height: 44px; }
}
