/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: rgba(26, 26, 26, 0.95);
        z-index: 99999 !important;
        backdrop-filter: blur(15px);
        height: auto;
        padding: 1.2rem 0;
    }

    .navbar-brand img {
        height: 45px !important;
    }

    .navbar-toggler {
        border: none;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Custom Toggler Icon Color */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-scrolled {
        background-color: var(--brand-white) !important;
    }

    .navbar-scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-collapse {
        background-color: var(--brand-white);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-collapse .nav-link {
        color: var(--brand-dark) !important;
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 0.2rem;
    }

    .navbar-collapse .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-collapse .nav-link.active,
    .navbar-collapse .nav-link:hover {
        background-color: rgba(196, 30, 58, 0.05);
        color: var(--brand-primary) !important;
    }

    .navbar-collapse .nav-link::after {
        display: none;
    }
}



/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-wrapper {
        margin-top: 60px;
        overflow: hidden;
    }

    .hero-person-img {
        width: 125%;
        max-width: none;
        margin-left: -22.5%;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: block;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}


/* --- GENERAL SECTION STYLES --- */
.section-padding {
    padding: 3.5rem 0;
    overflow: hidden !important;
    width: 100%;
    position: relative;
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 3rem 0;
    }
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
}


@media (max-width: 991.98px) {
    .about-heading {
        font-size: 2rem;
    }

    .about-figure {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .about-heading {
        font-size: 1.7rem;
    }

    .about-content {
        padding-left: 0;
    }
}

@media (max-width: 991.98px) {
    .course-section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .course-card {
        flex-direction: column;
    }

    .course-img-wrapper {
        width: 100%;
        height: 220px;
    }

    .course-content {
        width: 100%;
    }
}


@media (max-width: 991.98px) {
    .why-main-heading {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .why-main-heading {
        font-size: 1.7rem;
    }

    .why-feat-card {
        padding: 2rem 1.5rem;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .testi-image-stack {
        height: 360px;
        margin-bottom: 2rem;
    }

    .testi-carousel-wrap {
        padding-left: 0;
    }

    .testi-heading {
        font-size: 1.9rem;
    }
}

@media (max-width: 767.98px) {
    .testi-card {
        padding: 1.8rem 1.5rem;
    }

    .testi-carousel-wrap {
        padding: 0 1.2rem;
    }

    .testi-controls {
        padding: 0 0.5rem 2.5rem;
        margin-top: 1.5rem;
    }

    .testi-heading {
        font-size: 1.6rem;
    }

    .testi-image-stack {
        height: 280px;
    }
}


@media (max-width: 991.98px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 20px;
    }

    .gal-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        column-count: 1;
    }
}

@media (max-width: 991.98px) {
    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 991.98px) {
    .footer-main {
        padding: 4rem 0 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .footer-heading {
        margin-bottom: 1.2rem !important;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-app-btns {
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    .footer-main {
        padding: 4rem 0 2rem;
    }

    .footer-links {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .footer-bottom-links {
        margin-top: 1rem;
        justify-content: center;
        display: flex;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 90px;
        right: 20px;
    }
}

/* --- 4K & ULTRA WIDE RESPONSIVENESS --- */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (min-width: 1921px) {
    .container {
        max-width: 1600px !important;
    }

    html {
        font-size: 18px;
        /* Scales all rem-based units */
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 2561px) {
    .container {
        max-width: 2000px !important;
    }

    html {
        font-size: 22px;
    }

    .navbar {
        height: 100px;
    }
}

@media (min-width: 3840px) {
    .container {
        max-width: 2800px !important;
    }

    html {
        font-size: 26px;
    }
}

/* --- MODAL RESPONSIVENESS --- */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem;
        display: flex;
        align-items: center;
        min-height: calc(100% - 2rem);
    }

    .custom-modal {
        border-radius: 15px;
    }

    .modal-banner img {
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .modal-footer-custom {
        padding: 1.25rem !important;
    }

    .modal-footer-custom .btn-primary-custom {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 30px;
    }

    .btn-close-custom {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}