/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary: #7f0606;       /* Deep Navy Blue */
    --highlight: #f4a226;     /* Orange/Gold */
    --accent: #ca2c2c;        /* Red */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.popup-open {
    overflow: hidden;
}

.startup-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 23, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.startup-popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.startup-popup-card {
    position: relative;
    width: min(96vw, 960px);
    border-radius: 28px;
    background: #f1f7f5;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
}

.startup-popup-overlay.is-visible .startup-popup-card {
    animation: popupCardEnter 0.45s ease forwards, popupCardFloat 5s ease-in-out 0.55s infinite;
}

.startup-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #4b5563;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.startup-popup-close:hover {
    color: #111827;
    background: #ffffff;
}

.startup-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.startup-popup-visual {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.startup-popup-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    z-index: 1;
    background: rgba(127, 6, 6, 0.94);
    color: #fff5d6;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    transform: translateY(-8px);
    opacity: 0;
}

.startup-popup-badge i {
    margin-right: 6px;
}

.startup-popup-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    filter: saturate(1.05);
}

.startup-popup-content {
    padding: 42px 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(18px);
}

.startup-popup-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    color: #7f0606;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.startup-popup-subtitle {
    text-align: center;
    color: #4b1d1d;
    margin-bottom: 22px;
    font-weight: 600;
}

.startup-level-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.startup-level-card {
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    background: #ffffff;
    border: 1.5px solid #f2c06b;
    box-shadow: 0 8px 18px rgba(127, 6, 6, 0.08);
}

.startup-level-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: #900d0d;
}

.startup-level-card p {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #7f0606;
}

.startup-level-card.tuition-card p {
    font-size: 1.55rem;
}

.startup-popup-contact-box {
    margin-top: 6px;
    background: linear-gradient(135deg, #900d0d, #5a0505);
    border-radius: 18px;
    padding: 16px;
}

.startup-popup-overlay.is-visible .startup-popup-badge {
    animation: popupFadeUp 0.45s ease 0.25s forwards;
}

.startup-popup-overlay.is-visible .startup-popup-visual img {
    animation: popupImageSweep 0.9s ease 0.1s forwards;
}

.startup-popup-overlay.is-visible .startup-popup-content {
    animation: popupContentEnter 0.5s ease 0.2s forwards;
}

.startup-popup-overlay.is-visible .startup-level-card {
    animation: popupFadeUp 0.4s ease forwards;
}

.startup-popup-overlay.is-visible .startup-level-card:nth-child(1) {
    animation-delay: 0.32s;
}

.startup-popup-overlay.is-visible .startup-level-card:nth-child(2) {
    animation-delay: 0.4s;
}

.startup-popup-overlay.is-visible .startup-popup-contact-box {
    animation: popupFadeUp 0.45s ease 0.48s both;
}

.startup-popup-contact-box h4 {
    color: #f8cc7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.startup-contact-link {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

.startup-contact-link:last-child {
    margin-bottom: 0;
}

.startup-contact-link i {
    width: 16px;
    color: #fde047;
}

.startup-contact-link:hover {
    color: #ecfeff;
}

.startup-popup-progress {
    position: relative;
    width: 100%;
    height: 6px;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.2);
    overflow: hidden;
}

.startup-popup-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #f97316 60%, #ef4444);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.5);
}

@media (max-width: 900px) {
    .startup-popup-card {
        width: min(96vw, 640px);
    }

    .startup-popup-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .startup-popup-visual {
        height: 240px;
    }

    .startup-popup-content {
        padding: 26px 18px 20px;
    }

    .startup-level-cards {
        grid-template-columns: 1fr;
    }
}

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

@keyframes popupImageSweep {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1);
    }
}

@keyframes popupCardFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.003);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes popupContentEnter {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes sectionFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cursorPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.12);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.home-page .auto-reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(2px);
    transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.home-page .auto-reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.home-page .cursor-dot,
.home-page .cursor-ring {
    position: fixed;
    left: -100px;
    top: -100px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 7000;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.home-page .cursor-dot {
    width: 8px;
    height: 8px;
    background: #f4a226;
}

.home-page .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(127, 6, 6, 0.65);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(1px);
}

.home-page.cursor-ready .cursor-dot,
.home-page.cursor-ready .cursor-ring {
    opacity: 1;
}

