:root {
    --theme-blue: #1E40AF;
    --theme-blue-dark: #1e3a8a;
    --theme-gold: #F59E0B;
    --theme-gold-dark: #d97706;
    --bs-primary: var(--theme-blue); 
    --bs-secondary: #6c757d; 
    --bs-success: #198754;
    --bs-info: #0dcaf0;   
    --bs-warning: var(--theme-gold); 
    --bs-danger: #dc3545;  
    --bs-light: #f8f9fa;   
    --bs-dark: #212529;    
    --bs-body-font-family: 'Varela Round', sans-serif; 
    --bs-heading-color: #343a40;
}

body {
    font-family: var(--bs-body-font-family); 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif Pro', serif; 
    color: var(--bs-heading-color);
}

.head2 {
    color: var(--theme-blue);
    font-weight: 700; 
}

.blue {
    color: var(--theme-blue) !important; 
}

.text-blue {
    color: var(--theme-blue) !important;
}

.bg-blue {
    background-color: var(--theme-blue) !important;
}

.gold {
    color: var(--theme-gold) !important; 
}

.text-gold {
    color: var(--theme-gold) !important;
}

.bg-gold {
    background-color: var(--theme-gold) !important;
}

/* ==========================================================================
   Reusable Popup Animation
   ========================================================================== */
@keyframes popupFadeInScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Our Classes Popups
   ========================================================================== */

.ourClassContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: none !important; 
    justify-content: center !important;
    align-items: center !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 1050 !important; 
    padding: 15px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(5px) !important;
    overflow-y: auto !important;
}

.ourClassContainer.active {
    display: flex !important;
}

.ourClassChild {
    border-radius: 0.375rem !important;
    padding: 0 !important;
    background-color: white !important;
    width: 95% !important;
    max-width: 650px !important;
    animation: popupFadeInScale 0.4s ease-out !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
    overflow-y: auto !important;
    max-height: 90vh !important;
    position: relative !important; 
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.parentsSayHed .bi-quote {
    font-size: 1.5rem; 
    vertical-align: middle;
}

.testimonial-img {
    height: 100%;
    object-fit: cover;
}

.testimonial-card .blockquote-footer {
    color: var(--theme-blue);
}

/* ==========================================================================
   Newsletter Popup
   ========================================================================== */

.newsLetterContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    display: none !important; 
    z-index: 1060 !important; 
    background-color: rgba(var(--bs-dark-rgb), 0.7) !important; 
    justify-content: center !important;
    align-items: center !important;
    padding: 15px !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(5px) !important;
}

.newsLetterContainer.active {
    display: flex !important;
}

.newsLetterContainer .newsLetterCard {
    border-radius: 0.375rem !important; 
    padding: 30px !important;
    background-color: white !important;
    width: 95% !important;
    max-width: 550px !important;
    animation: popupFadeInScale 0.4s ease-out !important;
    box-shadow: 0 5px 15px rgba(0,0,0,.3) !important;
    position: relative !important;
    overflow-y: auto !important;
    max-height: 90vh !important;
}

.checkBoxCon {
    cursor: pointer;
}
.checkBoxCon label small {
    line-height: 1.4;
    font-size: 0.8rem;
}
.checkBoxCon input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: top;
}

.newsLetterContainer button.subscribeBtn {
    border: none;
    width: 100%;
    background-color: var(--bs-danger); 
    color: white;
    font-weight: bold;
    height: 45px;
    border-radius: 0.375rem; 
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    margin-top: 1rem;
}

.newsLetterContainer button.subscribeBtn:hover:not(:disabled) {
    background-color: #b02a37; 
}
.newsLetterContainer button.subscribeBtn:disabled {
    background-color: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.65;
}

.form_error span {
    color: var(--bs-danger);
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
}

.form_error input {
    border-color: var(--bs-danger) !important; 
}

.form_error input:focus {
   box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); 
   border-color: var(--bs-danger) !important; 
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.btn-outline-blue {
    --bs-btn-color: var(--theme-blue);
    --bs-btn-border-color: var(--theme-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--theme-blue);
    --bs-btn-hover-border-color: var(--theme-blue);
    --bs-btn-focus-shadow-rgb: 30, 64, 175;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--theme-blue-dark);
    --bs-btn-active-border-color: var(--theme-blue-dark);
    --bs-btn-disabled-color: var(--theme-blue);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--theme-blue);
    --bs-gradient: none;
}

.btn-outline-gold {
    --bs-btn-color: var(--theme-gold);
    --bs-btn-border-color: var(--theme-gold);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--theme-gold);
    --bs-btn-hover-border-color: var(--theme-gold);
    --bs-btn-focus-shadow-rgb: 245, 158, 11;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--theme-gold-dark);
    --bs-btn-active-border-color: var(--theme-gold-dark);
    --bs-btn-disabled-color: var(--theme-gold);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--theme-gold);
    --bs-gradient: none;
}

