/* --- Variables & Reset --- */
:root {
    --primary-color: #003366; 
    --secondary-color: #FFC300; 
    --text-color: #222;
    --light-bg: #f5f8ff; 
    --dark-bg: #002244;
    --header-height: 100px; /* Adjusted for 3-line logo */
    font-size: 16px; 
    scroll-behavior: smooth; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

.container {
    width: 90%; 
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Bug Fix: Section anchor target compensation for fixed header --- */
section:target::before,
section#home::before { 
    content: "";
    display: block;
    height: var(--header-height); 
    margin-top: calc( -1 * var(--header-height));
    visibility: hidden;
    pointer-events: none;
}

/* --- Typography & Icons --- */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.5em;
    font-weight: 700;
}
h2 { font-size: 3.8rem; } 
h3 { font-size: 2.5rem; margin-top: 0; text-align: center; margin-bottom: 1.5em; }
.highlight-text {
    font-size: 1.2rem;
    font-weight: 400; 
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}
.icon-gold { color: var(--secondary-color); margin-right: 10px; }
.icon-blue { color: var(--primary-color); margin-right: 10px; }

/* --- REQUEST 1, 2: Header, Centered Text, Hamburger-Only --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); 
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0; 
    left: 0; 
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    flex-grow: 1; 
    min-width: 0; 
    /* Logo image CSS removed */
}
.logo-text {
    display: flex;
    flex-direction: column;
    text-align: center; /* Centered text */
    flex-grow: 1;
    min-width: 0;
    padding: 5px 0; 
}
.logo-line-1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}
.logo-line-2 { /* This is the H1 */
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--primary-color);
}
.logo-line-3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.8;
    margin-top: -1rem;
}

/* Dropdown Menu */
        .dropdown-menu {
            list-style: none;
            background-color: #e6f0ff; 
            padding: 0;
            max-height: 0; 
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
        }
        .dropdown-menu.active { max-height: 1500px; } 

        .dropdown-parent > a {
            display: flex; 
            justify-content: center; 
            align-items: center;
            gap: 0.5rem;
        }
        .naac-icon {
            transition: transform 0.3s ease;
        }
        .naac-icon.rotated {
             transform: rotate(180deg);
        }

        .dropdown-menu li a {
            font-size: 1.2rem;
            padding: 0.8rem 0;
            background-color: #e6f0ff; 
            color: var(--primary-color);
            font-weight: 500;
        }
        .dropdown-menu li a:hover {
            background-color: var(--secondary-color);
            color: white;
        }

/* --- Hamburger Menu & Overlay (Always active) --- */
.nav-toggle {
            display: block; 
            background: none;
            border: none;
            font-size: 2rem;
            color: var(--primary-color);
            cursor: pointer;
            z-index: 1001;
            padding: 0.5rem; 
        }
        
        nav {
            display: block; 
            position: fixed;
            top: var(--header-height); 
            left: 0;
            width: 100%;
            height: calc(100vh - var(--header-height));
            background-color: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(5px);
            z-index: 999;
            overflow-y: auto; 
            transform: translateY(-100%); 
            transition: transform 0.3s ease-in-out, visibility 0.3s;
            visibility: hidden; 
        }
        
        nav.active {
            visibility: visible;
            transform: translateY(0);
        }
        
        nav ul {
            list-style: none;
            display: flex; 
            flex-direction: column;
            text-align: center;
            padding: 20px 0;
        }
        nav ul li {
            border-bottom: 1px solid var(--light-bg);
        }
        nav ul li a {
            text-decoration: none;
            color: var(--primary-color);
            display: block;
            padding: 1.2rem 0; 
            font-size: 1.5rem;
            font-weight: 700;
            font-family: 'Montserrat', sans-serif;
            transition: all 0.3s;
        }
        nav ul li a:hover {
            color: white;
            background-color: var(--secondary-color);
        }

