﻿/* =========================================
   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;
    }

        .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: 50px !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;
    }

        .menu-list-container > li {
            list-style: none;
            border-bottom: 1px solid #e5e5e5;
        }

            .menu-list-container > li > a {
                display: block;
                padding: 18px 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: 18px 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;
        padding: 0;
        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;
    }
}

@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: 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-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: 13px;
    }

    .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;
    }
}
