/*
 * Premium Design System Stylesheet - The Daffodils Public School
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design System Tokens --- */
:root {
    /* Color Palette */
    --primary: #0F2E5C;        /* Premium Deep Royal Navy */
    --primary-light: #1A4684;  /* Mid-tone Accent Blue */
    --secondary: #007A87;      /* Sleek Teal Accent */
    --accent: #E5A93B;         /* Golden Highlights */
    --accent-hover: #D09228;   /* Darker Gold on hover */
    --dark: #0D1B2A;           /* Deep Slate Body Text */
    --light: #F4F7FB;          /* Light Cool-Grey Background */
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 4px rgba(15, 46, 92, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 46, 92, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(15, 46, 92, 0.12);
    --shadow-hover: 0 30px 60px -15px rgba(15, 46, 92, 0.2);
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Glassmorphism Constants */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(15, 46, 92, 0.06);
    --blur-val: 12px;
}

/* --- Base Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
    background: none;
}

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

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

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    transition: var(--transition);
}

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

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 46, 92, 0.2);
}

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

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 169, 59, 0.3);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* --- Loading Screen --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Header / Navigation --- */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
    .top-bar-left {
        flex-direction: column;
        gap: 0.3rem; /* Reduce spacing between contact no and enquiry email */
        width: 100%;
        align-items: center;
    }
    .top-bar-right {
        width: 100%;
        justify-content: center;
        margin-top: 0.2rem;
    }
}

.top-bar-left a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-left a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.main-header.sticky {
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-wrapper img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdowns */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: translateY(10px);
    width: 260px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 0.5rem 0;
    z-index: 1000;
}

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

.dropdown-item {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        border-top: none;
        border-left: 2px solid var(--accent);
        padding-left: 1rem;
        margin-top: 0.5rem;
        left: auto;
        right: auto;
    }
    
    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-item-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .nav-item-dropdown > a::after {
        content: '▼';
        font-size: 0.7rem;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 46, 92, 0.85) 0%, rgba(13, 27, 42, 0.75) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    padding: 0 1.5rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* --- Statistics Section --- */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 3.5rem 0;
    position: relative;
    z-index: 4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .stat-number {
        font-size: 2.2rem;
    }
}

/* --- Principal Message Section --- */
.principal-message-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.principal-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.principal-image-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
}

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

.principal-image-container:hover img {
    transform: scale(1.05);
}

