:root {
    --maroon: #7B1E1E;
    --gold: #D4AF37;
    --light-gold: #F5D77A;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

.top-bar {
    background: var(--maroon);
    font-size: 14px;
}

.main-navbar {
    background: var(--maroon);
}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: var(--gold) !important;
}

.btn-gold {
    background: var(--gold);
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    padding: 8px 20px;
}

.btn-gold:hover {
    background: var(--light-gold);
    color: #000;
}

.footer {
    background: var(--maroon);
}

.footer a {
    color: var(--gold);
    text-decoration: none;
}

.footer a:hover {
    color: var(--light-gold);
}

.hero-slider {
    position: relative;
}

.slider-img {
    height: 90vh;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(123, 30, 30, 0.7); /* Maroon overlay */
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    bottom: 30%;
}

.carousel-caption h1 {
    font-size: 3rem;
}

.carousel-caption p {
    font-size: 1.3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slider-img {
        height: 60vh;
    }

    .carousel-caption {
        bottom: 20%;
    }

    .carousel-caption h1 {
        font-size: 1.6rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

.admissions-cta {
    background: linear-gradient(rgba(123,30,30,0.95), rgba(123,30,30,0.95)),
                url('../images/slide2.jpg') center/cover no-repeat;
}

.cta-title {
    font-size: 2.5rem;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

.countdown .time-box {
    background: #D4AF37;
    color: #000;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.time-box h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.time-box small {
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-title {
        font-size: 1.6rem;
    }

    .countdown {
        justify-content: center !important;
    }

    .time-box {
        min-width: 65px;
        padding: 10px;
    }

    .time-box h3 {
        font-size: 1.3rem;
    }
}

.proprietor-section {
    background: #f9f9f9;
}

.section-title {
    color: #7B1E1E;
    font-weight: bold;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: #D4AF37;
    display: block;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}

.proprietor-title {
    color: #D4AF37;
    font-weight: 500;
}

.proprietor-text {
    color: #444;
    line-height: 1.7;
}

.proprietor-img {
    max-height: 350px;
    object-fit: cover;
    border: 4px solid #D4AF37;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .section-title {
        text-align: center;
    }
}

.stats-section {
    background: linear-gradient(rgba(123,30,30,0.95), rgba(123,30,30,0.95)),
                url('../images/slide1.jpeg') center/cover no-repeat;
}

.stat-card {
    background: #ffffff;
    color: #7B1E1E;
    padding: 30px 15px;
    border-radius: 12px;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #D4AF37;
}

.stat-card p {
    margin: 0;
    font-weight: 500;
}

.why-choose {
    background: #f8f9fa;
}

.why-subtitle {
    color: #666;
}

.why-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    text-align: center;
    border-top: 4px solid #7B1E1E;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #D4AF37;
}

.why-card h5 {
    color: #7B1E1E;
    font-weight: 600;
}

.why-card p {
    color: #555;
    font-size: 0.95rem;
}

.core-values {
    background: #ffffff;
}

.values-subtitle {
    color: #666;
}

.value-card {
    background: #f9f9f9;
    padding: 35px 25px;
    border-radius: 12px;
    transition: 0.3s ease;
    border-bottom: 4px solid #D4AF37;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    background: #ffffff;
}

.value-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #7B1E1E;
}

.value-card h5 {
    font-weight: 600;
    color: #7B1E1E;
}

.value-card p {
    color: #555;
    font-size: 0.95rem;
}

.philosophy-section {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.philosophy-subtitle {
    color: #D4AF37;
    font-weight: 500;
}

.philosophy-section p {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.philosophy-section .section-title {
    color: #7B1E1E;
}

.gallery-section {
    background: #f8f9fa;
}

.gallery-subtitle {
    color: #666;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .gallery-img {
        height: 180px;
    }
}


.testimonials-section {
    background: linear-gradient(rgba(123,30,30,0.95), rgba(123,30,30,0.95)),
                url('../images/slide2.jpg') center/cover no-repeat;
}

.testimonial-card {
    background: #ffffff;
    color: #444;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.quote-icon {
    font-size: 50px;
    color: #D4AF37;
    line-height: 1;
}

.testimonial-card h6 {
    color: #7B1E1E;
    font-weight: 600;
}


.contact-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
}