.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .ourClassChild,
    .newsLetterContainer .newsLetterCard {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .head2 {
        font-size: 1.8rem;
    }

    .newsLetterContainer .newsLetterCard {
        padding: 20px 15px; 
    }
}

/* ==========================================================================
   Hero Section - Full Height
   ========================================================================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: rgba(30,64,175,0.03);
    overflow: hidden;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--theme-blue);
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--theme-blue);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 10px;
    background-color: var(--theme-blue);
    border-radius: 2px;
    animation: scroll-wheel 1.5s ease-in-out infinite;
    margin-top: 8px;
}

.scroll-indicator .text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Custom scrollbar styling for popups */
.ourClassChild::-webkit-scrollbar {
    width: 8px;
}

.ourClassChild::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 4px 4px 0;
}

.ourClassChild::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.ourClassChild::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Fix for body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* Class Cards Styling */
.class-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
}
.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.class-card-ribbon {
    position: absolute;
    top: 10px;
    right: 0;
    background-color: var(--theme-blue);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.class-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
}
.card-content {
    text-align: center;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.class-card:hover .card-content {
    transform: translateY(-5px);
}
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    color: rgba(255,255,255,0.9);
}
.class-card:hover .card-icon {
    transform: scale(1.1);
}
.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.year-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.year-tags span {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    transition: background-color 0.3s ease;
}
.class-card:hover .year-tags span {
    background-color: rgba(255,255,255,0.3);
}

@media (max-width: 767px) {
    .card-image {
        height: 220px;
    }
    .card-content h3 {
        font-size: 1.1rem;
    }
}

/* Popup Styling */
.popup-header {
    border-radius: 4px 4px 0 0;
}

.popup-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.module-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Try a Class Section
   ========================================================================== */
.try-class-section .try-class-image {
    border: 8px solid white;
    position: relative;
    z-index: 2;
}