/* --- Hero Slideshow --- */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    background-color: var(--dark-bg); 
    margin-top: var(--header-height); 
}
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.slide {
    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;
    z-index: 1;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.3));
    z-index: 3;
}
.hero-content {
    position: relative;
    z-index: 4;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    text-align: left;
    color: white;
    padding-left: 5%; 
}
.hero-content h2 {
    color: white;
    font-size: 4rem; 
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}
.hero-content p {
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-content .cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 18px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}
.hero-content .cta-button:hover {
    background-color: #ffe082; 
    transform: scale(1.05) translateY(-2px);
    color: var(--primary-color);
}

/* --- REQUEST: New Notice Ticker Section --- */
.notice-section {
    background-color: var(--light-bg); /* Use light background */
    padding: 2rem 0; /* Less padding than a full section */
    border-bottom: 1px solid #ddd;
}
.notice-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.notice-title-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    flex-shrink: 0; /* Don't let it shrink */
}
.notice-title-box i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}
.notice-title-box h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0;
    white-space: nowrap;
}
.notice-ticker-container {
    height: 3rem; /* Height for one line of text */
    overflow: hidden;
    flex-grow: 1;
}
.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: ticker-scroll 8s linear infinite; /* 4 items * 4s = 16s */
}
.notice-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.5;
    height: 3rem; /* Match container height */
    padding: 0 1rem;
}
.notice-list li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}
.notice-list li a:hover {
    color: var(--primary-color);
}
.notice-list li .notice-date {
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    margin-left: 2rem;
}

@keyframes ticker-scroll {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(0); } /* Pause on item 1 */
    25%  { transform: translateY(-3rem); } /* Scroll to item 2 */
    45%  { transform: translateY(-3rem); } /* Pause on item 2 */
    50%  { transform: translateY(-6rem); } /* Scroll to item 3 */
    70%  { transform: translateY(-6rem); } /* Pause on item 3 */
    75%  { transform: translateY(-9rem); } /* Scroll to item 4 */
    95%  { transform: translateY(-9rem); } /* Pause on item 4 */
    100% { transform: translateY(-12rem); } /* Scroll back to start (item 5 which is copy of 1) */
}


/* --- General Sections & Layouts --- */
section {
    padding: 5rem 0;
}
.content-section.dark-bg {
    background-color: var(--light-bg);
}

/* --- About Section --- */
.split-content {
    display: flex;
    gap: 3.125rem;
    margin-top: 1.875rem;
    padding: 1.25rem 0;
}
.split-content h4 {
    color: var(--secondary-color);
}
.affiliation-note {
    background-color: rgba(0, 51, 102, 0.05);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 2.5rem;
    text-align: center;
    font-weight: 600;
    border-left: 5px solid var(--primary-color);
}

/* --- Director's Message --- */
#director-message {
    border-top: 5px solid var(--secondary-color);
    border-bottom: 5px solid var(--secondary-color);
}
.director-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.director-image {
    text-align: center;
}
.director-image img {
    width: 100%;
    max-width: 350px; 
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.director-text {
    text-align: justify;
}
.director-text h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}
.director-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Highlights (RESTORED) --- */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.875rem;
    margin-top: 2.5rem;
}
.highlight-card {
    background-color: white;
    padding: 2.5rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s;
    border-bottom: 5px solid var(--secondary-color);
}
.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.highlight-card i {
    color: var(--primary-color);
    margin-bottom: 0.9375rem;
}

/* --- Programs (RESTORED) --- */
.program-cards {
    display: flex;
    justify-content: center; 
    gap: 1.875rem;
    margin-top: 2.5rem;
    flex-wrap: wrap; 
}
.card {
    background-color: white;
    padding: 1.875rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    border-top: 5px solid var(--secondary-color);
    flex: 1;
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.card h4 {
    font-size: 1.5rem; 
    color: var(--primary-color);
}
.card-desc {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 1em;
}
/* .syllabus-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s ease-in-out, opacity 0.5s;
    opacity: 0;
    text-align: left;
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    padding-left: 5%; 
}
.syllabus-content.active {
    max-height: 1000px; 
    opacity: 1;
} */

.bca{

    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 5px;
    background-color: transparent; 
    transition: all 0.3s;
}

.bca:hover{ 
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- Events Section --- */
.events-container {
    display: flex;
    overflow-x: auto; 
    flex-wrap: nowrap; /* FIX: Force single line to guarantee scrolling */
    padding: 1.5rem 0.5rem; 
    gap: 1.5rem;
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}
.events-container::-webkit-scrollbar {
    display: none; 
}
.event-card {
    flex: 0 0 320px; 
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.event-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.event-card-content {
    padding: 1.25rem;
    text-align: center;
}
.event-card-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Gallery (Masonry) --- */
.masonry-grid {
    column-count: 4;
    column-gap: 1rem;
}
.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 10px; 
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.03);
}
.gallery-item img {
    width: 100%;
    height: auto; 
    display: block;
    border-radius: 10px; 
}

/* --- CTA Section (RESTORED) --- */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 5rem 0;
}
.cta-section h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5em;
}
.cta-section p {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}
.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid var(--secondary-color);
}
.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
}
.cta-button.secondary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}
.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}


