:root {
    --navy-blue: #001f3f;
    --sky-blue: #87CEEB;
    --deep-sky: #00bfff;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --text-dark: #333333;
    --vibrant-purple: #6f42c1;
    --vibrant-pink: #e83e8c;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ========================================================================== */
/* --- NAVIGATION ----------------------------------------------------------- */
/* ========================================================================== */

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    /* CHANGE: Default to Navy Blue so internal pages are readable immediately */
    background-color: var(--navy-blue) !important; 
}

.navbar-scrolled {
    /* This class now mainly handles the shadow and padding shrink */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px 0;
}

/* Class to make navbar transparent ONLY on hero pages */
.navbar-home-transparent {
    background-color: transparent !important;
}

/* ========================================================================== */
/* --- NAVBAR BRAND PERFECT ALIGNMENT --------------------------------------- */
/* ========================================================================== */

.navbar-brand {
    display: inline-flex;       /* Uses flexbox for perfect vertical alignment */
    align-items: center;        /* Centers logo and text vertically */
    gap: 12px;                  /* Modern way to add space between logo and text */
    text-decoration: none;
    transition: opacity 0.3s ease;
    color: var(--white);
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* Logo Image Styling */
.navbar-brand img {
    height: 45px;               /* Fixed height for the logo */
    width: auto;                /* Maintains aspect ratio */
    border-radius: 4px;         /* Optional: Slight rounding */
}

/* Text Styling with Linear Alternating Color Wipe */
.navbar-brand .brand-text {
    /* 1. Font Style */
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    line-height: 1;
    
    /* 2. Fallback */
    color: var(--white);

    /* 3. Alternating Color Pattern */
    /* Pattern: White -> Color -> White -> Color... */
    background: linear-gradient(
        90deg, 
        /* 1. Sky Blue */
        #ffffff 0%, #ffffff 8%, 
        var(--sky-blue) 10%, var(--sky-blue) 14%, 
        #ffffff 16%, #ffffff 24%,
        
        /* 2. Gold */
        #FFD700 26%, #FFD700 30%,
        #ffffff 32%, #ffffff 40%,
        
        /* 3. Pink */
        #e83e8c 42%, #e83e8c 46%,
        #ffffff 48%, #ffffff 56%,
        
        /* 4. Teal */
        #20c997 58%, #20c997 62%,
        #ffffff 64%, #ffffff 72%,
        
        /* 5. Purple */
        #6f42c1 74%, #6f42c1 78%,
        #ffffff 80%, #ffffff 100%
    );
    
    /* 4. Size & Clip */
    background-size: 500% auto; /* Very wide background to accommodate all colors */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* 5. Animation */
    /* 12 seconds to allow all 5 colors to pass smoothly */
    animation: linearColorWipe 12s linear infinite;
}

/* Keyframes: Right to Left Wipe */
@keyframes linearColorWipe {
    0% {
        background-position: 100% center; /* Start: Right side (end of gradient) */
    }
    100% {
        background-position: 0% center;   /* End: Left side (start of gradient) */
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 38px;           /* Slightly smaller logo on mobile */
    }
    .navbar-brand .brand-text {
        font-size: 1.2rem;      /* Smaller text on mobile */
    }
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--sky-blue) !important;
}

/* ========================================================================== */
/* --- HERO SECTION --------------------------------------------------------- */
/* ========================================================================== */

.hero-section {
	padding-top: 100px; 
    padding-bottom: 80px; /* Keeps symmetry at the bottom */
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-blue) 0%, #004e92 100%);
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080?text=Abstract+Education+Background') no-repeat center center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-btn {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Buttons */
.btn-custom-primary {
    background-color: var(--sky-blue);
    color: var(--navy-blue);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.4);
}

.btn-custom-primary:hover {
    background-color: black;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-custom-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 13px 38px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-custom-outline:hover {
    background-color: black;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Shape Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: var(--white);
}

/* ========================================================================== */
/* --- SECTIONS & TITLES ---------------------------------------------------- */
/* ========================================================================== */

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ========================================================================== */
/* --- CARDS (Features, Quiz, etc.) ---------------------------------------- */
/* ========================================================================== */

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,31,63,0.15);
    border-color: var(--sky-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy-blue), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0,31,63,0.2);
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--navy-blue);
}

