/* Color Palette: Deep Navy Blue (#0A2540), Gold (#D4AF37), Off-White (#F8F9FA) */
:root {
    --primary-color: #0A2540;
    --accent-color: #D4AF37;
    --accent-hover: #B8962E;
    --text-dark: #2B2D42;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
.header {
    background: var(--primary-color); /* Sets header background to navy blue (#0A2540) */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Flexbox layout for navbar elements */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Reduced padding slightly to fit landscape logo cleanly */
}
.logo img {
    /* Set a flexible max-width and height suited for wide/landscape logos */
    max-height: 65px; /* Adjust height up/down based on your final logo proportions */
    width: auto;     /* Maintains correct natural aspect ratio without distortion */
    display: block;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.03); /* Subtle zoom effect on logo hover */
}

.nav-menu ul {
    display: flex;
    list-style: none;
}
.nav-menu ul li {
    margin-left: 20px;
}

/* Standard State for Nav Links */
/* Base style for all menu links: Default text is Gold (#D4AF37) */
.nav-menu ul li a {
    display: inline-block;
    text-decoration: none;
    color: var(--accent-color); /* Updated to Gold so it stands out on Navy header */
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, color 0.3s;
}

/* Hover state for navigation buttons */
.nav-menu ul li a:hover {
    color: var(--primary-color); /* Changes text color to navy blue on hover */
    background-color: var(--accent-color); /* Fills button background with gold on hover */
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* Active Page Indicator (e.g. for the HOME button when on index.html) */
.nav-menu ul li a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color); /* Underline active tab instead of breaking color */
}

/* Unified Hover Rule:
   Combines standard links (.nav-menu ul li a:hover) AND active links (.nav-menu ul li a.active:hover)
   so EVERY button turns Navy Blue text when hovered over the Gold box background. */
.nav-menu ul li a:hover,
.nav-menu ul li a.active:hover {
    color: var(--primary-color) !important; /* Force Navy text color so text doesn't disappear on Gold */
    background-color: var(--accent-color); /* Gold fill on hover */
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* Mobile Hamburger Menu Icon */
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--accent-color); /* Updated hamburger color to gold for blue background contrast */
    cursor: pointer;
}

/* Hero Section - Full Height & Clear Background */
.hero {
    position: relative;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--primary-color);
    height: 90vh; /* Increased height so full image is visible top to bottom */
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

/* Subtle gradient overlay to keep text readable without making the photo dark */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* Main School Title */
.hero-content .main-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 3.8rem;
    font-weight: 700;
    color: rgb(65, 211, 255);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Tagline */
.hero-content .tagline {
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    color: #F0F0F0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
}

/* ==========================================
   FLOATING WELCOME CARD SECTION (20% SMALLER & PROPORTIONED)
   ========================================== */

.welcome-card-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 50px;
    width: 90%;
    max-width: 840px; /* Reduced by 20% from 1050px for a narrower footprint */
    margin-left: auto;
    margin-right: auto;
}

/* Proportioned Welcome Card with Faded Border Edge & Repositioned Background */
.welcome-card {
    position: relative;
    /* Shifts background image upward to display more of the lower area */
    background: url('../images/welcome-bg.jpg') center 80% / cover no-repeat;
    background-color: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    padding: 55px 35px;
    
    width: 100%;
    min-height: 520px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Faded border look: Thin translucent base with soft outer & inner vignette shadows */
    border: 6px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 20px rgba(10, 37, 64, 0.6),        /* Soft faded outer navy glow */
        0 18px 40px rgba(0, 0, 0, 0.65),       /* Ambient drop shadow */
        inset 0 0 35px rgba(0, 0, 0, 0.5);     /* Faded inner edge vignette */
        
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 0 25px rgba(10, 37, 64, 0.8),
        0 22px 50px rgba(0, 0, 0, 0.75),
        inset 0 0 25px rgba(0, 0, 0, 0.4);
}

/* Dark Glass Overlay for High Text Legibility */
.welcome-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Centered Text Content */
.welcome-card-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.welcome-card-content h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.welcome-card-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

/* Clean Pill Button without Yellow Border */
.btn-welcome {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 11px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: transform 0.25s ease, background-color 0.3s;
}

.btn-welcome:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .welcome-card-section {
        margin-top: -30px;
    }
    .welcome-card {
        min-height: 440px;
        padding: 40px 20px;
        border-width: 4px;
    }
    .welcome-card-content h2 {
        font-size: 1.6rem;
    }
    .welcome-card-content p {
        font-size: 0.9rem;
    }
}

