/* =========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Palette: Deep Green (Laurel), Navy (Institutional), Gold (Honor/Rays) */
    --primary: #0F3D3E;       
    --primary-dark: #082829;
    --navy: #1A202C;          
    --accent: #C5A059;        
    --accent-light: #E5C585;
    --bg-light: #F9F8F4;      
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --container-width: 1280px;
    --section-padding: 5rem 1rem;
    --border-radius: 4px;
}

/* =========================================
   GLOBAL RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   COMPONENTS
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }

.btn {
    display: inline-block; padding: 0.85rem 2.5rem; background-color: var(--primary);
    color: var(--white); border: 1px solid var(--primary); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem;
    border-radius: 2px; cursor: pointer;
}

.btn:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn-gold { background-color: var(--accent); border-color: var(--accent); color: white; }
.btn-gold:hover { background-color: #b08d4b; }

.section-header { text-align: center; margin-bottom: 4rem; position: relative; }
.section-header h2 { font-size: 2.5rem; position: relative; display: inline-block; padding-bottom: 1.5rem; margin-bottom: 0.5rem; }
.section-header h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background-color: var(--accent);
    box-shadow: 0 2px 4px rgba(197, 160, 89, 0.4);
}
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.top-bar { background-color: var(--navy); color: rgba(255,255,255,0.7); font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(197, 160, 89, 0.3); }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

header { background-color: var(--white); box-shadow: var(--primary-light) 0 4px 20px rgba(15, 61, 62, 0.1); position: sticky; top: 0; z-index: 1000; border-top: 4px solid var(--accent); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { display: flex; align-items: center; gap: 1rem; font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.logo-svg { width: 50px; height: 50px; background-color: var(--primary); border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; position: relative; }
.logo-svg svg { width: 28px; height: 28px; fill: var(--accent); }
.logo-img { height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--navy); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--primary); }

/* =========================================
   SECTIONS (HERO, STATS, ABOUT, FACILITIES)
   ========================================= */
.hero {
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.15) 0%, rgba(15, 61, 62, 0.85) 90%), url('https://picsum.photos/seed/boardingbuilding/1920/1080') no-repeat center center/cover;
    height: 85vh; display: flex; align-items: center; color: var(--white); text-align: center; position: relative;
}
.hero::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 8px; background: linear-gradient(to right, transparent, var(--accent), transparent); }
.hero-content { max-width: 900px; margin: 0 auto; padding: 0 1rem; position: relative; z-index: 1; }
.hero-subtitle { display: block; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 4px; color: var(--accent); margin-bottom: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.hero h1 { font-size: 4rem; color: var(--white); margin-bottom: 1.5rem; line-height: 1.1; text-shadow: 0 4px 8px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; margin-bottom: 2.5rem; font-weight: 300; color: rgba(255,255,255,0.9); }

.stats-bar { background-color: var(--primary); color: var(--white); padding: 3.5rem 0; position: relative; overflow: hidden; }
.stats-bar::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.2; pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 2rem; position: relative; z-index: 1; }
.stat-item h3 { font-size: 3rem; color: var(--accent); margin-bottom: 0.5rem; }
.stat-item p { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; opacity: 0.9; font-family: 'Playfair Display', serif; }

