/* 
  St. Mary's Senior Girls School - Design System
  Professional, Premium, and Modern
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #781c3b;
    /* Deep Maroon */
    --primary-light: #a91e49;
    --primary-dark: #5a142c;
    --secondary: #d4a800;
    /* St. Mary's Gold */
    --secondary-light: #facc15;
    --navy: #1a1a5e;
    --navy-dark: #0f0f3d;

    /* Neutral colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-900: #0f172a;

    /* Typography */
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1280px;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* Offset for sticky header */
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Reusable Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 12px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(120, 28, 59, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(120, 28, 59, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--navy-dark);
    box-shadow: 0 10px 30px rgba(212, 168, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(212, 168, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(120, 28, 59, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: var(--navy);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

header.scrolled .logo-text h1 {
    color: var(--navy);
}

header.scrolled .logo-text p {
    color: var(--gray-500);
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 30px;
}

.top-links a {
    margin-left: 15px;
    opacity: 0.8;
}

.top-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(120, 28, 59, 0.25);
    border: 2px solid rgba(212, 168, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
}

.logo-text {
    white-space: nowrap;
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--secondary-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

header.scrolled .logo-text h1 {
    color: var(--navy);
    text-shadow: none;
}

header.scrolled .logo-text p {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-item {
    position: relative;
    font-weight: 700;
    color: var(--white);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
}

header.scrolled .nav-item {
    color: var(--navy-dark);
}

.nav-item:hover {
    color: var(--secondary-light) !important;
}

/* Custom small button for header */
.nav-actions .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transform: translateX(10px);
}

/* Mobile Menu Button (Hamburger) - Premium Styled */
.mobile-menu-btn {
    display: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 2.5px solid var(--secondary);
    cursor: pointer;
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--secondary);
    font-size: 1.6rem;
    transition: var(--transition);
    z-index: 9999;
    position: relative;
    display: flex;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(120, 28, 59, 0.45), 0 0 0 0 rgba(212, 168, 0, 0.4);
    animation: hamburger-pulse 2.5s infinite;
    flex-shrink: 0;
}

@keyframes hamburger-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(120, 28, 59, 0.45), 0 0 0 0 rgba(212, 168, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(120, 28, 59, 0.45), 0 0 0 8px rgba(212, 168, 0, 0);
    }
}

.mobile-menu-btn i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    display: block;
    line-height: 1;
}

/* When scrolled — keep it visible on white header */
header.scrolled .mobile-menu-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--secondary);
    color: var(--secondary);
}

.mobile-menu-btn:hover {
    transform: scale(1.08) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 8px 30px rgba(120, 28, 59, 0.6), 0 0 0 4px rgba(212, 168, 0, 0.25);
    animation: none;
}

/* Active (open) state — spin the icon */
.mobile-menu-btn.menu-open {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-color: var(--secondary);
    animation: none;
    transform: rotate(90deg);
}

/* Mobile Nav Overlay - only catches taps outside the drawer */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2500;
    pointer-events: none;
}

.nav-overlay.active {
    display: block;
    pointer-events: auto;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid var(--gray-100);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 25px;
    color: var(--navy-dark);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: 30px;
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-light);
    font-size: 0.8rem;
}

/* Dropdown Category Header */
.dropdown-header {
    padding: 10px 25px 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    font-weight: 800;
}

@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0 20px;
        transform: none;
        display: none;
        border: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.7) !important;
        border-bottom: none !important;
        margin-bottom: 10px !important;
        padding: 5px 0 !important;
    }

    .dropdown-header {
        padding: 15px 0 5px;
        color: var(--secondary);
    }
}

/* Hero Section / Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7));
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: 0 24px;
}

.slide-content h1 {
    font-size: 5rem;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.slide.active p {
    opacity: 0.9;
    transform: translateY(0);
}

.slide-content .btns {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

.slide.active .btns {
    opacity: 1;
    transform: translateY(0);
}

.btns,
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Features Glass Section */
.features-overlap {
    margin-top: -40px;
    padding-bottom: 40px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 30px;
    box-shadow: 0 15px 30px rgba(120, 28, 59, 0.2);
}

