/********** NCC IIIT Allahabad — Professional Government Theme **********/

/* ===== Design Tokens ===== */
:root {
    --navy: #1a2a4a;
    --navy-light: #243556;
    --navy-dark: #111d33;
    --gold: #d4a24e;
    --gold-light: #e8c47a;
    --gold-dark: #b8882e;
    --maroon: #8b1a1a;
    --maroon-light: #a52a2a;
    --saffron: #ff9933;
    --green-india: #138808;
    --white: #ffffff;
    --off-white: #f8f5f0;
    --cream: #faf7f2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --primary: var(--navy);
    --accent: var(--gold);
    --danger: var(--maroon);
    --light: var(--off-white);
    --dark: var(--navy-dark);
    --shadow-sm: 0 1px 3px rgba(26,42,74,0.08);
    --shadow-md: 0 4px 16px rgba(26,42,74,0.10);
    --shadow-lg: 0 8px 32px rgba(26,42,74,0.12);
    --shadow-xl: 0 16px 48px rgba(26,42,74,0.16);
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base Reset & Typography ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--maroon);
}

img {
    max-width: 100%;
    height: auto;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}


/* ===== Top Bar ===== */
.top-bar {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    border-bottom: 3px solid var(--gold);
    position: relative;
    z-index: 1001;
}

.top-bar a {
    color: var(--gold-light);
    font-weight: 500;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar .tri-stripe {
    display: flex;
    gap: 0;
    height: 3px;
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
}

.top-bar .tri-stripe span {
    flex: 1;
}

.top-bar .tri-stripe .saffron-stripe { background: var(--saffron); }
.top-bar .tri-stripe .white-stripe { background: var(--white); }
.top-bar .tri-stripe .green-stripe { background: var(--green-india); }

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-motto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 1px;
}


/* ===== Spinner ===== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background: var(--navy-dark) !important;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#spinner .spinner-border {
    border-color: var(--gold) !important;
    border-right-color: transparent !important;
}


/* ===== Navbar ===== */
.navbar {
    background: var(--navy) !important;
    padding: 0;
    box-shadow: var(--shadow-lg);
    z-index: 1100;
}

.navbar .navbar-brand {
    height: auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .navbar-brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.navbar .brand-text {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.navbar .brand-text small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-toggler {
    border-color: rgba(212,162,78,0.5) !important;
    padding: 6px 10px;
}

.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='%23d4a24e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 24px 16px !important;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
    .navbar .brand-text {
        font-size: 0.9rem;
    }
    .navbar .brand-text small {
        font-size: 0.6rem;
    }
    .navbar-collapse {
        background: var(--navy-dark);
        padding: 8px 0;
    }
}

.navbar.fixed-top {
    background: var(--navy) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.3s;
}

@keyframes slideInDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        background: var(--navy-dark);
        border: 1px solid rgba(212,162,78,0.15);
        border-radius: var(--radius-md);
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    
    .navbar .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .navbar .dropdown-item:hover {
        background: rgba(212,162,78,0.1);
        color: var(--gold);
    }
}


/* ===== Hero / Header Carousel ===== */
.header-carousel .owl-carousel-item {
    position: relative;
    min-height: 70vh;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-carousel .owl-carousel-item .hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(17,29,51,0.88) 0%, rgba(26,42,74,0.75) 50%, rgba(139,26,26,0.4) 100%);
    display: flex;
    align-items: center;
}

.header-carousel .hero-content {
    position: relative;
    z-index: 2;
}

.header-carousel .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,162,78,0.15);
    border: 1px solid rgba(212,162,78,0.3);
    border-radius: var(--radius-lg);
    padding: 6px 20px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.header-carousel .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-carousel .hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 32px;
    font-weight: 300;
}

.header-carousel .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--navy-dark);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212,162,78,0.3);
}

.header-carousel .hero-cta:hover {
    background: var(--gold-light);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,162,78,0.4);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        min-height: 60vh;
    }
    .header-carousel .hero-title {
        font-size: 2rem;
    }
    .header-carousel .hero-subtitle {
        font-size: 0.95rem;
    }
    .header-carousel .hero-badge {
        font-size: 11px;
        padding: 5px 14px;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 20px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
}


/* ===== Page Header (Inner Pages) ===== */
.page-header {
    background: linear-gradient(135deg, rgba(17,29,51,0.92), rgba(26,42,74,0.85), rgba(139,26,26,0.5)), url(carousel-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0 60px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.page-header .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
}

.page-header .breadcrumb-item a {
    color: var(--gold-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-decoration: none !important;
}

.page-header .breadcrumb-item a:hover {
    color: var(--white);
}

.page-header .breadcrumb-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--gold-light);
    transition: var(--transition);
}

