﻿/* =========================================
   MOBILE RESPONSIVE ONLY
========================================= */

@media screen and (max-width:991.98px) {

    /* HEADER */

    .top-header {
        display: none !important;
    }

    .header-height {
        height: auto !important;
        min-height: auto !important;
    }

    .header {
        width: 100%;
        position: relative;
    }

    .header-wrapper {
        width: 100%;
    }

    .main-header {
        padding: 12px 15px !important;
        min-height: auto !important;
        background: #fff;
    }

    .header-logo-wrapper {
        width: auto;
    }

    .custom-brand-logo img {
        width: 220px !important;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-right: -4px;
    }

        .menu-icon i {
            font-size: 28px !important;
        }

    /* OFFCANVAS */

    .offcanvas.offcanvas-end {
        width: 340px !important;
        max-width: 90vw !important;
        background: #fff !important;
    }

    .offcanvas-header {
        padding: 15px !important;
        border-bottom: 1px solid #e5e5e5 !important;
    }

    .offcanvas-body {
        padding: 20px 36px 26px 36px !important;
        overflow-y: auto;
    }

    /* SOCIAL */

    .mobile-social-icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: #0d4f7c;
        color: #fff;
    }

    /* BUTTONS */

    .mobile-btn-green {
        background: #ff0f7b !important;
        border: none !important;
        border-radius: 10px !important;
        min-height: 52px;
    }

    .mobile-btn-blue {
        background: #00005a !important;
        border: none !important;
        border-radius: 10px !important;
        min-height: 52px;
    }

    /* MENU */

    .menu-list-container {
        margin: 0;
        padding: 0;
        margin-bottom: 12px;
    }

        .menu-list-container > li {
            list-style: none;
            border-bottom: 1px solid #e5e5e5;
        }

            .menu-list-container > li > a {
                display: block;
                padding: 0px 0;
                text-decoration: none;
                color: #24344d;
                font-size: 17px;
                font-weight: 500;
            }
              
                /* DROPDOWN HEADER */

                .dropdown-header {
                    display: flex !important;
                    justify-content: space-between;
                    align-items: center;
                    padding: 1px 0 !important;
                    cursor: pointer;
                }

                    .dropdown-header a {
                        text-decoration: none;
                        color: #24344d;
                        font-size: 17px;
                        font-weight: 500;
                        flex: 1;
                    }

                    .dropdown-header i {
                        transition: .3s;
                    }
                /* SUBMENU */

                    .dropdown-menu-mobile {
                        display: none;
                        list-style: none;
                        margin: 0 0 15px 0;
                        margin: 0px 15px 18px 15px;
                        background: #f8f9fa;
                        border-radius: 10px;
                        overflow: hidden;
                    }

                    .dropdown-menu-mobile li {
                        /*            border-bottom: 1px solid #ececec;*/
                    }

                        .dropdown-menu-mobile li:last-child {
                            border-bottom: none;
                        }

                    .dropdown-menu-mobile a {
                        display: block;
                        padding: 12px 18px;
                        text-decoration: none;
                        color: #555;
                        font-size: 14px;
                    }

                        .dropdown-menu-mobile a:hover {
                            background: #fff;
                            color: #0d6efd;
                        }
                /* ACTIVE DROPDOWN */

                .mobile-dropdown.active .dropdown-menu-mobile {
                    display: block;
                }

                .mobile-dropdown.active .bi-chevron-down {
                    transform: rotate(180deg);
                }
                /* REGISTER BUTTON */

                .sticky-reg-btn-wrapper {
                    z-index: 1040 !important;
                }

                .offcanvas.show {
                    z-index: 1060 !important;
                }
                /* HERO SECTION */

                .hero-section,
                .banner-section,
                .swiper,
                .swiper-container {
                    margin-top: 0 !important;
                }

                body {
                    overflow-x: hidden;
                }

                .buttonicon {
                    width: 255px;
                }

                .section-title h2 {
                    font-size: 24px;
                    font-weight: 500;
                    color: #00005a;
                    margin: 0 0 10px 0;
                }

                .dropdown-menu-mobile li a {
                    display: block;
                    padding: 1px 15px 1px 15px !important;
                    font-size: 15px;
                    color: #555;
                    text-decoration: none;
                    /*        border-bottom: 1px solid #ececec;*/
                }

                .socialmidea icon {
                    top: 50px !important;
                }

                .guarantee-heading h3 {
                    font-size: 24px;
                    white-space: nowrap;
                }

                .test-heading h3 {
                    font-size: 24px;
                    margin-top: 26px;
                }

                .blogs-heading h3 {
                    font-size: 24px;
                }

                .course-heading h3 {
                    font-size: 24px;
                }

                .course-heading h5 {
                    color: #fff;
                    text-align: center;
                    font-size: 19px;
                }
            }