.feature-card h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--navy);
}

/* Stats Section */
.stats {
    background: var(--navy-dark);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(120, 28, 59, 0.2) 0%, transparent 70%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item h2 {
    font-size: 4.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray-300);
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    height: 320px;
    position: relative;
    background: var(--gray-50);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: var(--navy);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    padding: 40px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--navy-dark) 100%);
    padding: 100px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 168, 0, 0.1) 0%, transparent 60%);
}

.cta h2 {
    font-size: 4rem;
    margin-bottom: 30px;
}

/* Footer & Newsletter */
footer {
    background: #05051a;
    color: var(--white);
    padding: 120px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo .logo-icon {
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
    transform: translateX(5px);
}

.newsletter-form {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--secondary);
}

.newsletter-form .btn {
    padding: 15px 25px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('Assets/student-life-2.jpg') center/cover;
    padding: 180px 0 100px;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

/* Sidebar & Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 60px;
    padding: 80px 0;
}

.sidebar-box {
    background: var(--gray-50);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.sidebar-box h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    color: var(--navy);
}

/* Forms */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-200);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(120, 28, 59, 0.1);
}

/* --- Awards Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    position: relative;
    overflow-y: auto;
    padding: 50px;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9);
    opacity: 0;
}

.modal-overlay.active .modal-content {
    animation: modalPop 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

@keyframes modalPop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.awards-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.award-item {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid var(--gray-100);
}

.award-item:hover {
    transform: translateY(-5px);
}

.award-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.award-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.award-info {
    padding: 20px;
    text-align: center;
}

.award-info h4 {
    color: var(--navy);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.award-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* --- End Modal Styles --- */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.active-anchor {
    border: 2px solid var(--secondary) !important;
    box-shadow: 0 0 30px rgba(212, 168, 0, 0.3) !important;
    transform: scale(1.02) translateY(-5px) !important;
    z-index: 10;
}

/* ═══════════════════════════════════════════ */
/* RESPONSIVE DESIGN                           */
/* ═══════════════════════════════════════════ */

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 991px) {
    .container {
        padding: 0 25px;
    }

    .top-bar {
        display: none;
    }

    .nav-container {
        margin-top: 0;
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 100px 30px;
        z-index: 3100;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        pointer-events: auto;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-item {
        color: var(--white) !important;
        font-size: 1.1rem;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 15px;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        padding: 0 0 0 15px;
        transform: none;
        display: none;
        border-radius: var(--radius-sm);
        margin: 10px 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 10px 0 !important;
    }

    .nav-actions .btn {
        display: none;
    }

    .hero-slider,
    .hero-slider .slide {
        height: 70vh;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .page-header {
        padding: 120px 0 60px !important;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col.footer-logo {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 1.6rem;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 2rem !important;
    }
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.table-responsive table {
    min-width: 600px;
    /* Ensures table doesn't shrink into oblivion */
}

/* Stacking Utility for Flex/Grid */
@media (max-width: 991px) {
    .flex-stack {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .grid-stack {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .mobile-px-0 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Utilities */
.d-none {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-flex {
        display: flex !important;
    }
}

/* Photo Gallery System */
.gallery-section {
    padding: 100px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--gray-50);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

.gallery-overlay span {
    color: var(--secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Staff & Team Member Cards */
.staff-section {
    padding: 100px 0;
}

.dept-group {
    margin-bottom: 80px;
}

.dept-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.staff-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.staff-img {
    height: 320px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.staff-info {
    padding: 25px 20px;
}

.staff-info h4 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 5px;
    font-weight: 700;
}

.staff-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Departments Page Specifics */
.dept-group {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 80px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.dept-group:hover {
    box-shadow: var(--shadow-md);
}

.dept-title {
    font-family: 'Cinzel', serif;
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 20px;
}

.dept-title i {
    color: var(--secondary);
}

.dept-tag {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 10px;
    display: block;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--secondary);
    animation: load-progress 2s cubic-bezier(0.1, 0, 0.2, 1) forwards;
}

@keyframes load-progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 25px rgba(120, 28, 59, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px) scale(1.1);
}