.page-header .breadcrumb-item a:hover::after {
    width: 100%;
    background-color: var(--white);
}

.page-header .breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}


/* ===== Section Styling ===== */
.section-padding {
    padding: 60px 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-dark);
    margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-desc {
    max-width: 650px;
    margin: 0 auto;
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* Legacy section-title support */
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold-dark);
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--gold);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--gold);
    z-index: -1;
}


/* ===== Content Cards ===== */
/* informational card, no hover effect for professionalism */
.content-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.content-card .card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(26,42,74,0.2);
}

.content-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.content-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* Info Card — for About / Mission / Values */
.info-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px;
    border-left: 4px solid var(--gold);
    margin-bottom: 30px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card h3 i {
    color: var(--gold);
    font-size: 1.25rem;
}

.info-card p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0;
    text-align: justify;
}


/* ===== Blockquote / Oath / Pledge ===== */
.quote-block {
    position: relative;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-radius: var(--radius-lg);
    padding: 48px;
    margin: 30px 0;
    color: var(--white);
    overflow: hidden;
}

.quote-block::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 180px;
    font-family: 'Playfair Display', serif;
    color: rgba(212,162,78,0.1);
    line-height: 1;
}

.quote-block h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
}

.quote-block p {
    color: rgba(255,255,255,0.9);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}


/* ===== Stat Counter ===== */
.stat-bar {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    padding: 60px 0;
    position: relative;
}

.stat-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--saffron), var(--white), var(--green-india));
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}


/* ===== Values List ===== */
.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: values;
}

.values-list li {
    counter-increment: values;
    padding: 14px 0 14px 48px;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    line-height: 1.6;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list li::before {
    content: counter(values, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
}


/* ===== Tables ===== */
.styled-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 20px 0;
}

.styled-table thead th {
    background: var(--navy);
    color: var(--white);
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.styled-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.95rem;
}

.styled-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.styled-table tbody tr:hover {
    background: rgba(212,162,78,0.06);
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}


/* ===== Contact Card ===== */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.contact-card .contact-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 40px;
    text-align: center;
}

.contact-card .contact-header h3 {
    color: var(--white);
    margin-bottom: 4px;
}

.contact-card .contact-header p {
    color: var(--gold-light);
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

.contact-card .contact-body {
    padding: 40px;
}

.contact-card .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.contact-card .contact-item:last-child {
    border-bottom: none;
}

.contact-card .contact-item i {
    width: 40px;
    height: 40px;
    background: var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-card .contact-item .contact-details h5 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-card .contact-item .contact-details p {
    color: var(--gray-700);
    font-weight: 500;
    margin: 0;
}


/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,29,51,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item .gallery-overlay i {
    color: var(--white);
    font-size: 24px;
}


/* ===== Event Cards ===== */
.event-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
}

.event-card .event-img {
    height: 220px;
    overflow: hidden;
}

.event-card .event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card .event-body {
    padding: 24px;
}

.event-card .event-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: 10px;
}

.event-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.event-card .event-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card .event-link:hover {
    color: var(--maroon);
    gap: 10px;
}


/* ===== NCC Song Block ===== */
.song-block {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    border: 1px solid var(--gray-200);
    margin: 30px 0;
}

.song-block h3 {
    color: var(--navy);
    margin-bottom: 24px;
}

.song-block p {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 4px;
}

.song-block p strong {
    color: var(--navy);
}


