﻿@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --saffron: #D4622A;
    --deep-saffron: #B5440E;
    --gold: #C9942B;
    --dark-brown: #3B1F0C;
    --cream: #FDF6ED;
    --light-cream: #FFF9F2;
    --green: #2E6B3E;
    --text-dark: #1C1008;
    --text-mid: #4A3020;
    --text-light: #7A5C3A;
    --border-light: #E8D8C0;
}

* {
    box-sizing: border-box;
}
a{
    text-decoration:none;
}
body {
     font-family: "Libre Baskerville", serif;
    background: var(--light-cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
     font-family: "Libre Baskerville", serif;
}

/* ─── TOP BAR ─── */
.top-bar {
    background: var(--dark-brown);
    color: #e8d0b0;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 2px solid var(--saffron);
}

    .top-bar a {
        color: #e8d0b0;
        text-decoration: none;
        font-size: 14px;
    }

        .top-bar a:hover {
            color: var(--gold);
        }

    .top-bar .badge-notice {
        background: var(--saffron);
        color: #fff;
        font-size: 13px;
        padding: 2px 10px;
        border-radius: 4px;
        animation: pulse-badge 2s infinite;
        text-align: left;
    }

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ─── HEADER ─── */
.site-header {
    background: var(--cream);
    border-bottom: 3px solid var(--saffron);
    padding: 12px 0;
    /*  position: sticky;
    top: 0;*/
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(59,31,12,0.12);
}

    .site-header .logo-area {
        display: flex;
        align-items: center;
        gap: 16px;
    }

.logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--dark-brown);
    border: 3px solid var(--saffron);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
     font-family: "Libre Baskerville", serif;
    font-size: 26px;
    color: var(--gold);
    font-weight: 800;
    flex-shrink: 0;
}

    .logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.logo-text h1 {
    font-size: 22px;
    color: var(--dark-brown);
    margin: 0;
    font-weight: 800;
    line-height: 1.1;
}

