:root {
    --primary: #2d1b69;       /* Deep Royal Purple */
    --accent: #f59e0b;        /* Amber Orange */
    --accent-glow: rgba(245, 158, 11, 0.2);
    --text-main: #334155;
    --bg-soft: #fdfaf6;
    --container-max: 1200px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; color: var(--text-main); overflow-x: hidden; }

.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }

/* --- HEADER (VISIBLE & COLORFUL) --- */
.navbar {
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--accent);
    position: fixed; /* Ensures it stays visible */
    top: 0; width: 100%; z-index: 2000;
    display: flex; align-items: center;
}

.nav-container {
    width: 90%; max-width: var(--container-max); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 1.8rem; font-weight: 900; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 700; transition: 0.3s; }
.nav-links a:hover { color: #ef4444; }

/* --- SECTIONS --- */
.hero-section { padding: 180px 0 120px; background: var(--bg-soft); }
.text-gradient { background: linear-gradient(90deg, #f59e0b, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow { color: #10b981; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: 0.8rem; }

.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: white; padding: 50px; margin-top: -80px;
    border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-top: 6px solid #10b981;
}

.stat-num { font-size: 3rem; font-weight: 900; color: var(--primary); display: block; }

.principal-section { padding: 120px 0; background: radial-gradient(circle at 10%, rgba(245,158,11,0.1), transparent); }
.p-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.p-image-box img { width: 100%; border-radius: 30px; border: 10px solid white; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.why-us { background: var(--primary); color: white; padding: 120px 0; border-radius: 80px 0; margin-top: 100px; }
.feature-grid-premium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.f-card { background: rgba(255,255,255,0.1); padding: 40px; border-radius: 20px; transition: 0.4s; }
.f-card:hover { transform: translateY(-10px); background: var(--accent); }

/* --- FOOTER --- */
footer { background: #111827; color: white; padding: 80px 0; border-top: 8px solid #6366f1; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-section h5 { color: var(--accent); margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: white; }
/* --- Gallery Page Styles --- */

.page-title-section {
    padding: 160px 0 60px; /* Space for fixed header */
    text-align: center;
}

.page-title-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    background: var(--grad-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
}

/* --- Filtering System --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--accent);
    background: transparent;
    border-radius: 100px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 20px var(--accent-glow);
    transform: translateY(-3px);
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 100px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 350px;
    background: var(--bg-soft);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Colorful Overlays --- */
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    background: linear-gradient(to top, rgba(45, 27, 105, 0.9), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item .overlay span {
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

/* Dynamic Hover Effects */
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

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

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

/* Specific Border Colors per Category */
.gallery-item.campus { border-bottom: 5px solid #10b981; } /* Green */
.gallery-item.events { border-bottom: 5px solid #f59e0b; } /* Orange */
.gallery-item.sports { border-bottom: 5px solid #6366f1; } /* Blue */

/* --- Simple Filter Logic Animation --- */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Admission Page Specific Styles --- */

.page-header-vibrant {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.15), transparent 40%);
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary);
}

/* Step Card Enhancements */
.admission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary);
    transition: var(--transition);
}

.step-card:hover { transform: translateY(-10px); }
.orange-glow { border-color: #f59e0b; }
.green-glow { border-color: #10b981; }
.blue-glow { border-color: #3b82f6; }
.purple-glow { border-color: #a855f7; }

.step-num {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.1;
    display: block;
    margin-bottom: -20px;
}

/* Requirements & Table Section */
.details-section {
    background: var(--bg-soft);
    padding: 100px 0;
}

.admission-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.fancy-list {
    list-style: none;
    margin-top: 30px;
}

.fancy-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    color: var(--text-main);
}

.fancy-list li::before {
    content: "✓";
    color: #10b981;
    margin-right: 15px;
    font-weight: 900;
}

/* Age Table Styling */
.table-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    background: var(--primary);
    color: white;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* Download CTA */
.download-section {
    padding: 100px 0;
    text-align: center;
}

.download-box {
    background: var(--grad-warm);
    padding: 60px;
    border-radius: var(--radius-lg);
    color: white;
}

.btn-download {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: white;
    color: #ef4444;
    text-decoration: none;
    font-weight: 800;
    border-radius: 100px;
    transition: var(--transition);
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .admission-details-layout { grid-template-columns: 1fr; }
}
/* --- Mandatory Disclosure Page Fixes --- */

.disclosure {
    padding-top: 160px; /* FIX: This pushes content below the fixed header */
    padding-bottom: 100px;
}

.disclosure h1 {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.disclosure-header {
    background: var(--primary);
    color: var(--accent);
    padding: 15px 25px;
    border-radius: 12px 12px 0 0;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-top: 40px;
    display: inline-block;
}

/* --- Table Styling (Colorful & Clean) --- */
.disclosure-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.disclosure-table th {
    background: #f8fafc;
    color: var(--primary);
    text-align: left;
    padding: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
}

.disclosure-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-size: 0.95rem;
}

.disclosure-table tr:hover {
    background-color: var(--bg-soft);
}

/* --- Document Buttons --- */
.doc-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--grad-teal);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.doc-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* --- Result Grid --- */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
    .disclosure-table {
        display: block;
        overflow-x: auto; /* Allows horizontal scroll on small phones */
    }
}
/* Specific fix for the Mandatory Disclosure page alignment */
.disclosure {
    position: relative;
    z-index: 10; /* Lower than navbar, but higher than body */
    padding-top: 180px !important; /* Force the space */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #fff; /* Ensure it's not transparent */
}

/* Ensure the H1 is bold and clear */
.disclosure h1 {
    margin-bottom: 40px;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    background: var(--grad-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* --- Contact Page Styles --- */

.contact-page {
    padding-top: 160px; /* Clear fixed header */
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Info Panel Styling */
.contact-info-panel h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin: 10px 0 20px;
    line-height: 1.1;
}

.description {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    opacity: 0.8;
}

.info-block {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
}

.info-block h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #ef4444; /* Vibrant Red/Orange */
    margin-bottom: 5px;
}

.info-block p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Form Panel Styling */
.contact-form-panel {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Submit Button */
.form-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: #ef4444;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-panel {
        text-align: center;
    }
    
    .info-block {
        border-left: none;
        border-bottom: 1px solid #eee;
        padding: 0 0 20px 0;
    }
}
/* --- Facilities Page Specific Styles --- */

/* Clear the fixed header */
.page-title-section {
    padding: 160px 0 60px;
    text-align: center;
    background: var(--bg-soft);
}

.page-title-section h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
}

/* Facility Section Base */
.facility-section {
    display: flex;
    align-items: center;
    min-height: 500px;
    overflow: hidden;
}

.facility-image {
    flex: 1;
    height: 500px;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.facility-text {
    flex: 1;
    padding: 60px 10%;
}

.facility-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
}

/* Decorative colorful underlines */
.facility-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 5px;
    border-radius: 10px;
}

.facility-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

/* Alternating Layout Logic */
.facility-section.odd {
    flex-direction: row;
}

.facility-section.even {
    flex-direction: row-reverse;
    background-color: #f8fafc;
}

/* Colorful Accents per Section */
.facility-section.odd:nth-of-type(1) h3::after { background: #10b981; } /* Green for Labs */
.facility-section.even h3::after { background: #3b82f6; }               /* Blue for Classrooms */
.facility-section.odd:nth-of-type(3) h3::after { background: #f59e0b; } /* Orange for Library */

/* Hover Effects */
.facility-section:hover .facility-image {
    transform: scale(1.05);
}

/* Responsive Design for Mobile */
@media (max-width: 992px) {
    .facility-section, 
    .facility-section.even {
        flex-direction: column; /* Stack vertically on small screens */
    }
    
    .facility-image {
        width: 100%;
        height: 300px;
    }
    
    .facility-text {
        padding: 50px 20px;
        text-align: center;
    }

    .facility-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
.program-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.program-card img {
    transition: transform 0.5s ease;
}

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