.try-class-section .feature-icon-wrapper {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.try-class-section .try-class-badge {
    z-index: 3;
    left: -10px;
    top: 10%;
}

.try-class-section .badge {
    font-weight: normal;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.try-class-section .badge:hover {
    background-color: var(--theme-blue) !important;
    color: white !important;
}

/* Make icons change color on hover */
.try-class-section .badge:hover i {
    color: white !important;
}

.try-class-section .card {
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.try-class-section .card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

@media (max-width: 991px) {
    .try-class-section .card {
        margin-top: -30px;
        position: relative;
        z-index: 3;
    }
}

/* ==========================================================================
   What We Offer Section
   ========================================================================== */
.what-we-offer-section .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: box-shadow 0.3s ease;
}

.what-we-offer-section .card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.what-we-offer-section .card-body {
    z-index: 2;
    position: relative;
}

.what-we-offer-section i.bi-patch-check-fill {
    background-color: rgba(30, 64, 175, 0.1);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--theme-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.what-we-offer-section li:hover i.bi-patch-check-fill {
    background-color: var(--theme-blue);
    color: white;
}

.what-we-offer-section .expertise-card {
    transition: box-shadow 0.3s ease;
}

.what-we-offer-section .expertise-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   Ages Section (Improved Design, No Hover, Better Badge/Button Readability)
   ========================================================================== */
.ages-section {
    position: relative;
    overflow: hidden;
}
.ages-section .year-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 6px 24px rgba(30,64,175,0.08), 0 1.5px 6px rgba(30,64,175,0.04);
    border: 2px solid #e5e7eb;
    min-height: 370px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    transition: none;
}
.ages-section .year-card:hover {
    transform: none;
    box-shadow: 0 6px 24px rgba(30,64,175,0.08), 0 1.5px 6px rgba(30,64,175,0.04);
    border-color: #e5e7eb;
}
.ages-section .year-badge {
    position: static;
    display: block;
    margin: 0 auto 1.5rem auto;
    padding: 0.75rem 2.5rem;
    border-radius: 2rem;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(30,64,175,0.10);
    background: #1E40AF;
    color: #fff;
    text-align: center;
    border: 2px solid #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ages-section .year-card-4 .year-badge { background: #1E40AF; }
.ages-section .year-card-5 .year-badge { background: #F59E0B; }
.ages-section .year-card-6 .year-badge { background: #198754; }
.ages-section .year-card-4 { background-color: #eff6ff; }
.ages-section .year-card-5 { background-color: #fffbeb; }
.ages-section .year-card-6 { background-color: #f0fdf4; }
.ages-section .year-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.2rem;
    text-align: center;
    letter-spacing: 0.5px;
}
.ages-section .year-desc {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: center;
}
.ages-section .btn-apply-now {
    padding: 12px 32px;
    font-size: 1.08rem;
    font-weight: bold;
    border-radius: 2rem;
    margin-top: 1.2rem;
    background: linear-gradient(90deg, #007bff 60%, #1E40AF 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(30,64,175,0.08);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.ages-section .btn-apply-now:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
}
.ages-section .btn-blue {
    background: #007bff;
    color: #fff;
    border: none;
}
.ages-section .btn-gold {
    background: #ffc107;
    color: #fff;
    border: none;
}

/* ==========================================================================
   Hero Section Enhancements (Consolidated, removed duplicates)
   ========================================================================== */
.hero-title {
    color: var(--theme-blue-dark);
    text-shadow: 0 2px 12px rgba(30,64,175,0.08);
    letter-spacing: -1px;
    font-size: 2.5rem;
    line-height: 1.2;
}
.hero-subtitle {
    color: var(--theme-blue);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}
.hero-cta-group .btn {
    padding: 12px 24px;
    font-size: 1.125rem;
    border-radius: 30px;
}
.hero-cta-main {
    background: linear-gradient(90deg, var(--theme-blue), var(--theme-gold));
    color: #fff !important;
    border: none;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(30,64,175,0.10);
    border-radius: 2.5rem;
    padding: 0.95rem 2.8rem;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.hero-cta-main:hover, .hero-cta-main:focus {
    background: linear-gradient(90deg, var(--theme-blue-dark), var(--theme-gold-dark));
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(30,64,175,0.18);
}
.hero-cta-alt {
    background: #fff;
    color: var(--theme-blue) !important;
    border: 2px solid var(--theme-blue);
    font-size: 1.13rem;
    font-weight: 700;
    border-radius: 2.5rem;
    padding: 0.95rem 2.5rem;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(30,64,175,0.06);
}
.hero-cta-alt:hover, .hero-cta-alt:focus {
    background: var(--theme-blue);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(30,64,175,0.13);
}
.hero-img {
    box-shadow: 0 8px 32px rgba(30,64,175,0.10), 0 2px 8px rgba(30,64,175,0.06);
    border-radius: 2rem;
    border: 8px solid white;
}
.hero-underline {
    height: 12px !important;
    background: linear-gradient(90deg, var(--theme-blue) 60%, var(--theme-gold) 100%);
    opacity: 0.18;
    border-radius: 6px;
    width: 100%;
    bottom: 5px;
    left: 0;
    z-index: -1;
}

/* ==========================================================================
   Testimonials Section Styles (Consolidated, removed duplicates)
   ========================================================================== */
.testimonials-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}
.testimonial-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.testimonial-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.testimonial-content {
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.testimonial-author {
    margin-top: 1rem;
    font-weight: bold;
}
.testimonial-location {
    color: #6c757d;
    font-size: 0.875rem;
}

/* ==========================================================================
   Testimonials Section - Clean & Professional
   ========================================================================== */

/* Clean Section Background */
.testimonials-section {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 4rem 0;
}

/* Simple Card Design */
.testimonial-card {
    background: #ffffff;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Professional Navigation Arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev div,
.carousel-control-next div {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-control-prev:hover div,
.carousel-control-next:hover div {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Fixed Carousel Indicators */
.carousel-indicators {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    margin: 2rem 0 0 0 !important;
    gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(30, 64, 175, 0.3) !important;
    border: none !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    text-indent: 0 !important;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: rgba(30, 64, 175, 0.6) !important;
    transform: scale(1.1);
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--theme-blue) !important;
    transform: scale(1.2);
}

/* Clean Quote Icon */
.testimonial-card .bi-quote {
    opacity: 0.06 !important;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover .bi-quote {
    opacity: 0.1 !important;
}

/* Professional Avatar */
.testimonial-card .rounded-circle {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .rounded-circle {
    transform: scale(1.02);
}

/* Clean Typography */
.testimonial-card h6 {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-card blockquote p {
    line-height: 1.6;
    font-size: 0.9rem;
    color: #374151 !important;
}

.testimonial-card .small {
    font-size: 0.8rem !important;
}

/* Remove Excessive Animations */
.testimonial-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Simplified Background */
.testimonials-section::before {
    display: none;
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
    
    .testimonial-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
}

/* Remove Star Rating Styles */
.testimonial-card .bi-star-fill {
    display: none;
}

/* ==========================================================================
   End Testimonials Section
   ========================================================================== */

/* =====================
   Toastr Notification Styles (from index.php inline)
   ===================== */
#toast-container>.toast-success {
    background-color: #26b280;
    color: #fff;
}
#toast-container>.toast-error {
    background-color: red;
    color: #fff;
}


#toast-container>.toast-info {
    background-color: #17a2b8;
    color: #fff;
}

#toast-container>.toast-warning {
    background-color: #ffc107;
    color: #fff;
}
