/* IIITB COMET Foundation - Modern Website Styles */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --comet-blue: #2E60A9;
    --comet-yellow: #FFCC00;
    --primary-dark: #1E4178;
    --primary-light: #4A7BC8;
    --text-dark: #1A202C;
    --text-light: #4A5568;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== IMAGE STYLES ==================== */
.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

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

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

/* ==================== TOP BAR ==================== */
.top-bar {
    height: 4px;
    background: var(--comet-yellow);
}

/* ==================== TABLET-SPECIFIC FIXES (iPad Air & Surface Pro) ==================== */

/* iPad Air is 820px wide, Surface Pro is 912px wide */
/* These sizes fall between mobile and desktop, causing overlap */

/* Enhanced Header CSS with Tablet Support */

.header {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--comet-blue);
    text-decoration: none;
    transition: var(--transition);
    margin-left: 0;
}

.logo img {
    display: block;
}

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

.logo span {
    line-height: 1.2;
    white-space: nowrap;
}

.logo i {
    font-size: 2rem;
}

.logo:hover {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--comet-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--comet-blue);
    transition: var(--transition);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Large Desktop */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

/* iPad Pro / Large Tablets (1024px) */
@media (max-width: 1024px) {
    .logo {
        gap: 0.8rem;
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}

/* ==================== CRITICAL: Surface Pro & iPad Air Fix ==================== */

/* Surface Pro (912px) and iPad Air (820px) */
@media (max-width: 950px) {
    .logo {
        gap: 0.6rem;
        font-size: 1rem;
        max-width: 50%;
    }
    
    .logo-img {
        height: 36px;
    }
    
    .logo span {
        font-size: 1rem;
        line-height: 1.1;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
}

/* iPad Air specific (820px) */
@media (max-width: 850px) {
    .logo {
        font-size: 0.9rem;
        max-width: 45%;
    }
    
    .logo-img {
        height: 34px;
    }
    
    .logo span {
        font-size: 0.9rem;
    }
}

/* ==================== MOBILE DEVICES ==================== */

/* Standard Tablets / Large Phones (768px and below) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo {
        gap: 0.6rem;
        font-size: 0.95rem;
        margin-left: 0;
        max-width: 70%;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo span {
        font-size: 0.95rem;
        line-height: 1.1;
    }
    
    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }
    
    /* Hide desktop menu, show mobile menu */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 78px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Small Tablets / Large Phones */
@media (max-width: 600px) {
    .logo {
        font-size: 0.85rem;
        max-width: 65%;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo span {
        font-size: 0.85rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0;
    }
    
    .logo {
        gap: 0.5rem;
        font-size: 0.75rem;
        max-width: 65%;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo span {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    
    .nav-menu {
        top: 68px;
    }
}

/* Very Small Phones (iPhone SE) */
@media (max-width: 375px) {
    .logo {
        font-size: 0.65rem;
        gap: 0.4rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .logo span {
        font-size: 0.65rem;
    }
}

/* ==================== LANDSCAPE ORIENTATION FIX ==================== */

/* iPad Air in Landscape (1180px) */
@media (max-width: 1200px) and (orientation: landscape) {
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 38px;
    }
}

/* Tablets in Landscape */
@media (max-width: 950px) and (orientation: landscape) {
    .logo {
        font-size: 0.95rem;
        max-width: 45%;
    }
    
    .logo-img {
        height: 32px;
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.nav-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 74px;
    padding: 4rem 0;
}

/* HERO VIDEO BACKGROUND */

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}


.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--comet-yellow) 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Space Mono', monospace;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== PAGE HERO ==================== */
/* ==================== PAGE HERO (SLIDESHOW) ==================== */
.page-hero {
    position: relative;
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 74px;
    text-align: center;
    overflow: hidden;
     min-height: 85vh;   
    display: flex;
    align-items: center;
}

/* Slideshow container */
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: pageHeroSlide 14s infinite;
    z-index: 0;
}

/* Dark overlay */
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Keep text above slideshow */
.page-hero .container {
    position: relative;
    z-index: 2;
}

@keyframes pageHeroSlide {
    0%   { background-image: url("static/images/aslide1.jpg");}
    13%  { background-image: url("static/images/aslide1.jpg");}

    14%  { background-image: url("static/images/aslide2.jpeg"); background-position: top;}
    27%  { background-image: url("static/images/aslide2.jpeg"); background-position: top;}

    28%  { background-image: url("static/images/aslide3.jpg"); }
    41%  { background-image: url("static/images/aslide3.jpg"); }

    42%  { background-image: url("static/images/aslide4.jpg"); }
    55%  { background-image: url("static/images/aslide4.jpg"); }

    56%  { background-image: url("static/images/aslide5.jpg"); }
    69%  { background-image: url("static/images/aslide5.jpg"); }

    70%  { background-image: url("static/images/aslide6.jpeg"); }
    83%  { background-image: url("static/images/aslide6.jpeg"); }

    84%  { background-image: url("static/images/aslide7.jpeg"); }
    100% { background-image: url("static/images/aslide7.jpeg"); }
}



.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ==================== ANIMATIONS ==================== */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

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

/* ==================== WHO WE ARE SECTION ==================== */
.who-we-are-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.who-we-are-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.who-image .image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--comet-blue) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.who-text h2 {
    font-size: 2.5rem;
    color: var(--comet-blue);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.who-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==================== PROGRAM HIGHLIGHT ==================== */
.program-highlight {
    padding: 4rem 0;
    background: var(--comet-blue);
}

.highlight-box {
    text-align: center;
    color: white;
    padding: 3rem;
}

.highlight-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.highlight-box p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==================== FOCUS AREAS ==================== */
.focus-areas {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

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

.focus-card {
    padding: 2.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--comet-blue);
}

.focus-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background: var(--comet-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.focus-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.focus-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.objective-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.objective-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #374151;
}

/* 4-diamond container */
.objective-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 16px;
    height: 16px;
}

/* Create 4 diamonds using gradients */
.objective-list li::before {
    background:
        linear-gradient(#2e60a9, #2e60a9) center top / 6px 6px no-repeat,
        linear-gradient(#2e60a9, #2e60a9) center bottom / 6px 6px no-repeat,
        linear-gradient(#2e60a9, #2e60a9) left center / 6px 6px no-repeat,
        linear-gradient(#2e60a9, #2e60a9) right center / 6px 6px no-repeat;
    transform: rotate(45deg);
}
/* ==================== MODULES PREVIEW ==================== */
.modules-preview {
    padding: 5rem 0;
    background: white;
}

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

.module-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--comet-blue);
}

.module-card.featured {
    border-color: var(--comet-yellow);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.2);
}

.module-badge {
    background: var(--comet-blue);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.popular-tag {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--comet-yellow);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.module-icon {
    text-align: center;
    font-size: 3rem;
    color: var(--comet-blue);
    padding: 2rem 0 1rem;
}

.module-card h3 {
    padding: 0 2rem;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.module-meta {
    padding: 0 2rem 1rem;
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.module-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-card > p {
    padding: 1.5rem 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.module-highlights {
    padding: 0 2rem 2rem;
    list-style: none;
}

.module-highlights li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-highlights i {
    color: var(--comet-blue);
}

/* ==================== TESTIMONIAL SLIDER ==================== */

.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    transition: transform 1.2s ease-in-out;
}

.testimonial-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    padding: 2rem;
    background: rgba(46, 96, 169, 0.18);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .testimonial-track {
        gap: 1rem;
    }
    .testimonial-card {
        flex: 0 0 100%;
    }
}

/* ==================== COMPANIES / PLACEMENTS SECTION (UPDATED FOR IMAGES) ==================== */
.companies-section {
    padding: 5rem 0 4rem;
    background: var(--text-dark);
    overflow: hidden;
}

.companies-section .section-header {
    margin-bottom: 3rem;
}

.companies-section .section-title {
    color: #ffffff;
}

.companies-section .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

/* Fade edges */
.marquee-wrapper {
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--text-dark), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--text-dark), transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

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

.company-logo-tile {
    flex-shrink: 0;
    width: 180px;
    height: 90px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.company-logo-tile:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.company-logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .company-logo-tile {
        width: 160px;
        height: 80px;
        padding: 0.75rem;
    }
    
    .marquee-track {
        gap: 1.5rem;
    }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--comet-blue) 100%);
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    padding: 5rem 0;
}

.grey-section {
    background: var(--bg-light);
}

.mission-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-layout.reverse {
    direction: rtl;
}

.mission-layout.reverse > * {
    direction: ltr;
}

.text-content h2 {
    font-size: 2rem;
    color: var(--comet-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.text-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.image-content .image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--comet-blue) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* ==================== CURRICULUM DETAILS ==================== */
.module-summary-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.module-summary-card {
    background: linear-gradient(135deg, rgba(46, 96, 169, 0.1) 0%, rgba(74, 123, 200, 0.05) 100%);
    padding: 2rem;
    border-left: 5px solid var(--comet-blue);
    border-radius: 8px;
}

.module-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--comet-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
    font-family: 'Space Mono', monospace;
}

.module-summary-card h3 {
    font-size: 1.25rem;
    color: var(--comet-blue);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.module-summary-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.curriculum-details {
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.curriculum-details:hover {
    border-color: var(--comet-blue);
}

.curriculum-details summary {
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--comet-blue);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.curriculum-details summary i {
    color: var(--comet-blue);
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.curriculum-details[open] .toggle-icon {
    transform: rotate(180deg);
}

.details-content {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.module-intro {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.curriculum-grid h4 {
    color: var(--comet-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.curriculum-grid ul,
.curriculum-list {
    padding-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.9;
}

.curriculum-list li {
    margin-bottom: 1rem;
}

.program-info-box {
    background: var(--bg-light);
    padding: 2rem;
    border-left: 5px solid var(--comet-blue);
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.program-info-box p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ==================== ADMISSION STEPS ==================== */
.admission-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-weight: 800;
}

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

.step-card {
    background: white;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--comet-blue);
}

.step-card .step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--comet-blue);
    opacity: 0.3;
    margin-bottom: 1rem;
    font-family: 'Space Mono', monospace;
}

.step-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.cta-box {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 12px;
}

/* Alternative Admission Section */

.alternative-admission {
    margin-top: 4rem;
    text-align: center;
}

.alternative-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.alt-card {
    background: rgba(46, 96, 169, 0.08);
    padding: 2rem;
    border-radius: 12px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alt-card i {
    font-size: 2rem;
    color: var(--comet-blue);
    margin-bottom: 1rem;
}

.alt-card h3 {
    margin-bottom: 0.75rem;
}

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

/* ============================================
   4x4 GRID GALLERY STYLES
   ============================================ */

/* Gallery Grid Container */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 3rem;
}

/* Individual Gallery Item */
.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 96, 169, 0.3);
}

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

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

/* Overlay with zoom icon */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 96, 169, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ============================================
   LIGHTBOX MODAL STYLES
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Lightbox Content */
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.4s ease;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 20px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (3 columns) */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Mobile (2 columns) */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .gallery-overlay i {
        font-size: 2rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
    
    .lightbox-caption {
        font-size: 0.95rem;
        padding: 0 20px;
    }
}

/* Small Mobile (1 column) */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-item {
        max-width: 100%;
    }
}

/* ============================================
   ADDITIONAL ENHANCEMENTS
   ============================================ */

/* Loading State */
.gallery-item img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.gallery-item img[src] {
    animation: none;
    background: none;
}

/* Keyboard Focus States */
.gallery-item:focus,
.lightbox-nav:focus,
.lightbox-close:focus {
    outline: 3px solid #FFCC00;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

.gallery-item,
.lightbox-nav,
.lightbox-close {
    -webkit-user-select: none;
    user-select: none;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--comet-yellow);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--comet-blue);
}

.partner-logos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.partner-logo-img {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-img img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--comet-yellow);
}

/* ==================== SCROLL TO TOP BUTTON ==================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--comet-blue);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .focus-grid,
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .module-summary-container {
        grid-template-columns: 1fr;
    }
    
    .curriculum-grid {
        grid-template-columns: 1fr;
    }
}    

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 74px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 74px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .who-we-are-content,
    .mission-layout {
        grid-template-columns: 1fr;
    }
    
    .focus-grid,
    .modules-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .program-with-image {
        grid-template-columns: 1fr;
    }
  
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--comet-blue);
    font-weight: bold;
}

.program-details {
    max-width: 900px;
    margin: 0 auto;
}

.program-header-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
}

.program-header-image img {
    width: 100%;
    height: auto;
    display: block;
}

.program-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

.program-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.program-text-section h3 {
    color: var(--comet-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.program-text-section h4 {
    color: var(--comet-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.program-details h3 {
    color: var(--comet-blue);
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.program-details p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ==================== CHAT WIDGET ==================== */

/* Floating action button */
.chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--comet-blue);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 0 6px 24px rgba(46,96,169,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.chat-fab:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 10px 32px rgba(46,96,169,0.55);
}
.chat-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.chat-fab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e53e3e;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.3); }
}

