/* ==========================================================================
   EDUPRIME SCHOOL CMS - FRONTEND BRAND STYLE SHEET (VANILLA CSS)
   ========================================================================== */

/* 1. Imports & Core Variables */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Oswald:wght@600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #154194;
    --primary-dark: #011b3a;
    --gold: #efa800;
    --gold-light: #ffcc00;
    --maroon: #9a1b18;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-number: 'Oswald', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(1, 27, 58, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
}

/* 2. Reset & Typography defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* 3. Utility Layout Classes */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.news-notice-grid { grid-template-columns: 2fr 1fr; gap: 40px; }
.contact-layout { grid-template-columns: 3fr 2fr; gap: 40px; }
.sidebar-layout { grid-template-columns: 2fr 1fr; gap: 50px; }
.sidebar-layout.news-layout { grid-template-columns: 3fr 1fr; gap: 40px; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 500;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--white);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--primary-dark);
    font-weight: 700;
}

.btn-gold:hover {
    background-color: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    background-color: var(--light-bg);
    color: var(--primary) !important;
}

.badge-maroon {
    background-color: var(--maroon) !important;
    color: var(--white) !important;
}

/* Section Header */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

.section-title.left h2 {
    text-align: left;
}

.section-title.left h2::after {
    left: 0;
    transform: none;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

/* 4. Frontend Header & Topbar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 20px;
}

.top-bar-links a:hover {
    color: var(--gold);
}

.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 21px;
    color: var(--primary);
    line-height: 1.1;
    white-space: nowrap;
}

.logo-text p {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    padding: 10px 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    padding-left: 25px;
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-dark);
}

.mobile-menu-header {
    display: none;
}

/* Top Maroon Notice Ticker */
.notice-ticker {
    background-color: var(--maroon);
    color: var(--white);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-weight: 500;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.ticker-title {
    background-color: var(--gold);
    color: var(--primary-dark);
    padding: 4px 15px;
    font-weight: 700;
    font-size: 13px;
    margin-right: 15px;
    z-index: 10;
    border-radius: 4px;
    flex-shrink: 0;
}

.ticker-scroll {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* 5. Hero Slider Styles */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: calc(85vh - 120px);
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(1, 27, 58, 0.85) 40%, rgba(1, 27, 58, 0.2));
}

.slide-content {
    position: relative;
    z-index: 5;
    color: var(--white);
    max-width: 650px;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 20px rgba(0,0,0,0.4);
}

.slide-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--gold);
    width: 28px;
    border-radius: 6px;
}

/* 6. General Content Blocks */
.welcome-section {
    background-color: var(--white);
}

.message-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border-left: 5px solid var(--primary);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.message-photo {
    flex-shrink: 0;
}

.message-photo img {
    border-radius: var(--border-radius);
    width: 140px;
    height: 160px;
    object-fit: cover;
    object-position: top center;
    box-shadow: var(--shadow-sm);
}

.message-body h3 {
    margin-bottom: 5px;
    font-size: 24px;
}