.home-page.cursor-hover .cursor-ring {
    transform: translate(-50%, -50%) scale(1.35);
    border-color: rgba(244, 162, 38, 0.95);
    animation: cursorPulse 0.9s ease-in-out infinite;
}

@media (hover: none), (pointer: coarse) {
    .home-page .cursor-dot,
    .home-page .cursor-ring {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .auto-reveal,
    .home-page .auto-reveal.in-view {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .home-page .cursor-ring,
    .home-page.cursor-hover .cursor-ring {
        animation: none;
    }
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 50px 0; }

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    .section {
        padding: 40px 0;
    }
}
.bg-light { background: var(--bg-light); }
.center { text-align: center; }


/* ========================
   DYNAMIC SLANT HEADER
   ======================== */
/* ========================
   CLEAN SLANTED HEADER CSS
   ======================== */

/* 1. Main Header Container */
.slant-header {
    display: flex;
    height: 100px;
    background: white;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* 2. LEFT: The Slanted Logo Box */
.logo-slant-container {
    width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    padding-left: 70px;
    border-bottom: 2px solid #0f1c3f;
}

/* The Slanted Shape & Black Divider */
.logo-slant-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: -25px;
    width: 50px;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    transform: skewX(-20deg);
    border-right: 2px solid #0f1c3f; 
    border-bottom: 2px solid #0f1c3f;
}

.logo-link img {
    height: 75px; 
    max-width: 100%;
    object-fit: contain;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
    transition: all 0.3s ease;
}

.logo-link img:hover {
    filter: drop-shadow(0 4px 8px rgba(127, 6, 6, 0.15));
    transform: translateY(-1px);
}

/* 3. RIGHT: The Content Area (Red + White Bars) */
.header-right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* CRITICAL: Pulls the bars LEFT to sit BEHIND the logo slant */
    margin-left: -65px; 
}

/* --- Top Red Bar --- */