/* Scroll-top sits to the left of the chat fab */
.scroll-top {
    bottom: 28px;
    right: 102px;
}

/* Chat window */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 360px;
    max-height: 540px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    z-index: 1099;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.chat-window.chat-open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
    background: var(--comet-blue);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.chat-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--comet-yellow);
}
.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-avatar-fallback {
    color: var(--comet-blue);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-header-info {
    flex: 1;
}
.chat-header-info h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px;
}
.chat-status {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    display: inline-block;
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
.chat-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    flex-shrink: 0;
}
.chat-close-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f5f7fb;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

/* Message rows */
.chat-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: msgIn 0.25s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
    flex-direction: row-reverse;
}

/* Small avatar for bot messages */
.chat-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--comet-blue);
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Bubbles */
.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.6;
    position: relative;
}
.chat-msg.bot .chat-bubble {
    background: #ffffff;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.chat-msg.user .chat-bubble {
    background: var(--comet-blue);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble p { margin: 0 0 6px; }
.chat-bubble p:last-of-type { margin-bottom: 0; }
.chat-bubble a { color: var(--comet-blue); text-decoration: underline; }
.chat-msg.user .chat-bubble a { color: var(--comet-yellow); }

.chat-time {
    display: block;
    font-size: 0.7rem;
    opacity: 0.55;
    margin-top: 5px;
    text-align: right;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    min-width: 60px;
}
.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #a0aec0;
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%,80%,100% { transform: translateY(0); }
    40%          { transform: translateY(-7px); }
}