.message-body .designation {
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.message-body blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.message-body .signature {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
}

/* Counters section */
.counters-section {
    background-color: var(--primary-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.counter-card {
    text-align: center;
}

.counter-number {
    font-family: var(--font-number);
    font-size: 56px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-title {
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

/* Why Choose Us Cards */
.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 25px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Latest News Cards */
.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--gold);
    color: var(--primary-dark);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.news-body {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-body h3 {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-body h3 a {
    color: var(--primary-dark);
}

.news-body h3 a:hover {
    color: var(--primary);
}

.news-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Upcoming Events Lists */
.event-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.event-date-badge {
    background-color: var(--primary);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-day {
    font-family: var(--font-number);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.event-info h3 a {
    color: var(--primary-dark);
}

.event-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

/* Notice Board */
.notice-board-container {
    background-color: #fcfcfc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 30px;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.notice-board-header {
    border-bottom: 2px solid var(--maroon);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    color: var(--maroon);
    display: flex;
    justify-content: space-between;
}

.notice-list-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.notice-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.notice-list-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.notice-board-item {
    border-bottom: 1px dashed #cbd5e1;
    padding: 15px 0;
}

.notice-board-item:last-child {
    border-bottom: none;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.notice-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.4;
}

.events-board-container {
    background-color: #fcfcfc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 30px;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.events-board-header {
    border-bottom: 2px solid var(--maroon);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    color: var(--maroon);
    display: flex;
    justify-content: space-between;
}

.events-list-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.events-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.events-list-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Photo Gallery Preview Masonry */
.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 27, 58, 0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Videos Gallery cards */
.video-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    height: 200px;
    background-color: #000;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    opacity: 0.6;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:hover .play-btn {
    background-color: var(--white);
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* Testimonials Slider */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonial-track {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    height: 250px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 25px;
    line-height: 1.5;
}

.testimonial-author {
    font-weight: 700;
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* Admission CTA Banner */
.admission-cta-bar {
    background: linear-gradient(to right, var(--maroon), #be1c17);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.admission-cta-bar h3 {
    color: var(--white);
    font-size: 30px;
    margin-bottom: 10px;
}

.admission-cta-bar p {
    font-size: 16px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* 7. Footer design */
.premium-footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
    font-size: 14px;
}

.footer-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 60px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.footer-widget p {
    line-height: 1.8;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
}

.footer-socials a:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Map Embed */
.map-container {
    width: 100%;
    height: 380px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 8. Forms & Inputs Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 65, 148, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
}

/* 9. Lightbox & Modals */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 15px;
    font-size: 15px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

/* YouTube / Vimeo Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 27, 58, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

/* 10. CBSE Public Disclosure page documents list */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
}

.disclosure-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--white);
}

.disclosure-table th, .disclosure-table td {
    padding: 16px 20px;
    text-align: left;
}

.disclosure-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.disclosure-table tr {
    border-bottom: 1px solid #e2e8f0;
    transition: var(--transition);
}

.disclosure-table tr:hover {
    background-color: var(--light-bg);
}

.disclosure-table tr:last-child {
    border-bottom: none;
}

.disclosure-section-header {
    background-color: var(--light-bg);
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 16px;
    border-bottom: 2px solid #cbd5e1 !important;
}

.pdf-link {
    color: var(--maroon);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pdf-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* General Inner Page Hero Banner */
.inner-hero {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--gold);
}

.inner-hero h2 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs a {
    color: var(--gold);
}

/* Faculty Grid Card */
.faculty-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary);
}

.faculty-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--light-bg);
    box-shadow: var(--shadow-sm);
}

.faculty-card h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.faculty-card .designation {
    color: var(--gold);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.faculty-card .qualification {
    font-size: 13px;
    color: var(--text-muted);
}

/* Tab controls */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background-color: var(--light-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==== WhatsApp Floating Widget ==== */
.wa-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    animation: wa-pulse 2s infinite;
}
.wa-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
    color: #fff;
}
.wa-float-btn i {
    color: #fff;
    font-size: 30px;
    line-height: 1;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* 11. Responsiveness */
@media (max-width: 1200px) {
    .nav-link { font-size: 12px; }
    .nav-menu { gap: 8px; }
}

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .news-notice-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    /* Footer: 2-col grid — Quick Links & Student Corner side by side */
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 30px 20px; }
    .footer-grid .footer-widget:first-child,
    .footer-grid .footer-widget:last-child  { grid-column: span 2; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-notice-grid { grid-template-columns: 1fr !important; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .mobile-toggle { display: block; }
    .container { padding: 0 15px; }

    /* Glassmorphism Mobile Overlay */
    #mobile-overlay {
        backdrop-filter: blur(4px) !important;
        background: rgba(1, 27, 58, 0.45) !important;
        z-index: 99 !important;
    }

    /* Premium Mobile Menu Header */
    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 20px 24px;
        border-bottom: 1px solid var(--light-bg);
        margin-bottom: 15px;
        background: var(--light-bg);
    }
    .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .mobile-menu-logo {
        height: 38px !important;
        width: auto !important;
        flex-shrink: 0;
    }
    .mobile-menu-title h3 {
        font-family: var(--font-body);
        font-size: 14px;
        color: var(--primary);
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
    }
    .mobile-menu-title span {
        font-size: 9px;
        color: var(--text-muted);
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
        display: block;
    }
    .mobile-menu-close {
        background: transparent;
        border: none;
        font-size: 18px;
        color: var(--text-muted);
        cursor: pointer;
        padding: 5px;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu-close:hover {
        color: var(--maroon);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 30px;
        gap: 5px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 200;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu .nav-item {
        width: 100%;
        padding: 0 24px;
    }
    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .nav-menu .nav-link i.fa-caret-down {
        padding: 8px 12px;
        margin-right: -12px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    .nav-menu .btn {
        display: block;
        margin-top: 15px;
        text-align: center;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 5px 0 5px 15px;
        transform: none;
        border-top: none;
        display: none;
    }
    .nav-item:hover .dropdown-menu {
        display: none;
    }
    .slide-content h2 { font-size: 28px; }
    .slide-content p { font-size: 15px; }
    .slide-content { padding: 0 20px; }
    .hero-slider-container { min-height: 350px; height: 55vh; }
    .message-card { flex-direction: column; align-items: center; text-align: center; padding: 25px 20px; }
    .message-photo { width: 100%; display: flex; justify-content: center; margin-bottom: 20px; }
    .message-photo img { margin: 0 auto; width: 110px; height: 130px; }
    .message-body .signature { text-align: center; }
    .section-title h2 { font-size: 28px; }
    .counter-number { font-size: 42px; }
    .inner-hero h2 { font-size: 28px; }
    .inner-hero { padding: 40px 0; }
    .logo-text h1 { font-size: 16px; }
    .logo-text p { display: none; }
    .logo-img { height: 48px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .lightbox-prev, .lightbox-next { display: none; }
    .top-bar-links { display: none; }
    .top-bar-info span:last-child { display: none; }
    .top-bar .container { justify-content: center; text-align: center; }
    .top-bar-info { display: flex; justify-content: center; width: 100%; }
    .top-bar-info span { margin: 0 !important; text-align: center; }
    .feature-card { text-align: center !important; display: flex; flex-direction: column; align-items: center; }
    .sidebar-layout,
    .sidebar-layout.news-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .admission-cta-bar h3 { font-size: 22px; }
    .notice-board-container, .events-board-container { height: auto; min-height: 250px; }
    .wa-float-btn { width: 50px; height: 50px; bottom: 20px; right: 16px; }
    .wa-float-btn i { font-size: 25px; }
}

@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .slide-content h2 { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 30px 15px; }
    .form-box { padding: 20px; }
}

/* ==== Automated Homepage Popup Slider ==== */
.home-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 27, 58, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.home-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.home-popup-modal {
    background: transparent;
    width: auto;
    max-width: 90vw;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(1, 27, 58, 0.35);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-popup-overlay.show .home-popup-modal {
    transform: scale(1);
}

.home-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(1, 27, 58, 0.8);
    backdrop-filter: blur(4px);
    color: var(--white);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.home-popup-close:hover {
    background: var(--maroon);
    transform: rotate(90deg);
}

.home-popup-slider-container {
    position: relative;
    width: 100%;
    background-color: transparent;
}

.home-popup-slides-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.home-popup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.home-popup-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.home-popup-slide img {
    width: 100%;
    max-width: 650px;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.home-popup-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(1, 27, 58, 0.85));
    color: var(--white);
    padding: 25px 20px 15px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.home-popup-dots {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.home-popup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.home-popup-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}