.top-bar-red {
    background: linear-gradient(90deg, #7f0606 0%, #900d0d 50%, #5a0505 100%);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    padding-right: 40px;
    padding-left: 80px;
    color: white;
    font-size: 0.85rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.contact-info { 
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i { 
    color: #fde047;
    font-size: 0.9rem;
    margin-right: 6px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.divider { 
    margin: 0 18px;
    opacity: 0.4;
    height: 18px;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.social-icons { 
    display: flex;
    gap: 18px;
    margin-left: 20px;
    align-items: center;
}

.social-icons a { 
    color: white;
    font-size: 0.95rem;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.social-icons a:hover { 
    color: #fde047;
    background: rgba(255, 222, 71, 0.25);
    transform: translateY(-2px);
}

/* --- Main White Nav Bar --- */
.main-nav-white {
    background: white;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
    padding-left: 80px;
    border-bottom: 2px solid #0f1c3f;
}

.nav-menu {
    display: flex;
    gap: 38px;
    list-style: none;
    margin-right: 40px;
}

.nav-menu li a {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.6px;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

/* Hover Effect */
.nav-menu li a:hover { 
    color: #7f0606;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #7f0606, #f4a226);
    transition: width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 999px;
}

.nav-menu li a:hover::after { 
    width: 100%;
}


/* --- Admission Button (Professional Styling) --- */
.btn-admission-red {
    background: linear-gradient(135deg, #7f0606 0%, #900d0d 50%, #f4a226 130%);
    color: white;
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(127, 6, 6, 0.3);
    display: inline-block;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-admission-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.btn-admission-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(127, 6, 6, 0.4);
    left: 0;
}

.btn-admission-red:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(127, 6, 6, 0.3);
}

/* --- MOBILE RESPONSIVE --- */
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: #0f1c3f; }
.mobile-menu { display: none; }

@media (max-width: 1024px) {
    .slant-header { height: 80px; }
    
    /* DISABLE SLANT ON MOBILE */
    .logo-slant-container {
        width: auto;
        clip-path: none; /* Removes the slant */
        filter: none;    /* Removes the shadow line */
        padding-right: 20px;
        padding-left: 20px;
        border-right: 1px solid #eee;
        border-bottom: none;
    }
    .logo-link img { height: 50px; margin-right: 0; }
    
    .header-right-content { margin-left: 0; }
    .top-bar-red { display: none; } /* Hide red bar */
    .nav-menu, .btn-admission-red { display: none; }
    
    .main-nav-white {
        border-bottom: none;
        justify-content: flex-end;
        padding-right: 20px;
        padding-left: 0;
    }
    
    .hamburger { display: block; }
    
    .mobile-menu {
        display: none; /* JS Toggles this */
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: white;
        flex-direction: column;
        border-top: 3px solid #900d0d;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .mobile-menu a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid #eee;
        color: #333;
        font-weight: 600;
        text-align: center;
    }
}
/* Blue Info Bar */
.info-bar {
    background: var(--primary);
    color: var(--white);
    padding: 15px 0;
}

.info-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-identity h1 {
    color: var(--highlight);
    font-size: 1.6rem;
    margin: 0;
}

.school-identity p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 2px 0 0;
}

.contact-actions { text-align: right; }

.call-text {
    font-size: 0.85rem;
    color: #74b9ff;
    margin-bottom: 5px;
}



/* =========================================
   3. HERO SLIDER (CINEMATIC GRADIENT STYLE)
   ========================================= */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: 100% 100%;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }

/* --- THE PROFESSIONAL GRADIENT SHADOW --- */
/* This creates the black/navy shadow fading up from the bottom */
.slide::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 70%; /* Covers bottom 70% of image */
    background: linear-gradient(to top, rgba(15, 28, 63, 0.95) 0%, rgba(15, 28, 63, 0.6) 40%, transparent 100%);
    z-index: 1;
}

/* --- CAPTION STYLING --- */
.slide-caption {
    position: absolute;
    bottom: 60px;
    left: 5%;
    right: 5%;
    z-index: 2;
    max-width: 900px;
    
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Animation: Text slides up when active */
.slide.active .slide-caption {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide-caption::before {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--highlight);
    margin-bottom: 16px;
}

/* Heading Text */
.slide-caption h2 {
    font-size: 2.8rem;
    color: white;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
}

/* Subtitle Text (If you add <p> tags) */
.slide-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 700px;
    margin-top: 10px;
}

/* --- NAVIGATION BUTTONS --- */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px; height: 50px;
    border-radius: 50%; /* Circle Buttons */
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.prev-btn:hover, .next-btn:hover {
    background: var(--highlight);
    border-color: var(--highlight);
    color: #000;
    transform: scale(1.1);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .hero-slider-container { height: 400px; }
    
    .slide::after { height: 80%; } /* Darker shadow on mobile for readability */
    
    .slide-caption { bottom: 60px; left: 20px; right: 20px; }
    
    .slide-caption h2 { font-size: 1.8rem; }
    .slide-caption p { font-size: 0.9rem; display: none; /* Hide subtitle on very small screens */ }
    
    .prev-btn, .next-btn { display: none; } /* Hide arrows on mobile */
}

/* =========================================
   4. RED TICKER (Horizontal Scroll)
   ========================================= */
.ticker-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--accent);
    color: white;
    display: flex;
    height: 40px;
    align-items: center;
    z-index: 20;
}

.ticker-label {
    background: #b71540;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-left 25s linear infinite;
    font-weight: 500;
}
.ticker-content:hover { animation-play-state: paused; }

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   5. SECTIONS (About, Notices, Courses)
   ========================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 3px solid var(--highlight);
    display: inline-block;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
        display: block;
        width: 100%;
    }
}

.lead {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.stats-grid {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}
.stat-box h3 { font-size: 2rem; color: var(--primary); margin-bottom: 5px; }

/* Notice Board Wrapper */
.notice-board-wrapper {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.notice-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-body {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

/* Vertical Scroll Animation (UPDATED) */
.vertical-scroll {
    position: absolute;
    width: 100%;
    animation: scroll-up 15s linear infinite;
}
.vertical-scroll:hover { animation-play-state: paused; }

@keyframes scroll-up {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

.notice-list li {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.notice-list .date {
    display: inline-block;
    background: var(--highlight);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    margin-bottom: 5px;
}

.notice-list a { display: block; font-weight: 500; }
.notice-list a:hover { color: var(--accent); }

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}
.course-card:hover { transform: translateY(-6px); }

.card-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; }
.badge {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 12px;
}

/* =========================================
   6. MOBILE RESPONSIVENESS (UPDATED)
   ========================================= */
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
.mobile-menu { display: none; }

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

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: block; }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: white;
        flex-direction: column;
        border-bottom: 2px solid var(--highlight);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .mobile-menu a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid #eee;
        color: var(--text-dark);
        font-weight: 500;
    }

    .info-flex { flex-direction: column; text-align: center; gap: 10px; }
    .hero-slider-container { height: 300px; }
    .slide-caption { display: none; }
    
    .split-layout { grid-template-columns: 1fr; }
    
    /* Footer Mobile Adjustments */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links a, .contact-row, .footer-social { justify-content: center; }
}