/* Full-Width Navy Banner */
.vma-section {
    background-color: var(--primary-color); /* #0A2540 */
    width: 100%;
    padding: 80px 0;
    margin-top: 40px;
    color: var(--white);
}

.vma-container {
    display: flex;
    flex-direction: column;
    gap: 70px; /* Space between rows */
}

/* Row Layout */
.vma-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Reverses layout for Mission (Image Left, Text Right) */
.vma-row.reverse {
    flex-direction: row;
}

/* Left/Right Columns */
.vma-text {
    flex: 1;
}

.vma-image {
    flex: 1;
}

/* Text Formatting */
.vma-text h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: var(--accent-color); /* Gold color */
    margin-bottom: 15px;
    position: relative;
}

.vma-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 8px;
    border-radius: 2px;
}

.vma-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Image Styling matching Welcome Card feel */
.vma-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.vma-image img:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

/* Responsive Mobile Stacking */
@media (max-width: 992px) {
    .vma-row, .vma-row.reverse {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .vma-text h2::after {
        margin: 8px auto 0 auto;
    }

    .vma-image img {
        height: 250px;
    }
}

/* Video Showcase Layout */
.video-showcase-section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* 50/50 Grid Split */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 520px;
}

/* Left Column - Stacked 2 Videos Vertically */
.video-left-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.video-left-col .video-card {
    flex: 1;
    min-height: 245px;
}

/* Right Column - Single Tall Video */
.video-right-col {
    display: flex;
}

.video-right-col .video-card {
    width: 100%;
    height: 100%;
    min-height: 515px;
}

/* Rounded Corner Video Card Style */
.video-card {
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr; /* Stacks to single column on mobile */
    }

    .video-left-col .video-card {
        height: 250px;
    }

    .video-right-col .video-card {
        min-height: 300px;
        height: 300px;
    }
}

/* Responsive Mobile Stacking */
@media (max-width: 992px) {
    .vma-row, .vma-row.reverse {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .vma-text h2::after {
        margin: 8px auto 0 auto;
    }

    .vma-image img {
        height: 250px;
    }
}

/* Adjusted Features Section Spacing */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 0 auto 80px auto; /* Removed negative margin */
    position: relative;
    z-index: 2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .welcome-card-section {
        margin-top: -40px;
    }
    .welcome-card {
        padding: 40px 25px;
        border-radius: 18px;
    }
    .welcome-card-content h2 {
        font-size: 2rem;
    }
    .welcome-card-content p {
        font-size: 1rem;
    }
    .btn-welcome {
        padding: 10px 30px;
        font-size: 1rem;
    }
}

/* Mobile Responsiveness for Titles */
@media (max-width: 768px) {
    .hero {
        height: 75vh;
        min-height: 500px;
    }
    .hero-content .main-title {
        font-size: 2.2rem;
    }
    .hero-content .sub-title {
        font-size: 1.8rem;
    }
    .hero-content .tagline {
        font-size: 1.3rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Generic Button Styling with Hover Animation */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s, background-color 0.3s;
}
.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Features Cards with Hover Effect */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: -50px auto 60px auto;
    position: relative;
    z-index: 2;
}
.feature-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.12);
    background-color: #128c7e;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.4);
}

/* Get Directions Button Styling */
.btn-directions {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 15px;
    transition: transform 0.25s ease, background-color 0.3s;
}

.btn-directions:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.btn-directions i {
    margin-right: 6px;
}

