:root {
    --school-blue: #0a4ea3;
    --school-blue-dark: #07336b;
    --school-sky: #eaf4ff;
    --school-teal: #1fa89a;
    --school-gold: #f2b84b;
    --school-red: #d94c4c;
    --ink: #132238;
    --muted: #667085;
    --line: #dbe4ef;
    --soft: #f5f9fd;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(19, 34, 56, .12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--white);
    line-height: 1.6;
}

a {
    color: var(--school-blue);
    text-decoration: none;
}

a:hover {
    color: var(--school-blue-dark);
}

img {
    max-width: 100%;
}

.btn {
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary {
    --bs-btn-bg: var(--school-blue);
    --bs-btn-border-color: var(--school-blue);
    --bs-btn-hover-bg: var(--school-blue-dark);
    --bs-btn-hover-border-color: var(--school-blue-dark);
}

.public-navbar .nav-link {
    color: var(--ink);
    font-weight: 600;
    padding: .6rem .8rem;
}

.public-navbar .nav-link.active,
.public-navbar .nav-link:hover {
    color: var(--school-blue);
}

.hero-carousel .carousel-item {
    height: min(620px, 72vh);
    min-height: 470px;
    background: var(--school-blue-dark);
}

.hero-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 28, 64, .8), rgba(5, 28, 64, .38), rgba(5, 28, 64, .12));
}

.hero-carousel img {
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-caption {
    z-index: 2;
    right: auto;
    left: 8%;
    bottom: 50%;
    transform: translateY(50%);
    max-width: 720px;
    text-align: left;
}

.hero-carousel h1,
.page-hero h1 {
    margin: .5rem 0 1rem;
    font-size: 3.35rem;
    line-height: 1.08;
    font-weight: 800;
}

.hero-carousel p,
.page-hero p {
    max-width: 680px;
    font-size: 1.15rem;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--school-teal);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-pad {
    padding: 84px 0;
}

.bg-soft {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading h2,
.section-pad h2,
.cta-band h2 {
    font-weight: 800;
    color: var(--ink);
}

.principal-panel,
.info-card,
.value-card,
.feature-card,
.facility-card,
.events-panel,
.album-card,
.teacher-card,
.update-card,
.form-panel,
.contact-panel,
.document-table,
.admin-panel,
.dashboard-card,
.login-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(19, 34, 56, .08);
}

.principal-panel {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
}

.principal-panel img {
    width: 100%;
    aspect-ratio: 1;
}

.feature-card,
.value-card,
.info-card,
.events-panel,
.form-panel,
.contact-panel {
    height: 100%;
    padding: 28px;
}

.feature-card i,
.value-card i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    color: var(--white);
    background: var(--school-blue);
    margin-bottom: 18px;
}

.feature-card:nth-child(even) i,
.value-card:nth-child(even) i {
    background: var(--school-teal);
}

.feature-card h3,
.value-card h3,
.news-row h3,
.event-item h3,
.gallery-tile h3,
.album-card h2,
.teacher-card h2,
.update-card h2 {
    font-size: 1.12rem;
    font-weight: 800;
}

.facility-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    font-weight: 700;
}

.facility-card i {
    color: var(--school-teal);
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.event-item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.event-date {
    display: grid;
    place-items: center;
    height: 68px;
    border-radius: 8px;
    color: var(--white);
    background: var(--school-blue);
    font-size: 1.4rem;
    font-weight: 800;
}

.event-date span {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
}

.gallery-tile,
.photo-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--school-blue-dark);
    color: var(--white);
    text-align: left;
    box-shadow: var(--shadow);
}

.gallery-tile img,
.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}

.gallery-tile:hover img,
.photo-card:hover img,
.album-card:hover img {
    transform: scale(1.04);
}

.gallery-tile div,
.photo-card span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 42px 18px 16px;
    background: linear-gradient(0deg, rgba(5, 28, 64, .86), rgba(5, 28, 64, 0));
}

.gallery-tile p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 800;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(19, 34, 56, .06);
}

.quick-links i {
    color: var(--school-blue);
    font-size: 1.4rem;
}

.cta-band {
    padding: 58px 0;
    color: var(--white);
    background: var(--school-blue-dark);
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 0;
}