/* =========================================
   7. FOOTER STYLES
   ========================================= */
/* 1. Main Footer Background */
.main-footer {
    background-color: #1a2233;
    color: #b0b8c4;
    font-size: 0.95rem;
    padding-top: 45px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr;
    gap: 60px;
    padding-bottom: 40px;
}

/* Headings */
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Col 1: Logo */
.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.motto {
    text-align: center;
    font-size: 0.75rem;
    color: #6482ad;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Col 2: Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #b0b8c4;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-links a i {
    font-size: 0.8rem;
    color: #6482ad; /* Little arrow color */
}
.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px; /* Slight slide effect */
}

/* Col 3: Opening Hours Table Effect */
.opening-hours {
    list-style: none;
    padding: 0;
}
.opening-hours li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 7px 0;
    font-size: 0.9rem;
}
.opening-hours li.closed span:last-child {
    color: #ff6b6b; /* Red text for 'Closed' */
}
/* ========================
   PROFESSIONAL MARQUEE (Toppers)
   ======================== */

.marquee-wrapper {
    position: relative;
    max-width: 100%;
    margin-bottom: 15px;
}

.marquee-label-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.marquee-label {
    font-size: 1.2rem;
    font-weight: 700;
    padding-left: 10px;
    border-left: 4px solid #f4a226;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
}

.see-all-btn {
    background: linear-gradient(135deg, #7f0606 0%, #900d0d 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(127, 6, 6, 0.25);
}

.see-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(127, 6, 6, 0.35);
}

.see-all-btn:active {
    transform: translateY(0);
}

.see-all-btn i {
    font-size: 0.85rem;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.see-all-btn:hover i {
    transform: translateX(2px);
}

.marquee-container {
    position: relative;
    overflow: hidden; /* Hides the scrollbar */
    padding: 10px 0;
    background: transparent;
}

/* 1. THE FADE/BLUR EFFECT (Left & Right) */
.fade-left, .fade-right {
    position: absolute;
    top: 0;
    width: 100px; /* Width of the blur */
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Allows clicking through the fade */
}

/* Gradient matches the section background (assumed #f8f9fa) */
.fade-left {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

/* 2. THE TRACK (Flex container) */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content; /* Allows it to be wider than screen */
}

/* 3. ANIMATIONS */
.scroll-left {
    animation: scroll 25s linear infinite;
}
.scroll-left-slow {
    animation: scroll 35s linear infinite;
}

/* Keyframes: Move from 0 to -50% (because we duplicated the cards) */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* pause on hover for better UX */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}


/* ========================
   TOPPER CARD DESIGN (Professional)
   ======================== */
.topper-card-pro {
    background: white;
    width: 220px; /* Fixed width */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    border-top: 3px solid #0f1c3f; /* Navy Top Border */
    text-align: center;
    padding-bottom: 15px;
    flex-shrink: 0; /* Prevents squashing */
}

.topper-card-pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.topper-card-pro img {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Circle Image */
    object-fit: cover;
    margin-top: 20px;
    margin-bottom: 10px;
    border: 3px solid #f8f9fa;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.topper-card-pro .info h4 {
    color: #0f1c3f; /* Navy Name */
    font-size: 1.1rem;
    margin: 5px 0;
    font-weight: 700;
}

