/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0b5e3e;     /* Deep Forest Green */
    --secondary-color: #fca311;   /* Rich Gold / Yellow */
    --accent-color: #d90429;      
    --bg-light: #f4f7f6;
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --card-bg: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden;}

/* --- Top Utility Bar --- */
.top-bar {
    background-color: #07402a; color: var(--text-light);
    display: flex; justify-content: space-between; padding: 8px 5%; font-size: 0.85rem;
}
.top-bar-left span { margin-right: 20px; }
.top-bar-left i { color: var(--secondary-color); margin-right: 5px; }
.top-bar-right a { color: var(--text-light); text-decoration: none; margin-left: 15px; transition: color 0.3s; }
.top-bar-right a:hover { color: var(--secondary-color); }

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--text-light); color: var(--primary-color);
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 5%; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-bottom: 4px solid var(--primary-color);
}
.logo-container { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.school-logo { width: 65px; height: auto; object-fit: contain; filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1)); }

.school-name h1 { font-size: 20px; letter-spacing: 1px; font-weight: 800; text-transform: uppercase; white-space: nowrap;}
.school-name p { font-size: 12px; color: #555; font-weight: bold; margin-top: -2px;}

.navbar { display: flex; align-items: center; justify-content: flex-end; width: 100%;}
.nav-links { list-style: none; display: flex; gap: 4px; align-items: center; margin-left: auto;}
.nav-links li a {
    color: var(--primary-color); text-decoration: none; font-weight: 600;
    padding: 8px 12px; transition: all 0.3s ease; border-radius: 4px; 
    font-size: 0.9rem; white-space: nowrap;
}
.nav-links li a:hover, .nav-links li a.active { background-color: var(--primary-color); color: var(--text-light); }
.hamburger { display: none; }

/* --- Dropdown Menus (Full-Width Hover Fix) --- */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: var(--primary-color); list-style: none;
    min-width: 240px; box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000; border-top: 4px solid var(--secondary-color);
    padding: 0; margin: 0;
}
.dropdown:hover .dropdown-menu { display: block; animation: fadeInMenu 0.3s ease forwards; }
@keyframes fadeInMenu { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dropdown-menu li a { 
    display: block !important; width: 100%; color: var(--text-light) !important; 
    padding: 12px 20px; font-weight: 400; border-radius: 0 !important; 
    transition: all 0.3s ease; box-sizing: border-box; 
}
.dropdown-menu li a:hover { background-color: var(--secondary-color) !important; color: var(--primary-color) !important; padding-left: 25px; }

/* Login Button */
.btn-login {
    background-color: var(--secondary-color) !important; color: var(--primary-color) !important;
    border-radius: 20px !important; margin-left: 5px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-login:hover { background-color: var(--primary-color) !important; color: var(--text-light) !important; transform: translateY(-2px); }

/* =========================================
   PREMIUM HERO SLIDER
   ========================================= */
.premium-hero-slider {
    position: relative;
    width: 100%;
    height: 80vh; /* Adjust height as needed */
    min-height: 500px;
    overflow: hidden;
    background-color: #1e293b;
}

.slider-container { width: 100%; height: 100%; position: relative; }

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

/* Apply the exact same layout and animation to both Images and Videos */
.hero-slide .slide-media {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.05); 
    transition: transform 6s ease;
}

.hero-slide.active .slide-media { 
    transform: scale(1); 
}

.slide-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: absolute;
    top: 50%; left: 10%;
    transform: translateY(-50%);
    color: white;
    max-width: 600px;
    z-index: 3;
}

.slide-subtitle {
    display: inline-block;
    font-size: 1.1rem; font-weight: 700; color: var(--secondary-color);
    text-transform: uppercase; letter-spacing: 3px; margin-bottom: 15px;
    transform: translateY(20px); opacity: 0; transition: all 0.6s ease 0.3s;
}

.slide-title {
    font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px;
    transform: translateY(20px); opacity: 0; transition: all 0.6s ease 0.5s;
}

.slide-desc {
    font-size: 1.2rem; line-height: 1.6; color: #e2e8f0; margin-bottom: 30px;
    transform: translateY(20px); opacity: 0; transition: all 0.6s ease 0.7s;
}

.slide-btn {
    display: inline-block; padding: 15px 30px; background-color: var(--secondary-color);
    color: var(--primary-color); font-weight: 800; text-decoration: none; border-radius: 5px;
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
    transform: translateY(20px); opacity: 0; transition: all 0.6s ease 0.9s;
}

.slide-btn:hover { background-color: white; color: var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Animate Content in Active Slide */
.hero-slide.active .slide-subtitle, 
.hero-slide.active .slide-title, 
.hero-slide.active .slide-desc, 
.hero-slide.active .slide-btn { transform: translateY(0); opacity: 1; }

/* Elegant Slider Controls */
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); backdrop-filter: blur(5px); border: 2px solid rgba(255,255,255,0.3);
    color: white; width: 60px; height: 60px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; z-index: 10; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: var(--secondary-color); color: var(--primary-color); border-color: var(--secondary-color); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

/* Slider Dots */
.slider-dots {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.dot {
    width: 12px; height: 12px; background: rgba(255,255,255,0.4);
    border-radius: 50%; cursor: pointer; transition: all 0.3s ease;
}
.dot:hover { background: rgba(255,255,255,0.8); }
.dot.active { background: var(--secondary-color); width: 30px; border-radius: 10px; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 40px; padding-top: 40px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary-color); font-weight: 700; text-transform: uppercase;}
.header-line { width: 80px; height: 4px; background-color: var(--secondary-color); margin-top: 10px; border-radius: 2px; }

/* --- Info Section: Message & Circulars --- */
.info-section { display: flex; padding: 60px 5%; gap: 40px; align-items: stretch; }

.achievements-box {
    flex: 1.5; background: white; padding: 40px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-left: 6px solid var(--primary-color);
}
.achievements-box h2 { font-size: 2rem; color: var(--primary-color); font-weight: 700; }
.quote-icon { font-size: 3rem; color: rgba(252, 163, 17, 0.2); position: absolute; top: -10px; left: -15px; }
.lead-text { font-size: 1.1rem; color: #4a5568; position: relative; z-index: 1; text-align: justify; font-style: italic; }

.btn-primary { margin-top: 20px; background-color: var(--primary-color); color: white; padding: 12px 25px; border: none; border-radius: 4px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
.btn-primary:hover { background-color: var(--secondary-color); color: var(--primary-color); }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 40px; padding-top: 40px; }
.section-header h2 { font-size: 2.2rem; color: var(--primary-color); font-weight: 700; text-transform: uppercase;}
.header-line { width: 80px; height: 4px; background-color: var(--secondary-color); margin-top: 10px; border-radius: 2px; }

/* --- Info Section: Message & Circulars --- */
.info-section { display: flex; padding: 60px 5%; gap: 40px; align-items: stretch; }

.achievements-box {
    flex: 1.5; background: white; padding: 40px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-left: 6px solid var(--primary-color);
}
.achievements-box h2 { font-size: 2rem; color: var(--primary-color); font-weight: 700; }
.quote-icon { font-size: 3rem; color: rgba(252, 163, 17, 0.2); position: absolute; top: -10px; left: -15px; }
.lead-text { font-size: 1.1rem; color: #4a5568; position: relative; z-index: 1; text-align: justify; font-style: italic; }

.btn-primary { margin-top: 20px; background-color: var(--primary-color); color: white; padding: 12px 25px; border: none; border-radius: 4px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
.btn-primary:hover { background-color: var(--secondary-color); color: var(--primary-color); }

/* Notice Board */
.notice-board {
    flex: 1; background-color: white; border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 5px solid var(--secondary-color);
    display: flex; flex-direction: column; height: 450px;
}
.notice-header { 
    background-color: var(--primary-color); color: var(--secondary-color); 
    padding: 20px; text-align: center; 
    z-index: 2; position: relative; /* Keeps header above the scrolling text */
}
.notice-header h3 { font-size: 1.4rem; color: white; margin: 0; }

/* The Container - Completely hides scrollbars */
.notice-content {
    flex-grow: 1; 
    position: relative; /* Required for absolute child */
    overflow: hidden;   /* Physically impossible for scrollbars to exist now */
    background-color: #f8fafc; 
    cursor: pointer; 
}

/* The List - Positioned to animate smoothly */
.notice-list { 
    list-style: none; 
    margin: 0; 
    padding: 15px; 
    position: absolute; 
    width: 100%; 
    box-sizing: border-box;
    top: 0;
    left: 0;
    will-change: transform; /* Forces GPU acceleration for butter-smooth scrolling */
}

.notice-list li {
    background: white; padding: 15px; margin-bottom: 12px;
    border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 5px solid transparent; transition: transform 0.2s;
}
.notice-list li:hover { transform: translateX(5px); }
.notice-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.notice-date { font-weight: bold; color: #475569; font-size: 0.8rem; }
.notice-badge { padding: 3px 8px; border-radius: 12px; color: white; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.5px; font-weight: bold; }
.notice-text { font-size: 0.9rem; color: var(--text-dark); line-height: 1.4; margin: 0;}

/* --- Wings Section --- */
.wings-section { padding: 20px 5% 60px 5%; background-color: var(--text-light); }
.wings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-top: 30px; }
.wing-card { background: var(--bg-light); padding: 30px 20px; text-align: center; border-radius: 8px; transition: transform 0.3s, box-shadow 0.3s; border-bottom: 4px solid transparent; }
.wing-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--secondary-color); }
.wing-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }
.wing-card h3 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 10px; }

