/* --- Global Styles & Variables --- */
:root {
    --primary-color: #FF9933; /* Saffron - inspired by Swami Vivekananda */
    --secondary-color: #2c3e50; /* Dark Blue/Charcoal - for a modern, techno feel */
    --accent-color: #3498db; /* Bright Blue */
    --light-bg: #f4f7f6;
    --text-color: #333;
    --white-color: #ffffff;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.content-section {
    padding: 80px 5%;
}

.content-section-dark {
    padding: 80px 5%;
    background-color: var(--light-bg);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    margin-right: 10px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 50%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}
/* Add this class to your <style> block or CSS file */

/* This class prevents the body from scrolling when the mobile menu is open */
.no-scroll {
  overflow: hidden;
}

/* --- START: UPDATED HERO SECTION STYLES --- */

/* Ken Burns Animation (Now applied to individual slides) */
@keyframes ken-burns {
    0% { transform: scale(1.0) translateX(0); }
    50% { transform: scale(1.1) translateX(-20px); }
    100% { transform: scale(1.0) translateX(0); }
}

#hero {
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    /* The background is now on the slides, not the hero section itself */
}

/* Container for the background images */
.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual slide styles */
.hero-background-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    
    /* Fade transition */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;

    /* Ken Burns effect on the active slide */
    animation-name: ken-burns;
    animation-duration: 20s;
    animation-iteration-count: infinite;
}

/* The active slide is visible */
.hero-background-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1; /* Sits above the images but below the content */
}

.hero-content {
    position: relative;
    z-index: 2; /* Sits on top of everything */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-content .tagline {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* --- END: UPDATED HERO SECTION STYLES --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}
.about-text { flex: 1; }
.about-image { flex: 1; }
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.stats-counter {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    text-align: center;
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
}
.stat-item p {
    font-weight: 600;
    color: var(--secondary-color);
}
/* About Section */
#about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.about-card h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}


/* --- Academics & Tabs --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}
.tab-button {
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    position: relative;
    transition: color 0.3s ease;
}
.tab-button.active {
    color: var(--primary-color);
}
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.stream-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.stream-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stream-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.1);
}
.stream-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.stream-card h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- Facilities Section --- */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.facility-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.facility-item:hover img {
    transform: scale(1.1);
}
.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px;
    transition: opacity 0.4s ease;
}
.facility-overlay h5 {
    color: var(--white-color);
    font-size: 1.3rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.facility-item:hover .facility-overlay h5 {
    transform: translateY(0);
    opacity: 1;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- Contact & Admissions Section --- */
.contact-container {
    display: flex;
    gap: 50px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.contact-info { flex: 1; }
.contact-info ul {
    list-style: none;
    margin: 20px 0;
}
.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}
.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}
.contact-form { flex: 1; }
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 30px 5%;
    text-align: center;
}
.social-links { margin-top: 15px; }
.social-links a {
    color: var(--white-color);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--primary-color);
}

/* --- AI Chatbot --- */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}
.chatbot-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.chatbot-icon:hover {
    transform: scale(1.1);
}
.chatbot-icon .fa-times {
    display: none;
}
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}
.chatbot-container.active .chatbot-window {
    transform: scale(1);
}
.chatbot-container.active .fa-robot { display: none; }
.chatbot-container.active .fa-times { display: block; }

.chatbot-header {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 15px;
    text-align: center;
}
.chatbot-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
}
.chat-message.bot {
    background-color: var(--light-bg);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}
.chat-message.user {
    background-color: var(--accent-color);
    color: var(--white-color);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}