/* Quick reply chips */
.chat-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 2px;
}
.chips-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    padding-left: 38px;
}
.chip {
    align-self: flex-start;
    margin-left: 38px;
    background: white;
    border: 1.5px solid var(--comet-blue);
    color: var(--comet-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}
.chip:hover {
    background: var(--comet-blue);
    color: white;
}

/* Input row */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    background: white;
    flex-shrink: 0;
}
.chat-input-row input {
    flex: 1;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    padding: 9px 16px;
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    color: var(--text-dark);
    background: #f9fafb;
}
.chat-input-row input:focus {
    border-color: var(--comet-blue);
    background: white;
}
.chat-input-row input::placeholder { color: #a0aec0; }
#chatSendBtn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--comet-blue);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}
#chatSendBtn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Mobile */
@media (max-width: 480px) {
    .chat-window {
        right: 0;
        bottom: 0;
        width: 100vw;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
    }
    .chat-fab {
        bottom: 20px;
        right: 20px;
    }
    .scroll-top {
        bottom: 20px;
        right: 94px;
    }
}

/* ==================== PHOTO GALLERY SECTION ==================== */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.gallery-slideshow {
    max-width: 1000px;
    margin: 0 auto;
}

/* Main Gallery Display */
.gallery-main {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--text-dark);
    box-shadow: var(--shadow-xl);
}

.gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: all;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 2rem 2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--comet-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.gallery-nav.prev {
    left: 1.5rem;
}

.gallery-nav.next {
    right: 1.5rem;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.thumbnail.active {
    border-color: var(--comet-blue);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(46, 96, 169, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Progress Indicator */
.gallery-progress {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.gallery-progress .current-slide {
    color: var(--comet-blue);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-slides {
        aspect-ratio: 4/3;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-nav.prev {
        left: 0.5rem;
    }
    
    .gallery-nav.next {
        right: 0.5rem;
    }
    
    .gallery-caption {
        font-size: 0.9rem;
        padding: 1.5rem 1rem 1rem;
    }
    
    .thumbnail {
        width: 80px;
        height: 55px;
    }
    
    .gallery-thumbnails {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-slides {
        aspect-ratio: 1/1;
    }
    
    .thumbnail {
        width: 60px;
        height: 40px;
    }
}

/* 6. ENHANCED BUTTON ANIMATIONS */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.95);
}

/* 7. SMOOTH UNDERLINE FOR NAV LINKS */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--comet-yellow);
    transition: width 0.3s ease;
}

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

/* 8. ENHANCED CARD HOVER EFFECTS */
.module-card,
.focus-card,
.step-card,
.testimonial-card {
    transition: all 0.3s ease;
}

.module-card:hover,
.focus-card:hover,
.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(46, 96, 169, 0.3);
}

/* 9. FOCUS INDICATORS FOR ACCESSIBILITY */
*:focus-visible {
    outline: 3px solid var(--comet-yellow);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--comet-yellow);
    outline-offset: 2px;
}

/* 10. LAZY LOADING FADE-IN */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 11. SKELETON LOADING (Optional - for future use) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 12. SMOOTH PAGE TRANSITIONS */
body {
    animation: pageLoad 0.5s ease-in;
}

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