@media (max-width:991px) {

    .offcanvas.offcanvas-end {
        width: 320px !important;
        max-width: 320px !important;
    }
}





/* =========================
   Courses MOBILE RESPONSIVE
   ========================= */
@media (max-width: 768px) {

    .courses-dark-section {
        padding: 40px 15px;
    }

    .headingcourse {
        font-size: 32px;
        text-align: center;
        margin-bottom: 30px;
    }

    .card-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .card-image-wrapper {
        width: 118%;
        overflow: hidden;
    }

    .card-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .card-content {
        padding: 18px;
    }

    .card-title {
        font-size: 22px;
        text-align: center;
    }

    .card-description {
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
    }

    .card-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

        .card-actions .btn {
            width: 100%;
            justify-content: center;
        }
}


/* =========================
   EXTRA SMALL DEVICES
   ========================= */
@media (max-width: 480px) {

    .courses-dark-section {
        padding: 30px 10px;
    }

    .headingcourse {
        font-size: 26px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 15px;
        margin-bottom: -3px;
    }

    .card-actions .btn {
        font-size: 14px;
        padding: 12px;
    }
}


/* ==========================================
   2. MOBILE SPECIFIC MEDIA QUERY (Under 768px)
   ========================================== */
@media (max-width: 767px) {
    /* Tighten global container gutters so the video layout has maximum width */
    .video .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* scale down text size so it doesn't break into awkward multiple lines */
    .video-heading h3 {
        font-size: 1.2rem !important;
        margin-top: 10px;
    }

    /* Scale down the SVG play icon slightly for smaller mobile devices */
    .video-play-btn {
        width: 45px !important;
        height: 45px !important;
    }

    /* Fixes any outer red borders or frames breaking layout space on small viewpoints */
    .video-section {
        padding: 0 !important;
        border: none !important;
    }
}


/*Digital Marketing Page*/

/* =========================================
   Mobile Responsive Adjustments 
   ========================================= */

/* For Tablets and Smaller Devices (under 768px) */
@media (max-width: 768px) {
    /* Reduce hero section sizes to prevent overflow */
    .hero {
        padding: 50px 5%;
    }

        .hero h1 {
            font-size: 32px;
        }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* Stack the syllabus modules vertically instead of side-by-side */
    .modules-grid {
        grid-template-columns: 1fr; /* Forces 1 single column */
        gap: 15px;
        padding: 15px 0;
    }

    /* Reduce padding inside the accordion header */
    .course-header {
        padding: 15px 20px;
    }

    /* Slightly smaller font for the course title */
    .course-title {
        font-size: 16px;
        line-height: 1.4;
        padding-right: 15px; /* Give breathing room between text and + icon */
    }

    .course-content {
        padding: 0 15px;
    }

    /* Reduce padding inside each module box */
    .module-box {
        padding: 15px;
    }
}

/* For Small Mobile Phones (under 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 22px;
    }

    .course-title {
        font-size: 15px;
    }

    .toggle-icon {
        font-size: 20px;
    }

    .module-box h3 {
        font-size: 15px;
    }

    .module-box ul li {
        font-size: 12px; /* Makes bullet points easier to read on narrow screens */
    }
}