.logo-text p {
    font-size: 11.5px;
    color: var(--saffron);
    margin: 2px 0 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.header-contact {
    text-align: right;
    font-size: 13px;
    color: var(--text-mid);
}

    .header-contact strong {
        color: var(--saffron);
        font-size: 16px;
    }

    .header-contact a {
        color: var(--text-mid);
        text-decoration: none;
        font-size: 16px;
    }

        .header-contact a:hover {
            color: var(--saffron);
        }

/* ─── NAVBAR ─── */
.main-nav {
    background: var(--dark-brown);
    padding: 0;
}

    .main-nav .navbar-nav .nav-link {
        color: #e8d0b0 !important;
         font-family: "Libre Baskerville", serif;
        font-weight: 500;
        font-size: 14px;
        padding: 14px 16px !important;
        letter-spacing: 0.4px;
        transition: background 0.2s, color 0.2s;
        position: relative;
    }

        .main-nav .navbar-nav .nav-link:hover,
        .main-nav .navbar-nav .nav-link.active {
            background: var(--saffron);
            color: #fff !important;
        }

    .main-nav .dropdown-menu {
        background: var(--dark-brown);
        border: 1px solid var(--saffron);
        border-radius: 0;
        padding: 0;
        min-width: 200px;
    }

    .main-nav .dropdown-item {
        color: #e8d0b0;
        font-size: 13px;
        padding: 9px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

        .main-nav .dropdown-item:hover {
            background: var(--saffron);
            color: #fff;
        }

.navbar-toggler {
    border-color: var(--saffron);
    font-size: 12px;
    padding: 7px 8px;
    margin: 4px 8px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D4622A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── HERO CAROUSEL ─── */
.hero-carousel {
    position: relative;
}

.hero-slide {
    position: relative;
    height: 700px;
    background-size: cover;
    background-position: center;
    /* display: flex;
    align-items: center;*/
}

    .hero-slide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(358deg, rgb(59 31 12 / 97%) 0%, rgb(59 31 12 / 19%) 60%, transparent 100%);
    }



.hero-caption {
    /*position: relative;*/
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
    width: 100%;
    margin: auto;
    animation: fadeInUp 0.8s ease;
    bottom: 6.25rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-caption .tagline {
    font-size: 12px;
    color: #ffba31;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.hero-caption h2 {
    font-size: 42px;
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-caption p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.btn-saffron {
    background: var(--saffron);
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

    .btn-saffron:hover {
        background: var(--deep-saffron);
        color: #fff;
    }

.btn-outline-saffron {
    background: white;
    color: var(--saffron);
    border: 2px solid var(--saffron);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 2px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

    .btn-outline-saffron:hover {
        background: var(--saffron);
        color: #fff;
    }

/* ─── NOTICE BOARD STRIP ─── */
.notice-strip {
    background: var(--saffron);
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}

    .notice-strip .label {
        background: var(--dark-brown);
        padding: 4px 16px;
        font-weight: 700;
        font-size: 13px;
        white-space: nowrap;
        letter-spacing: 1px;
    }

.marquee-wrap {
    overflow: hidden;
    flex: 1;
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 43s linear infinite;
    font-size: 14px;
    font-weight: 500;
}

@keyframes marquee {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}

.marquee-text span {
    margin: 0 40px;
}

    .marquee-text span::before {
        content: '✦ ';
        color: var(--gold);
    }

/* ─── SECTION TITLE ─── */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title .subtitle {
        font-size: 12px;
        color: var(--saffron);
        text-transform: uppercase;
        letter-spacing: 3px;
        font-weight: 600;
    }

    .section-title h2 {
        font-size: 34px;
        color: var(--dark-brown);
        font-weight: 800;
        margin: 6px 0 12px;
    }

    .section-title .divider {
        width: 60px;
        height: 3px;
        background: var(--saffron);
        margin: 0 auto;
        position: relative;
    }

        .section-title .divider::before,
        .section-title .divider::after {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 6px;
            height: 6px;
            background: var(--gold);
            border-radius: 50%;
        }

        .section-title .divider::before {
            left: -14px;
        }

        .section-title .divider::after {
            right: -14px;
        }

/* ─── ABOUT SECTION ─── */
.about-section {
    padding: 0px 0 70px 0px;
    background: var(--light-cream);
}

    .about-section .stat-box {
        background: var(--dark-brown);
        color: #fff;
        padding: 24px 20px;
        text-align: center;
        border-radius: 4px;
        border-bottom: 4px solid var(--saffron);
    }

        .about-section .stat-box .num {
            font-size: 44px;
             font-family: "Libre Baskerville", serif;
            font-weight: 800;
            color: var(--gold);
            line-height: 1;
        }

        .about-section .stat-box p {
            margin: 4px 0 0;
            font-size: 13px;
            opacity: 0.8;
        }

.about-img-wrap {
    position: relative;
    display: inline-block;
}

    .about-img-wrap img {
        width: 100%;
        border-radius: 4px;
        box-shadow: 8px 8px 0 var(--saffron);
    }

.about-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--dark-brown);
    color: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--gold);
     font-family: "Libre Baskerville", serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

    .about-badge small {
        font-size: 9px;
        color: #e8d0b0;
         font-family: "Libre Baskerville", serif;
    }

/* ─── GURU CARDS ─── */
.gurus-section {
    padding: 70px 0;
    background: var(--cream);
    border-top: 4px solid var(--border-light);
}

.guru-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(59,31,12,0.10);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--saffron);
    height: 100%;
}

    .guru-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 36px rgba(59,31,12,0.18);
    }

    .guru-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
        object-position: top;
    }

    .guru-card .card-body {
        padding: 20px;
    }

        .guru-card .card-body h5 {
            font-size: 17px;
            color: var(--dark-brown);
            font-weight: 700;
            margin-bottom: 8px;
        }

        .guru-card .card-body p {
            font-size: 13.5px;
            color: var(--text-light);
            line-height: 1.7;
        }

        .guru-card .card-body a {
            color: var(--saffron);
            font-weight: 600;
            text-decoration: none;
            font-size: 13px;
        }

/* ─── INFRA SECTION ─── */
.infra-section {
    padding: 70px 0;
    background: var(--dark-brown);
    position: relative;
    overflow: hidden;
}

    .infra-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('https://www.gurukulrewari.com/assets/img/Icons/infra.jpg') center/cover no-repeat;
        opacity: 0.08;
    }

    .infra-section .section-title h2 {
        color: #fff;
    }

    .infra-section .section-title .subtitle {
        color: var(--gold);
    }

.infra-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 28px 24px;
    text-align: center;
    transition: background 0.3s;
    height: 100%;
}

    .infra-card:hover {
        background: rgba(212,98,42,0.18);
        border-color: var(--saffron);
    }

    .infra-card .icon-wrap {
        width: 64px;
        height: 64px;
        background: var(--saffron);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        font-size: 26px;
        color: #fff;
    }

    .infra-card h5 {
        color: #fff;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .infra-card p {
        color: rgba(255,255,255,0.7);
        font-size: 13px;
        line-height: 1.7;
    }

/* ─── EVENTS SECTION ─── */
.events-section {
    padding: 70px 0;
    background: var(--light-cream);
}

.event-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(59,31,12,0.10);
    background: #fff;
    transition: transform 0.3s;
}

    .event-card:hover {
        transform: translateY(-4px);
    }

    .event-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .event-card .event-body {
        padding: 16px;
        border-top: 3px solid var(--saffron);
    }

        .event-card .event-body h6 {
            font-size: 14px;
            color: var(--dark-brown);
            font-weight: 700;
            margin-bottom: 4px;
        }

        .event-card .event-body span {
            font-size: 12px;
            color: var(--text-light);
        }