/* Align buttons at the bottom of cards */
.feature-card .flex-grow-1 { flex-grow: 1; }
.feature-card .align-self-start { align-self: flex-start; margin-top: auto; }

/* ========================================================================== */
/* --- CAROUSEL STYLES ------------------------------------------------------ */
/* ========================================================================== */

.initiative-carousel {
    width: 90%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.ken-burns-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 10s ease-in-out infinite alternate; 
    transform-origin: center center;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,31,63,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.carousel-caption-container {
    position: absolute;
    top: auto;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.glass-card {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.glass-card h3 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.glass-card p { font-size: 1rem; margin-bottom: 20px; opacity: 0.95; }

/* Animations */
.animated { animation-duration: 1s; animation-fill-mode: both; }
.fadeInUp { animation-name: fadeInUp; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% { opacity: 0; transform: translate3d(0, 30px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Carousel Controls */
.initiative-carousel .carousel-control-prev,
.initiative-carousel .carousel-control-next { width: 8%; }

.initiative-carousel .carousel-control-prev-icon,
.initiative-carousel .carousel-control-next-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background-size: 50% 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.custom-indicators { margin-bottom: 20px; }
.custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}
.custom-indicators button.active {
    background-color: var(--sky-blue);
    width: 30px;
    border-radius: 10px;
}

/* ========================================================================== */
/* --- ACTIVITIES PAGE STYLES ---------------------------------------------- */
/* ========================================================================== */

.internal-hero-activities {
    min-height: 40vh;
    background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.activity-list-item {
    border-left: 5px solid var(--sky-blue);
    transition: all 0.3s ease;
}

.activity-list-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.activity-list-img {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.activity-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-list-item:hover .activity-list-img img { transform: scale(1.05); }

.date-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--navy-blue);
    color: white;
    padding: 10px 15px;
    text-align: center;
    border-bottom-right-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.date-ribbon .month { display: block; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.date-ribbon .day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.activity-list-item h3 { font-size: 1.5rem; transition: color 0.3s; }
.activity-list-item:hover h3 { color: var(--deep-sky); }

/* Filter Buttons */
.filter-container { border: 1px solid #e9ecef; }
.filter-btn {
    border-radius: 50px !important;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.filter-btn:hover { background-color: #f8f9fa; color: var(--navy-blue); }
.filter-btn.active {
    background-color: var(--sky-blue) !important;
    color: var(--navy-blue) !important;
    box-shadow: 0 2px 10px rgba(135, 206, 235, 0.4);
}

/* ========================================================================== */
/* --- QUIZ & MINDSPARK STYLES --------------------------------------------- */
/* ========================================================================== */

.quiz-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--sky-blue);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,31,63,0.1);
}

.quiz-card-header {
    background: var(--navy-blue);
    color: white;
    padding: 15px 20px;
}

.quiz-card-header h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.quiz-card-header p { margin: 0; opacity: 0.8; font-size: 0.9rem; }

.quiz-card-body {
    padding: 20px;
    flex-grow: 1;
}

.quiz-card-body ul { padding-left: 0; list-style: none; }
.quiz-card-body ul li { margin-bottom: 10px; color: #555; }

/* ========================================================================== */
/* --- EXAM EDGE & STATS ---------------------------------------------------- */
/* ========================================================================== */

.exam-edge-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #004e92 100%);
    padding: 60px 0;
    position: relative;
}

.exam-edge-header { text-align: center; color: white; margin-bottom: 40px; }
.exam-edge-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; }
.exam-edge-date {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 15px;
}

/* Countdown Timer */
.countdown-container { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    min-width: 100px;
    border: 1px solid rgba(255,255,255,0.2);
}
.countdown-number { font-size: 2.5rem; font-weight: 700; color: var(--sky-blue); line-height: 1; }
.countdown-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 5px; }

/* Batch Cards */
.batch-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}
.batch-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-5px); }
.batch-title { color: white; font-size: 1.2rem; font-weight: 600; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.batch-features { padding-left: 20px; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.batch-features li { margin-bottom: 8px; }

/* Stats Section */
.stats-section { background: white; padding: 50px 0; position: relative; z-index: 1; }
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--navy-blue); line-height: 1; margin-bottom: 10px; }
.stat-label { color: #666; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

/* ========================================================================== */
/* --- PORTAL & TESTIMONIALS ------------------------------------------------ */
/* ========================================================================== */

.portal-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portal-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-5px); }
.portal-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--sky-blue);
}
.portal-card h3 { color: white; font-size: 1.3rem; margin-bottom: 15px; }
.portal-card p { color: rgba(255,255,255,0.7); margin-bottom: 20px; font-size: 0.95rem; flex-grow: 1; }

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0,0,0,0.05);
}
.testimonial-content { font-style: italic; color: #555; margin-bottom: 20px; position: relative; }
.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: var(--sky-blue);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
}
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sky-blue); }
.testimonial-name { font-weight: 600; color: var(--navy-blue); }
.testimonial-role { font-size: 0.85rem; color: #888; }

/* ========================================================================== */
/* --- QUIZ SHOWCASE & WINNERS --------------------------------------------- */
/* ========================================================================== */

.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--vibrant-purple) 0%, var(--vibrant-pink) 100%);
    overflow: hidden;
    color: white;
    padding-top: 100px;
}
.page-hero h1 { font-size: 3.5rem; font-weight: 800; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.hero-shape-1 { position: absolute; top: -50px; left: -50px; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.hero-shape-2 { position: absolute; bottom: -50px; right: -50px; width: 300px; height: 300px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.category-heading { color: var(--vibrant-purple); letter-spacing: 2px; }
.category-heading-pink { color: var(--vibrant-pink); letter-spacing: 2px; }

.winner-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    border: 4px solid transparent;
}
.winner-card:hover { transform: translateY(-10px); border-color: var(--sky-blue); }
.winner-photo-lg { width: 120px; height: 120px; object-fit: cover; border: 4px solid #f0f0f0; transition: border-color 0.3s; }
.winner-card:hover .winner-photo-lg { border-color: var(--vibrant-purple); }
.winner-photo-sm { width: 80px; height: 80px; object-fit: cover; border: 3px solid #f0f0f0; }
.finalist-card { transition: transform 0.3s ease; }
.finalist-card:hover { transform: scale(1.05); background-color: #fff; z-index: 1; box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

/* ========================================================================== */
/* --- GALLERY STYLES ------------------------------------------------------- */
/* ========================================================================== */

.gallery-img, .gallery-img-lg {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card {
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff !important;
    padding: 20px;
    height: 100%;
}
.photo-card:hover .photo-overlay { opacity: 1; }
.photo-overlay h5 { color: #ffffff !important; font-weight: 700; margin-bottom: 5px; }
.photo-overlay p { color: #e0e0e0 !important; font-size: 0.9rem; margin-bottom: 0; }
.photo-card:hover .gallery-img, .photo-card:hover .gallery-img-lg { transform: scale(1.05); }

/* ========================================================================== */
/* --- FOOTER --------------------------------------------------------------- */
/* ========================================================================== */

.footer {
    background-color: var(--navy-blue);
    color: white;
    padding-top: 60px;
}
.footer h5 { color: var(--sky-blue); font-weight: 600; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: white; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; margin-top: 40px; }

/* ========================================================================== */
/* --- MODAL STYLES --------------------------------------------------------- */
/* ========================================================================== */

.activity-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.modal-header.bg-navy { background-color: var(--navy-blue) !important; }
.table-navy { background-color: var(--navy-blue) !important; color: white; }

/* Accordion */
.accordion-button:not(.collapsed) { background-color: rgba(135, 206, 235, 0.2); color: var(--navy-blue); }
.accordion-button:focus { box-shadow: 0 0 0 0.25rem rgba(135, 206, 235, 0.25); }

/* ========================================================================== */
/* --- UTILITIES ------------------------------------------------------------ */
/* ========================================================================== */

.bg-navy { background-color: var(--navy-blue) !important; }
.text-navy { color: var(--navy-blue) !important; }
.bg-success-subtle { background-color: #e7f9f1 !important; }
.text-success { color: #198754 !important; }

/* ========================================================================== */
/* --- RESPONSIVE STYLES (CONSOLIDATED) ------------------------------------- */
/* ========================================================================== */

@media (max-width: 768px) {
    /* General */
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; }

    /* Hero */
    .hero-section { min-height: auto; padding: 120px 0 100px; text-align: center; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }

    /* Page Hero */
    .page-hero { min-height: auto; padding: 150px 0 100px; }
    .page-hero h1 { font-size: 2.2rem; }

    /* Carousel */
    .initiative-carousel { width: 95%; }
    .carousel-caption-container { bottom: 20px; width: 95%; }
    .glass-card { padding: 15px 20px; }
    .glass-card h3 { font-size: 1.2rem; }
    .glass-card p { font-size: 0.85rem; margin-bottom: 10px; }

    /* Activities */
    .activity-list-img { min-height: 200px; }
    .activity-list-item { border-left: none; border-top: 5px solid var(--sky-blue); }

    /* Stats & Countdown */
    .stat-number { font-size: 2rem; }
    .countdown-container { gap: 10px; }
    .countdown-item { padding: 15px; min-width: 60px; }
    .countdown-number { font-size: 1.8rem; }

    /* Modal */
    .activity-image { max-height: 200px; }
    .modal-body { padding: 15px; }
}

/* ========================================================================== */
/* --- FIX: ACTIVITIES SECTION BUTTON VISIBILITY ---------------------------- */
/* ========================================================================== */

/* Allow the card to stretch height based on content, fixing overflow issues */
.feature-card {
    overflow: visible; /* Ensures nothing is cut off */
    min-height: 100%;  /* Ensures it fills the row height */
    height: auto;      /* Allows it to grow if content is long */
}

/* Ensure the button has a distinct background and margin */
.feature-card .btn-custom-primary {
    background-color: var(--sky-blue) !important;
    color: var(--navy-blue) !important;
    margin-top: 20px; /* Force space above button */
    display: inline-block; /* Ensure it renders as a block */
    opacity: 1;
    visibility: visible;
}

/* Ensure the 'Read More' button aligns to the left nicely */
.feature-card .align-self-start {
    align-self: flex-start !important;
}

/* ========================================================================== */
/* --- VIDEO LIBRARY SECTION (UPDATED) -------------------------------------- */
/* ========================================================================== */

#video-library {
    background-color: #f8f9fa; /* Light background for contrast */
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 31, 63, 0.15);
    border-color: var(--sky-blue);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Overlay Gradient on Image for better text readability if needed */
.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,31,63,0.3), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail::before {
    opacity: 1;
}

/* Play Button Styling */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--navy-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.video-card:hover .play-button {
    background-color: var(--sky-blue);
    color: var(--navy-blue);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.5);
}

/* Video Info Content */
.video-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Fills remaining height */
}

.video-info h4 {
    color: var(--navy-blue);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes button to bottom */
    /* Truncate text if too long */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Video Button (Replaces btn-primary) */
.btn-video {
    background-color: var(--navy-blue);
    color: white !important;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

.btn-video:hover {
    background-color: var(--sky-blue);
    color: var(--navy-blue) !important;
    transform: translateY(-2px);
}

/* Ensuring the 'Visit Channel' button matches theme if btn-hero is missing */
.btn-hero-alt {
    background: linear-gradient(90deg, var(--navy-blue) 0%, var(--sky-blue) 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 31, 63, 0.2);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-alt:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 31, 63, 0.3);
    color: white;
}

/* ========================================================================== */
/* --- HERO CAROUSEL ENHANCEMENT -------------------------------------------- */
/* ========================================================================== */

.hero-carousel-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    /* Subtle floating animation */
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-carousel-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

@keyframes heroFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Gradient overlay on carousel images for better visual depth */
.hero-carousel-wrapper .carousel-item img {
    filter: brightness(0.95) contrast(1.1);
    transition: transform 0.5s ease;
}

.hero-carousel-wrapper:hover .carousel-item img {
    transform: scale(1.05);
}

/* Custom Carousel Controls */
#heroImageCarousel .carousel-control-prev, 
#heroImageCarousel .carousel-control-next {
    width: 12%;
    opacity: 0;
    transition: opacity 0.3s;
}

#heroImageCarousel:hover .carousel-control-prev, 
#heroImageCarousel:hover .carousel-control-next {
    opacity: 1;
}

#heroImageCarousel .carousel-control-prev-icon,
#heroImageCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background-size: 50% 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#heroImageCarousel .carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23001f3f'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e"); }
#heroImageCarousel .carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23001f3f'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }

/* ========================================================================== */
/* --- HERO BADGES STYLING (Fixed & Robust) -------------------------------- */
/* ========================================================================== */

.hero-section .container > .badge {
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
    display: inline-block;
}

.hero-section .container > .badge:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Custom Color Classes with !important to override Bootstrap */
.badge-purple {
    background-color: #6f42c1 !important; 
    color: #ffffff !important;
}

.badge-pink {
    background-color: #d63384 !important; 
    color: #ffffff !important;
}

.badge-teal {
    background-color: #20c997 !important; 
    color: #ffffff !important;
}

.badge-gold {
    background-color: #ffc107 !important; 
    color: #212529 !important;
}

.badge-navy {
    background-color: #001f3f !important; 
    color: #ffffff !important; 
    border: 1px solid rgba(255,255,255,0.3) !important;
}

.badge-sky {
    background-color: #87CEEB !important; 
    color: #001f3f !important;
}

/* Make Hero Badges Clickable */
.hero-section .badge {
    cursor: pointer;
}


/* ========================================================================== */
/* --- MOBILE NAVBAR FIX ---------------------------------------------------- */
/* ========================================================================== */

/* Force solid background for mobile/tablet views (below 992px) */
@media (max-width: 991.98px) {
    .navbar {
        background-color: var(--navy-blue) !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    /* Optional: Center align links in the mobile menu */
    .navbar-nav {
        text-align: center;
    }
    
    /* Ensure the "Join Now" button looks good centered */
    .navbar-nav .btn {
        margin-top: 10px;
        display: inline-block;
        float: none !important;
    }
}

@media (max-width: 991.98px) {
    /* .navbar-expand-lg .navbar-toggler {
        border-color: rgba(255,255,255,0.1);
    }*/
    .navbar-expand-lg .navbar-toggler-icon {
        background-color: transparent !important;
    }

}

/* ========================================================================== */
/* --- SUMMER PROMO MODAL (PREMIUM REDESIGN) -------------------------------- */
/* ========================================================================== */

/* Backdrop: Dark navy blur */
.modal-backdrop.show {
    opacity: 0.85;
    background-color: var(--navy-blue);
    backdrop-filter: blur(10px);
}

.summer-modal-v2 {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Background: Navy Blue with Orange/Gold Gradient Accents */
.summer-modal-v2 .modal-body {
    background: linear-gradient(160deg, #001f3f 0%, #003366 60%, #001f3f 100%);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Decorative glowing orbs */
.summer-modal-v2 .modal-body::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.summer-modal-v2 .modal-body::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Close Button: High Contrast White Circle */
.btn-close-modal-v2 {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-close-modal-v2:hover {
    background: white;
    color: var(--navy-blue);
    transform: rotate(90deg);
    border-color: white;
}

/* Header Section */
.modal-header-v2 {
    position: relative;
    text-align: center;
    padding: 40px 20px 20px;
    z-index: 1;
}

/* Icon: Gold/Orange Sun Theme */
.icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(255, 152, 0, 0.4);
    animation: pulseGlow 3s infinite;
}

.icon-wrapper i {
    font-size: 2.8rem;
    color: white; /* White icon on gold background */
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

.modal-header-v2 h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.modal-header-v2 h2 span {
    color: #FFC107; /* Gold text for "Unlocked" */
}

.modal-header-v2 .tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sky-blue);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Body Content */
.content-body-v2 {
    position: relative;
    padding: 0 30px 40px;
    z-index: 1;
}

.content-body-v2 h3 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.content-body-v2 p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Feature Grid: Glassmorphism Cards */
.features-grid-v2 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 90px;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--sky-blue);
}

.feature-item i {
    display: block;
    font-size: 1.5rem;
    color: var(--sky-blue);
    margin-bottom: 8px;
}

.feature-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    display: block;
}

/* Register Button: Gradient Gold */
.btn-register-v2 {
    display: inline-block;
    background: linear-gradient(90deg, #FFC107 0%, #FF9800 100%);
    color: var(--navy-blue) !important;
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-register-v2:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.6);
    color: var(--navy-blue) !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .summer-modal-v2 {
        margin: 10px;
    }
    
    .modal-header-v2 h2 { font-size: 1.8rem; }
    
    .features-grid-v2 { gap: 10px; }
    
    .feature-item { padding: 12px 15px; min-width: 80px; }
    
    .btn-register-v2 { width: 100%; text-align: center; padding: 14px 20px; }
    
    .content-body-v2 { padding: 0 20px 30px; }
}

/* ========================================================================== */
/* --- SUMMER MODAL REDESIGN (ANIMATED RAINBOW THEME) ---------------------- */
/* ========================================================================== */

/* 1. Modal Dialog - Floating Animation */
.summer-modal-v2 .modal-dialog {
    max-width: 800px;
    /* Add a gentle floating effect */
    animation: floatModal 6s ease-in-out infinite;
}

@keyframes floatModal {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 2. Modal Content - Glass Container */
.summer-modal-v2 .modal-content {
    border: none;
    border-radius: 25px;
    overflow: hidden;
    /* Thick semi-transparent white border for glass effect */
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    background: transparent;
}

/* 3. Modal Body - Animated Moving Gradient */
.summer-modal-v2 .modal-body {
    position: relative;
    z-index: 1;
    /* Gradient: Pink -> Orange -> Blue -> Teal */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border: none;
}

/* Background Animation Keyframes */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Decorative Glass Orbs */
.summer-modal-v2 .modal-body::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.summer-modal-v2 .modal-body::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* 4. Close Button - Frosted Glass */
.btn-close-modal-v2 {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-close-modal-v2:hover {
    background: white;
    color: #e73c7e; /* Pink to match gradient */
    transform: rotate(90deg) scale(1.1);
}

/* 5. Header */
.modal-header-v2 {
    position: relative;
    text-align: center;
    padding: 40px 20px 20px;
    z-index: 1;
}

/* Icon with Pulse */
.icon-wrapper {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: pulseGlowWhite 3s infinite;
}

.icon-wrapper i {
    font-size: 2.8rem;
    color: white;
    /* Add a subtle spin on hover via JS or just keep static for now */
}

@keyframes pulseGlowWhite {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.modal-header-v2 h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.modal-header-v2 h2 span {
    color: #001f3f; /* Dark Navy for contrast */
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Fallback */
    color: #fff; 
    text-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}

.modal-header-v2 .tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* 6. Content Body */
.content-body-v2 {
    position: relative;
    padding: 0 30px 40px;
    z-index: 1;
}

.content-body-v2 h3 {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.content-body-v2 p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* 7. Features Grid - Glass Cards */
.features-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px;
    margin-bottom: 25px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 10px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
}

.feature-item i {
    display: block;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    display: block;
    line-height: 1.2;
}

/* Workshop Highlight */
.feature-item.highlight {
    background: rgba(0, 0, 0, 0.2); /* Darker glass */
    border: 1px solid rgba(255,255,255,0.4);
    grid-column: span 4;
}

.feature-item.highlight i {
    color: #FFD700; /* Gold */
}

/* 8. Buttons */
.modal-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Primary Button: White with Dark Text (High Contrast) */
.btn-register-v2 {
    background: white;
    color: #e73c7e !important; /* Pink text matching gradient */
    padding: 16px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
}

.btn-register-v2:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
    background: #f8f9fa;
}

/* Secondary Button: Ghost White */
.btn-modal-alt {
    background: transparent;
    color: white !important;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid white;
    transition: all 0.3s;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

.btn-modal-alt:hover {
    background: rgba(255,255,255,0.2);
    color: white !important;
    transform: translateY(-3px);
}

/* 9. Responsive */
@media (max-width: 768px) {
    .features-grid-v2 {
        grid-template-columns: 1fr 1fr; 
    }
    
    .feature-item.highlight {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .summer-modal-v2 .modal-dialog {
        margin: 15px;
    }
    
    .features-grid-v2 {
        grid-template-columns: 1fr; 
    }
    
    .feature-item.highlight {
        grid-column: span 1;
    }
    
    .modal-btn-group {
        flex-direction: column;
    }
    
    .modal-btn-group .btn-register-v2, 
    .modal-btn-group .btn-modal-alt {
        width: 100%;
        text-align: center;
    }
    
    .modal-header-v2 h2 { font-size: 1.8rem; }
    .content-body-v2 { padding: 0 20px 30px; }
}

/* ========================================================================== */
/* --- ABOUT PAGE: UNIFORM GRID LAYOUT ------------------------------------- */
/* ========================================================================== */

.about-hero-premium {
    position: relative;
    min-height: 70vh;
    background: #001f3f;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/seed/education/1920/1080') no-repeat center center/cover;
    opacity: 0.2;
    transform: skewY(-6deg);
    transform-origin: top left;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, var(--sky-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Intro Box */
.intro-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    border-left: 8px solid var(--sky-blue);
}

/* Uniform Grid Container */
.uniform-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px; /* Negative margin for gutters */
}

/* Each Column */
.uniform-col {
    display: flex;
    flex: 0 0 33.333%; /* 3 Columns on Desktop */
    max-width: 33.333%;
    padding: 15px; /* Gutter */
}

/* The Card itself - Key to Symmetry */
.uniform-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    height: 100%; /* Stretches to fill the column height */
}

.uniform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Header */
.uniform-header {
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.uniform-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.uniform-header i {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 6rem;
    opacity: 0.15;
    color: white;
    z-index: 1;
}

/* Body */
.uniform-body {
    padding: 25px;
    flex-grow: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns text to top */
}

.uniform-body p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Gradients */
.grad-blue { background: linear-gradient(135deg, #00bfff 0%, #001f3f 100%); }
.grad-purple { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
.grad-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.grad-orange { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.grad-teal { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.grad-navy { background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%); }
.grad-gold { background: linear-gradient(135deg, #FFD200 0%, #F7971E 100%); }
.grad-red { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }

/* Responsive Grid */
@media (max-width: 992px) {
    .uniform-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .about-hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    .uniform-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .about-hero-premium { min-height: 50vh; }
}

/* ========================================================================== */
/* --- UNIFORM GRID CARDS (For Index & About Pages) ------------------------ */
/* ========================================================================== */

/* Grid Container */
.uniform-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px; /* Negative margin for gutters */
}

/* Each Column */
.uniform-col {
    display: flex;
    flex: 0 0 33.333%; /* 3 Columns on Desktop */
    max-width: 33.333%;
    padding: 15px; /* Gutter */
}

/* The Card itself - Key to Symmetry */
.uniform-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    height: 100%; /* Stretches to fill the column height */
}

.uniform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Header */
.uniform-header {
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.uniform-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.uniform-header i {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 6rem;
    opacity: 0.15;
    color: white;
    z-index: 1;
}

/* Body */
.uniform-body {
    padding: 25px;
    flex-grow: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
}

.uniform-body p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.uniform-body ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 20px;
}

.uniform-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.uniform-body ul li::before {
    content: '\f00c'; /* Font Awesome Check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--sky-blue);
}

/* Push buttons to the bottom */
.uniform-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Gradient Backgrounds */
.grad-blue { background: linear-gradient(135deg, #00bfff 0%, #001f3f 100%); }
.grad-purple { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
.grad-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.grad-orange { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.grad-teal { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.grad-navy { background: linear-gradient(135deg, #001f3f 0%, #0056b3 100%); }
.grad-gold { background: linear-gradient(135deg, #FFD200 0%, #F7971E 100%); }
.grad-red { background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); }

/* Responsive Grid */
@media (max-width: 992px) {
    .uniform-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .uniform-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* ========================================================================== */
/* --- DAILY SUPPORT BADGE: RANDOM LIVE FLICKER ----------------------------- */
/* ========================================================================== */

.badge-glow {
    position: relative;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* No transform here, so position never changes */
    animation: liveFlicker 3s infinite;
}

/* Hover State: Stops the flicker and glows solidly */
.badge-glow:hover {
    animation: none;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
    filter: brightness(1.2);
    cursor: pointer;
}

/* Keyframes: Irregular steps to simulate "random" lighting changes */
@keyframes liveFlicker {
    0% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
        filter: brightness(1);
    }
    /* Sudden bright pulse */
    10% {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
        filter: brightness(1.3);
    }
    /* Immediate drop to dim */
    12% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.2);
        filter: brightness(0.9);
    }
    /* Steady for a moment */
    20% {
        box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
        filter: brightness(1);
    }
    /* Another random pulse */
    55% {
        box-shadow: 0 0 25px rgba(220, 53, 69, 1);
        filter: brightness(1.4);
    }
    57% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
        filter: brightness(0.9);
    }
    /* Slowly brighten up again */
    100% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
        filter: brightness(1);
    }
}

/* ========================================================================== */
/* --- HERO TEXT CAROUSEL: PREMIUM GLASS CONTROLS --------------------------- */
/* ========================================================================== */

/* 1. Create space at the bottom for the control dock */
.hero-text-carousel .carousel-inner {
    padding-bottom: 80px; 
}

/* 2. Smooth Text Transitions */
#heroTextCarousel .carousel-item {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
#heroTextCarousel .carousel-item.active .hero-slide-content h1,
#heroTextCarousel .carousel-item.active .hero-slide-content p {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}
#heroTextCarousel .carousel-item.active .hero-slide-content p { animation-delay: 0.2s; }

/* 3. The "Dock" - A container for indicators to look cohesive */
.custom-indicators-hero {
    bottom: 20px;
    margin-bottom: 0;
    z-index: 10;
    /* Group dots closer together */
    margin-left: auto;
    margin-right: auto;
}

/* 4. Indicators (Dots) - Pill Shaped & Stylish */
.custom-indicators-hero button {
    width: 10px;
    height: 10px;
    border-radius: 5px; /* Rounded edges */
    background: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 4px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.custom-indicators-hero button.active {
    background: var(--sky-blue);
    width: 30px; /* Expands to a pill shape */
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

.custom-indicators-hero button:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* 5. Arrow Buttons - Squircle Glass Style */
.hero-carousel-control {
    width: 50px;
    height: 50px;
    top: auto;
    bottom: 10px; /* Align with indicators */
    transform: none;
    opacity: 1;
    z-index: 15;
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px; /* Modern rounded corners */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Position Arrows */
.hero-carousel-control.prev { left: 10px; }
.hero-carousel-control.next { right: 10px; }

/* The Icon inside the button */
.control-icon-box {
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* Hover State - Lift and Glow */
.hero-carousel-control:hover {
    background: var(--sky-blue);
    border-color: var(--sky-blue);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
    transform: translateY(-3px); /* Lift effect */
}

.hero-carousel-control:hover .control-icon-box {
    color: var(--navy-blue);
    transform: scale(1.2);
}

/* 6. Mobile Optimization */
@media (max-width: 768px) {
    .hero-text-carousel .carousel-inner {
        padding-bottom: 90px; /* More space on mobile */
    }
    
    .hero-carousel-control {
        width: 42px;
        height: 42px;
        bottom: 15px;
    }
    
    .custom-indicators-hero button {
        width: 8px;
        height: 8px;
    }
    
    .custom-indicators-hero button.active {
        width: 24px;
    }
}

/* Force all containers to be full width */
.container {
    max-width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Optional: Adjust padding for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}