/*Pop Form */
/* Mobile Responsive Popup */
@media (max-width: 768px) {

    .lead-popup-overlay {
        padding: 10px;
        align-items: center;
    }

    .lead-popup-box {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }

    .lead-popup-content {
        flex-direction: column;
    }

    .lead-left,
    .lead-right {
        width: 100% !important;
        padding: 20px;
    }

        .lead-left h2 {
            font-size: 24px;
            line-height: 1.3;
            margin-bottom: 10px;
        }

        .lead-left p {
            font-size: 14px;
            line-height: 1.6;
        }

    .lead-benefits {
        margin-top: 15px;
    }

        .lead-benefits li {
            font-size: 14px;
            margin-bottom: 8px;
        }

    .lead-right h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .popup-input-group input,
    .popup-input-group select {
        width: 100%;
        height: 48px;
        font-size: 14px;
    }

    .lead-submit-btn {
        width: 100%;
        height: 50px;
    }

    .lead-close-btn {
        top: 8px;
        right: 12px;
        font-size: 28px;
        z-index: 1000;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {

    .lead-left,
    .lead-right {
        padding: 15px;
    }

        .lead-left h2 {
            font-size: 20px;
        }

        .lead-left p,
        .lead-benefits li {
            font-size: 13px;
        }

        .lead-right h3 {
            font-size: 20px;
        }

    .popup-input-group input,
    .popup-input-group select,
    .lead-submit-btn {
        height: 45px;
    }
}
@media (max-width: 991.98px) {

    /* Offcanvas la header peksha wr z-index dya */
    .offcanvas.show,
    .offcanvas.showing {
        z-index: 100000 !important;
    }

    .offcanvas-backdrop.show {
        z-index: 99999 !important;
    }

    /* Offcanvas open aslyavar sticky/scrolled header la freeze kara */
    body.offcanvas-open .header.scrolled {
        position: absolute !important;
    }
}
.register{
    text-align:center;
}
.paragraph{
    text-align:center;
}
@media (max-width: 991px) {
    .card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

        .card-actions .btn-enroll,
        .card-actions .btn-know {
            flex: 1 1 auto;
            min-width: 120px;
            text-align: center;
        }
}
@media (max-width: 991px) {
    .mobile-menu-links .menu-list-container li a {
        color: #0e1c36;
        transition: color 0.3s ease;
    }

        .mobile-menu-links .menu-list-container li a:hover {
            color: #DF014A !important;
        }

    .mobile-menu-links .dropdown-header a:hover {
        color: #DF014A !important;
    }
}
@media (max-width: 991px) {
/*    #nav-courses-ct .dropdown-header i,
    .mobile-dropdown .dropdown-header i {
        transition: color 0.3s ease;
    }
*/
    .mobile-dropdown .dropdown-header:hover i {
        color: #DF014A !important;
    }
}
@media (max-width: 991px) {
/*    .mobile-dropdown .dropdown-header i.bi-chevron-down {
        transition: color 0.3s ease;
    }*/

    .mobile-dropdown .dropdown-header:hover i.bi-chevron-down {
        color: #DF014A !important;
    }
}

/* =========================================
   TABLET RESPONSIVE ONLY (768px - 991.98px)
   SINGLE CONSOLIDATED MEDIA QUERY
========================================= */

@media screen and (min-width: 768px) and (max-width: 991.98px) {

    /* ===== HEADER ===== */
    .top-header {
        display: none !important;
    }

    .header-height {
        height: auto !important;
        min-height: auto !important;
    }

    .header {
        width: 100%;
        position: relative;
    }

    .header-wrapper {
        width: 100%;
    }

    .main-header {
        padding: 12px 15px !important;
        min-height: auto !important;
        background: #fff;
    }

    .header-logo-wrapper {
        width: auto;
    }

    .custom-brand-logo img {
        width: 220px !important;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-right: -4px;
    }

        .menu-icon i {
            font-size: 28px !important;
        }

    /* ===== OFFCANVAS ===== */
    .offcanvas.offcanvas-end {
        width: 320px !important;
        max-width: 320px !important;
        background: #fff !important;
    }

    .offcanvas-header {
        padding: 15px !important;
        border-bottom: 1px solid #e5e5e5 !important;
    }

    .offcanvas-body {
        padding: 20px 36px 26px 36px !important;
        overflow-y: auto;
    }

    .offcanvas.show,
    .offcanvas.showing {
        z-index: 100000 !important;
    }

    .offcanvas-backdrop.show {
        z-index: 99999 !important;
    }

    body.offcanvas-open .header.scrolled {
        position: absolute !important;
    }

    /* ===== SOCIAL ICONS ===== */
    .mobile-social-icon {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: #0d4f7c;
        color: #fff;
    }

    .socialmidea icon {
        top: 50px !important;
    }

    /* ===== BUTTONS ===== */
    .mobile-btn-green {
        background: #ff0f7b !important;
        border: none !important;
        border-radius: 10px !important;
        min-height: 52px;
    }

    .mobile-btn-blue {
        background: #00005a !important;
        border: none !important;
        border-radius: 10px !important;
        min-height: 52px;
    }

    .buttonicon {
        width: 255px;
    }

    /* ===== MOBILE MENU LIST ===== */
    .menu-list-container {
        margin: 0;
        padding: 0;
        margin-bottom: 12px;
    }

        .menu-list-container > li {
            list-style: none;
            border-bottom: 1px solid #e5e5e5;
        }

            .menu-list-container > li > a {
                display: block;
                padding: 0px 0;
                text-decoration: none;
                color: #24344d;
                font-size: 17px;
                font-weight: 500;
            }

    .mobile-menu-links .menu-list-container li a {
        color: #0e1c36;
        transition: color 0.3s ease;
    }

        .mobile-menu-links .menu-list-container li a:hover {
            color: #DF014A ;
        }
    .mobile-menu-links .menu-list-container li contactno:hover {
        background: none !important;
        color: inherit !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .mobile-menu-links .menu-list-container li contactno a:hover {
        background: none !important;
        color: inherit !important;
        text-decoration: none !important;
        transform: none !important;
    }
    /* ===== DROPDOWN HEADER (Courses / Services) ===== */
    .dropdown-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1px 0 !important;
        cursor: pointer;
    }

        .dropdown-header a {
            text-decoration: none;
            color: #24344d;
            font-size: 17px;
            font-weight: 500;
            flex: 1;
        }

        .dropdown-header i {
            transition: .3s;
        }

    .mobile-menu-links .dropdown-header a:hover {
        color: #DF014A !important;
    }

    .mobile-dropdown .dropdown-header:hover i {
        color: #DF014A !important;
    }

        .mobile-dropdown .dropdown-header:hover i.bi-chevron-down {
            color: #DF014A !important;
        }

    /* ===== SUBMENU ===== */
    .dropdown-menu-mobile {
        display: none;
        list-style: none;
        margin: 1px 10px 18px 10px;
        background: #f8f9fa;
        border-radius: 10px;
        overflow: hidden;
    }

        .dropdown-menu-mobile li:last-child {
            border-bottom: none;
        }

        .dropdown-menu-mobile a {
            display: block;
            padding: 12px 18px;
            text-decoration: none;
            color: #555;
            font-size: 14px;
        }

            .dropdown-menu-mobile a:hover {
                background: #fff;
                color: #0d6efd;
            }

        .dropdown-menu-mobile li a {
            display: block;
            padding: 1px 13px 1px 13px !important;
            font-size: 15px;
            color: #555;
            text-decoration: none;
        }

    /* ===== ACTIVE DROPDOWN ===== */
    .mobile-dropdown.active .dropdown-menu-mobile {
        display: block;
    }

    .mobile-dropdown.active .bi-chevron-down {
        transform: rotate(180deg);
    }

    /* ===== REGISTER BUTTON ===== */
    .sticky-reg-btn-wrapper {
        z-index: 1040 !important;
    }

    /* ===== HERO SECTION ===== */
    .hero-section,
    .banner-section,
    .swiper,
    .swiper-container {
        margin-top: 0 !important;
    }

    body {
        overflow-x: hidden;
    }

    .hero {
        padding: 50px 5%;
    }

        .hero h1 {
            font-size: 32px;
        }

    /* ===== SECTION TITLES ===== */
    .section-title h2 {
        font-size: 24px;
        font-weight: 500;
        color: #00005a;
        margin: 0 0 10px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .guarantee-heading h3 {
        font-size: 24px;
        white-space: nowrap;
    }

    .test-heading h3 {
        font-size: 24px;
        margin-top: 26px;
    }

    .blogs-heading h3 {
        font-size: 24px;
    }

    .course-heading h3 {
        font-size: 24px;
    }

    .course-heading h5 {
        color: #fff;
        text-align: center;
        font-size: 19px;
    }

    /* ===== COURSES DARK SECTION / CARDS ===== */
    .courses-dark-section {
        padding: 40px 15px;
    }

    .headingcourse {
        font-size: 32px;
        text-align: center;
        margin-bottom: 30px;
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .card-image-wrapper {
        width: 100%;
        overflow: hidden;
    }

    .card-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .card-content {
        padding: 18px;
    }

    .card-title {
        font-size: 22px;
        text-align: center;
    }

    .card-description {
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
    }

    .card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 20px;
        justify-content: center;
    }

        .card-actions .btn {
            width: auto;
            justify-content: center;
        }

        .card-actions .btn-enroll,
        .card-actions .btn-know {
            flex: 1 1 auto;
            min-width: 120px;
            text-align: center;
        }

    /* ===== VIDEO SECTION ===== */
    .video .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .video-heading h3 {
        font-size: 1.2rem !important;
        margin-top: 10px;
    }

    .video-play-btn {
        width: 45px !important;
        height: 45px !important;
    }

    .video-section {
        padding: 0 !important;
        border: none !important;
    }

    /* ===== DIGITAL MARKETING PAGE (MODULES) ===== */
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }

    .course-header {
        padding: 15px 20px;
    }

    .course-title {
        font-size: 16px;
        line-height: 1.4;
        padding-right: 15px;
    }

    .course-content {
        padding: 0 15px;
    }

    .module-box {
        padding: 15px;
    }

    /* ===== LEAD POPUP FORM ===== */
    .lead-popup-overlay {
        padding: 10px;
        align-items: center;
    }

    .lead-popup-box {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 12px;
    }

    .lead-popup-content {
        flex-direction: column;
    }

    .lead-left,
    .lead-right {
        width: 100% !important;
        padding: 20px;
    }

        .lead-left h2 {
            font-size: 24px;
            line-height: 1.3;
            margin-bottom: 10px;
        }

        .lead-left p {
            font-size: 14px;
            line-height: 1.6;
        }

    .lead-benefits {
        margin-top: 15px;
    }

        .lead-benefits li {
            font-size: 14px;
            margin-bottom: 8px;
        }

    .lead-right h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .popup-input-group input,
    .popup-input-group select {
        width: 100%;
        height: 48px;
        font-size: 14px;
    }

    .lead-submit-btn {
        width: 100%;
        height: 50px;
    }

    .lead-close-btn {
        top: 8px;
        right: 12px;
        font-size: 28px;
        z-index: 1000;
    }

    /* ===== GENERAL TEXT ===== */
    .register {
        text-align: center;
    }

    .paragraph {
        text-align: center;
    }
}
@media (max-width: 768px) {
    .courses-dark-section .card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        flex-wrap: nowrap;
    }

        .courses-dark-section .card-actions .btn {
            width: auto !important;
            flex: 1 1 auto;
            display: inline-flex !important;
            justify-content: center;
            align-items: center;
            white-space: nowrap;
            font-size: 13px;
            padding: 10px 16px;
            border-radius: 6px;
            text-align: center;
        }

        .courses-dark-section .card-actions .btn-enroll.animated-button1 {
            background-color: #DF014A !important;
        }

        .courses-dark-section .card-actions .btn-know.animated-button1 {
            background-color: #00005a !important;
        }
}