.topper-card-pro .score {
    display: inline-block;
    background: #e3f2fd; /* Light Blue BG */
    color: #0f1c3f;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Different color for Ranks */
.topper-card-pro .rank-badge {
    background: #fde2e2; /* Light Red BG */
    color: #900d0d;
}

.topper-card-pro p {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

/* ========================
   MODAL STYLES (Toppers)
   ======================== */

.topper-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

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

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

.topper-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

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

.topper-modal-content h2 {
    color: #5f0404;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.topper-modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #7f0606 0%, #f4a226 100%);
    border-radius: 999px;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.modal-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
}

@media (min-width: 1200px) {
    .modal-grid-expanded {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .modal-grid-expanded {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .modal-grid-expanded {
        grid-template-columns: repeat(3, 1fr);
    }
}

.modal-card {
    background: linear-gradient(135deg, #faf9f7 0%, #f5ede3 100%);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1.5px solid #f4e8d8;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-grid-expanded .modal-card {
    padding: 16px;
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7f0606 0%, #f4a226 100%);
    border-radius: 16px 16px 0 0;
}

.modal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(127, 6, 6, 0.16);
    border-color: #f4a226;
}

.modal-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid white;
    box-shadow: 0 6px 16px rgba(127, 6, 6, 0.15);
    display: block;
}

.modal-grid-expanded .modal-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
    border: 3px solid white;
}

.topper-student-card h4,
.entrance-student-card h4 {
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.topper-student-card p,
.entrance-student-card p {
    font-size: 0.8rem;
    margin: 4px 0 0;
}

.modal-card h4 {
    color: #5f0404;
    font-size: 1.1rem;
    margin: 12px 0 8px;
    font-weight: 700;
}

.modal-card .score {
    display: inline-block;
    background: linear-gradient(135deg, #7f0606, #900d0d);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 8px 0;
}

.modal-card .rank-badge {
    background: linear-gradient(135deg, #7f0606, #900d0d) !important;
    color: white !important;
}

.modal-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 8px 0 0;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #7f0606;
    color: white;
    transform: rotate(90deg);
}

/* Scrollbar Styling */
.topper-modal-content::-webkit-scrollbar {
    width: 8px;
}

.topper-modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.topper-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7f0606, #f4a226);
    border-radius: 10px;
}

.topper-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5a0505, #d4821f);
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .topper-modal-content {
        padding: 24px;
        border-radius: 16px;
    }

    .topper-modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .modal-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }

    .modal-card {
        padding: 16px;
    }

    .modal-card img {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 12px;
        right: 12px;
    }
}

/* Col 4: Contact Info */
.contact-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.contact-row i {
    font-size: 1.2rem;
    color: #b0b8c4;
    margin-top: 3px;
}
.contact-row p {
    margin: 0;
    line-height: 1.5;
}

/* Social Media Circles */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: 0.3s;
}
.social-icon.fb { background: #3b5998; }
.social-icon.tw { background: #1da1f2; }
.social-icon.insta { background: #e1306c; }
.social-icon.yt { background: #ff0000; }

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* 2. SEO Strip (The Black Bar) */
.footer-seo {
    background-color: #000000;
    color: #6b7280;
    padding: 15px 0;
    font-size: 0.8rem;
    border-top: 1px solid #333;
}
.footer-seo p {
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* 3. Copyright Bar (White) */
.footer-bottom {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.footer-bottom p { margin: 0; }

/* 4. WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
}
.whatsapp-float:hover {
    background: #1ebc57;
    transform: scale(1.05);
}
/* ========================
   FOOTER MAP STYLES
   ======================== */
.footer-map-container {
    margin-top: 25px; /* Space between Motto and Map */
    width: 100%;
    height: 180px;    /* Height of the map */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(20%) contrast(1.1); /* Optional: Makes map blend better with dark footer */
}

/* Hover effect for the map */
.footer-map-container:hover iframe {
    filter: none; /* Shows full color on hover */
}

/* ========================
   MIDDLE SECTION STYLES
   ======================== */
/* ========================
   MIDDLE SECTION STYLES (6-Card Professional Row)
   ======================== */

/* 1. Services Strip Container */
.services-strip-container {
    transform: none; 
    margin-top: 50px; 
    position: relative;
    z-index: 20;
    padding: 0 10px;
}

/* 2. Grid Layout - Forces 6 items in one row */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px; 
}

/* 3. Base Card Style */
.service-box {
    background: white;
    padding: 20px 8px;
    border-radius: 8px;
    text-align: center;
    color: white;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Hover Effect */
.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* 4. THEME COLORS (Navy & Maroon) */
.theme-navy {
    background: linear-gradient(135deg, #0f1c3f, #1a2b5e);
    border-bottom: 4px solid #f4a226;
}

.theme-red {
    background: linear-gradient(135deg, #900d0d, #b71540);
    border-bottom: 4px solid #f4a226;
}

/* 5. Inner Elements */
.icon-circle {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.service-box h3 { 
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: white;
    font-weight: 700;
}

.service-box p { 
    font-size: 0.75rem;
    opacity: 0.95;
    line-height: 1.3;
    margin: 0;
}

.dash { 
    width: 16px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 8px auto 0;
}

/* 6. MOBILE RESPONSIVE (Horizontal Scroll) */
/* Essential: 6 cards cannot fit on phone, so we let users scroll sideways */
@media (max-width: 1024px) {
    .services-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        gap: 15px;
    }
    
    .service-box {
        min-width: 160px; /* Force minimum width */
        scroll-snap-align: start;
    }
}
/* 2. Welcome Tweaks */
.sub-heading { color: var(--highlight); font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }

/* 3. Why Choose Us */
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.main-why-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: -10px 10px 0px var(--primary);
}
.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.benefit-icon {
    width: 50px; height: 50px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.benefit-desc h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--primary); }
.benefit-desc p { font-size: 0.95rem; color: var(--text-light); }

/* 4. Security Banner */
.security-banner {
    background: #000;
    color: white;
    padding: 30px 0;
    margin: 40px 0;
    border-left: 5px solid var(--accent);
}
.security-flex {
    display: flex; align-items: center; gap: 20px;
}
.security-icon { font-size: 2.5rem; color: var(--accent); animation: blink 2s infinite; }
.security-text h3 { color: var(--highlight); margin-bottom: 5px; }
.security-badge { 
    margin-left: auto; 
    border: 1px solid var(--highlight); 
    padding: 5px 15px; 
    border-radius: 20px; 
    color: var(--highlight);
    font-size: 0.9rem;
}
@keyframes blink { 50% { opacity: 0.5; } }

/* 5. Computer Lab Gallery (Mobile Slide) */
.lab-gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.lab-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .lab-item img {
        height: 180px;
    }
}
.lab-item:hover img { 
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(127, 6, 6, 0.15);
}
.swipe-hint { 
    display: none; 
    text-align: center; 
    font-size: 0.8rem; 
    color: var(--text-light); 
    margin-top: 12px;
    font-weight: 500;
}

/* 6. Toppers Grid */
.toppers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.topper-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary);
}
.topper-img {
    width: 100px; height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--highlight);
}
.topper-img img { width: 100%; height: 100%; object-fit: cover; }
.topper-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.rank { font-weight: bold; color: var(--accent); font-size: 1.2rem; }
.exam { font-size: 0.85rem; color: var(--text-light); }

/* 7. Quick Enrollment Strip */
.enrollment-strip {
    background: linear-gradient(90deg, #900d0d, #5a0505);
    padding: 30px 0;
    color: white;
    margin: 0;
}
.enroll-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.enroll-text h3 { 
    color: white; 
    font-size: 1.6rem; 
    margin-bottom: 4px;
    font-weight: 700;
}
.enroll-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}
.btn-enroll {
    background: white;
    color: var(--accent);
    padding: 11px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.btn-enroll:hover { 
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================
   RESPONSIVE ADJUSTMENTS
   ======================== */
@media (max-width: 768px) {
    /* Services Stack */
    .services-strip-container { transform: none; margin-top: 20px; }
    
    /* Why Choose Stack */
    .why-choose-grid { grid-template-columns: 1fr; }
    .main-why-img { margin-bottom: 20px; }
    
    /* Security Stack */
    .security-flex { flex-direction: column; text-align: center; }
    .security-badge { margin: 10px auto 0; }
    
    /* Lab Mobile Slider Logic */
    .lab-gallery-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 10px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .lab-item {
        min-width: calc(100vw - 30px);
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    .swipe-hint { 
        display: block; 
    }

    /* Enrollment Stack */
    .enroll-flex { flex-direction: column; text-align: center; gap: 20px; }
    .enroll-text h3 { font-size: 1.5rem; }
}

/* ========================
   ABOUT SECTION & VIDEO THEME
   ======================== */

.about-centered-layout {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content-center {
    margin-bottom: 30px;
}

/* Typography Matches Theme */
.about-content-center .sub-heading {
    color: #f4a226;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
}

.about-content-center .section-title {
    color: #0f1c3f;
    margin-bottom: 15px;
}

/* THE VIDEO CONTAINER */
.video-container-theme {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    
    border-radius: 12px;
    border: 4px solid #0f1c3f;
    box-shadow: 0 10px 30px rgba(15, 28, 63, 0.15);
    background: #000;
}

.video-container-theme iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* =========================================
   WHY CHOOSE US (Collage & Icons)
   ========================================= */

.why-choose-section {
    padding: 50px 0;
    overflow: hidden;
}

.why-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 35px;
}

/* --- Left: Story Collage Logic --- */
.story-collage {
    position: relative;
    height: 430px;
    width: 100%;
}

.photo-card {
    position: absolute;
    border: 8px solid white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 6px;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 60%;
}
.photo-card img {
    width: 100%;
    display: block;
}

/* Positioning the Photos like a story */
.p1 {
    top: 0;
    left: 0;
    z-index: 1;
    transform: rotate(-5deg);
}
.p2 {
    top: 50px;
    right: 10px;
    z-index: 3;
    transform: rotate(3deg);
}
.p3 {
    bottom: 20px;
    left: 40px;
    z-index: 2;
    transform: rotate(-3deg);
}

/* Hover Effect: Pop up slightly */
.photo-card:hover {
    z-index: 10;
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 12px 28px rgba(127, 6, 6, 0.2);
}

/* --- Right: Feature List Logic --- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.f-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Icon Colors */
.icon-blue { background: linear-gradient(135deg, #0f1c3f, #1a2f5a); }
.icon-green { background: linear-gradient(135deg, #6ab04c, #52a043); }
.icon-red { background: linear-gradient(135deg, #7f0606, #900d0d); }

.f-content h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}
.f-content p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .why-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-collage {
        height: 350px; /* Smaller height on phone */
        width: 90%;
        margin: 0 auto;
    }
    
    .features-list {
        width: 100%;
    }
    
    /* Adjust photo sizes for mobile */
    .photo-card { width: 55%; }
    .p2 { right: 0; } /* Keep images inside screen */
}

/* ========================
   EVENTS SECTION STYLES
   ======================== */

/* Life at kauRga Section */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom effect on hover */
.event-card:hover .event-img img {
    transform: scale(1.1);
}

/* The Date Badge */
.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--highlight); /* Your Orange Color */
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.event-caption {
    padding: 20px;
    text-align: left;
    background: #fff;
    border-top: 4px solid var(--primary); /* Navy Blue Line */
}

.event-caption h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.event-caption p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr; /* Stack events on phone */
        width: 100%;
        padding: 0;
    }
    .event-card {
        margin-bottom: 10px;
    }
}

/* ========================
   ABOUT PAGE STYLES
   ======================== */

/* Founders Grid */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
}

.founder-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: row; /* Side-by-side layout for professionalism */
    border: 1px solid #eee;
    transition: 0.3s;
}

.founder-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

.founder-img-box {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.founder-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-info {
    width: 60%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-info h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 5px; }
.designation { color: var(--highlight); font-weight: bold; font-size: 0.9rem; margin-bottom: 5px; display: block; }
.qualifications { font-size: 0.8rem; color: #888; margin-bottom: 15px; font-style: italic; }
.founder-info p { font-size: 0.9rem; color: #555; line-height: 1.5; margin-bottom: 15px; }

.founder-social a { color: var(--primary); margin-right: 15px; font-size: 1.1rem; transition: 0.3s; }
.founder-social a:hover { color: var(--highlight); }

/* Feature List Checkmarks */
.feature-list-check li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.feature-list-check i { color: var(--highlight); }


/* ========================
   CONTACT PAGE STYLES
   ======================== */

body.contact-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.contact-page > .section {
    flex: 0 1 auto;
    padding-top: clamp(40px, 6vw, 56px);
    padding-bottom: clamp(40px, 6vw, 56px);
    padding-left: clamp(16px, 5vw, 32px);
    padding-right: clamp(16px, 5vw, 32px);
}

body.contact-page > .section:nth-of-type(2) {
    flex-grow: 1;
}

.contact-page .bg-light {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body.contact-page > .main-footer {
    margin-top: auto;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 5vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    padding: 34px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    border-top: 4px solid #900d0d;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.c-icon {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #900d0d, #5a0505);
    color: #ffffff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 16px rgba(127, 6, 6, 0.22);
}

.contact-card h3 {
    margin-bottom: 8px;
    color: #111827;
    font-size: 1.15rem;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.contact-link {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-link:hover {
    color: #900d0d;
}

/* Card Social Icons */
.card-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.card-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.card-socials a:hover {
    background: #900d0d;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Contact Form & Map */
.contact-form-container {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #fff8f1 100%);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    border: 1px solid #f4d8b0;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(127, 6, 6, 0.16) 0%, rgba(127, 6, 6, 0) 70%);
    pointer-events: none;
}

.form-title {
    position: relative;
    margin-bottom: 22px;
    color: #5f0404;
    font-size: 1.55rem;
    letter-spacing: 0.2px;
    padding-bottom: 10px;
}

.form-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7f0606 0%, #f4a226 100%);
}

.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e0e5ef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.98rem;
    background: #fcfdff;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #900d0d;
    box-shadow: 0 0 0 3px rgba(144, 13, 13, 0.16), 0 8px 18px rgba(127, 6, 6, 0.08);
    transform: translateY(-1px);
}

.form-group textarea { resize: vertical; }

.contact-page .contact-form-container .btn-primary.full-width {
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, #7f0606 0%, #9b1111 56%, #f4a226 130%);
    box-shadow: 0 10px 24px rgba(127, 6, 6, 0.3);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.contact-page .contact-form-container .btn-primary.full-width:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 14px 30px rgba(127, 6, 6, 0.36);
}

.contact-page .contact-form-container .btn-primary.full-width:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(127, 6, 6, 0.3);
}

.full-width { width: 100%; }

.map-large-container {
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .contact-cards-grid {
        gap: clamp(18px, 4vw, 32px);
    }
}

@media (max-width: 768px) {
    .founder-card { flex-direction: column; }
    .founder-img-box { width: 100%; height: 250px; }
    .founder-info { width: 100%; }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 24px);
    }
    
    .contact-page .section {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: clamp(16px, 4vw, 24px);
        padding-right: clamp(16px, 4vw, 24px);
    }
    
    .contact-page .section:first-of-type {
        padding-top: 32px;
    }
    
    .map-large-container {
        height: 300px;
    }
}

/* ========================
   GALLERY PAGE STYLES
   ======================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px; /* Base height for rows */
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Gallery Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        gap: 15px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom Image */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay Text (Hidden by default, shows on hover) */
.overlay-text {
    position: absolute;
    bottom: -50px; /* Hidden below */
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transition: 0.3s;
    opacity: 0;
}

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

.overlay-text h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
    color: var(--highlight);
}
.overlay-text p {
    font-size: 0.85rem;
    margin: 0;
}

/* Special Sizes for Mosaic Layout (Desktop Only) */
@media (min-width: 768px) {
    .item-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    .item-tall {
        grid-row: span 2;
    }
}

/* ========================
   PROFESSIONAL ABOUT PAGE STYLES
   ======================== */

/* 1. Mission Box (Text Enhancement) */
.mission-box {
    background: #fff8e1; /* Very light gold */
    border-left: 4px solid var(--highlight);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 0 5px 5px 0;
}
.mission-box h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 5px; }
.mission-box p { margin: 0; color: #555; font-weight: 500; }

/* 2. Image Stack Effect (Left Section) */
.about-image-stack {
    position: relative;
    padding: 20px;
}
.img-front {
    position: relative;
    width: 100%;
    border-radius: 5px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 5px solid white;
}
.img-back {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 90%;
    background: var(--primary);
    border-radius: 5px;
    z-index: 1;
    opacity: 0.1;
}

/* 3. PROFESSIONAL FOUNDERS GRID */
.founders-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-card-pro {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* Soft, deep shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary); /* Navy Accent Line */
    display: flex;
    flex-direction: column;
}

.founder-card-pro:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.founder-photo {
    width: 100%;
    height: 350px; /* Taller, professional portrait height */
    overflow: hidden;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Ensures face is seen */
    transition: transform 0.5s ease;
}

.founder-card-pro:hover .founder-photo img {
    transform: scale(1.05); /* Subtle zoom */
}

.founder-details {
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.founder-details h3 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.founder-details .designation {
    font-size: 0.95rem;
    color: var(--highlight); /* Gold Color */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    width: 50px;
    height: 3px;
    background: #eee;
    margin: 15px auto;
}

.founder-details p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links-pro {
    margin-top: auto;
}
.social-links-pro a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f4f6f8;
    color: var(--primary);
    margin: 0 5px;
    transition: 0.3s;
}
.social-links-pro a:hover {
    background: var(--primary);
    color: white;
}

/* Mobile Fixes for Founders */
@media (max-width: 768px) {
    .founders-grid-pro {
        grid-template-columns: 1fr;
    }
    .founder-photo {
        height: 300px;
    }
}