.contact-toggle {
    background: #7B1E1E;
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-toggle:hover {
    background: #D4AF37;
    color: #000;
}

.contact-options {
    display: none;
    flex-direction: column;
    margin-bottom: 10px;
}

.contact-options.show {
    display: flex;
}

.contact-item {
    background: #ffffff;
    color: #7B1E1E;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 30px;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item.whatsapp {
    background: #25D366;
    color: #fff;
}

.page-banner {
    background: linear-gradient(rgba(123,30,30,0.9), rgba(123,30,30,0.9)),
                url('../images/slide2.jpeg') center/cover no-repeat;
    height: 50vh;
}

.mission-vision {
    background: #7B1E1E;
}

.mv-card {
    background: #ffffff;
    color: #444;
    padding: 30px;
    border-radius: 12px;
}

.mv-card h3 {
    color: #7B1E1E;
}

.leadership-img {
    max-height: 300px;
    object-fit: cover;
    border: 4px solid #D4AF37;
}

.about-cta {
    background: #7B1E1E;
}

.board-section {
    background: #f8f9fa;
}

.board-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.board-card:hover {
    transform: translateY(-10px);
}

.board-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #D4AF37;
}


.academic-card {
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transition:0.3s;
}

.academic-card:hover {
    transform:translateY(-8px);
}

.subject-box {
    background:#7B1E1E;
    color:#fff;
    padding:15px;
    border-radius:8px;
    font-weight:500;
}

.teacher-section {
    background: #f8f9fa;
}

.teacher-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #D4AF37;
}

.teacher-subject {
    color: #7B1E1E;
    font-weight: 500;
    margin-bottom: 10px;
}

.performance-section {
    background: linear-gradient(rgba(123,30,30,0.95), rgba(123,30,30,0.95)),
                url('../images/slide1.jpg') center/cover no-repeat;
}

.performance-card {
    background: #ffffff;
    color: #7B1E1E;
    padding: 30px 20px;
    border-radius: 12px;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.performance-card:hover {
    transform: translateY(-8px);
}

.performance-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #D4AF37;
}

.performance-card p {
    margin: 0;
    font-weight: 500;
}

.admission-form {
    border-top: 4px solid #7B1E1E;
}

.admission-form h4 {
    color: #7B1E1E;
}

.gallery-page {
    background: #f8f9fa;
}

.filter-btn {
    margin: 5px;
}