/* --- Contact & Map (RESTORED) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 3.125rem;
    margin-top: 2.5rem; 
}
.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.contact-info h4 {
    color: var(--secondary-color); 
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
}
.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.contact-info p i {
    color: white;
    margin-right: 10px;
    font-size: 1.1rem;
}
.contact-form-container {
    padding: 0; 
}
.contact-form {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.contact-form-container h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 10px;
    transition: border-color 0.3s;
}
.input-group:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(255, 195, 0, 0.5);
}
.input-group i {
    color: var(--secondary-color);
    margin-right: 10px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background: transparent;
}
.contact-form textarea {
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    transition: border-color 0.3s;
}
.contact-form textarea:focus {
    border-color: var(--secondary-color);
}
.contact-form .cta-button {
    width: 100%;
    border: none;
}
.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
}
.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block; 
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: #bbb;
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.9rem;
}

/* --- Scroll Reveal Styling --- */
.reveal-content, .reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal-content.active, .reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    :root { font-size: 15px; }
    .hero-content h2 { font-size: 3rem; }
    h3 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .masonry-grid { column-count: 3; }
    .director-grid { grid-template-columns: 1fr; }
    .director-image { margin-bottom: 2rem; }
    .director-text { text-align: left; }
}

@media (max-width: 768px) {
    :root { font-size: 14px; }
    :root { --header-height: 80px; } 
    header .container { min-height: var(--header-height); }
    .logo-line-1 { font-size: 1rem; }
    .logo-line-2 { font-size: 1.5rem; }
    .logo-line-3 { font-size: 0.85rem; }
    
    .hero { margin-top: var(--header-height); }
    .hero-content { align-items: center; text-align: center; padding-left: 0; }
    .hero-content h2 { font-size: 2.5rem; } /* FIX: Made smaller */
    .hero-content p { font-size: 1.2rem; } /* FIX: Made smaller */
    .hero-content .cta-button {
        font-size: 1rem; /* FIX: Added mobile rule */
        padding: 12px 25px; /* FIX: Added mobile rule */
    }
    
    /* Notices on mobile */
    .notice-container { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: stretch;
    }
    .notice-title-box {
        justify-content: center;
    }
    .notice-list li a {
        font-size: 0.9rem;
    }
    .notice-list li .notice-date {
        font-size: 0.8rem;
        margin-left: 1rem;
    }
    
    h3 { font-size: 2rem; }
    .split-content { flex-direction: column; gap: 1.5rem; }
    .program-cards { flex-direction: column; gap: 1.25rem; }
    .masonry-grid { column-count: 2; }
    .director-text p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    :root { --header-height: 70px; }
    .logo-line-1 { font-size: 0.9rem; }
    .logo-line-2 { font-size: 1.3rem; }
    .logo-line-3 { font-size: 0.85rem; }
    
    .hero-content h2 { font-size: 1.4rem; } /* FIX: Made smaller */
    .hero-content p { font-size: 1.1rem; } /* FIX: Made smaller */
    .hero-content .cta-button {
        font-size: 0.8rem; /* FIX: Added mobile rule */
        padding: 6px 10px; /* FIX: Added mobile rule */
    }
    
    .contact-info { padding: 1.5rem; }
    .contact-form { padding: 1.5rem; }
    
    .event-card { flex: 0 0 280px; }
}