/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

:root {
    --primary-blue: #1a237e; /* Navy Blue */
    --accent-yellow: #fbc02d; /* Gold */
    --light-bg: #f4f7f6;
    --text-dark: #333;
    --white: #ffffff;
    --footer-dark: #0f172a; 
}

body { background-color: var(--light-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.main-header { background: var(--primary-blue); padding: 10px 5%; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 15px; }
.logo img { height: 55px; width: auto; background: white; border-radius: 50%; padding: 3px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .school-name { font-size: 1.4rem; font-weight: 700; line-height: 1.1; color: var(--white); text-transform: uppercase; }
.logo-text .tagline { font-size: 0.75rem; color: var(--accent-yellow); letter-spacing: 1px; }

.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-yellow); }

.erp-login-btn { background: var(--accent-yellow); color: var(--primary-blue) !important; padding: 8px 20px; border-radius: 5px; font-weight: 700 !important; box-shadow: 0 4px 6px rgba(0,0,0,0.2); transition: 0.3s; }

/* =========================================
   3. HERO SECTION (With Button Fixes)
   ========================================= */
.hero-section {
    background: linear-gradient(rgba(26, 35, 126, 0.7), rgba(26, 35, 126, 0.5)), url('../images/school-bg.jpg'); 
    background-size: cover; 
    background-position: center; 
    height: 500px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white); 
    margin-bottom: 0; 
    padding-bottom: 60px; /* Space for cards */
}

.hero-content h1 { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    font-weight: 700; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}

/* --- BUTTONS FIX --- */
.hero-btns { margin-top: 20px; }

/* Yellow Button (Admissions) */
.btn-yellow { 
    background: var(--accent-yellow); 
    color: var(--primary-blue); 
    padding: 12px 30px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: bold; 
    margin: 5px; 
    display: inline-block; 
    border: 2px solid var(--accent-yellow);
}

/* Outline Button (Explore Campus) */
.hero-btns a:not(.btn-yellow) {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: bold; 
    margin: 5px; 
    display: inline-block;
    transition: 0.3s;
}

.hero-btns a:not(.btn-yellow):hover {
    background: #fff;
    color: var(--primary-blue);
}

/* =========================================
   4. HOME PAGE LAYOUT
   ========================================= */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
    margin-top: -80px; /* Cards overlap banner */
}

.main-content { flex: 0 0 70%; max-width: 70%; } /* Left Side */
.sidebar { flex: 0 0 30%; max-width: 30%; margin-top: 80px; } /* Right Side */

/* --- TOP 3 FLOATING CARDS --- */
.info-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 100px; /* Gap to prevent overlap with text */
}

.card {
    flex: 1;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: none;
}
.card:hover { transform: translateY(-10px); }
.card i { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; }

/* Colors Restore */
.card.blue { background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%); }
.card.green { background: linear-gradient(135deg, #00695c 0%, #4db6ac 100%); }
.card.orange { background: linear-gradient(135deg, #ff8f00 0%, #ffca28 100%); color: #fff; }

.btn-card {
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- NOTICE BOARD (SIDEBAR) - YE MISSING THA --- */
.notice-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border-top: 5px solid var(--primary-blue);
    margin-bottom: 30px;
}
.notice-head {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex; justify-content: space-between; align-items: center;
}
.notice-body { padding: 10px; height: 350px; background: #fff; }
.notice-body ul { list-style: none; }
.notice-body li {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    display: flex; flex-direction: column;
}
.notice-body a { text-decoration: none; color: #333; font-weight: 500; }
.notice-body a:hover { color: var(--primary-blue); }

/* =========================================
   5. ABOUT PAGE STYLES
   ========================================= */
.page-banner {
    background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(26, 35, 126, 0.8)), url('../images/about-bg.jpg');
    background-size: cover; background-position: center; height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--white); text-align: center; margin-bottom: 60px;
}
.page-banner h1 { font-size: 2.5rem; font-weight: 700; }

.about-grid { display: flex; gap: 50px; align-items: center; margin-bottom: 80px; }
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 12px; border-bottom: 5px solid var(--accent-yellow); }

.principal-section { 
    background: #fff; padding: 50px; border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); margin-bottom: 80px; 
    border-right: 8px solid var(--accent-yellow); 
}
.principal-flex { display: flex; gap: 40px; align-items: center; }
.principal-img img { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; border: 5px solid var(--primary-blue); padding: 5px; }
.principal-content { flex: 2; }

/* Core Values (White Boxes) */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 80px; }
.value-box { 
    background: white; padding: 30px; text-align: center; border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 3px solid var(--primary-blue); 
}
.value-box i { font-size: 2rem; color: var(--accent-yellow); margin-bottom: 15px; }

/* =========================================
   6. FOOTER
   ========================================= */
.main-footer {
    background: var(--footer-dark);
    color: #cfd8dc;
    padding: 60px 0 20px;
}
.footer-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--white); margin-bottom: 20px; color: var(--accent-yellow); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b0bec5; text-decoration: none; transition: 0.3s; }

/* =========================================
   7. RESPONSIVE RULES (Mobile/Tab)
   ========================================= */
@media (max-width: 992px) {
    .content-wrapper { flex-direction: column; margin-top: 0; }
    .main-content, .sidebar { flex: 0 0 100%; max-width: 100%; }
    .sidebar { margin-top: 0; order: 2; } /* Mobile Sidebar Bottom */
    .info-grid { flex-wrap: wrap; }
    .card { flex: 1 1 45%; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; text-align: center; }
    .nav-links { flex-direction: column; width: 100%; padding: 0; }
    
    .hero-section { height: auto; padding: 80px 20px; }
    .info-grid { flex-direction: column; margin-top: 0; }
    
    .about-grid, .principal-flex { flex-direction: column; text-align: center; }
    .principal-img img { width: 160px; height: 160px; margin: 0 auto; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .values-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
}
/* =========================================
   8. ADMIN LOGIN PORTAL (PREMIUM GLASS UI)
   ========================================= */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    background-image: radial-gradient(at 0% 0%, rgba(26, 35, 126, 0.1) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, rgba(26, 35, 126, 0.1) 0, transparent 50%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-logo { width: 80px; margin-bottom: 20px; }
.login-title { color: #1a237e; font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.login-subtitle { color: #64748b; font-size: 0.9rem; margin-bottom: 30px; }

.input-group { position: relative; margin-bottom: 20px; text-align: left; }
.input-group input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.login-links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}