:root {
    --saffron: #FF9933;
    --white: #FFFFFF;
    --green: #138808;
    --navy-blue: #000080;
    --gov-bg: #f8f9fa;
    --text-main: #333333;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--gov-bg);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 4px solid var(--saffron);
}

.top-bar {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 5px 20px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.main-header {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    gap: 20px;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.school-title {
    flex-grow: 1;
}

.school-title h1 {
    margin: 0;
    color: var(--navy-blue);
    font-size: 24px;
    text-transform: uppercase;
}

.school-title h2 {
    margin: 5px 0 0;
    color: var(--saffron);
    font-size: 16px;
    font-weight: 500;
}

/* Navigation */
nav {
    background-color: var(--green);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 12px 14px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--navy-blue);
}

/* Main Content */
main {
    min-height: 60vh;
}

.hero {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 5px solid var(--green);
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--saffron);
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.section {
    padding: 50px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: var(--navy-blue);
    border-bottom: 2px solid var(--saffron);
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

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

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 3px solid var(--saffron);
}

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

.card h3 {
    color: var(--navy-blue);
    margin-top: 0;
}

/* Footer */
footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top: 4px solid var(--saffron);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    color: var(--saffron);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.footer-section p, .footer-section ul {
    font-size: 14px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

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

.footer-section a:hover {
    color: var(--saffron);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

/* --- NEW HOME PAGE STYLES --- */

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: var(--navy-blue);
    border-bottom: 5px solid var(--green);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 8px;
    border-left: 6px solid var(--saffron);
    backdrop-filter: blur(4px);
}

.slide-content h2 {
    font-size: 42px;
    margin-top: 0;
    color: var(--saffron);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0 20px;
    box-sizing: border-box;
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--saffron);
    border-color: var(--saffron);
}

/* Principal Desk */
.principal-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.principal-img {
    min-width: 140px;
    height: 160px;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--navy-blue);
    font-weight: bold;
    color: var(--navy-blue);
}

/* Anthem & Buttons */
.anthem-box {
    background-color: #f0f4f8;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #d9e2ec;
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--saffron);
    transform: translateY(-2px);
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.highlight-item {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--green);
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-bottom-color: var(--saffron);
}

.highlight-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

/* Dropdown Menu */
nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--navy-blue);
    min-width: 280px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
}

nav ul li.dropdown:hover .dropdown-content {
    display: block;
}

nav ul li.dropdown .dropdown-content a {
    padding: 12px 16px;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    display: block;
    font-size: 13px;
}

nav ul li.dropdown .dropdown-content a:hover {
    background-color: var(--saffron);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */

.mobile-menu-toggle {
    display: none;
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
    .main-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .logo-placeholder:last-child {
        display: none;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    .principal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li.dropdown .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-content {
        padding: 20px;
        margin: 0 15px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .slider-controls button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .section {
        padding: 30px 15px;
    }
    
    .card {
        padding: 15px;
    }
    
    .footer-content {
        text-align: center;
    }
}

/* =========================================
   Custom Gallery Slider (Reference Image Style)
   ========================================= */
.custom-gallery-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 60px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.custom-gallery-slider::-webkit-scrollbar {
    display: none;
}
.gallery-nav {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: #333;
    font-size: 16px;
}
.gallery-nav:hover {
    background-color: #111;
    color: #fff;
    border-color: #111;
}
.gallery-nav.prev {
    left: -20px;
}
.gallery-nav.next {
    right: -20px;
}
.gallery-card {
    flex: 0 0 280px;
    height: 400px;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}
.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}
.expand-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333;
}
.gallery-card:hover .expand-icon {
    opacity: 1;
    transform: scale(1);
}
.gallery-info {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    background: #fff;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.gallery-card:hover .gallery-info {
    opacity: 1;
    visibility: visible;
    bottom: 20px;
}
.gallery-info .category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 0 0 5px 0;
}
.gallery-info h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #111;
    line-height: 1.3;
}
.gallery-info .author {
    font-size: 11px;
    color: #aaa;
    margin: 0;
}

/* Blinking Text Animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}
.blink-text {
    animation: blink 1s linear infinite;
}