.page-hero {
    padding: 96px 0;
    color: var(--white);
    background: linear-gradient(110deg, rgba(7, 51, 107, .96), rgba(10, 78, 163, .88)), url("../images/placeholder-school.svg") center/cover no-repeat;
}

.page-hero .section-kicker {
    color: #b8fff5;
}

.timeline-list {
    display: grid;
    gap: 16px;
    padding-left: 1.2rem;
}

.check-list {
    padding-left: 0;
    list-style: none;
}

.check-list li {
    margin-bottom: 10px;
}

.check-list li::before {
    content: "\f00c";
    margin-right: 10px;
    color: var(--school-teal);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.teacher-card {
    overflow: hidden;
}

.teacher-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--school-sky);
}

.teacher-card div,
.update-card div,
.album-card-body {
    padding: 22px;
}

.teacher-card .designation {
    color: var(--school-blue);
    font-weight: 700;
}

.album-card {
    overflow: hidden;
    height: 100%;
}

.album-card > img,
.update-card > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--school-sky);
    transition: transform .25s ease;
}

.document-table {
    padding: 12px;
}

.contact-panel p {
    display: flex;
    gap: 12px;
}

.contact-panel i {
    width: 22px;
    color: var(--school-blue);
}

.map-section iframe,
.empty-map {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: var(--radius);
}

.empty-map,
.empty-state {
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: 26px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    text-align: center;
}

.narrow-content {
    max-width: 860px;
}

.narrow-content h2 {
    margin-top: 32px;
}

.site-footer {
    color: var(--white);
    background: #061f42;
}

.site-footer h5,
.site-footer h6 {
    font-weight: 800;
}

.footer-links li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .72);
}

.footer-links a,
.footer-bottom a,
.social-links a {
    color: rgba(255, 255, 255, .75);
}

.footer-links a:hover,
.footer-bottom a:hover,
.social-links a:hover {
    color: var(--white);
}

.footer-bottom {
    color: rgba(255, 255, 255, .65);
    background: rgba(0, 0, 0, .18);
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: #25d366;
    box-shadow: var(--shadow);
    font-size: 1.7rem;
}

.custom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 14, 31, .92);
}

.custom-lightbox.is-open {
    display: flex;
}

.custom-lightbox figure {
    width: min(980px, 100%);
    margin: 0;
    color: var(--white);
    text-align: center;
}

.custom-lightbox img {
    max-height: 78vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.custom-lightbox figcaption {
    display: grid;
    gap: 4px;
    margin-top: 14px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, .16);
}

.lightbox-close {
    top: 22px;
    right: 22px;
}

.lightbox-prev {
    left: 22px;
}

.lightbox-next {
    right: 22px;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: var(--soft);
}

.login-card {
    width: min(440px, 100%);
    padding: 34px;
}

.login-logo {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 8px;
    color: var(--white);
    background: var(--school-blue);
    font-size: 1.7rem;
}

.admin-body {
    background: var(--soft);
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    color: var(--white);
    background: #061f42;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    padding: 12px 14px;
    border-radius: 6px;
    color: rgba(255, 255, 255, .78);
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .12);
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.admin-panel {
    padding: 24px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.dashboard-card span {
    color: var(--muted);
}

.dashboard-card strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.1;
}

.dashboard-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.admin-thumb {
    width: 84px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--school-sky);
}

.admin-avatar {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--school-sky);
}

.current-image {
    display: block;
    width: min(420px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--school-sky);
}

.current-avatar {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--school-sky);
}

.image-preview {
    display: none;
    width: 220px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.image-preview.has-image {
    display: block;
}

.multiple-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.multiple-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.admin-image-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.delete-panel {
    max-width: 720px;
}

.enquiry-detail dt {
    color: var(--muted);
}

@media (max-width: 991.98px) {
    .hero-carousel h1,
    .page-hero h1 {
        font-size: 2.35rem;
    }

    .principal-panel {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .section-pad {
        padding: 56px 0;
    }

    .hero-carousel .carousel-item {
        min-height: 520px;
    }

    .hero-carousel .carousel-caption {
        left: 6%;
        right: 6%;
    }

    .hero-carousel h1,
    .page-hero h1 {
        font-size: 2rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 18px;
    }

    .panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .lightbox-prev,
    .lightbox-next {
        bottom: 24px;
        top: auto;
    }
}