.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
}
#chat-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 5px;
}
#chat-send {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 85px);
        background: var(--white-color);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left 0.4s ease-in-out;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .hamburger {
        display: block;
    }
    .cta-button {
        display: none;
    }

    .about-container, .contact-container {
        flex-direction: column;
    }
    .stream-cards {
        grid-template-columns: 1fr;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 576px) {
    .logo a { font-size: 1rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .contact-container { padding: 20px; }
    .chatbot-window {
        width: 90vw;
        height: 70vh;
        bottom: 70px;
        right: -15px;
    }
}
/* --- Dropdown Menu --- */
.dropdown {
    position: relative; /* This is crucial for positioning the dropdown */
}

.dropdown-menu {
    display: none; /* Hide the dropdown by default */
    position: absolute;
    top: 100%; /* Position it right below the parent link */
    left: 0;
    list-style: none;
    background-color: var(--white-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 220px;
    z-index: 100;
    /* For smooth animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0; /* Override default margin from nav-links */
}

.dropdown-menu a {
    display: block; /* Make the entire area clickable */
    padding: 12px 20px;
    color: var(--secondary-color);
    font-weight: 400; /* Regular font weight for dropdown items */
}

.dropdown-menu a::after {
    display: none; /* We don't need the underline effect here */
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown a i.fa-caret-down {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover a i.fa-caret-down {
    transform: rotate(180deg);
}


/* --- Dropdown on Mobile --- */
@media (max-width: 992px) {
    /* On mobile, the dropdown should behave like a normal part of the menu */
    .dropdown-menu {
        position: static; /* Remove absolute positioning */
        display: block; /* Always visible when mobile menu is open */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        background-color: transparent;
        border-radius: 0;
        padding-left: 20px; /* Indent to show it's a sub-menu */
    }

    .dropdown-menu a {
        padding: 10px 20px;
        color: #555; /* Slightly lighter color for sub-items */
    }
}
/* --- Dropdown Menu --- */
.dropdown {
    position: relative; /* This is crucial for positioning the dropdown */
}

.dropdown-menu {
    display: none; /* Hide the dropdown by default */
    position: absolute;
    top: 100%; /* Position it right below the parent link */
    left: 0;
    list-style: none;
    background-color: var(--white-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 220px;
    z-index: 100;
    /* For smooth animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0; /* Override default margin from nav-links */
}

.dropdown-menu a {
    display: block; /* Make the entire area clickable */
    padding: 12px 20px;
    color: var(--secondary-color);
    font-weight: 400; /* Regular font weight for dropdown items */
}

.dropdown-menu a::after {
    display: none; /* We don't need the underline effect here */
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown a i.fa-caret-down {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover a i.fa-caret-down {
    transform: rotate(180deg);
}


/* --- Dropdown on Mobile --- */
@media (max-width: 992px) {
    /* On mobile, the dropdown should behave like a normal part of the menu */
    .dropdown-menu {
        position: static; /* Remove absolute positioning */
        display: block; /* Always visible when mobile menu is open */
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        background-color: transparent;
        border-radius: 0;
        padding-left: 20px; /* Indent to show it's a sub-menu */
    }

    .dropdown-menu a {
        padding: 10px 20px;
        color: #555; /* Slightly lighter color for sub-items */
    }
}
/* Staff & Table Styles */
#staff h3, #about-society h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}
.table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
table {
    width: 80%;
    border-collapse: collapse;
    min-width: 600px;
}
table caption {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    background: var(--secondary-color);
    color: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
thead tr {
    background-color: var(--light-color);
}
th {
    font-weight: 600;
    color: var(--dark-color);
}
tbody tr:hover {
    background-color: #f1f1f1;
}
/* Contact / Enquiry Form Section */
#contact {
    background-color: #fff;
}
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-color);
    padding: 40px;
    border-radius: 10px;
}
.form-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.form-group button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}
/* --- STYLES FOR ADMISSION ENQUIRY FORM PAGE --- */

.form-page-container {
    background-color: #f4f7f6; /* Light gray background for the page */
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.form-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #2c3e50; /* --dark-color from main styles */
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #555;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3; /* --primary-color */
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #ff9800; /* --secondary-color */
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #e68900;
    transform: translateY(-2px);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.form-footer a {
    color: #0056b3; /* --primary-color */
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .form-container {
        padding: 1.5rem;
    }
    .form-header h2 {
        font-size: 1.5rem;
    }
}
