/* ================================
   Why Choose Section (MBA)
   ================================ */

.why-choose {
    display: flex;
    flex-direction: row;
    padding: 60px 20px;
    gap: 40px;
    background: #000000;
    align-items: flex-start;
}

/* Left Side - Sticky content */
.why-choose .leftpart {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 120px;
    /* Accounts for navbar */
    height: calc(100vh - 140px);
}

.why-choose .leftpart hr {
    border: 0;
    background: linear-gradient(90deg, #CFA1FF 6.73%, #00D885 23.56%, #D2F501 40.87%, #85F346 60.1%, #42C9CD 77.4%, #77C6E7 97.73%);
    width: 300px;
    height: 1px;
    margin-bottom: 38px;
}

.why-choose .screenshot-container {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.why-choose .screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Right Side - Cards naturally scrolling with page */
.why-choose .rightside {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 10px;
    max-width: 336px;
    margin-bottom: 30px;
}

/* Custom Scrollbar for Desktop */
.why-choose .rightside::-webkit-scrollbar {
    width: 8px;
    display: none;
}

.why-choose .rightside::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.why-choose .rightside::-webkit-scrollbar-thumb {
    background: #7873f5;
    border-radius: 4px;
}

.why-choose .rightside::-webkit-scrollbar-thumb:hover {
    background: #5a52d5;
}

/* Card Styling */
.why-choose .card {
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 336px;
}

.why-choose .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.why-choose .card img {
    width: 336px;
    height: auto;
    object-fit: none;
    margin-bottom: 16px;
}

.why-choose .card p {
    font-size: 20px;
    line-height: 24px;
    font-weight: 650;
    color: #fff;
    margin: 0 0 13px 0;
    width: 336px;
}

.why-choose .card span {
    font-size: 16px;
    color: #777777;
    line-height: 20px;
    margin-bottom: 20px;
}

.leftpart h6 {
    font-size: 18px;
    color: #FFFFFF;
    line-height: 50px;
    font-weight: 300;
    padding-left: 60px;
    text-align: left;
}

.leftpart h4 {
    font-size: 40px;
    color: #FFFFFF;
    line-height: 50px;
    font-weight: 300;
    margin-bottom: 90px;
}

.leftpart p {
    font-size: 16px;
    color: #FFFFFF;
    line-height: 24px;
    font-weight: 300;
    padding-left: 60px;
    width: 528px;
}

/* ================================
   Tablet
   ================================ */

@media (min-width: 768px) {


    .why-choose .leftpart,
    .why-choose .rightside {
        flex: 1;
    }

    .why-choose .rightside {}

    .mobile-show {
        display: none;
    }
}

/* ================================
   Desktop
   ================================ */

@media (min-width: 1024px) {
    .why-choose {
        padding: 0 132px;
        gap: 120px;
    }

    .why-choose .screenshot-container {
        max-width: 550px;
    }

    .why-choose .rightside {
        padding-right: 15px;
    }

    .why-choose .card img {}
}

@media (min-width: 768px) and (max-width: 1024px) {
    .why-choose {
        flex-direction: row;
        padding: 80px 40px;
        gap: 20px;
    }
}


/* ================================
   Mobile (Horizontal Scroll)
   ================================ */

@media (max-width: 767px) {
    .why-choose {
        flex-direction: column;
        padding: 80px 30px;
        height: fit-content;
        gap: 0;
    }

    .why-choose .leftpart {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }

    .why-choose .screenshot-container {
        max-width: 100%;
    }

    /* Horizontal Scroll on Mobile */
    .why-choose .rightside {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 10px 0;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* Hide vertical scrollbar, show horizontal */
    .why-choose .rightside::-webkit-scrollbar {
        height: 6px;
    }

    .why-choose .rightside::-webkit-scrollbar-track {
        background: #e9ecef;
    }

    .why-choose .rightside::-webkit-scrollbar-thumb {
        background: #7873f5;
        border-radius: 3px;
    }

    /* Cards in horizontal row for mobile */
    .why-choose .card {
        min-width: 280px;
        flex-shrink: 0;
        padding: 20px;
    }

    .why-choose .card img {
        width: 294px;
        height: 350px;
    }

    .why-choose .card p {
        font-size: 16px;
        width: 294px;
    }

    .why-choose .card span {
        font-size: 13px;
        width: 294px;
    }

    .leftpart h4 {
        font-size: 30px;
        line-height: 40px;
    }

    .desktop-show {
        display: none;
    }

    .leftpart p {
        width: auto;
        padding-left: 0;
    }

    .leftpart h6 {
        padding-left: 0;
    }
}

/* ================================
   Small Mobile
   ================================ */


@media (max-width: 426px) {
    .why-choose {
        padding-left: 20px;
        padding-right: 20px;
    }

    .why-choose .card {
        min-width: 294px;
        width: 294px;
        padding: 16px 10px;
    }

    .why-choose .leftpart hr {
        width: 80%;
    }

    .why-choose .card p,
    .why-choose .card span,
    .why-choose .card img {
        width: 100%;
    }
}

@media (max-width: 340px) {
    .leftpart h4 {
        font-size: 25px;
        line-height: 35px;
        margin-bottom: 75px;
    }

    .leftpart p,
    .leftpart h6 {
        font-size: 14px;
        line-height: 40px;
    }

    .leftpart p {
        line-height: 14px;
    }

    .why-choose {
        padding: 70px 20px;
    }

    .why-choose .card {
        min-width: 95%;
        width: 95%;
    }
}