/* Global Reset and Variables */
:root {
    --primary-color: #E91E53; /* Rani Pink / Deep Rose */
    --secondary-color: #FFC137; /* Gold/Amber - Accent color */
    --text-dark: #2c3e50;
    --text-light: #f4f4f4;
    --light-bg: #fdf6f7;
    --dark-bg: #2c3e50;
}

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

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: red;
    font-family: 'Poppins', sans-serif;
}

/* Typography and Headings */
h1, h2, h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: 'Merriweather', serif;
}
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-30%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 5px;
}

/* Buttons & Hover Effect */
.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}
.btn-primary:hover {
    background: #d81b60;
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

/* === 1. Header & Navigation === */
.main-header {
    background: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}
.logo span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-top: 0px;
    font-weight: 600;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 15px;
    margin-left: 10px;
    font-weight: 600;
    transition: color 0.3s, border-bottom 0.3s, transform 0.2s;
}
.nav-menu a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* === 2. Hero Section - Animated Background === */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-background-slides.active {
    opacity: 1;
}
/* Overlay (Kept minimal as requested) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Very light overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content .full-name {
    font-size: 1.8rem; 
    margin-bottom: 5px;
    color: #FFECB3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}
.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    line-height: 1.1;
}
.hero-content .tagline {
    font-size: 1.6rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* === 3. Section Styling (General) === */
section {
    padding: 80px 5%;
}
.light-bg {
    background-color: var(--light-bg);
}

/* --- Class Details --- */
.class-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}
.class-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
    border-left: 5px solid var(--primary-color);
}
.class-box:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.class-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* === 6. Faculty Section (FIXED FOR 8 TEACHERS & CIRCLE PHOTOS) === */
.faculty-grid {
    /* Updated minmax to 250px for better fit for 8 columns on wider screens */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.teacher-card {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-top: 3px solid var(--primary-color);
}
.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.teacher-photo {
    width: 150px; 
    height: 150px;
    border-radius: 50%; /* GOL AAKAR */
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.teacher-card h4 {
    color: var(--dark-bg);
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-family: 'Merriweather', serif;
}
.teacher-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* --- Result Section and Fees Section Styles (UNCHANGED) --- */
.result-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 900px;
    margin: 40px auto;
    border-top: 5px solid var(--primary-color);
}
.result-box select,
.result-box input[type="text"] {
    width: 30%;
    padding: 12px;
    margin-right: 2%;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
}
.exam-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.exam-select-btn {
    border-radius: 5px;
    flex-grow: 1;
    max-width: 200px;
}
.exam-select-btn.active-exam-btn {
    background-color: var(--text-dark) !important;
}

/* 7. Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* 8. Footer (FIXED STYLES) */
.main-footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 5% 10px 5%;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}
/* ... (Other Footer styles like h3, ul, li, a, social-links are correct) ... */


/* === Media Queries (FIXED RESPONSIVENESS) === */
@media (max-width: 768px) {
    /* Mobile Menu */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: white;
        box-shadow: 0 4px 4px rgba(0,0,0,0.1);
        padding-bottom: 10px;
    }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: block; }
    
    /* Faculty Grid Fix for Mobile */
    .faculty-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    /* Footer Grid Fix for Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Result Inputs Fix for Mobile */
    .result-box select,
    .result-box input[type="text"] {
        width: 100%; 
        margin-right: 0;
        margin-bottom: 10px;
    }
    .exam-buttons button {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
    }
    
    /* General Font Size Adjustments */
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content .full-name { font-size: 1.4rem; }
    .about-container { flex-direction: column; }
}
