/* ==========================================
   1. CORE STYLES & VARIABLES
   ========================================== */
:root {
    --primary: #1b5e20; /* Dark Green */
    --primary-dark: #002b36; /* Navy Blue Top Bar */
    --primary-green: #1b5e20; /* Brand Green */
    --secondary-gold: #d4a017;
    --secondary: #d4a017; /* Admission Highlight */
    --white: #fff;
    --transition: 0.3s;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    line-height: 1.6; 
}
a { color: #545454;; transition: color var(--transition); text-decoration: none; }
a:hover { color: var(--secondary); }
span { color: var(--secondary);font-weight: bold; }

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */

/* Top Bar */
.top-bar {
    background: #001f3f;
    color: #fff;
    padding: 5px 5%;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-links a { color: #fff; margin-left: 15px; text-decoration: none; }
.top-links i { margin-right: 5px; }

/* Middle Header (Logo & Info) */
.header-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    position: sticky; 
    top: 0;           
    z-index: 1001;    
}

.logo-box { display: flex; align-items: center; gap: 15px; }
.logo-icon {
    background: #1b5e20;
    color: #d4a017;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid #d4a017;
}

.school-name h1 { 
    color: #1b5e20; 
    font-family: 'Merriweather', serif; 
    font-size: 2.2rem; 
    letter-spacing: 1px;
    margin: 0;
}
.school-name p { font-size: 0.9rem; font-weight: 600; color: #444; margin-top: -5px; }
.affiliation { font-size: 0.75rem; color: #888; }

.contact-details { font-size: 0.85rem; text-align: right; color: #333;  font-weight: bold;}
.contact-details div { margin-bottom: 2px; }
.contact-details i { color: #1b5e20; margin-right: 8px; width: 15px; }

/* Desktop Navigation */
nav { 
    background: #1b5e20;
    position: sticky; 
    top: 129px; /* Aligns below sticky header-mid */
    z-index: 1000; 
}

.nav-container {
    display: flex;
    list-style: none;
    padding: 0 5%;
}

.nav-container li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-container li a:hover { background: #D32F2F; }
.nav-container li a.active { background: var(--secondary); color: #000; }
.nav-container li.home-tab a { background: #d4a017; color: #000; }

.hamburger { display: none; }

/* ==========================================
   3. MAIN SECTIONS & COMPONENTS
   ========================================== */

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 100px 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), 
                url('asset/heroImage-1.jpg') no-repeat center center/cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    background: rgba(212, 160, 23, 0.2);
    backdrop-filter: blur(5px);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--secondary);
    display: inline-block;
    margin-bottom: 25px;
}

.hero h2 {
    font-size: 3rem;
    font-family: 'Merriweather', serif;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.hero h2 span { display: block; color: var(--secondary); margin-top: 10px; font-size: 3rem; }

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    background: var(--secondary);
    color: #000;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}
.btn-primary:hover { background: var(--white); transform: translateY(-3px); }

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 13px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* Urgent Ticker */
.urgent-ticker {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
}
.urgent-label { background: #d32f2f; color: white; padding: 8px 17px; font-weight: bold; font-size: 0.9rem; white-space: nowrap; }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 35s linear infinite;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Welcome Section */
.welcome-section { padding: 60px 5%; background: #ffffff; }
.welcome-container { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; max-width: 1200px; margin: 0 auto; }
.section-header h2 { color: #1b5e20; font-family: 'Merriweather', serif; font-size: 2.2rem; margin-bottom: 20px; }
.sub-title { color: #d4a017; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.welcome-text p { color: #444; font-size: 1.05rem; line-height: 1.8; margin-bottom: 15px; text-align: justify; }
.btn-link { display: inline-block; margin-top: 10px; color: #1b5e20; text-decoration: none; font-weight: 700; border-bottom: 2px solid #d4a017; padding-bottom: 3px; }

/* Principal Message Box & Image */
.principal-image-container { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.full-principal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.principal-name-tag { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(27, 94, 32, 0.9); color: white; padding: 15px; text-align: center; }
.principal-msg-box { background: #fff; padding: 40px; border-radius: 12px; border-left: 5px solid var(--secondary-gold); display: flex; flex-direction: column; justify-content: center; }
.message-icon { font-size: 2rem; color: var(--secondary-gold); margin-bottom: 15px; opacity: 0.5; }
.message-body p { font-size: 1.05rem; color: #444; line-height: 1.8; margin-bottom: 15px; }
.signature { margin-top: 20px; border-top: 1px solid #eee; padding-top: 15px; }

/* Notice Board & Info Grid */
.info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 4rem 5%; }
.notification-panel { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-top: 5px solid #1b5e20; }
.notice-head { background: #1b5e20; color: #fff; padding: 18px 25px; display: flex; justify-content: space-between; align-items: center; }
.notice-container { height: 320px; overflow-y: auto; padding: 10px 25px; }
.notice-row { display: flex; align-items: center; gap: 20px; padding: 7px 0; border-bottom: 1px solid #eee; }
.date-badge { background: #f4f4f4; min-width: 55px; text-align: center; padding: 8px; border-radius: 6px; font-size: 0.75rem; color: #555; }
.date-badge span { display: block; font-size: 1.2rem; font-weight: 800; color: #1b5e20; line-height: 1; }
.badge-new { background: #d32f2f; color: #fff; font-size: 0.6rem; padding: 2px 8px; border-radius: 12px; margin-left: 8px; animation: blink 1s infinite; }

/* Vision & Mission */
.vision-mission-section { padding: 80px 5%; background-color: #f4f7f4; }
.vision-container { display: grid; grid-template-columns:repeat(3, 1fr); gap: 30px; max-width: 1100px; margin: 0 auto; }
.vision-box, .mission-box { background: #ffffff; padding: 40px; border-radius: 12px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; border-bottom: 5px solid #d4a017; }
.vision-box:hover, .mission-box:hover { transform: translateY(-10px); }
.icon-wrap { width: 70px; height: 70px; background: #1b5e20; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.8rem; }
.vision-box h3, .mission-box h3 { color: #1b5e20; font-family: 'Merriweather', serif; font-size: 1.6rem; margin-bottom: 15px; }

/* Academic Highlights (Cards Grid) */
.highlights { padding: 4rem 5%; text-align: center; background: #fff; }
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; 
}
.card { 
    border: 1px solid #eee; 
    padding: 20px; 
    transition: 0.3s; 
    background: #fdfdfd; 
}
.card:hover { 
    transform: translateY(-5px); 
    border-bottom: 3px solid var(--secondary); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

/* Facilities */
.facilities-section { padding: 80px 5%; background: #ffffff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { color: #1b5e20; font-family: 'Merriweather', serif; font-size: 2.5rem; margin-top: 10px; }
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.facility-card { padding: 35px 25px; background: #f9fbf9; border: 1px solid #eee; border-radius: 10px; text-align: center; transition: all 0.3s ease; }
.facility-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(27, 94, 32, 0.1); border-color: #d4a017; }
.facility-card i { font-size: 2.5rem; color: #1b5e20; margin-bottom: 20px; }

/* Contact Form */
.contact-section { padding: 80px 5%; background: #f9f9f9; }
.contact-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.contact-form-box { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 15px 30px; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s; width: 100%; }
.btn-submit:hover { background: var(--secondary); }
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-info div { display: flex; align-items: center; gap: 15px; }
.contact-info i { font-size: 1.5rem; color: var(--primary); }
.contact-map { width: 100%; height: 100%; border: none; border-radius: 12px; box-shadow: 0 5px 20px rgb(52, 52, 52); background-color: #f9f9f9;}
.info-card { margin-bottom: 8px; color: #ffffff; font-weight: 600; padding: 20px; background: #1b5e20; border-radius: 8px 8px 0 0; text-align: left; line-height: 2.5rem;}
.contact-map iframe { border-radius: 12px;border: 5px solid #1b5e20; padding:10px;}
.map-note { font-size: 1rem; color: #282828; margin-top: 20px; text-align: center;font-weight: bold; }
/* ==========================================
   4. FOOTER
   ========================================== */
.main-footer { background: #1a1a1a; color: #e0e0e0; padding-top: 60px; font-size: 0.9rem; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.footer-col h3 { color: #d4a017; font-family: 'Merriweather', serif; margin-bottom: 25px; position: relative; padding-bottom: 10px; text-transform: uppercase; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 150px; height: 2px; background: #d4a017; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.social-links { margin-top: 20px; display: flex; gap: 15px; }
.social-links a { width: 35px; height: 35px; background: #333; display: flex; align-items: center; justify-content: center; border-radius: 50%;}
.footer-bottom { padding: 20px 0; text-align: center; border-top: 1px solid #333; }
.main-footer a { color: #e0e0e0; }
.main-footer a:hover { color: var(--secondary); }
.main-footer i:hover { color: var(--secondary);}


/*============================================
   Admission Page
==============================================*/
.admission-container { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 60px 5%; background: #fdfdfd; }
        
        .enrollment-card { 
            background: #ffffff; 
            padding: 40px; 
            border-radius: 15px; 
            box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
            border: 1px solid #eee;
        }

        .form-section-header {
            background: #f4f7f4;
            padding: 10px 15px;
            border-left: 5px solid #1b5e20;
            margin: 25px 0 15px 0;
            font-weight: 700;
            color: #1b5e20;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        
        .photo-upload-container {
  display: flex;
  gap: 20px; /* space between boxes */
}

.photo-upload-box {
  flex: 1; /* equal width */
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  background: #fafafa;
  transition: 0.3s;
}

        .photo-upload-box:hover { border-color: #1b5e20; background: #f0f7f0; }
        .photo-upload-box i { font-size: 2rem; color: #888; margin-bottom: 10px; }

        .fee-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; }
        .fee-table th, .fee-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
        .fee-table th { background-color: #1b5e20; color: white; }


/* ==========================================
   5. ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes blink { 50% { opacity: 0.5; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   6. RESPONSIVE MEDIA QUERIES (FULL FIX)
   ========================================== */

/* --- Tablet Adjustments (Up to 992px) --- */
@media (max-width: 992px) {
    .header-mid { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px;
    }
    .contact-details { display: none; }
    .nav-container { flex-wrap: wrap; justify-content: center; }
    .welcome-container { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Mobile Sticky & Logo Fix (Up to 768px) --- */
@media (max-width: 768px) {
    
    /* 1. Hide top bar to save vertical space */
    .top-bar { display: none !important; }

    /* 2. STICKY LOGO AREA (Compacted) */
    .header-mid {
        position: sticky !important;
        top: 0 !important;
        height: 70px !important; /* FIXED HEIGHT */
        z-index: 2005 !important;
        padding: 5px 5% !important;
        display: flex !important;
        flex-direction: row !important; /* Keep side-by-side */
        justify-content: space-between !important;
        align-items: center !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* Override element.style for Logo */
    .logo-box .logo-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        font-size: 1.3rem !important;
        border: 2px solid #d4a017 !important;
    }

    /* Override School Name font size */
    .school-name h1 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    /* Hide sub-text for clean sticky view */
    .school-name p, .affiliation { display: none !important; }

    /* 3. STICKY NAV BAR (Green Bar) */
    nav {
        position: sticky !important;
        top: 70px !important; /* Must match header-mid height */
        height: 50px !important; /* FIXED HEIGHT */
        background: #1b5e20 !important;
        z-index: 2004 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 5% !important;
    }

    .hamburger {
        display: block !important;
        color: white !important;
        font-size: 1.6rem !important;
        cursor: pointer;
    }

    /* 4. MOBILE MENU OVERLAY */
    .nav-container {
        display: none; /* Controlled by .active class */
        flex-direction: column !important;
        background: #1b5e20 !important;
        width: 100% !important;
        position: fixed !important;
        top: 120px !important; /* Header (70) + Nav (50) */
        left: 0 !important;
        z-index: 2003 !important;
        height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        padding: 0 !important;
    }

    .nav-container.active { display: flex !important; }

    .nav-container li { 
        width: 100% !important; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
    }

    .nav-container li a {
        padding: 20px !important;
        text-align: center !important;
        font-size: 1rem !important;
        display: block !important;
    }

    /* 5. PAGE ADJUSTMENTS */
    .hero {
        padding-top: 140px !important; /* Header + Nav + Buffer */
        min-height: 60vh !important;
    }

    .hero h2 { font-size: 1.8rem !important; }
    
    .info-grid, .vision-container, .contact-wrapper, .welcome-container {
        grid-template-columns: 1fr !important;
        padding: 30px 5% !important;
        gap: 30px !important;
    }

    .footer-container { 
        grid-template-columns: 1fr !important; 
        text-align: center !important; 
    }
     /* 3. FOOTER PADDING (Left side added) */
    .footer-container {
        padding-left: 30px !important; /* Adjust this value as needed */
        padding-right: 15px;
    }

    .footer-col {
        margin-bottom: 30px;
        text-align: left;
    }

    /* Center footer logo on mobile */
    .footer-logo {
        margin-left: 0;
    }
    /* 2. ADMISSION CONTAINER */
    .admission-container { 
        grid-template-columns: 1fr; 
        padding: 20px 5%; 
        gap: 20px;
    }

    .form-grid { 
        grid-template-columns: 1fr; 
    }

    .enrollment-card {
        padding: 20px;
    }

    .photo-upload-container {
        flex-direction: column;
    }

    .fee-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .map-note {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    /* 3. FOOTER PADDING (Left side added) */
    .footer-container {
        padding-left: 30px !important; /* Adjust this value as needed */
        padding-right: 15px;
    }

    .footer-col {
        margin-bottom: 30px;
        text-align: left;
    }

    /* Center footer logo on mobile */
    .footer-logo {
        margin-left: 0;
    }

}
/* Specific Tweak for Small Phones (around 390px) */
@media (max-width: 400px) {
    /* Further minimize logo for very small screens */
    .logo-icon img {
        width: 45px !important;
    }

    .school-name h1 {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .form-section-header {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 0.9rem;
    }
    .map-note {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}