/* ===== Director Message ===== */
.director-message {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.director-message .message-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.director-message .message-header .msg-icon {
    width: 64px;
    height: 64px;
    background: rgba(212,162,78,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 28px;
    flex-shrink: 0;
}

.director-message .message-header h3 {
    color: var(--white);
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.director-message .message-header p {
    color: var(--gold-light);
    margin: 0;
    font-size: 0.95rem;
}

.director-message .message-body {
    padding: 40px;
}

.director-message .message-body p {
    text-align: justify;
    line-height: 1.8;
    color: var(--gray-600);
}

.director-message .message-signature {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    margin-top: 20px;
}

.director-message .message-signature strong {
    display: block;
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.director-message .message-signature span {
    color: var(--gray-500);
    font-size: 0.9rem;
}


/* ===== Service Items (legacy support) ===== */
.service-item {
    background: var(--cream);
    transition: var(--transition);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.service-item:hover {
    background: var(--navy);
}

.service-item * {
    transition: var(--transition);
}

.service-item:hover * {
    color: var(--white) !important;
}

.service-item:hover .fa {
    color: var(--gold) !important;
}


/* ===== Category & Courses (legacy) ===== */
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    filter: brightness(1.1);
}


/* ===== Team (legacy) ===== */
.team-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    filter: brightness(1.1);
}


/* ===== Testimonial (legacy) ===== */
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-text {
    background: var(--cream) !important;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}


/* ===== Buttons ===== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.btn-primary {
    background: var(--navy) !important;
    border-color: var(--navy) !important;
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy-light) !important;
    border-color: var(--navy-light) !important;
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
    font-weight: 600;
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy-dark);
    box-shadow: 0 4px 10px rgba(212,162,78,0.2);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: var(--radius-sm);
}


/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 48px;
    height: 48px;
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--navy-dark) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.back-to-top i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
}

.back-to-top:hover {
    background: var(--gold-light) !important;
    box-shadow: var(--shadow-md);
}


/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--navy-dark) 0%, #0d1520 100%) !important;
    color: rgba(255,255,255,0.75);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--white) 50%, var(--green-india));
}

.footer h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer p {
    color: rgba(255,255,255,0.6);
}

.footer .btn.btn-social {
    margin-right: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-weight: normal;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: rgba(255,255,255,0.05);
}

.footer .btn.btn-social:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
}

.footer-contact-item i {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--gold);
}

.footer .btn.btn-link:hover {
    color: var(--gold);
    padding-left: 6px;
    box-shadow: none;
}

.footer .copyright {
    padding: 24px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
}

.footer .copyright a {
    color: var(--gold-light);
}

.footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer .footer-logo img {
    height: 48px;
    width: auto;
}


/* ===== Gallery Slideshow (legacy support) ===== */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mySlides {
    display: none;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px 20px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: var(--radius-sm);
    user-select: none;
    background: rgba(26,42,74,0.5);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 10;
}

.next {
    right: 12px;
}

.prev {
    left: 12px;
}

.prev:hover, .next:hover {
    background: var(--gold);
    color: var(--navy-dark);
}


/* ===== Utility Classes ===== */
.bg-cream { background-color: var(--cream) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.text-maroon { color: var(--maroon) !important; }
.border-gold { border-color: var(--gold) !important; }

.rounded {
    border-radius: var(--radius-sm) !important;
}

.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: var(--gold);
    border-radius: 1px;
}

/* Smooth entrance animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===== Responsive Fine-tuning ===== */
@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2, .section-heading { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    .content-card { padding: 24px; }
    .info-card { padding: 24px; }
    .quote-block { padding: 30px; }
    .quote-block::before { font-size: 100px; }
    .stat-item .stat-number { font-size: 2.25rem; }
    .song-block { padding: 30px; }
    .director-message .message-header { padding: 24px; flex-direction: column; text-align: center; }
    .director-message .message-body { padding: 24px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .top-bar-content { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .page-header { padding: 60px 0 40px; }
    .page-header h1 { font-size: 2rem; }
}
/* Gallery Styles */
.gallery-item {
    border-radius: 3px;
    cursor: pointer;
    box-shadow: none;
    position: relative;
    z-index: 1;
    transition: z-index 0.3s;
}
.gallery-item:hover {
    z-index: 10;
}
.gallery-item img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border-radius: 3px;
}
.gallery-item:hover img {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Dynamic Lightbox Styles */
.max-vh-80 {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 42, 74, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1060;
}

.gallery-nav:hover {
    background: var(--navy);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: -70px; }
.gallery-nav.next { right: -70px; }

@media (max-width: 1200px) {
    .gallery-nav.prev { left: 20px; }
    .gallery-nav.next { right: 20px; }
}

.gallery-counter {
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 10px;
    display: inline-block;
}


/* Event Switcher Button Group Styles */
.btn-group .btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-group .btn-outline-primary {
    color: var(--navy) !important;
    border-color: var(--navy) !important;
    background-color: var(--white) !important;
}

.btn-group .btn-outline-primary:hover {
    background-color: var(--navy) !important;
    color: var(--gold) !important;
    border-color: var(--navy) !important;
}

.btn-group .btn-primary.active {
    background-color: var(--navy) !important;
    border-color: var(--navy) !important;
    color: var(--gold) !important;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125) !important;
}

.btn-group .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-group .btn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.btn-group .btn:focus {
    box-shadow: none !important;
}

/* Event Tabs Styling */
.event-tabs {
    border-bottom: 2px solid var(--gray-200);
    justify-content: center;
    gap: 30px;
}

.event-tabs .nav-link {
    color: var(--navy-light);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    border: none;
    background: none;
    padding: 12px 24px;
    position: relative;
    transition: var(--transition);
}

.event-tabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: var(--transition);
}

.event-tabs .nav-link.active {
    color: var(--gold);
    background: none;
}

.event-tabs .nav-link.active::after {
    width: 100%;
}

.event-tabs .nav-link:hover {
    color: var(--gold);
}

/* Featured Events Carousel Styling */
.featured-events-wrapper {
    background: var(--cream);
    padding: 60px 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
}

.events-carousel .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.events-carousel .owl-nav button {
    width: 45px;
    height: 45px;
    background: var(--navy) !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 20px !important;
}

.events-carousel .owl-nav button:hover {
    background: var(--gold) !important;
}

.events-carousel .event-card {
    background: var(--white);
    margin: 10px 5px;
}

/* Director Message Alignment Fix */
.director-img-wrapper img {
    margin-top: 8px; /* Perfectly aligns top of image with first line text cap-height */
}

/* Gallery Modal & Slideshow Styling */
#galleryModal .modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
}

#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    width: 15%;
    height: 100%;
    background: none !important;
    border: none !important;
    top: 0;
    transform: none;
    margin: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 1051;
}

#galleryModal .carousel-control-prev:hover,
#galleryModal .carousel-control-next:hover {
    opacity: 1;
}