.about { padding: var(--section-padding); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { position: relative; padding: 15px; border: 1px solid #E5E7EB; }
.about-img img { border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-img::before { content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border: 1px solid var(--accent); pointer-events: none; }
.quote { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-style: italic; color: var(--primary); border-left: 4px solid var(--accent); padding-left: 1.5rem; margin: 2rem 0; position: relative; }
.quote::before { content: '“'; font-size: 4rem; color: rgba(197, 160, 89, 0.2); position: absolute; top: -20px; left: -10px; }

.facilities { padding: var(--section-padding); background-color: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { border: 1px solid #E5E7EB; background: white; transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature-card:hover { box-shadow: 0 15px 30px rgba(15, 61, 62, 0.1); transform: translateY(-5px); border-color: var(--accent); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background-color: var(--primary); }
.feature-img { height: 220px; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.feature-card:hover .feature-img img { transform: scale(1.05); }
.feature-content { padding: 2rem; }

/* =========================================
   FOOTER
   ========================================= */
footer { background-color: var(--navy); color: #9CA3AF; padding: 5rem 1rem 2rem; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; max-width: var(--container-width); margin: 0 auto 4rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--white); margin-bottom: 1.5rem; display: block; }
.footer-col h4 { color: var(--white); font-family: 'Lato', sans-serif; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(197, 160, 89, 0.3); display: inline-block; padding-bottom: 0.5rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.85rem; }

/* =========================================
   NEW SECTION 1: ADMISSION OVERLAY
   (Optimized for Cross-Browser/Brave/Mobile)
   ========================================= */
.ad-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100%;
    min-width: 100%;
    background-color: rgba(15, 61, 62, 0.95);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: auto;
}

.ad-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border: 8px solid var(--accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    background: white;
    border-radius: 4px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ad-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 2px;
}

.close-overlay-btn {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border: 3px solid white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.close-overlay-btn:hover, .close-overlay-btn:focus {
    background-color: var(--accent);
    transform: scale(1.1);
    outline: none;
}

.close-link {
    margin-top: 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.close-link:hover {
    color: var(--white);
    background: rgba(0,0,0,0.4);
}

.hidden { display: none !important; }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   NEW SECTION 2: ADMISSION NOTICE (Static)
   ========================================= */
.featured-notice { /* FIXED TYPo: Changed from .featured-notice */
    background-color: var(--bg-light);
    padding: 2rem 1rem;
    border-bottom: 1px solid #eee;
}

.notice-wrapper {
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    border: 8px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.notice-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

/* Label for the notice (Optional) */
.notice-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 20px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================================
   NEW SECTION 3: ADMISSION PROCESS & REQ
   ========================================= */
.admissions { padding: var(--section-padding); background-color: var(--bg-light); }

/* Process Steps */
.process-steps { 
    display: grid; 
    /* FIXED SYNTAX: Removed extra parenthesis */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
}

.step-card { 
    background: var(--white); 
    padding: 2.5rem; 
    position: relative; 
    border-top: 6px solid var(--accent); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}

.step-number { 
    font-family: 'Playfair Display', serif; 
    font-size: 3rem; 
    color: rgba(15, 61, 62, 0.1); 
    position: absolute; 
    top: 1rem; 
    right: 1.5rem; 
    font-weight: 700; 
    line-height: 1; 
}

.step-card ul { margin-top: 1rem; }
.step-card li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; font-size: 0.9rem; color: var(--text-light); }
.step-card li::before { content: '🍃'; position: absolute; left: 0; top: 2px; font-size: 0.8rem; color: var(--primary); }

/* Requirements Rows */
.sub-heading { 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem; 
    color: var(--primary); 
    text-align: center; 
    margin-bottom: 2.5rem; 
    margin-top: 3rem; 
    position: relative; 
    display: inline-block; 
    width: 100%; 
}

.req-list { max-width: 900px; margin: 0 auto; }

.req-item { 
    background-color: var(--white); 
    padding: 2rem; 
    margin-bottom: 1.5rem; 
    border-radius: 4px; 
    border-left: 4px solid var(--accent); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    transition: transform 0.2s ease; 
}

.req-item:hover { transform: translateX(5px); }

.req-item h3 { 
    color: var(--primary); 
    font-size: 1.25rem; 
    margin-bottom: 1rem; 
    font-family: 'Playfair Display', serif; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}

.req-item ul { 
    list-style: disc; /* Explicitly setting list style */
    padding-left: 1.5rem; 
    color: var(--text-light); 
}

.req-item li { margin-bottom: 0.5rem; }

/* =========================================
   NEW SECTION 4: TIMELINE & DOWNLOADS
   ========================================= */
/* Timeline */
.timeline-section { 
    background-color: var(--white); 
    padding: 4rem 1rem; 
    margin-top: 3rem; /* Changed from -3rem to prevent overlap */
    position: relative; 
    z-index: 10; 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05); 
}

.timeline-list { 
    max-width: 800px; 
    margin: 0 auto; 
    border-left: 2px solid var(--primary); 
    padding-left: 2rem; 
}

.timeline-item { position: relative; margin-bottom: 3rem; }

.timeline-item::before { 
    content: ''; 
    position: absolute; 
    left: -2.6rem; 
    top: 5px; 
    width: 16px; 
    height: 16px; 
    background: var(--accent); 
    border-radius: 50%; 
    border: 3px solid white; 
    box-shadow: 0 0 0 2px var(--primary); 
}

.timeline-date { 
    font-family: 'Playfair Display', serif; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 1.1rem; 
    margin-bottom: 0.5rem; 
}

/* Downloads */
.downloads-section { 
    background-color: var(--bg-light); 
    padding: 5rem 1rem; 
}

.download-grid { 
    display: grid; 
    /* FIXED SYNTAX: Removed extra parenthesis */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem; 
}

.download-card { 
    background: white; 
    padding: 1.5rem; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: all 0.3s ease; 
    border-left: 4px solid var(--primary); 
}

.download-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    border-left-color: var(--accent); 
}

.file-info { display: flex; align-items: center; gap: 1rem; }

.pdf-icon { 
    width: 40px; 
    height: 40px; 
    background: #ffebee; 
    color: #d32f2f; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    font-size: 0.8rem; 
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-img { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 90px; left: 0; width: 100%; background: var(--white); padding: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: block; }
    .top-bar .container { flex-direction: column; gap: 0.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================
   NOTICE BANNER
   ========================================= */
.notice-banner {
        background-color: var(--accent); /* Gold Background */
        color: var(--primary-dark);     /* Dark Green Text */
        padding: 1rem 0;
        text-align: center;
        position: relative;
        z-index: 1001; /* Sits below sticky header (1000) but above content */
        border-bottom: 3px solid var(--primary);
    }

    .notice-banner .container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding-right: 3rem; /* Space for the close button */
    }

    .notice-text {
        font-family: 'Lato', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        margin: 0;
    }

    .close-notice {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-dark);
        cursor: pointer;
        line-height: 1;
        transition: color 0.3s;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-notice:hover {
        background-color: rgba(0,0,0,0.1);
        color: var(--white);
    }
	
   /* CSS for NEW Performance Section */
    .performance-section {
        background-color: var(--white);
        padding: 4rem 1rem;
        border-bottom: 1px solid #eee;
    }

    .perf-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .perf-card {
        background-color: #fff;
        padding: 2rem 1.5rem;
        text-align: center;
        border: 1px solid #e5e7eb;
        border-top: 6px solid var(--accent); /* Gold top bar */
        border-radius: 4px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .perf-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-color: var(--primary);
    }

    .perf-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--accent);
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        opacity: 0.5;
    }

    .perf-value {
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 0.5rem;
        display: block;
        line-height: 1.1;
    }

    .perf-label {
        font-family: 'Lato', sans-serif;
        font-size: 0.85rem;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 700;
    }
    
    .perf-sub {
        font-size: 0.8rem;
        color: var(--text-dark);
        margin-top: 0.25rem;
        display: block;
    }