/* --- Hero Flow Section Base --- */
.hero-flow-section {
    height: 100vh;
    /* Fills screen on mobile */
    min-height: 600px;
    background-color: #000;
    overflow: hidden;
}

/* Adjust height for desktop to account for sticky header */
@media (min-width: 992px) {
    .hero-flow-section {
        height: calc(100vh - 110px);
    }
}

/* Backgrounds & Overlay */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    /* Slight scale to hide edges during parallax */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 49, 97, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* --- Glassmorphism Content Panel --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3.5rem;
    max-width: 650px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* --- Flow Animations for Text --- */
.hero-content>* {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .hero-content>* {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering */
.swiper-slide-active .hero-content>*:nth-child(1) {
    transition-delay: 0.2s;
}

.swiper-slide-active .hero-content>*:nth-child(2) {
    transition-delay: 0.4s;
}

.swiper-slide-active .hero-content>*:nth-child(3) {
    transition-delay: 0.6s;
}

.swiper-slide-active .hero-content>*:nth-child(4) {
    transition-delay: 0.8s;
}

/* Buttons */
.pulse-btn {
    background-color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.pulse-btn:hover {
    background-color: #08264d;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 49, 97, 0.6) !important;
}

.backdrop-btn {
    backdrop-filter: blur(5px);
    border: 2px solid white;
}

.backdrop-btn:hover {
    background-color: white;
    color: var(--color-primary);
}

/* --- Beautiful Navigations --- */
.custom-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
}

/* Hide default Swiper icons */
.custom-arrow::after {
    content: '' !important;
}

.custom-arrow i {
    font-size: 1.5rem;
}

.custom-arrow:hover {
    background: var(--color-primary);
    transform: scale(1.1);
    border-color: var(--color-primary);
}

/* Sleek Bar Pagination */
.custom-pagination {
    bottom: 30px !important;
}

.custom-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.4s ease;
}

.custom-pagination .swiper-pagination-bullet-active {
    width: 60px;
    background: var(--color-orange);
    box-shadow: 0 0 10px var(--color-orange);
}

/* --- Perfect Mobile Styling --- */
@media (max-width: 768px) {
    .glass-panel {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        margin-top: 40px;
        /* Pushes it slightly down for mobile */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem !important;
    }

    .d-flex.gap-3.flex-wrap .btn {
        width: 100%;
        /* Full width buttons on mobile */
        text-align: center;
    }

    /* Hide arrows on mobile to favor swiping */
    .custom-arrow {
        display: none !important;
    }

    .custom-pagination {
        bottom: 20px !important;
    }
}

/* --- Offer Timer Section --- */
.time-box {
    min-width: 90px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Mobile Adjustments for Timer */
@media (max-width: 576px) {
    .time-box {
        min-width: 75px;
        padding: 0.75rem !important;
    }

    .time-box span.display-5 {
        font-size: 2rem;
        /* Scale down the numbers on very small screens */
    }

    .offer-timer-section .p-5 {
        padding: 2.5rem 1.5rem !important;
        /* Reduce padding on mobile */
    }
}

/* --- Course Section Styling --- */
.course-card {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Image Zoom Effect */
.course-img-wrap img {
    transition: transform 0.6s ease;
}

.course-card:hover .course-img-wrap img {
    transform: scale(1.08);
}

/* Glassmorphism Badge Overlay */
.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Button Hover State */
.course-card .btn-outline-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.course-card .btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(10, 49, 97, 0.3);
}

/* Mobile Polish */
@media (max-width: 768px) {
    .courses-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .course-card {
        margin-bottom: 0.5rem;
    }
}

/* --- About Section Styling --- */

/* Custom Soft Background matching Primary Color */
.bg-soft-primary {
    background-color: rgba(10, 49, 97, 0.08);
    /* 8% opacity of var(--color-primary) */
}

/* Glassmorphism Floating Experience Card */
.glass-experience-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Pushes it slightly outside the image container on desktop */
    transform: translateX(25px);
}

/* Feature Icon Box Hover Animation */
.icon-box {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent;
}

.about-section .row.g-4>div:hover .icon-box {
    background-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(10, 49, 97, 0.3) !important;
}

/* Mobile Responsiveness for About Section */
@media (max-width: 991px) {
    .about-section .ps-lg-5 {
        padding-left: 0 !important;
        /* Remove desktop padding */
        margin-top: 2rem;
    }

    /* Re-position the floating card so it doesn't break out of the screen on mobile */
    .glass-experience-card {
        position: relative !important;
        transform: translateX(0);
        margin: -50px auto 0 auto !important;
        /* Pulls it up to overlap the bottom of the image */
        width: 85%;
        justify-content: center;
    }
}

/* --- Stats & Counter Section --- */
.counter-box {
    padding: 1rem;
    transition: transform 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-8px);
}

.counter-icon-wrap {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.counter-box:hover .counter-icon-wrap {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--color-orange);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

/* Mobile sizing adjustment for huge numbers */
@media (max-width: 576px) {
    .counter-box h2.display-4 {
        font-size: 2.5rem;
    }

    .counter-icon-wrap {
        width: 60px !important;
        height: 60px !important;
    }

    .counter-icon-wrap i {
        font-size: 1.5rem !important;
    }
}

/* --- Modern Glass Grid FAQ Styling --- */
.glass-faq-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
}

.glass-faq-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

/* The Plus Icon Wrapper */
.faq-icon-wrap {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

/* State when the collapse is expanded */
.glass-faq-card[aria-expanded="true"] {
    background: rgba(0, 184, 148, 0.05);
    /* Slight teal tint */
    border-color: rgba(0, 184, 148, 0.4);
    box-shadow: 0 0 25px rgba(0, 184, 148, 0.15);
    /* Neon teal glow */
}

.glass-faq-card[aria-expanded="true"] .faq-icon-wrap {
    background: var(--color-teal);
    border-color: var(--color-teal);
    transform: rotate(135deg);
    /* Spins the plus into an X */
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.4);
}

/* Smooth collapse animation override */
.glass-faq-card .collapse,
.glass-faq-card .collapsing {
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .glass-faq-card {
        padding: 1.5rem;
    }

    .glass-faq-card h5 {
        font-size: 1.1rem;
    }

    .faq-icon-wrap {
        width: 35px;
        height: 35px;
    }
}

/* --- Reviews Section Styling --- */
.review-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Giant background quote mark */
.quote-bg {
    font-size: 8rem;
    color: rgba(10, 49, 97, 0.04);
    /* Very faint primary color */
    top: -20px;
    right: 10px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* Custom Swiper Pagination dots for this section */
.reviews-section .swiper-pagination-bullet {
    background: var(--color-primary);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.reviews-section .swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
    background: var(--color-orange);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .reviews-section .text-lg-end {
        text-align: left !important;
    }
}

/* --- Gallery & Lightbox Styling --- */
.cursor-pointer {
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    /* Zoom the image slightly on hover */
}

/* Glassmorphism Overlay */
.gallery-overlay {
    background: rgba(10, 49, 97, 0.4);
    /* Primary color with transparency */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Modal Lightbox Adjustments */
.lightbox-modal .modal-content {
    background: transparent;
}

.lightbox-modal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
    /* Darker backdrop for the lightbox */
}

#lightboxImage {
    max-height: 85vh;
    /* Prevents huge images from overflowing off the screen */
    width: auto;
    object-fit: contain;
}