/* --- Parallax Section --- */
.parallax-section {
    position: relative; height: 400px; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; margin: 40px 0;
    background-image: linear-gradient(rgba(11, 94, 62, 0.8), rgba(11, 94, 62, 0.8)), url('../images/lecroom.jfif');
    background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover;
}
.parallax-content { z-index: 2; padding: 0 20px; }
.parallax-content h2 { font-size: 2.8rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.parallax-content p { font-size: 1.2rem; margin-bottom: 25px; font-weight: 300; }

/* =========================================
   IMAGE GALLERY & LIGHTBOX
   ========================================= */
.school-gallery-section { padding: 80px 5%; background-color: white; }

.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.filter-btn {
    padding: 10px 25px; background: #f8fafc; border: 1px solid #cbd5e1;
    border-radius: 30px; font-weight: 700; color: #64748b; cursor: pointer; transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color); color: white; border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(11, 94, 62, 0.2);
}

/* CSS Grid for Mobile Responsiveness */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; height: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: all 0.4s ease;
}

.gallery-item.hide { display: none; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 94, 62, 0.7); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2.5rem; transform: scale(0.5); transition: transform 0.3s ease; }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

/* The Lightbox (Fullscreen Image Viewer) */
.gallery-lightbox {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}
.lightbox-content { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-close {
    position: absolute; top: 20px; right: 35px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s ease;
}
.lightbox-close:hover { color: var(--secondary-color); }

/* --- Advanced Scroll Animations --- */
.reveal { opacity: 0; will-change: transform, opacity; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.slide-up { transform: translateY(60px); }
.reveal.slide-up.active { opacity: 1; transform: translateY(0); }
.reveal.zoom-in { transform: scale(0.8); }
.reveal.zoom-in.active { opacity: 1; transform: scale(1); }
.reveal.fade-in { transform: translateY(0); }
.reveal.fade-in.active { opacity: 1; }

/* --- Footer --- */
.main-footer { background-color: #07402a; color: #cbd5e1; padding-top: 50px; border-top: 5px solid var(--secondary-color); }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 5%; gap: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: var(--text-light); margin-bottom: 20px; font-size: 1.2rem; border-bottom: 2px solid var(--secondary-color); display: inline-block; padding-bottom: 5px; }
.links-col ul { list-style: none; }
.links-col ul li { margin-bottom: 10px; }
.links-col ul li a { color: #cbd5e1; text-decoration: none; transition: color 0.3s; }
.links-col ul li a:hover { color: var(--secondary-color); }
.contact-col i { color: var(--secondary-color); margin-right: 10px; }
.footer-bottom { text-align: center; padding: 20px; background-color: #04291a; margin-top: 40px; font-size: 0.9rem; color: #94a3b8; }

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.page-hero { height: 300px; background: linear-gradient(rgba(11, 94, 62, 0.85), rgba(11, 94, 62, 0.85)), url('../images/contact.avif') center/cover; display: flex; align-items: center; justify-content: center; text-align: center; color: white; border-bottom: 4px solid var(--secondary-color); }
.page-hero h2 { font-size: 3rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--secondary-color); }
.page-hero p { font-size: 1.2rem; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 45px 5%; max-width: 1400px; margin: 0 auto; }
.general-info { margin-bottom: 40px; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 20px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 4px solid var(--secondary-color); }
.info-icon { font-size: 2rem; color: var(--primary-color); margin-right: 10px; background: var(--bg-light); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.info-text h4 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; }
.info-text p { color: #555; line-height: 1.5; }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dept-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s; border-top: 3px solid transparent; }
.dept-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--primary-color); }
/* Target only the main big icon at the top of the card */
.dept-card > i { font-size: 1.8rem; color: var(--secondary-color); margin-bottom: 12px; }
/* Style the new small inline email/phone icons */
.dept-card .small-icon { font-size: 0.85rem; color: inherit; margin-bottom: 0; margin-right: 6px; }
.dept-card h4 { color: var(--primary-color); margin-bottom: 5px; }
.dept-card p { font-size: 0.85rem; color: #666; margin-bottom: 10px; }
.dept-card a { display: block; color: var(--primary-color); font-size: 0.85rem; text-decoration: none; margin-bottom: 5px; font-weight: bold;}
.dept-card a:hover { color: var(--secondary-color); }
.dept-card span { font-size: 0.85rem; color: #444; font-weight: bold; }

.form-box { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 6px solid var(--primary-color); }
.form-box h3 { font-size: 1.8rem; color: var(--primary-color); margin-bottom: 0px; }
.form-box p { color: #666; margin-bottom: 0px; }
.modern-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: bold; color: var(--primary-color); margin-bottom: 0px; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon i { position: absolute; left: 15px; color: #94a3b8; font-size: 1.1rem; }
.input-with-icon input, .input-with-icon select { width: 100%; padding: 12px 12px 12px 45px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; color: var(--text-dark); background-color: #f8fafc; transition: all 0.3s ease; }
.modern-form textarea { width: 100%; padding: 15px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; color: var(--text-dark); background-color: #f8fafc; transition: all 0.3s ease; resize: vertical; }
.input-with-icon input:focus, .input-with-icon select:focus, .modern-form textarea:focus { outline: none; border-color: var(--secondary-color); background-color: white; box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.2); }
.input-with-icon input:focus + i, .input-with-icon select:focus + i { color: var(--secondary-color); }

.btn-submit-large { width: 100%; background-color: var(--primary-color); color: white; padding: 15px; border: none; border-radius: 6px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.btn-submit-large:hover { background-color: var(--secondary-color); color: var(--primary-color); }
.map-section { line-height: 0; }

/* =========================================
   ABOUT US PAGE STYLES
   ========================================= */

/* Story Section */
.about-story-section { padding: 80px 5%; background-color: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; max-width: 1300px; margin: 0 auto; }
.section-title { font-size: 2.5rem; color: var(--text-dark); }
.section-title span { color: var(--primary-color); }
.about-text p { font-size: 1.1rem; color: #555; margin-bottom: 20px; line-height: 1.8; text-align: justify;}

.stats-row { display: flex; gap: 30px; margin-top: 40px; }
.stat-box { border-left: 4px solid var(--secondary-color); padding-left: 15px; }
.stat-box h3 { font-size: 2rem; color: var(--primary-color); line-height: 1; margin-bottom: 5px; }
.stat-box p { font-size: 0.9rem; color: #666; margin: 0; font-weight: bold; text-transform: uppercase;}

/* Modern Offset Image Frame */
.image-offset-frame { position: relative; z-index: 1; border-radius: 8px; }
.image-offset-frame::before { 
    content: ''; position: absolute; top: 25px; left: -25px; 
    width: 100%; height: 100%; 
    background-color: var(--secondary-color); 
    border-radius: 8px; z-index: -1; 
    transition: transform 0.4s ease;
}
.about-grid:hover .image-offset-frame::before { transform: translate(10px, -10px); }
.image-offset-frame img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); object-fit: cover; aspect-ratio: 4/3;}

/* Vision & Mission (Dark Section) */
.vision-mission-section { background-color: var(--primary-color); padding: 80px 5%; color: white; position: relative; overflow: hidden;}
/* Decorative background element */
.vision-mission-section::after { content: '\f19d'; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; right: -50px; top: -50px; font-size: 25rem; color: rgba(255,255,255,0.03); z-index: 0; }

.vm-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;}
.vm-card { background: rgba(255, 255, 255, 0.05); padding: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); transition: transform 0.3s ease;}
.vm-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); }
.vm-icon { background: var(--secondary-color); color: var(--primary-color); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.8rem; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3); }
.vm-card h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--secondary-color); }
.vm-card p { font-size: 1.1rem; line-height: 1.7; color: #e2e8f0; }

/* Core Values Section */
.core-values-section { padding: 80px 5%; background-color: white; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; max-width: 1200px; margin: 40px auto 0 auto; }
.value-card { padding: 40px 25px; text-align: center; background: var(--bg-light); border-radius: 8px; border-bottom: 4px solid var(--secondary-color); transition: all 0.3s ease; }
.value-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); background: white; }
.value-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; transition: transform 0.3s ease;}
.value-card:hover i { transform: scale(1.1); color: var(--secondary-color); }
.value-card h4 { font-size: 1.3rem; color: var(--text-dark); margin-bottom: 10px; }
.value-card p { color: #666; font-size: 0.95rem; }

/* Leadership Section */
.leadership-section { padding: 80px 5%; background-color: var(--bg-light); border-top: 1px solid #e2e8f0; }
.leadership-container { display: flex; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto; background: white; padding: 40px; margin-bottom: 40px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.leadership-image img { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; border: 6px solid var(--bg-light); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.leadership-text { position: relative; }
.quote-mark { font-size: 4rem; color: rgba(11, 94, 62, 0.08); position: absolute; top: -20px; left: -20px; z-index: 0; }
.quote-text { font-size: 1.2rem; font-style: italic; color: #444; line-height: 1.8; margin-bottom: 25px; position: relative; z-index: 1; }
.leader-name h4 { color: var(--primary-color); font-size: 1.3rem; }
.leader-name p { color: var(--secondary-color); font-weight: bold; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* =========================================
   STAFF & MANAGEMENT PAGE STYLES
   ========================================= */
.team-section { padding: 80px 5%; background-color: var(--bg-light); }
.management-bg { background-color: white; border-bottom: 2px dashed #cbd5e1; }
.section-subtitle { text-align: center; color: #64748b; font-size: 1.1rem; margin-top: 15px; max-width: 600px; margin: 15px auto 0 auto; }

/* Committee Sub-titles */
.committee-title {
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: -10px; /* Pulls the grid slightly closer to the title */
    position: relative;
    font-weight: 700;
}

.committee-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* Management Directory */
.management-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1200px; margin: 40px auto 0 auto; }
.mgmt-list-card { background: white; display: flex; align-items: center; padding: 18px 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.04); border-left: 4px solid var(--secondary-color); transition: transform 0.3s ease, box-shadow 0.3s, border-color 0.3s; }
.mgmt-list-card:hover { transform: translateX(8px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); border-left-color: var(--primary-color); }
.mgmt-icon { font-size: 1.6rem; color: #cbd5e1; margin-right: 18px; transition: color 0.3s ease; }
.mgmt-list-card:hover .mgmt-icon { color: var(--primary-color); }
.mgmt-info h3 { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 3px; font-weight: 700; }
.mgmt-info p { font-size: 0.85rem; color: var(--secondary-color); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }

/* Compact Card + Circular Photo Grid (Faculty) */
.faculty-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 15px; max-width: 1400px; margin: 50px auto 0 auto; display: grid;}
.faculty-grid .profile-card { background-color: #f8fafc; border-radius: 6px; border-bottom: 3px solid var(--primary-color); position: relative; overflow: hidden; padding-top: 15px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.06); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.faculty-grid .profile-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); border-bottom-color: var(--secondary-color); }

/* Circular Image inside Rectangular Card */
.profile-img-container { position: relative; width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; overflow: hidden; background-color: #e2e8f0; border: 2px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.06); }
.profile-img-container img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 0.5s ease; }
.profile-card:hover .profile-img-container img { transform: scale(1.1); }
.fallback-icon-rect { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #cbd5e1; transition: color 0.3s ease; }
.profile-card:hover .fallback-icon-rect { color: var(--secondary-color); }

/* Padding & Text Lift effect for Qualification Badge */
.faculty-grid .profile-info { padding: 10px 8px 30px 8px; background-color: transparent; transition: transform 0.3s ease; }
.profile-card:hover .profile-info { transform: translateY(-4px); }
.faculty-grid .profile-info h3 { font-size: 0.8rem; margin-bottom: 3px; line-height: 1.15; word-wrap: break-word; color: var(--primary-color);}
.faculty-grid .profile-info .designation { font-size: 0.65rem; letter-spacing: 0; line-height: 1.2; color: var(--secondary-color); font-weight: 600; text-transform: uppercase;}

/* Qualification Badge Bar */
.qualification-badge { position: absolute; bottom: -40px; left: 0; right: 0; background: rgba(11, 94, 62, 0.95); color: white; padding: 6px 4px; font-size: 0.65rem; font-weight: bold; text-align: center; opacity: 0; transition: all 0.3s ease; z-index: 10; }
.profile-card:hover .qualification-badge { bottom: 0; opacity: 1; }

/* =========================================
   ACADEMIC CALENDAR (Advanced Timeline)
   ========================================= */

.calendar-section {
    padding: 80px 5%;
    background-color: var(--bg-light);
    min-height: 800px;
}

/* Interactive Filter Buttons */
.calendar-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: white;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.filter-btn i {
    margin-right: 6px;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(252, 163, 17, 0.15);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(11, 94, 62, 0.3);
}

.filter-btn.active i {
    color: var(--secondary-color);
}

/* The Vertical Timeline Container */
.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The Glowing Center Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--secondary-color) 10%, var(--primary-color) 90%, transparent);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Timeline Rows */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Filtering classes */
.timeline-item.hide {
    display: none;
}

/* Left and Right Alignment */
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

/* The Central Floating Icons */
.timeline-icon {
    position: absolute;
    top: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px white, 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
    transition: transform 0.3s ease;
}

.timeline-item.left .timeline-icon { right: -23px; }
.timeline-item.right .timeline-icon { left: -23px; }

.timeline-item:hover .timeline-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Dynamic Icon Colors based on Category */
.timeline-exam { color: #d90429; border: 2px solid #d90429; }
.timeline-holiday { color: #0b5e3e; border: 2px solid #0b5e3e; }
.timeline-activity { color: #fca311; border: 2px solid #fca311; }

/* The Content Cards */
.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent; /* Colored dynamically below */
}

.timeline-content.timeline-exam { border-top-color: #d90429; }
.timeline-content.timeline-holiday { border-top-color: #0b5e3e; }
.timeline-content.timeline-activity { border-top-color: #fca311; }

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* The Big Date Badge on the side of the card */
.timeline-date-badge {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 15px 10px;
    min-width: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.timeline-date-badge .day {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.timeline-date-badge .month {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Text Content */
.timeline-text { flex: 1; }
.timeline-text .full-date {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: bold;
}
.timeline-text h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}
.timeline-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* =========================================
   CIRCULARS PAGE (Accordion Layout)
   ========================================= */

.circulars-section {
    padding: 60px 5%;
    background-color: var(--bg-light);
    min-height: 600px;
}

.accordion-container {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Accordion Header/Button */
.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 5px solid var(--secondary-color);
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-header.active {
    background-color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.year-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-title i { color: var(--secondary-color); }

.accordion-header.active .year-title,
.accordion-header.active .year-title i {
    color: white;
}

/* Accordion Chevron Icon */
.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.accordion-header.active .accordion-icon {
    color: white;
    transform: rotate(180deg); /* Flips the arrow when open */
}

/* Accordion Content Area */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #f8fafc;
}

.accordion-body-inner {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* The Individual Circular Card */
.circular-full-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 4px solid transparent; /* Colored dynamically by PHP */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circular-full-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.circular-left {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-right: 1px solid #e2e8f0;
    padding-right: 15px;
    margin-right: 20px;
}

.circular-date {
    color: #475569;
    font-size: 0.9rem;
}

.circular-badge {
    padding: 3px 10px;
    border-radius: 12px;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.circular-center {
    flex-grow: 1;
}

.circular-center p {
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.circular-right {
    min-width: 100px;
    text-align: right;
    padding-left: 15px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #f1f5f9;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Animated Shifting Gradient Badge */
.badge-new-glowing {
    display: inline-block;
    background: linear-gradient(270deg, #ff416c, #ff4b2b, #fca311, #ff416c);
    background-size: 300% 300%;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
    /* Combines the moving background with the pulsing shadow */
    animation: shiftGradient 3s ease infinite, glowGradient 1.5s infinite alternate;
}

@keyframes shiftGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowGradient {
    0% { box-shadow: 0 0 4px rgba(255, 65, 108, 0.4); }
    100% { box-shadow: 0 0 14px rgba(255, 75, 43, 0.8); }
}

/* =========================================
   ACHIEVEMENTS PAGE (Joyful & Colourful)
   ========================================= */

/* Joyful Hero Banner with Gradient Overlay */
.achievement-hero {
    background: linear-gradient(135deg, rgba(11, 94, 62, 0.9) 0%, rgba(252, 163, 17, 0.8) 100%), url('../images/hall.avif') center/cover;
    position: relative;
    overflow: hidden;
}

/* Academic Toppers Section */
.toppers-section {
    padding: 80px 5% 40px 5%;
    background-color: #f8fafc;
}

/* Dynamic Year Tabs */
.year-tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.year-tab-btn {
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.year-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(11, 94, 62, 0.2);
}

.year-tab-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 8px 15px rgba(11, 94, 62, 0.3);
}

/* Toppers Content Area */
.year-content-panel {
    display: none; /* Hidden by default, JS turns it to block */
    animation: fadeInTab 0.5s ease;
}

.year-content-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.class-group {
    margin-bottom: 60px;
    text-align: center;
}

.class-title {
    display: inline-block;
    font-size: 1.8rem;
    color: white;
    background-color: var(--primary-color);
    padding: 8px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Stream Title (PCM, PCB, etc.) */
.stream-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 20px 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.stream-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* Toppers Grid */
.toppers-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* The Joyful Topper Card */
.topper-card {
    background: white;
    width: 260px;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
    border-top: 6px solid white; /* Colored dynamically in HTML */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Subtle continuous floating animation for a joyful feel */
.float-anim {
    animation: floatCard 6s ease-in-out infinite;
}
.float-anim:nth-child(even) { animation-delay: 1s; }
.float-anim:nth-child(3n) { animation-delay: 2s; }

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Medal Rank Badge */
.topper-rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Topper Image */
.topper-img-frame {
    width: 120px;
    height: 120px;
    margin: 10px auto 20px auto;
    border-radius: 50%;
    border: 4px solid; /* Color injected via PHP */
    padding: 4px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.topper-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.topper-info h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.percentage-pill {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(252, 163, 17, 0.3);
}

/* =========================================
   OTHER ACHIEVEMENTS (Colorful Grid)
   ========================================= */
.other-achievements-section {
    padding: 60px 5% 80px 5%;
    background-color: white;
}

.achievements-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.achievement-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
    border-bottom: 5px solid; /* Colored dynamically via PHP */
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.achievement-img {
    width: 100%;
    height: 200px;
    position: relative;
}

.achievement-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.achievement-text {
    padding: 25px;
}

.achievement-text h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.achievement-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   FEE STRUCTURE PAGE (Modern Pricing Cards)
   ========================================= */

.fee-section {
    padding: 80px 5%;
    background-color: var(--bg-light);
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 50px auto 60px auto;
}

/* Individual Fee Card */
.fee-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.fee-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Header of the Card */
.fee-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.fee-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.fee-card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.stream-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 10px;
    text-transform: uppercase;
}

/* The Big Price Display */
.fee-price-circle {
    background: #f8fafc;
    padding: 25px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.fee-price-circle .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    vertical-align: top;
    margin-top: 5px;
    display: inline-block;
}

.fee-price-circle .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.fee-price-circle .period {
    font-size: 1rem;
    color: #64748b;
    font-weight: bold;
}

/* Detailed List Breakdown */
.fee-details {
    padding: 25px;
    flex-grow: 1;
}

.fee-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fee-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.fee-details li:last-child {
    border-bottom: none;
}

.fee-label {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.fee-label small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.fee-value {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.05rem;
}

/* Highlight the Admission Fee row slightly */
.highlight-row {
    background-color: rgba(252, 163, 17, 0.05);
    padding: 15px 10px !important;
    border-radius: 6px;
    margin-top: 5px;
}

/* Button Area */
.fee-card-footer {
    padding: 0 25px 30px 25px;
}

.btn-pay-now {
    width: 100%;
    padding: 14px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-pay-now:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Payment Guidelines Box */
.payment-instructions {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 6px solid var(--primary-color);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.instruction-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.instruction-text h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.instruction-text ul {
    list-style: none;
    padding: 0;
}

.instruction-text li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.5;
}

.instruction-text li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* =========================================
   RULES & REGULATIONS PAGE
   ========================================= */

.rules-section {
    padding: 60px 5% 80px 5%;
    background-color: var(--bg-light);
    min-height: 700px;
}

/* Strict CBSE Mandate Box */
.cbse-mandate-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    background: linear-gradient(to right, #ffffff, #fffdf8);
    border: 2px solid var(--secondary-color);
    border-left: 8px solid var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(252, 163, 17, 0.15);
}

.cbse-icon {
    background-color: var(--secondary-color);
    color: white;
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cbse-text h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbse-text p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* Visual Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Rule Cards */
.rule-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid transparent;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.rule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--primary-color);
}

.rule-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.rule-card:hover .rule-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.rule-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.rule-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   ADMISSIONS PAGE STYLES (Paste in main CSS)
   ========================================= */

/* Hero Button Pulsing Effect */
.hero-actions { margin-top: 30px; }
.btn-apply-pulse {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.7);
    animation: pulseApplyBtn 2s infinite;
    transition: all 0.3s ease;
}
.btn-apply-pulse:hover {
    background-color: white;
    color: var(--primary-color);
    animation: none;
    transform: translateY(-3px);
}
@keyframes pulseApplyBtn {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(252, 163, 17, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); }
}

/* Intro Section */
.intro-section { padding: 80px 5%; background-color: white; }
.intro-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1300px; margin: 0 auto; align-items: center; }
.intro-text p { font-size: 1.05rem; color: #555; line-height: 1.7; margin-bottom: 20px; }
.intro-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

/* Step-by-Step Procedure */
.procedure-section { padding: 80px 5%; background-color: var(--bg-light); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1300px; margin: 50px auto 0; counter-reset: step-counter; }
.step-card { background: white; padding: 40px 25px; border-radius: 12px; text-align: center; position: relative; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; border-top: 5px solid var(--primary-color); }
.step-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.step-number { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; background-color: var(--secondary-color); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2rem; border: 4px solid var(--bg-light); }
.step-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; margin-top: 10px; }
.step-card h3 { color: var(--text-dark); margin-bottom: 10px; }
.step-card p { color: #64748b; font-size: 0.95rem; line-height: 1.5; }

/* NEP Age Grid Section */
.criteria-docs-section { padding: 60px 5%; background-color: white; }
.criteria-container { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

.age-criteria-wrapper { background: white; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 20px; }
.criteria-header { background-color: var(--primary-color); color: white; padding: 20px 25px; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.nep-badge { background-color: var(--secondary-color); color: var(--primary-color); font-size: 0.8rem; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.criteria-note { background-color: #f8fafc; padding: 15px 25px; color: #475569; font-size: 0.95rem; border-bottom: 1px solid #e2e8f0; }
.criteria-note i { color: var(--secondary-color); margin-right: 5px; }
.age-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 25px; background-color: white; }
.age-stage-card { border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.age-stage-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.stage-header { padding: 15px; color: white; font-weight: 800; font-size: 1.1rem; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.stage-header i { font-size: 1.5rem; }
.stage-foundational .stage-header { background-color: var(--secondary-color); color: var(--primary-color); }
.stage-preparatory .stage-header { background-color: #3b82f6; }
.stage-middle .stage-header { background-color: var(--accent-color); }
.stage-secondary .stage-header { background-color: #0f172a; }

.stage-body { padding: 10px 20px 20px 20px; background-color: #fcfcfc; }
.age-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #cbd5e1; }
.age-row:last-child { border-bottom: none; }
.class-label { font-weight: 800; color: var(--primary-color); font-size: 0.95rem; }
.age-val { color: #475569; font-weight: 600; font-size: 0.9rem; background: white; padding: 4px 8px; border-radius: 4px; border: 1px solid #e2e8f0; }

/* Docs & Test Grid */
.docs-test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-card { background: white; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column;}
.info-card-header { padding: 15px 20px; font-size: 1.2rem; font-weight: bold; color: white; }
.green-header { background-color: var(--primary-color); }
.gold-header { background-color: var(--secondary-color); color: var(--primary-color); }
.info-card-body { padding: 20px; flex-grow: 1;}

.custom-check-list { list-style: none; padding: 20px; margin: 0; }
.custom-check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; color: #475569; font-size: 0.95rem; line-height: 1.5; }
.custom-check-list li i { color: var(--primary-color); font-size: 1.1rem; margin-top: 3px; }
.alert-light { background-color: #fffbeb; border-left: 4px solid var(--secondary-color); padding: 15px; border-radius: 4px; color: #92400e; font-size: 0.9rem; line-height: 1.5; }

/* Important Instructions Warning Box */
.instructions-section { padding: 0 5% 60px; background-color: white; }
.instructions-box { display: flex; align-items: center; gap: 25px; max-width: 1300px; margin: 0 auto; background-color: #fef2f2; border: 1px solid #fecaca; border-left: 6px solid #ef4444; padding: 30px; border-radius: 8px; }
.inst-icon { font-size: 2.5rem; color: #ef4444; }
.inst-content h3 { color: #b91c1c; margin-bottom: 10px; }
.inst-content p { color: #7f1d1d; margin: 0; line-height: 1.6; }

/* Enquiry Section */
.enquiry-section { padding: 80px 5%; background-color: var(--bg-light); }
.enquiry-container { max-width: 800px; margin: 0 auto; background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 6px solid var(--primary-color); }

/* =========================================
   INFRASTRUCTURE PAGE STYLES
   ========================================= */

.infra-intro {
    padding: 60px 5% 20px 5%;
    background-color: var(--bg-light);
}

/* Zig-Zag Facility Layout */
.infra-major-facilities {
    padding: 40px 5% 80px 5%;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 80px; /* Space between each row */
}

.facility-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Reverse row for the Zig-Zag effect */
.facility-row.reverse {
    flex-direction: row-reverse;
}

/* Image Side */
.facility-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.facility-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 0 10px rgba(255,255,255,0.2);
    border-radius: 16px;
    pointer-events: none;
    z-index: 2;
}

.facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.facility-row:hover .facility-img {
    transform: scale(1.08);
}

.facility-floating-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 3;
    transition: transform 0.3s ease;
}

.facility-row.reverse .facility-floating-badge {
    right: auto;
    left: -20px;
}

.facility-row:hover .facility-floating-badge {
    transform: translateY(-5px);
}

/* Text Side */
.facility-text-wrapper {
    flex: 1;
}

.facility-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.facility-text-wrapper p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.facility-features {
    list-style: none;
    padding: 0;
}

.facility-features li {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.facility-features li i {
    color: white;
    background-color: var(--secondary-color);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
}

/* Support Facilities Grid */
.infra-support-facilities {
    padding: 80px 5%;
    background-color: white;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.support-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.support-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.support-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.support-card:hover .support-img img {
    transform: scale(1.1);
}

.support-content {
    padding: 40px 30px 30px 30px;
    position: relative;
    text-align: center;
}

.support-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.support-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.support-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   PHP SYSTEM MESSAGES login start
   ========================================= */
.system-message { padding: 10px; margin-bottom: 15px; border-radius: 5px; font-size: 14px; text-align: left; }
.system-message.error { background: rgba(220, 38, 38, 0.1); color: #ef4444; border: 1px solid rgba(220, 38, 38, 0.3); }
.system-message.success { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

@keyframes loadFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes loadSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.load-fade-in { animation: loadFadeIn 1s ease-out forwards; }
.load-slide-up { animation: loadSlideUp 0.8s ease-out forwards; }

/* =========================================
   ADVANCED SPLIT-SCREEN LOGIN PAGE
   ========================================= */
.login-page-body { background-color: white; height: 100vh; height: 100dvh; overflow: hidden; margin: 0; font-family: 'Open Sans', sans-serif;}
.login-split-wrapper { display: flex; height: 100vh; height: 100dvh; width: 100vw; transition: all 0.8s cubic-bezier(0.8, 0, 0.2, 1); }

/* --- LEFT PANEL --- */
.login-left-panel { flex: 1.2; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: flex 0.8s cubic-bezier(0.8, 0, 0.2, 1); }
.login-bg-zoom { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../images/login.avif') center/cover no-repeat; animation: slowZoom 20s ease-in-out infinite alternate; z-index: 1; }
@keyframes slowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
.login-overlay-gradient { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(11, 94, 62, 0.9) 0%, rgba(7, 64, 42, 0.95) 100%); z-index: 2; }
.login-branding-content { position: relative; z-index: 3; text-align: center; color: white; padding: 40px; max-width: 500px; transition: all 0.5s ease; }
.login-big-logo { width: 120px; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); margin-bottom: 20px; transition: transform 0.3s ease; }
.login-logo-link:hover .login-big-logo { transform: scale(1.05); }
.login-branding-content h1 { font-size: 2.8rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 5px; text-transform: uppercase; }
.login-motto { font-size: 1.2rem; color: #fca311; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; }
.login-quote { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-left: 4px solid #fca311; padding: 25px; border-radius: 8px; text-align: left; }
.login-quote i { font-size: 2rem; color: rgba(252, 163, 17, 0.5); margin-bottom: 10px; }
.login-quote p { font-size: 1.05rem; line-height: 1.6; font-style: italic; margin: 0; }

/* --- RIGHT PANEL --- */
.login-right-panel { flex: 1; background-color: white; display: flex; align-items: center; justify-content: center; position: relative; transition: all 0.8s cubic-bezier(0.8, 0, 0.2, 1); height: 100vh; height: 100dvh; overflow-y: auto; overflow-x: hidden; }
.login-right-panel::-webkit-scrollbar { width: 6px; }
.login-right-panel::-webkit-scrollbar-track { background: transparent; }
.login-right-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.login-right-panel::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.login-form-container { width: 100%; max-width: 450px; padding: 30px 40px; margin: auto 0; }
.login-header h2 { font-size: 2.2rem; color: #0b5e3e; margin-bottom: 5px; margin-top: 0;}
.login-header p { color: #64748b; margin-bottom: 8px; font-size: 0.95rem; }

/* --- BUTTONS & CONTROLS --- */
.back-to-home { display: inline-flex; align-items: center; background-color: #f8fafc; border: 1px solid #e2e8f0; color: #475569; text-decoration: none; font-size: 0.85rem; font-weight: 700; padding: 6px 16px; border-radius: 20px; margin-bottom: 2px; transition: all 0.4s ease; }
.back-to-home i { margin-right: 6px; }
.back-to-home:hover { background-color: #0b5e3e; color: white; border-color: #0b5e3e; box-shadow: 0 4px 10px rgba(11, 94, 62, 0.2); }
.role-selector { display: flex; background-color: #f1f5f9; border-radius: 8px; padding: 5px; margin-bottom: 15px; }
.role-selector input[type="radio"] { display: none; }
.role-selector label { flex: 1; text-align: center; padding: 10px 5px; font-size: 0.85rem; font-weight: 700; color: #64748b; cursor: pointer; border-radius: 6px; transition: all 0.3s ease; }
.role-selector label i { margin-right: 5px; }
.role-selector input[type="radio"]:checked + label { background-color: white; color: #0b5e3e; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* --- METHOD TOGGLE & FORMS --- */
.login-method-toggle { display: flex; background-color: white; border: 2px solid #f1f5f9; border-radius: 50px; padding: 5px; margin-bottom: 20px; position: relative; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02); }
.login-method-toggle input[type="radio"] { display: none; }
.login-method-toggle label { flex: 1; text-align: center; padding: 10px; font-size: 0.85rem; font-weight: 700; color: #94a3b8; cursor: pointer; border-radius: 50px; transition: all 0.3s ease; }
.login-method-toggle label i { margin-right: 6px; }
.login-method-toggle input[type="radio"]:checked + label { background-color: #0b5e3e; color: white; box-shadow: 0 4px 10px rgba(11, 94, 62, 0.3); }
.login-method-section { display: none; animation: fadeInForm 0.4s ease forwards; }
.login-method-section.active { display: block; }
@keyframes fadeInForm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- INPUTS --- */
.floating-group { position: relative; margin-bottom: 15px; }
.floating-input { width: 100%; padding: 14px 20px 14px 40px; font-size: 0.95rem; color: #1e293b; border: 2px solid #e2e8f0; border-radius: 8px; background-color: #f8fafc; transition: all 0.3s ease; box-sizing: border-box;}
.floating-input:focus { outline: none; border-color: #0b5e3e; background-color: white; box-shadow: 0 0 0 4px rgba(11, 94, 62, 0.1); }
.floating-label { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.95rem; pointer-events: none; transition: all 0.3s ease; }
.floating-label i { position: absolute; left: -25px; top: 2px; font-size: 1.05rem; color: #94a3b8; transition: color 0.3s ease; }
.floating-input:focus ~ .floating-label, .floating-input:not(:placeholder-shown) ~ .floating-label { top: 0; left: 15px; font-size: 0.75rem; background-color: white; padding: 0 8px; color: #0b5e3e; }
.floating-input:focus ~ .floating-label i, .floating-input:not(:placeholder-shown) ~ .floating-label i { color: #0b5e3e; }
.btn-toggle-pass { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #94a3b8; font-size: 1.1rem; cursor: pointer; transition: color 0.3s ease; }
.btn-toggle-pass:hover { color: #0b5e3e; }
.login-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* --- CUSTOM SWITCH & LINKS --- */
.custom-switch { display: flex; align-items: center; cursor: pointer; }
.custom-switch input { display: none; }
.switch-slider { position: relative; width: 34px; height: 18px; background-color: #cbd5e1; border-radius: 20px; margin-right: 8px; transition: background-color 0.3s ease; }
.switch-slider::before { content: ''; position: absolute; height: 12px; width: 12px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: transform 0.3s ease; }
.custom-switch input:checked + .switch-slider { background-color: #0b5e3e; }
.custom-switch input:checked + .switch-slider::before { transform: translateX(16px); }
.switch-text { font-size: 0.85rem; color: #64748b; font-weight: 600; }
.forgot-pass-link { font-size: 0.85rem; color: #0b5e3e; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.forgot-pass-link:hover { color: #fca311; }
.btn-login-submit { width: 100%; padding: 14px; background-color: #0b5e3e; color: white; border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 800; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 6px 12px rgba(11, 94, 62, 0.2); }
.btn-login-submit:hover { background-color: #fca311; color: #0b5e3e; transform: translateY(-2px); box-shadow: 0 10px 18px rgba(252, 163, 17, 0.3); }

/* --- BIOMETRICS SECTION --- */
.biometric-container { text-align: center; padding: 5px 0 10px 0; }
.biometric-scanner { position: relative; width: 60px; height: 60px; margin: 0 auto 15px auto; border-radius: 15px; background: #f8fafc; border: 2px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: all 0.3s ease; }
.fingerprint-icon { font-size: 2.8rem; color: #cbd5e1; transition: color 0.3s ease; }
.biometric-scanner.scanning { border-color: #0b5e3e; border-style: solid; box-shadow: inset 0 4px 15px rgba(11, 94, 62, 0.1); }
.biometric-scanner.scanning .fingerprint-icon { color: #0b5e3e; opacity: 0.5; }
.scan-line { position: absolute; top: -10px; left: 0; width: 100%; height: 4px; background-color: #fca311; box-shadow: 0 0 15px #fca311, 0 0 30px #fca311; opacity: 0; z-index: 2; }
.biometric-scanner.scanning .scan-line { opacity: 1; animation: scanLaser 1.5s ease-in-out infinite alternate; }
@keyframes scanLaser { 0% { top: 0; } 100% { top: 80px; } }
.biometric-title { color: #1e293b; font-size: 1.1rem; margin-bottom: 5px; transition: color 0.3s ease; }
.biometric-desc { color: #64748b; font-size: 0.85rem; margin-bottom: 8px; line-height: 1.4; }
.btn-biometric { background-color: #1e293b; box-shadow: 0 6px 12px rgba(30, 41, 59, 0.2); }
.btn-biometric:hover { background-color: #0b5e3e; box-shadow: 0 10px 18px rgba(11, 94, 62, 0.3); }
.login-footer-text { text-align: center; margin-top: 8px; font-size: 0.85rem; color: #94a3b8; }
.login-footer-text a { color: #0b5e3e; font-weight: bold; text-decoration: none; }

/* --- LOGIN SUCCESS FULL-SCREEN ANIMATION --- */
.login-page-body.login-success .login-right-panel { flex: 0 !important; opacity: 0; padding: 0; min-width: 0; }
.login-page-body.login-success .login-left-panel { flex: 1 !important; }
.login-success-message { display: none; font-size: 2.5rem; font-weight: 800; color: #fca311; margin-top: 30px; animation: fadeInForm 1s ease forwards; }
.login-page-body.login-success .login-success-message { display: block; }
.login-page-body.login-success .login-quote { display: none; }

/* =========================================
   MANDATORY PUBLIC DISCLOSURE (MPD) STYLES
   ========================================= */

.mpd-wrapper {
    padding: 20px 5% 80px 5%;
    background-color: var(--bg-light);
    max-width: 1200px;
    margin: 0 auto;
}

/* Beautiful Data Cards */
.mpd-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #e2e8f0;
}

/* Card Headers */
.mpd-card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mpd-card-header i {
    color: var(--secondary-color);
    font-size: 1.6rem;
}

/* Standardized Responsive Table Container */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Styled MPD Table */
.mpd-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces scrolling on very small devices instead of squishing */
}

.mpd-table th, .mpd-table td {
    padding: 18px 25px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.mpd-table th {
    background-color: #f8fafc;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.mpd-table td {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

.mpd-table tr:nth-child(even) {
    background-color: #fdfdfd;
}

.mpd-table tr:last-child td {
    border-bottom: none;
}

/* Fixed width for Serial Numbers */
.mpd-table td:first-child, .mpd-table th:first-child {
    width: 90px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}

/* Elegant Download Buttons */
.btn-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #f1f5f9;
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}

.btn-doc-link:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(252, 163, 17, 0.2);
}

/* YouTube Specific Button Styling */
.btn-doc-link.youtube {
    color: #d90429;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.btn-doc-link.youtube:hover {
    background-color: #d90429;
    color: white;
    border-color: #d90429;
    box-shadow: 0 4px 10px rgba(217, 4, 41, 0.2);
}

/* =========================================
   TC VERIFICATION PAGE STYLES & SECURITY
   ========================================= */

.tc-verification-section {
    padding: 60px 5% 100px 5%;
    background-color: var(--bg-light);
    min-height: 600px;
}

/* --- THE SEARCH BOX --- */
.tc-search-box {
    max-width: 600px;
    margin: 0 auto 50px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border-top: 5px solid var(--primary-color);
}

.search-header {
    background-color: #f8fafc;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.search-header i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.search-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.tc-form {
    padding: 30px;
}

.tc-instructions {
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.tc-input-group label {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* --- QR SCANNER & ACTION BUTTONS --- */
.tc-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.btn-verify-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn-verify-submit:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(252, 163, 17, 0.3);
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
}

.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #cbd5e1;
}

.or-divider span {
    padding: 0 10px;
}

.btn-scan-qr {
    width: 100%;
    padding: 15px;
    background-color: white;
    color: var(--text-dark);
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-scan-qr:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8fafc;
}

/* Web Scanner Container UI */
.qr-scanner-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.qr-scanner-container #reader {
    width: 100%;
    margin: 0 auto 15px auto;
    border-radius: 8px;
    overflow: hidden;
}

.btn-close-scanner {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-close-scanner:hover {
    background-color: #dc2626;
}

/* --- ERROR BOX (Not Found) --- */
.tc-error-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
}

.tc-error-box i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 15px;
}

.tc-error-box h3 {
    color: #b91c1c;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tc-error-box p {
    color: #7f1d1d;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- SUCCESS BOX & DATA LAYOUT --- */
.tc-success-box {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(11, 94, 62, 0.1);
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.success-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.success-header i {
    font-size: 1.8rem;
    color: #4ade80; /* bright green */
}

.tc-split-layout {
    display: flex;
    padding: 30px;
    gap: 40px;
}

.tc-data-panel {
    flex: 1;
}

.tc-image-panel {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.tc-data-panel h4, .tc-image-panel h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Data Table Styling */
.tc-details-table {
    width: 100%;
    border-collapse: collapse;
}

.tc-details-table th, .tc-details-table td {
    padding: 15px 10px;
    border-bottom: 1px dashed #cbd5e1;
    text-align: left;
}

.tc-details-table th {
    color: #64748b;
    font-weight: 600;
    width: 40%;
}

.tc-details-table td {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.05rem;
}

.highlight-data {
    background-color: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    color: var(--primary-color);
}

.status-badge.valid {
    background-color: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- THE HIGHLY SECURE CANVAS CONTAINER --- */

/* The wrapper maintains the A4 Aspect Ratio (1:1.414) */
.secure-canvas-container {
    position: relative;
    width: 100%;
    /* Aspect ratio hack. 1.414 * 100% = 141.4% padding-bottom */
    padding-bottom: 141.4%; 
    background-color: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    
    /* Prevent text/image selection natively */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* The Canvas itself */
#tc-secure-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Disable native right click options on the canvas */
}

/* Invisible overlay blocks users from right-clicking the canvas */
.secure-overlay-blocker {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 5;
    background: transparent;
    cursor: not-allowed;
}

/* The Repeating Diagonal Watermark */
.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(217, 4, 41, 0.4); /* Red, semi-transparent */
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to the invisible blocker */
    letter-spacing: 5px;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.8);
    width: 150%;
    text-align: center;
}

/* Warning Text Below Image */
.security-warning {
    margin-top: 15px;
    background-color: #fffbeb;
    border-left: 4px solid var(--secondary-color);
    padding: 12px;
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.5;
    border-radius: 4px;
}

.security-warning i { margin-right: 5px; }

.no-image-placeholder {
    text-align: center;
    padding: 50px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #94a3b8;
}

.no-image-placeholder i { font-size: 3rem; margin-bottom: 15px; }

/* =========================================
   MEDIA QUERIES - Standard Mobile/Tablet (1100px)
   ========================================= */
@media (max-width: 1100px) {
    .top-bar { display: none; } 
    .hamburger { display: block; font-size: 28px; cursor: pointer; color: var(--primary-color); }
    
    /* Scrollable Mobile Menu Fix */
    .nav-links { 
        display: none; flex-direction: column; width: 100%; position: absolute; 
        top: 100%; left: 0; background-color: var(--primary-color); padding: 0; 
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        max-height: calc(100vh - 75px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .nav-links::-webkit-scrollbar { width: 5px; }
    .nav-links::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 5px; }
    
    .nav-links.active { display: flex; }
    .nav-links li { text-align: left; width: 100%; }
    .nav-links li a { color: var(--text-light); display: block; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); white-space: normal;}
    
    .dropdown-menu { position: relative; box-shadow: none; border-top: none; background-color: rgba(0, 0, 0, 0.2); }
    .dropdown:hover .dropdown-menu { display: block; }
    .dropdown-menu li a { padding-left: 30px; font-size: 0.95rem;}
    .btn-login { margin: 15px 20px; text-align: center; }
    
    .hero-section { height: 50vh; }
    .info-section { flex-direction: column; padding: 40px 5%; }
    .achievements-box { padding: 30px 20px; }
    
    /* Mobile Fixes for Slider */
    .premium-hero-slider { 
        height: 60vh; 
        min-height: 400px; 
        
        /* THE FIX: Force strict full-width containment */
        width: 100%; 
        max-width: 100vw; 
        overflow: hidden; 
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    /* THE FIX: Ensure individual slides and images don't break the container */
    .hero-slide {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Keeps image proportions without stretching */
    }
    
    /* Make the top of the image totally clear, and darken only the bottom for text */
    .slide-overlay { 
        background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.85) 100%); 
    }
    
    /* Push text to the bottom and shrink it slightly */
    .slide-content { 
        top: auto; 
        bottom: 12%; 
        left: 5%; 
        right: 5%; 
        width: 90%; /* THE FIX: 100% - 5% left - 5% right to prevent overflow */
        box-sizing: border-box;
        text-align: center; 
        transform: translateY(0); /* Removes the desktop centering math */
    }
    
    .slide-title { font-size: 2rem; margin-bottom: 5px; }
    .slide-desc { font-size: 0.95rem; margin-bottom: 15px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
    .slide-subtitle { font-size: 0.9rem; margin-bottom: 10px; }
    
    .slider-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    
    /* Ensure animations map correctly to the new bottom position */
    .hero-slide.active .slide-subtitle, 
    .hero-slide.active .slide-title, 
    .hero-slide.active .slide-desc, 
    .hero-slide.active .slide-btn { transform: translateY(0); }
	
	/* --- Ultra-Compact Mobile Gallery (Guaranteed 2-Column) --- */
    .school-gallery-section { 
        padding: 40px 10px; /* Reduced side padding from 5% to 10px to maximize screen space */
    }
    
    .gallery-grid { 
        display: grid;
        grid-template-columns: 1fr 1fr; /* Strictly forces two equal columns */
        gap: 8px; /* Smaller gap so images have more room */
    }
    
    .gallery-item { 
        height: 120px; /* Reduced height to keep them looking like squares */
        min-width: 0; /* Critical: Prevents images from breaking the grid on tiny screens */
    }
    
    .filter-btn { 
        padding: 6px 12px; 
        font-size: 0.8rem; /* Smaller text on filters so they fit in one row */
        margin-bottom: 5px;
    }
    
    /* Notice Board Height Locked */
    .notice-board { height: 400px !important; min-height: 400px !important; max-height: 400px !important; width: 100%; }
    .notice-content { overflow-y: auto !important; }

    /* Turn off fixed parallax on mobile/tablet (iOS handles it poorly) */
    .parallax-section { background-attachment: scroll; height: 350px;}
    .parallax-content h2 { font-size: 2rem; }

    /* Contact Page Mobile Fixes */
    .contact-wrapper { grid-template-columns: 1fr; padding: 40px 5%; }
    .page-hero h2 { font-size: 2.2rem; }
    .modern-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .dept-grid { grid-template-columns: 1fr; }
    .form-box { padding: 25px 15px; }

	/* About Us Page Mobile Fixes */
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .image-offset-frame::before { top: 15px; left: -15px; } /* Smaller offset for mobile */
    .stats-row { flex-direction: column; gap: 15px; }
    .vm-container { grid-template-columns: 1fr; gap: 25px; }
    .leadership-container { flex-direction: column; text-align: center; padding: 30px 20px; }
    .header-line { margin: 0 auto !important; } /* Centers the line under Principal message on mobile */
    .quote-mark { left: 50%; transform: translateX(-50%); }
	
	/* Staff & Management Mobile */
    .management-directory { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .faculty-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
	
	/* Academic Calendar Mobile Fixes */
    .timeline-line {
        left: 30px; /* Moves the center line to the far left edge */
    }
    .timeline-item {
        width: 100%;
        padding: 20px 0 20px 70px; /* Adds space on the left for the line & icon */
    }
    .timeline-item.left, .timeline-item.right {
        left: 0; /* Forces all items to start from the left */
    }
    .timeline-item.left .timeline-icon, .timeline-item.right .timeline-icon {
        left: 7px; /* Pins the icons exactly over the shifted timeline line */
        right: auto;
    }
    .timeline-content {
        flex-direction: column; /* Stacks the date badge on top of the text */
        gap: 15px;
        padding: 20px;
    }
    .timeline-date-badge {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        padding: 10px;
    }
    .timeline-date-badge .day { font-size: 1.4rem; }
	
	/* Circulars Page Mobile Accordian layout */
    .circular-full-card { flex-direction: column; align-items: flex-start; text-align: left; }
    .circular-left { border-right: none; border-bottom: 1px solid #e2e8f0; padding-right: 0; padding-bottom: 10px; margin-bottom: 10px; margin-right: 0; width: 100%; flex-direction: row; justify-content: space-between; align-items: center;}
    .circular-right { width: 100%; text-align: left; padding-left: 0; margin-top: 15px; }
	
	/* Achievements Page Mobile */
    .year-tab-btn { padding: 10px 20px; font-size: 1rem; }
    .toppers-grid { gap: 20px; }
    .topper-card { width: 100%; max-width: 300px; padding: 20px; }
    .float-anim { animation: none; } /* Disable floating on mobile to prevent jumpy scrolling */
    .achievements-masonry { grid-template-columns: 1fr; }
	
	/* Rules Page Mobile Fixes */
    .cbse-mandate-box { flex-direction: column; align-items: center; text-align: center; gap: 15px; padding: 25px 20px; }
    .rules-grid { grid-template-columns: 1fr; }
    .rule-card { padding: 30px 20px; }
	
	/* Fee Structure Mobile Fixes */
    .fee-grid { grid-template-columns: 1fr; gap: 30px; }
    .payment-instructions { flex-direction: column; padding: 25px 20px; gap: 15px; }
    .instruction-icon { font-size: 2rem; margin-bottom: -5px; }
    .fee-price-circle .amount { font-size: 3rem; }
	
	/* Admissions Page Mobile Fixes */
    .intro-container { grid-template-columns: 1fr; gap: 30px; }
    .docs-test-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .instructions-box { flex-direction: column; text-align: center; }
	
	/* Infrastructure Page Mobile Fixes */
    .infra-major-facilities { gap: 60px; }
    .facility-row, .facility-row.reverse { flex-direction: column; gap: 30px; }
    .facility-floating-badge { bottom: 15px; right: 15px !important; left: auto !important; font-size: 0.9rem; padding: 8px 15px; }
    .facility-title { font-size: 1.8rem; }
    .support-grid { grid-template-columns: 1fr; }
	
	/* LOGIN PAGE MOBILE FIXES */
    .login-page-body { height: 100vh; height: 100dvh; overflow: hidden; } 
    .login-split-wrapper { flex-direction: column; height: 100vh; height: 100dvh; }
    .login-left-panel { flex: 0 0 auto; min-height: 85px; padding: 15px 20px; } 
    .login-branding-content { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 15px; padding: 0; height: 100%; max-width: 100%; }
    .login-big-logo { width: 45px; margin-bottom: 0; }
    .login-branding-content h1 { font-size: 1.3rem; margin-bottom: 0; white-space: nowrap; }
    .login-motto, .login-quote { display: none; } 
    .login-right-panel { flex: 1; padding: 15px 20px 30px 20px; align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .login-form-container { padding: 0; margin-top: 10px; max-width: 100%; padding-bottom: 40px; }
    .login-header h2 { font-size: 1.6rem; margin-bottom: 5px; }
    .login-page-body.login-success .login-left-panel { flex: 1 1 100dvh !important; }
    .login-page-body.login-success .login-branding-content { flex-direction: column; }
    .login-page-body.login-success .login-big-logo { width: 100px; margin-bottom: 20px; }
    .login-page-body.login-success .login-branding-content h1 { font-size: 2.2rem; white-space: normal; }
    .login-page-body.login-success .login-success-message { font-size: 1.8rem; margin-top: 20px; }
	
	/* MPD Page Mobile Fixes */
    .mpd-card-header { padding: 15px 20px; font-size: 1.1rem; }
    .mpd-table th, .mpd-table td { padding: 12px 15px; font-size: 0.95rem; }
    .mpd-table td:first-child, .mpd-table th:first-child { width: 60px; }
	
	/* TC Verification Page Mobile Fixes */
    .tc-split-layout { flex-direction: column; gap: 30px; padding: 20px; }
    .tc-details-table th, .tc-details-table td { padding: 10px 5px; font-size: 0.95rem; }
    .watermark-text { font-size: 2rem; width: 120%; }
    .success-header h3 { font-size: 1.2rem; text-align: center; }
}

/* =========================================
   MEDIA QUERIES - Ultra Small Phones (up to 480px)
   ========================================= */
@media (max-width: 480px) {
    .main-header { padding: 10px 15px; }
    .logo-container { gap: 8px; }
    .school-logo { width: 50px; } 
    
    .school-name h1 { font-size: 16px; letter-spacing: 0; white-space: normal; line-height: 1.2; margin-bottom: 2px;}
    .school-name p { font-size: 11px; margin-top: 0; }
    
    .hamburger { font-size: 24px; }

    .hero-section { min-height: 350px; height: 50vh; }
    .slide-content { padding: 0 10px; }
    .slide-content h2 { font-size: 1.8rem; margin-bottom: 8px; }
    .slide-content p { font-size: 1rem; }

    .section-header { padding-top: 20px; margin-bottom: 25px;}
    .section-header h2 { font-size: 1.6rem; }

    .info-section { padding: 25px 15px; }
    .achievements-box { padding: 25px 20px; }
    .achievements-box h2 { font-size: 1.5rem; }
    .lead-text { font-size: 1rem; }

    .wings-section { padding: 25px 15px; }
    .wings-grid { grid-template-columns: 1fr; gap: 15px; }
    .wing-card { padding: 20px 15px; }

    .parallax-content h2 { font-size: 1.6rem; }

    .gallery-section { padding: 25px 15px; }
    .gallery-grid { grid-template-columns: 1fr; }

    .footer-container { padding: 0 15px; flex-direction: column; gap: 20px;}
    .footer-col { min-width: 100%; margin-bottom: 0; }
    .footer-bottom { padding: 15px; font-size: 0.8rem; }
    
    .notice-board { height: 400px !important; min-height: 400px !important; max-height: 400px !important; }
}