.gallery-box {
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.gallery-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-box:hover img {
    transform: scale(1.1);
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80vh;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.contact-form {
    border-top: 4px solid #7B1E1E;
}

.contact-form h3 {
    color: #7B1E1E;
}

/* Modern visual refresh */
:root {
    --ink: #161a27;
    --surface: #fffdf8;
    --surface-muted: #f6f1e5;
    --glow: rgba(212, 175, 55, 0.22);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(212, 175, 55, 0.14), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(123, 30, 30, 0.16), transparent 30%),
        var(--surface);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand strong {
    font-family: 'Spectral', serif;
    letter-spacing: 0.2px;
}

.top-bar {
    backdrop-filter: saturate(135%) blur(5px);
}

.main-navbar {
    background: linear-gradient(90deg, rgba(123, 30, 30, 0.97), rgba(91, 20, 20, 0.96));
    box-shadow: 0 10px 26px rgba(20, 8, 8, 0.24);
}

.navbar .nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.btn-gold {
    background: linear-gradient(120deg, #b68d1f, #e1c15f);
    border: none;
    box-shadow: 0 12px 24px rgba(182, 141, 31, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(182, 141, 31, 0.4);
    filter: saturate(115%);
}

.hero-slider,
.page-banner,
.admissions-cta,
.stats-section,
.testimonials-section,
.performance-section {
    position: relative;
    overflow: hidden;
}

.hero-slider::before,
.page-banner::before,
.admissions-cta::before,
.stats-section::before,
.testimonials-section::before,
.performance-section::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -90px;
    right: -60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), transparent 72%);
    pointer-events: none;
}

.why-card,
.value-card,
.stat-card,
.academic-card,
.teacher-card,
.board-card,
.performance-card,
.mv-card {
    border-radius: 16px;
    border: 1px solid rgba(123, 30, 30, 0.08);
    box-shadow: 0 14px 30px rgba(28, 20, 10, 0.08);
}

.section-title::after {
    border-radius: 999px;
}

.footer {
    background: linear-gradient(130deg, #611515, #7B1E1E 60%, #8f2727);
}

.footer-credit {
    letter-spacing: 0.2px;
}

.footer-credit a {
    font-weight: 700;
}

/* Fade-up reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn-gold,
    .stat-card,
    .why-card,
    .value-card,
    .academic-card,
    .teacher-card,
    .board-card,
    .performance-card {
        transition: none;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        display: grid !important;
        gap: 2px;
        justify-items: center;
        text-align: center;
    }

    .main-navbar {
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
    }

    .btn-gold {
        width: 100%;
    }
}

.page-banner .container {
    animation: bannerRise 1s ease both;
}

@keyframes bannerRise {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-glass {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    border: 1px solid rgba(123, 30, 30, 0.1);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(25, 18, 9, 0.08);
    backdrop-filter: blur(4px);
}

.quick-card,
.gallery-stat,
.info-card {
    background: #fff;
    border: 1px solid rgba(123, 30, 30, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(25, 18, 9, 0.08);
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card:hover,
.gallery-stat:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(25, 18, 9, 0.12);
}

.quick-card h5,
.gallery-stat h5,
.info-card h5 {
    color: var(--maroon);
    margin-bottom: 8px;
}

.gallery-stat strong {
    color: var(--gold);
    font-size: 1.6rem;
    display: block;
    line-height: 1.2;
}

.form-shell {
    background: linear-gradient(170deg, #ffffff, #f8f5ee);
    border-radius: 18px;
    border: 1px solid rgba(123, 30, 30, 0.08);
    box-shadow: 0 16px 34px rgba(22, 15, 7, 0.1);
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: rgba(123, 30, 30, 0.25);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(212, 175, 55, 0.95);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.22);
}

.filter-btn {
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(123, 30, 30, 0.18);
}

.table {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(26, 18, 9, 0.08);
}

.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid rgba(123, 30, 30, 0.16);
    margin-bottom: 12px;
}

.accordion-button:not(.collapsed) {
    background: rgba(123, 30, 30, 0.08);
    color: var(--maroon);
}

.section-break {
    position: relative;
    overflow: hidden;
}

.section-break::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 30, 30, 0.24), transparent);
}

.icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(123, 30, 30, 0.12), rgba(212, 175, 55, 0.22));
    color: var(--maroon);
    font-size: 1.8rem;
    margin-bottom: 14px;
    box-shadow: 0 10px 22px rgba(123, 30, 30, 0.14);
}

.profile-card {
    background: linear-gradient(180deg, #ffffff, #faf7f0);
    border: 1px solid rgba(123, 30, 30, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(27, 18, 8, 0.08);
    padding: 22px;
}

.profile-tag {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 11px;
    background: rgba(123, 30, 30, 0.1);
    color: var(--maroon);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.teacher-card .profile-tag,
.board-card .profile-tag {
    margin-bottom: 10px;
}

.board-card h6,
.teacher-card h6 {
    margin-bottom: 4px;
}