#galleryModal .carousel-control-prev:hover {
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent) !important;
}

#galleryModal .carousel-control-next:hover {
    background: linear-gradient(to left, rgba(0,0,0,0.4), transparent) !important;
}

#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
    transition: transform 0.3s ease;
}

#galleryModal .carousel-control-prev:hover .carousel-control-prev-icon {
    transform: translateX(-5px);
}

#galleryModal .carousel-control-next:hover .carousel-control-next-icon {
    transform: translateX(5px);
}

#galleryModal .carousel-control-prev:focus,
#galleryModal .carousel-control-next:focus {
    outline: none !important;
    box-shadow: none !important;
}

#galleryModal .carousel-item img {
    max-height: 85vh;
    object-fit: contain;
}

#galleryModal .btn-close-white {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1060;
    width: 40px;
    height: 40px;
    background: none !important;
    border: none !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#galleryModal .btn-close-white:hover {
    opacity: 1;
}
/* Scroll Prompt Animation */
.scroll-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-prompt:hover {
    color: var(--gold);
}

.scroll-prompt i {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@media (max-width: 768px) {
    .btn-group .btn {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 12px;
    }
}

/* =========================================================
   Snappier, Professional Custom Animations (Overrides)
   ========================================================= */

.animated {
    animation-duration: 0.8s !important;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fadeInUp {
    animation-name: fadeInUp !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fadeInDown {
    animation-name: fadeInDown !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.slideInDown {
    animation-name: slideInDown !important;
}

/* =========================================================
   Floating Highlights Banner
   ========================================================= */
.floating-highlights {
    position: absolute; /* Default fallback */
    top: 130px;
    right: 20px;
    width: 520px;
    background: rgba(26, 42, 74, 0.70); /* Navy transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 20px 20px 10px 20px;
    z-index: 1050;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-height: 500px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-highlights.minimized {
    width: 250px;
    padding: 12px 20px;
    top: 130px;
    right: 15px;
    background: rgba(26, 42, 74, 0.95);
    border-radius: 4px;
    cursor: pointer;
}

.floating-highlights.minimized .highlights-carousel {
    opacity: 0;
    height: 0;
    pointer-events: none;
    margin-top: 0 !important;
}

.floating-highlights.minimized .highlights-title {
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .floating-highlights {
        display: none; /* Hide on mobile so it doesn't clutter hero */
    }
    
    .btn-group {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        max-width: 100%;
        scrollbar-width: none;
        padding-bottom: 5px;
    }
    .btn-group::-webkit-scrollbar {
        display: none;
    }
    .btn-group .btn {
        flex: 0 0 auto;
    }

    .event-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    .event-tabs::-webkit-scrollbar {
        display: none;
    }
    .event-tabs .nav-item {
        flex: 0 0 auto;
    }
}

.highlights-header {
    display: flex;
    align-items: center;
}

.highlights-title {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.highlights-carousel .highlight-item img {
    border-radius: 4px;
    height: 280px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.highlights-carousel .highlight-item:hover img {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.highlights-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    position: relative;
    z-index: 10;
}
.highlights-carousel .owl-dot {
    background: transparent !important;
    border: none !important;
    padding: 5px !important;
    cursor: pointer;
}
.highlights-carousel .owl-dot span {
    display: block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.highlights-carousel .owl-dot.active span,
.highlights-carousel .owl-dot:hover span {
    background: var(--gold) !important;
    width: 18px;
    border-radius: 10px;
}