/* Footer Styling */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding-top: 50px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-info h3, .footer-links h4, .footer-social h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}
.footer-email {
    margin-top: 10px;
    font-size: 0.9rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: color 0.3s, transform 0.2s;
}
.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Social Icons in Footer */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, color 0.3s;
}
.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.15);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Fully Responsive Mobile Optimizations */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
    }
    .nav-menu ul li {
        margin: 0;
        text-align: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--bg-light);
    }
    .hamburger {
        display: block;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .about-preview {
        flex-direction: column;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================
   ADMISSION MODAL POPUP STYLES
   ========================================== */

/* ==========================================
   APPLY NOW MODAL STYLES
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    color: #1e293b;
    text-align: left;
    box-sizing: border-box;
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #0f172a;
}

.modal-title {
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.required-star {
    color: #ef4444;
}

.optional-tag {
    font-size: 12px;
    color: #94a3b8;
    font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: #ffffff;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 10px;
}

.radio-group label {
    font-weight: normal;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-top: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
}

.success-message-box {
    text-align: center;
    padding: 30px 10px;
}

.success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.success-message-box h2 {
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 10px;
}

.success-message-box p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.close-success-btn {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.close-success-btn:hover {
    background: #cbd5e1;
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .modal-card {
        padding: 20px;
    }
}

/* ==========================================
   GALLERY PAGE SPECIFIC STYLES
   ========================================== */

/* Page Banner */
.gallery-banner {
    background-color: var(--primary-color);
    padding: 45px 0;
    text-align: center;
    color: var(--white);
    border-bottom: 3px solid var(--accent-color);
}

.gallery-banner h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.gallery-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Latest Highlights Section Container */
.highlights-section {
    padding: 50px 0 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.gold-divider {
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* ==========================================
   MAIN SLIDER WINDOW (FULL RECTANGLE BORDER FIX)
   ========================================== */

.main-slider-window {
    position: relative;
    width: 100%;
    max-width: 950px;
    height: 520px;
    margin: 0 auto 35px auto;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
    
    /* Full rectangle border in primary theme Navy Blue (#0A2540) */
    border: 4px solid var(--primary-color);
    box-shadow: 0 12px 30px rgba(10, 37, 64, 0.2);
    box-sizing: border-box;
}

.main-slider-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Slider Arrow Buttons */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 37, 64, 0.8);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* ==========================================
   LATEST HIGHLIGHTS GALLERY (Index Page)
   ========================================== */

.highlights-section {
    padding: 30px 0 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.gold-divider {
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Big Main Window */
.main-slider-window {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 380px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.25);
    background: #000;
}

.main-slider-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease-in-out;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 37, 64, 0.85);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Thumbnail Wrapper (Hides overflow) */
.thumbnail-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 110px;
    margin: 0 auto 20px auto;
    overflow: hidden;
}

/* Stationary Center Rectangle Frame */
.thumbnail-center-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 130px; /* Sized to perfectly fit the popped-up image */
    height: 92px;
    border: 4px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 5;
    pointer-events: none; /* Allows clicking images through the frame */
}

/* Moving Track */
.thumbnail-track {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    left: 50%; /* Starts exactly in the middle */
    top: 50%;
    transform: translate(0, -50%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Thumbnail Items */
.thumb-item {
    width: 110px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item:hover {
    opacity: 0.8;
}

/* Popped-up active image inside the frame */
.thumb-item.active {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Attractive Tagline Box */
.highlights-caption {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), #123a60);
    padding: 15px 25px;
    border-radius: 12px;
    border-bottom: 5px solid var(--accent-color);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.highlights-caption h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.highlights-caption p {
    font-size: 1.05rem;
    color: #F8F9FA;
    margin: 0;
}

@media (max-width: 768px) {
    .main-slider-window { height: 300px; }
    .highlights-caption { padding: 20px; }
    .highlights-caption h3 { font-size: 1.2rem; }
    .highlights-caption p { font-size: 0.95rem; }
}

/* ==========================================
   HOME PAGE GALLERY LIGHTBOX
   ========================================== */
.main-slider-window img {
    cursor: pointer; /* Shows a clickable pointer hand over the main image */
}

.home-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.home-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.home-lightbox .lightbox-content {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-lightbox img {
    max-width: 85vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
    transition: opacity 0.2s ease;
}

.home-lightbox .lightbox-counter {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.home-lightbox .lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.home-lightbox .lightbox-close:hover {
    color: var(--accent-color);
}

.home-lightbox .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 37, 64, 0.8);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.home-lightbox .lightbox-arrow:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.home-lightbox .lightbox-prev { left: 30px; }
.home-lightbox .lightbox-next { right: 30px; }

@media (max-width: 768px) {
    .home-lightbox .lightbox-arrow { width: 42px; height: 42px; font-size: 1rem; }
    .home-lightbox .lightbox-prev { left: 10px; }
    .home-lightbox .lightbox-next { right: 10px; }
    .home-lightbox .lightbox-close { top: 15px; right: 20px; font-size: 2rem; }
}

/* ==========================================
   MOBILE NAVIGATION MENU STYLES
   ========================================== */
@media (max-width: 992px) {
    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--accent-color);
        z-index: 1001; /* Keeps the button above the menu */
    }

    .nav-menu {
        position: absolute;
        top: 100%; /* Pushes it right below the header */
        left: -100%; /* Hides it off the left side of the screen */
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        transition: left 0.4s ease-in-out;
        z-index: 1000;
        padding: 20px 0;
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* The class added by JavaScript when the button is clicked */
    .nav-menu.active {
        left: 0;
    }
}