.principal-details h3 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.principal-role {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.principal-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

@media (max-width: 920px) {
    .principal-message-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .principal-image-container {
        max-width: 350px;
        margin: 0 auto;
    }
}

/* --- Why Daffodils Cards --- */
.why-section {
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 12px;
    background: var(--light);
    border: 1px solid rgba(15, 46, 92, 0.05);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.why-card:hover h3 {
    color: var(--white);
}

.why-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

@media (max-width: 920px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* --- AI Powered Learning --- */
.ai-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.ai-section h2 {
    color: var(--white);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ai-visual {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.ai-feature-card:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
}

.ai-feature-card i {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.ai-feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.ai-feature-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 920px) {
    .ai-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .ai-visual {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1rem;
    }
    .ai-feature-card {
        padding: 1.25rem;
    }
}

/* --- Facilities Section --- */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.facility-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.facility-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(15, 46, 92, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.facility-card:hover .facility-icon {
    background-color: var(--accent);
    color: var(--primary);
    transform: rotateY(180deg);
}

.facility-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.facility-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Achievements Scrolling Ticker & Cards --- */
.achievements-ticker-container {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.achievements-ticker-wrapper {
    display: inline-flex;
    animation: ticker 25s infinite linear;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 3rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.ticker-item i {
    color: var(--accent);
    margin-right: 0.5rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-card {
    overflow: hidden;
}

.achievement-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.achievement-card:hover .achievement-img img {
    transform: scale(1.08);
}

.achievement-info {
    padding: 1.5rem;
}

.achievement-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.achievement-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 920px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Notice Board & News Updates --- */
.news-notice-section {
    background-color: var(--white);
}

.news-notice-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Notice Board */
.notice-board-container {
    background: var(--light);
    border: 1px solid rgba(15, 46, 92, 0.08);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 480px;
    display: flex;
    flex-direction: column;
}

.notice-board-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 1.5rem;
}

.notice-board-header i {
    font-size: 1.5rem;
    color: var(--accent);
}

.notices-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.notice-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

.notice-item:hover {
    transform: translateX(5px);
}

.notice-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.notice-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0.3rem 0;
}

.notice-link {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.notice-link:hover {
    color: var(--accent);
}

/* News List */
.news-side-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item-horizontal {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border-radius: 8px;
    padding: 0.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(15, 46, 92, 0.03);
}

.news-item-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-item-img {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex-grow: 1;
}

.news-item-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.news-item-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 920px) {
    .news-notice-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

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

.testimonials-slider {
    position: relative;
    max-width: 750px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author h4 {
    font-size: 1rem;
    font-weight: 700;
}

.testimonial-author p {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-top: 0.2rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* --- Campus Video Section --- */
.campus-video-container {
    width: 100%;
    height: 450px;
    background-color: var(--dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.campus-video-element {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain; /* display entire video frame on desktop without zoom/cropping */
    z-index: 1;
}

/* --- Campus Video Overlay --- */
.video-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.video-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.55);
    z-index: 1;
}

.video-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-overlay-play-btn {
    font-size: 5rem;
    color: var(--accent);
    cursor: pointer;
    transition: var(--transition);
}

.video-overlay-title {
    color: var(--white);
    font-size: 2rem;
    margin-top: 1rem;
}

.video-overlay-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    max-width: 600px;
}

.video-overlay-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.45;
}

.video-overlay-container:hover .video-overlay-play-btn {
    transform: scale(1.1);
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .campus-video-container {
        height: 56.25vw; /* 16:9 Aspect Ratio */
    }
    .video-overlay-play-btn {
        font-size: 3rem;
    }
    .video-overlay-title {
        font-size: 1.35rem;
        margin-top: 0.5rem;
    }
    .video-overlay-desc {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
}

/* --- Gallery System Masonry Layout --- */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid rgba(15, 46, 92, 0.08);
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Masonry System */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
}

@media (max-width: 920px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 580px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(15, 46, 92, 0.03);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

.gallery-item-title {
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 6px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

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

.lightbox-caption {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* --- Contact & Forms Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    align-items: stretch;
}

.contact-info-panel {
    background-color: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-detail-item {
    display: flex;
    gap: 1rem;
}

.contact-detail-item i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 0.2rem;
}

.contact-detail-item div h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-detail-item div p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.map-embed {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

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

/* Form Styles */
.form-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 46, 92, 0.05);
}

.form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    background-color: var(--light);
    border: 1px solid rgba(15, 46, 92, 0.08);
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(26, 70, 132, 0.1);
}

textarea.form-control {
    height: 110px;
    resize: none;
}

@media (max-width: 920px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Announcement Popup --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-modal {
    background-color: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 580px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-banner {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.popup-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.popup-body h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.popup-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* --- Local AI FAQ Chatbot --- */
#faq-chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 1.6rem;
    z-index: 9998;
    transition: var(--transition);
}

#faq-chat-launcher:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: var(--primary-light);
}

#faq-chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: 90vw;
    height: 520px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 46, 92, 0.1);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpFade 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.chat-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-bot-identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-bot-status h4 {
    color: var(--white);
    font-size: 0.95rem;
}

.chat-bot-status span {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-bot-status span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 50%;
}

.chat-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--light);
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-bot {
    background-color: var(--white);
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: var(--shadow-sm);
}

.message-user {
    background-color: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-suggested-qs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.suggested-q-btn {
    background-color: var(--white);
    border: 1px solid rgba(15, 46, 92, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.chat-input-area {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 0.5rem;
    background-color: var(--white);
}

.chat-input-area input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    background-color: var(--light);
    border: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background-color: var(--primary-light);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.4rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* --- Floating Widgets --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 2rem;
    z-index: 9997;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* --- Footer --- */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer-about p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.4rem;
}

.footer-contact li {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    color: var(--accent);
    margin-top: 0.3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom-left a:hover {
    color: var(--accent);
}

@media (max-width: 920px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 544px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- CBSE Documents & Disclosure Pages Layout --- */
.cbse-page-layout {
    background-color: var(--white);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
    border: 1px solid rgba(15, 46, 92, 0.05);
}

.cbse-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
}

.cbse-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.cbse-table th, .cbse-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--light-gray);
}

.cbse-table th {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
}

.cbse-table tbody tr:hover {
    background-color: var(--light);
}

.cbse-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #D32F2F;
    font-weight: 600;
}

.cbse-pdf-btn:hover {
    color: var(--primary);
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.faculty-card {
    padding: 2rem 1.5rem;
    border-radius: 10px;
    background-color: var(--light);
    border: 1px solid rgba(15, 46, 92, 0.03);
    text-align: center;
}

.faculty-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.faculty-designation {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.faculty-qualification {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 404 Page Styles --- */
.error-page-wrapper {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-card h1 {
    font-size: 7rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 450px;
}