/* ─── PRINCIPAL SECTION ─── */
.principal-section {
    padding: 70px 0;
    background: var(--dark-brown);
    position: relative;
}

    .principal-section::before {
        content: '"';
        position: absolute;
        top: 10px;
        left: 40px;
        font-size: 200px;
        color: rgba(255,255,255,0.1);
         font-family: "Libre Baskerville", serif;
        line-height: 1;
    }

.principal-img {
    width: 220px;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 8px 8px 0 var(--deep-saffron);
}

.principal-section h2 {
    color: #fff;
}

.principal-section .subtitle-text {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.principal-section .name {
     font-family: "Libre Baskerville", serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.principal-section .title-role {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* ─── CONTACT / INFO FOOTER BAR ─── */
.info-bar {
    background: var(--cream);
    border-top: 3px solid var(--border-light);
    border-bottom: 3px solid var(--border-light);
    padding: 40px 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .info-item .icon {
        width: 46px;
        height: 46px;
        background: var(--saffron);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        flex-shrink: 0;
    }

    .info-item h6 {
        font-size: 14px;
        color: var(--dark-brown);
        font-weight: 700;
        margin-bottom: 2px;
    }

    .info-item p {
        font-size: 13px;
        color: var(--text-light);
        margin: 0;
    }

/* ─── FOOTER ─── */
.site-footer {
    background: var(--text-dark);
    color: #c8b89a;
    padding: 60px 0 0;
}

    .site-footer h5 {
         font-family: "Libre Baskerville", serif;
        color: #fff;
        font-size: 17px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--saffron);
        display: inline-block;
    }

    .site-footer p {
        font-size: 13.5px;
        color: #ffffffe3;
        line-height: 1.8;
    }

    .site-footer ul {
        list-style: none;
        padding: 0;
    }

        .site-footer ul li {
            margin-bottom: 8px;
        }

            .site-footer ul li a {
                color: #c8b89a;
                text-decoration: none;
                font-size: 13.5px;
                transition: color 0.2s;
            }

                .site-footer ul li a::before {
                    content: '→ ';
                    color: var(--saffron);
                }

                .site-footer ul li a:hover {
                    color: var(--gold);
                }

.footer-bottom {
    background: rgba(0,0,0,0.4);
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c8b89a;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    margin-right: 6px;
}

    .social-icons a:hover {
        background: var(--saffron);
        color: #fff;
    }

/* ─── TIMINGS BOX ─── */
.timings-box {
    background: var(--light-cream);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 20px;
    margin-top: 10px;
}

    .timings-box .t-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-light);
        font-size: 13px;
        color: var(--text-mid);
    }

        .timings-box .t-row:last-child {
            border-bottom: none;
        }

        .timings-box .t-row strong {
            color: var(--dark-brown);
        }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {

    .gallery-section .gallery-grid {
         grid-template-columns: repeat(1, 1fr) !important;
     }
    .hero-slide {
        height: 300px;
    }
    .top-bar{

    }
    .hero-slide img{
        width:100%;
    }
    .hero-slide::before{
        background:none !important;
    }
    .hero-caption {
        display: none;
    }
    .header-contact a {
        font-size: 12px;
        padding: 6px 8px;
    }
    .hero-caption h2 {
        font-size: 26px;
    }

  

    .about-badge {
        display: none;
    }
}

/* ─── CAROUSEL CONTROLS ─── */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--saffron);
    border-radius: 50%;
    padding: 18px;
    background-size: 50%;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--saffron);
}

.carousel-indicators{
    display:none;
}

/*.active {
    background: var(--saffron);
    color: white !important;
}*/



.hero-slide-1 .carousel-caption {
    position: absolute;
    bottom: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
   
}


.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* Hide text visually but keep for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* DOT LOADER */
.loader-wrapper {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #3498db;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes bounce {
    from {
        transform: translateY(0);
        opacity: 0.5;
    }

    to {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* MODULAR LOADER (spinner) */
.modular-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ─── GALLERY SECTION ─── */
.gallery-section {
    padding: 70px 0;
    background: var(--cream);
}

    .gallery-section .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .gallery-section .gallery-item {
        overflow: hidden;
        border-radius: 4px;
        position: relative;
        aspect-ratio: 4/3;
    }

        .gallery-section .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .gallery-section .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-section .gallery-item::after {
            content: '🔍';
            position: absolute;
            inset: 0;
            background: rgba(59,31,12,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .gallery-section .gallery-item:hover::after {
            opacity: 1;
        }
