/* ==========================================================================
   1. GLOBAL SETTINGS & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;600;800&display=swap');

:root {
    --primary-color: #2e7d32;   /* Brand Green */
    --primary-dark: #1b5e20;    /* Dark Green for 3D depth */
    --accent-color: #ffd700;    /* Gold for highlights */
    --text-dark: #222;
    --white: #ffffff;
    --black: #111111;
    --red-btn: #d32f2f;
    --red-dark: #b71c1c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--text-dark);
}

/* ==========================================================================
   2. TOP NEWS MARQUEE (Fixed at Top)
   ========================================================================== */
.news-strip {
    background: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1003;
    height: 35px;
}

.news-label {
    position: absolute;
    left: 0;
    background: var(--accent-color);
    color: #000;
    padding: 8px 15px;
    font-weight: 800;
    z-index: 4;
    text-transform: uppercase;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.news-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ==========================================================================
   3. MAIN HEADER & CONTACT ROW
   ========================================================================== */
.main-header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 35px; /* Sits exactly below marquee */
    z-index: 1002;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.header-top-info {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.school-logo-img {
    height: 60px; /* Adjust this based on your logo design */
    width: auto;
    object-fit: contain;
    /* Optional: adds a slight 3D shadow to the logo itself to match Ninety7 vibe */
    filter: drop-shadow(0px 3px 2px rgba(0,0,0,0.1));
}

/* Ensure the logo container stays centered vertically */
.logo a {
    display: flex;
    align-items: center;
}

/* Tablet/Mobile adjustment for the logo */
@media (max-width: 768px) {
    .school-logo-img {
        height: 45px;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
}

.contact-details {
    display: flex;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   4. NINETY7-STYLE 3D NAVIGATION STRIP
   ========================================================================== */
.nav-strip {
    background: var(--black);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* THE 3D BUTTON BASE */
.btn-3d, .btn-portal-3d {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 10px 18px;
    background: var(--primary-color);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-bottom: 6px solid var(--primary-dark); /* The 3D Base */
    transition: all 0.1s ease;
    text-align: center;
    min-width: 110px;
}

/* Hover - Lift Effect */
.btn-3d:hover {
    background: #388e3c;
    transform: translateY(-2px);
    border-bottom-width: 8px; 
}

/* Active - THE PRESS EFFECT (Ninety7 Style) */
.btn-3d:active, .btn-portal-3d:active {
    transform: translateY(4px); /* Moves down */
    border-bottom-width: 2px;   /* Flattens the 3D base */
    background: var(--primary-dark);
}

/* RED PORTAL BUTTON */
.btn-portal-3d {
    background: var(--red-btn);
    border-bottom-color: var(--red-dark);
}

.btn-portal-3d:hover {
    background: #e53935;
    border-bottom-width: 8px;
}

/* ==========================================================================
   5. HERO SLIDER SECTION
   ========================================================================== */
.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 175px; /* Offset for Marquee + Top Header + Nav Strip */
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: #000;
}

.slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: imageSlider 15s linear infinite;
    filter: brightness(0.45); /* Darker for better text readability */
}

/* Image URLs - Adjust paths as needed */
.slide:nth-child(1) { background-image: url('../assets/hero/slide1.jpg'); animation-delay: 0s; }
.slide:nth-child(2) { background-image: url('../assets/hero/slide2.jpg'); animation-delay: 5s; }
.slide:nth-child(3) { background-image: url('../assets/hero/slide3.jpg'); animation-delay: 10s; }

@keyframes imageSlider {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .header-top-info { flex-direction: column; gap: 15px; text-align: center; }
    .hero-content h2 { font-size: 2.8rem; }
    .hero { margin-top: 240px; }
}

@media (max-width: 768px) {
    .contact-details { display: none; } /* Hide contact on small mobile to save space */
    .nav-links { gap: 8px; }
    .btn-3d { font-size: 0.7rem; padding: 8px 12px; min-width: 90px; }
}

/* Mobile Menu Toggle Styling */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-strip {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        padding: 20px 0;
        border-bottom: 5px solid var(--primary-color);
        z-index: 999;
    }

    .nav-strip.active {
        display: block; /* Show when clicked */
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-3d, .btn-portal-3d {
        width: 85%;
        max-width: 300px;
    }

    /* Adjust content margin for mobile because header is smaller */
    .content-wrapper {
        margin-top: 140px !important;
    }
}
/* Mobile Logic */
@media (max-width: 992px) {
    /* Hide by default */
    .nav-strip {
        display: none; 
        position: absolute;
        top: 100%; /* Sits exactly below the header */
        left: 0;
        width: 100%;
        background: #111;
        z-index: 9999;
    }

    /* SHOW when active class is added by JS */
    .nav-strip.active {
        display: block !important;
    }

    .nav-links {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
}