/*=============== SINGLE COURSE HERO ===============*/
.challangs__hero {
    position: relative;
    padding-block: 14.375rem 48px;

    .challangs__hero__container {

        .challangs__hero__content {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
            gap: 16px;
            z-index: 5;

            span {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 8px;
                font-size: 12px;
                font-weight: var(--font-semi-bold);
                color: var(--green);
                background-color: white;
                padding: 6px 16px;
                border-radius: 999px;
                text-transform: uppercase;

                .icon {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 12px;
                    height: 12px;
                    font-size: 7px;
                    background-color: var(--green);
                    color: white;
                    border-radius: 50%;

                    i {
                        margin-top: 2px;
                    }
                }
            }

            h1 {
                font-size: 32px;
                font-weight: var(--font-semi-bold);
                color: white;
                margin-bottom: 30px;
            }


            .img {
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                max-width: 700px;
                width: 100%;
                border-radius: 12px;
                box-shadow: 0px 2px 12px 0px #00000036;
                border: 2px solid #fff;

                img {
                    width: 100%;
                    height: auto;
                    border-radius: 12px;
                }

                .play-video-popup {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 44px;
                    height: 44px;
                    background-color: white;
                    color: var(--yellow);
                    border-radius: 50%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 22px;
                    cursor: pointer;
                    transition: all 0.3s ease-in-out;
                }
            }

        }
    }

    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, #0F3D2E 0%, rgba(15, 61, 46, 0.5) 100%);
        z-index: 1;
    }

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../image/bg\ challangs.webp);
        background-size: cover;
        background-position: center;
        z-index: -1;
    }
}

/*=============== OUR CHALLANGS ===============*/
.our__challangs {
    padding-block: 60px;

    .our__challangs__container {

        .our__challangs__content {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 38px;

            .our__challangs__header {
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
                flex-direction: column;
                gap: 4px;

                h2 {
                    font-size: 30px;
                    font-weight: var(--font-bold);
                    color: var(--green);
                }

                p {
                    font-size: 14px;
                    font-weight: var(--font-regular);
                    color: #717973;
                    text-transform: uppercase;
                }
            }

            .our__challangs__bannar {
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
                flex-direction: column;
                gap: 16px;
                max-width: 1150px;
                width: 100%;
                padding: 24px 1rem;
                border: 1px solid #F0F0F0;
                background-color: #FBFBFB;
                border-radius: 12px;

                i {
                    z-index: 5;
                    color: var(--green);
                    font-size: 40px;
                }

                p {
                    font-size: 16px;
                    font-weight: var(--font-regular);
                    color: #666666;
                    max-width: 600px;
                    width: 100%;
                    z-index: 5;
                }

                a {
                    width: 203px;
                    height: 47px;
                    border-radius: 999px;
                    background-color: var(--yellow);
                    font-size: 18px;
                    font-weight: var(--font-semi-bold);
                    color: white;
                    z-index: 5;
                }

                &::after {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: 0;
                    background-image: url(../image/bg4.webp);
                    background-position: center;
                }
            }

            .challangs__cards {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 37px;
                width: 100%;
                max-width: 1150px;

                .challenge__card {
                    display: flex;
                    justify-content: center;
                    align-items: start;
                    flex-direction: column;
                    gap: 24px;
                    padding: 32px;
                    border-radius: 12px;
                    background-color: white;
                    border: 1px solid #C1C8C233;
                    box-shadow: 0px 1px 2px 0px #0000000D;
                    max-width: 359px;
                    width: 100%;

                    .header__card {
                        display: flex;
                        justify-content: space-between;
                        align-items: start;
                        width: 100%;

                        .icon {
                            width: 50px;
                            height: 50px;
                            border-radius: 8px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            background-color: #FBF7EB;
                            color: var(--yellow);
                            font-size: 25px;
                        }

                        span {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            padding: 3.5px 12px;
                            color: #358168;
                            font-size: 10px;
                            font-weight: var(--font-bold);
                            background-color: #35816830;
                            border-radius: 999px;
                        }
                    }

                    .text {
                        display: flex;
                        justify-content: center;
                        align-items: start;
                        flex-direction: column;
                        gap: 8px;

                        h3 {
                            font-size: 20px;
                            font-weight: var(--font-bold);
                            color: var(--dark);
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;
                            width: 100%;
                        }

                        p {
                            font-size: 12px;
                            font-weight: var(--font-regular);
                            color: #666666;
                            width: 90%;
                        }
                    }

                    .group {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        flex-direction: column;
                        gap: 16px;
                        width: 100%;

                        .progress__container {
                            display: flex;
                            justify-content: center;
                            align-items: start;
                            flex-direction: column;
                            gap: 16px;
                            width: 100%;

                            .header__progress {
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                width: 100%;

                                p {
                                    display: flex;
                                    justify-content: center;
                                    align-items: center;
                                    font-size: 12px;
                                    font-weight: var(--font-semi-bold);
                                    color: #666666B2;

                                    i {
                                        margin-right: 4px;
                                    }
                                }
                            }

                            .progress__bar {
                                position: relative;
                                width: 100%;
                                height: 8px;
                                background-color: #E7E8E980;
                                border-radius: 999px;

                                .progress__fill {
                                    position: absolute;
                                    top: 0;
                                    left: 0;
                                    height: 100%;
                                    background-color: var(--yellow);
                                    border-radius: 999px;
                                }
                            }
                        }

                        a {
                            width: 100%;
                            height: 42px;
                            background-color: var(--green);
                            border-radius: 8px;
                            font-size: 16px;
                            font-weight: var(--font-semi-bold);
                            color: white;
                        }
                    }
                }
            }
        }
    }
}

/*=============== our__winners ===============*/
.our__winners {
    position: relative;
    padding-block: 90px;
    background-color: #F3F4F5;

    .our__winners__container {

        .our__winners__content {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 39px;
            z-index: 5;

            .our__winners__header {
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
                flex-direction: column;
                gap: 8px;

                h2 {
                    font-size: 30px;
                    font-weight: var(--font-bold);
                    color: var(--yellow);
                }

                p {
                    font-size: 14px;
                    font-weight: var(--font-regular);
                    color: #414844;
                    max-width: 555px;
                    width: 100%;
                }
            }

            .winners__cards {
                display: flex;
                justify-content: center;
                align-items: center;
                flex-wrap: wrap;
                gap: 24px;
                max-width: 1015px;
                width: 100%;

                .card {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-direction: column;
                    gap: 16px;
                    box-shadow: 0px 0px 10px 0px #FFCF361F;
                    background-color: white;
                    border-radius: 12px;
                    padding: 24px 12px;

                    .img {
                        position: relative;
                        width: 80px;
                        height: 80px;
                        border: 4px solid #FBBF24BA;
                        border-radius: 50%;

                        img {
                            width: 100%;
                            height: 100%;
                            border-radius: 50%;
                            object-fit: cover;
                        }

                        .icon {
                            position: absolute;
                            bottom: 0;
                            left: 103%;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            width: 20px;
                            height: 28px;
                            transform: translateX(-50%);
                            color: #FFCF36;
                            border-radius: 12px;
                            background-color: white;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            font-size: 15px;
                            box-shadow: 0px 1px 2px 0px #71797336;
                        }


                    }

                    .text {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        flex-direction: column;
                        gap: 4px;

                        h3 {
                            font-size: 14px;
                            font-weight: var(--font-regular);
                            color: var(--dark);
                        }

                        span {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            padding: 4px 15px;
                            background-color: #2B694D;
                            color: white;
                            font-size: 10px;
                            font-weight: var(--font-regular);
                            border-radius: 999px;
                        }
                    }

                    P {
                        font-size: 12px;
                        font-weight: var(--font-regular);
                        color: var(--yellow);
                    }
                }
            }
        }
    }

    &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        background-image: url(../image/bg3.webp);
        background-size: cover;
        background-position: center;
    }
}

/*=============== PAST CHALLANGS ===============*/
.past__challangs {
    padding-block: 119px;

    .past__challangs__container {
        .past__challangs__content {
            display: flex;
            justify-content: center;
            align-items: start;
            flex-direction: column;
            gap: 48px;

            .past__challangs__header {
                display: flex;
                justify-content: center;
                align-items: start;
                flex-direction: column;
                gap: 11px;

                h2 {
                    font-size: 30px;
                    font-weight: var(--font-bold);
                    color: var(--dark);
                }

                p {
                    font-size: 16px;
                    font-weight: var(--font-regular);
                    color: #414844;
                    max-width: 576px;
                    width: 100%;
                }
            }

            .challangs__cards {
                display: flex;
                justify-content: start;
                align-items: center;
                gap: 16px;
                flex-wrap: wrap;
                width: 100%;

                .card {
                    display: flex;
                    justify-content: start;
                    align-items: center;
                    padding: 7px;
                    border-radius: 8px;
                    gap: 24px;
                    background-color: #ACB3B71A;
                    max-width: 335px;
                    width: 100%;

                    .img {
                        width: 95px;
                        height: 90px;
                        border-radius: 4px;

                        img {
                            width: 100%;
                            height: 100%;
                            border-radius: 4px;
                            object-fit: cover;
                        }
                    }

                    .text {
                        display: flex;
                        justify-content: center;
                        align-items: start;
                        flex-direction: column;
                        gap: 27px;

                        .header__text {
                            display: flex;
                            justify-content: center;
                            align-items: start;
                            flex-direction: column;

                            h3 {
                                font-size: 14px;
                                font-weight: var(--font-medium);
                                color: var(--dark);
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                width: 100%;
                            }

                            p {
                                font-size: 12px;
                                font-weight: var(--font-regular);
                                color: #717973;
                            }
                        }

                        span {
                            display: flex;
                            justify-content: start;
                            align-items: center;
                            gap: 4px;
                            font-size: 12px;
                            font-weight: var(--font-medium);
                            color: var(--green);
                        }
                    }
                }
            }
        }
    }
}

/* Popup */
.video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;

    &.active {
        opacity: 1;
        visibility: visible;
    }

        .video-popup-content {
        position: relative;
        max-width: 800px;
        width: 90%;
		height: 500px;
        border-radius: 18px;
    }
		
	.popup-video{
		height: 100%;
	}
	
    iframe {
        width: 100%;
        border-radius: 12px;
		height: 100%;
    }

    .close-popup {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        border: none;
        background: red;
        color: #fff;
        font-size: 18px;
        cursor: pointer;

        display: flex;
        justify-content: center;
        align-items: center;

        i {
            pointer-events: none;
        }
    }
}

/*=============== RESPONSIVE ===============*/
@media (max-width: 991px) {

    /*=============== SINGLE COURSE HERO ===============*/
    .challangs__hero {
        padding-block: 16rem 48px;

        .challangs__hero__container {

            .challangs__hero__content {


                h1 {
                    font-size: 31px;
                    max-width: 465px;
                    width: 100%;
                    margin-bottom: 10px;
                }


                .img {
                    max-width: 575px;
                }

            }
        }

    }

    /*=============== OUR CHALLANGS ===============*/
    .our__challangs {

        .our__challangs__container {

            .our__challangs__content {


                .our__challangs__bannar {

                    p {
                        font-size: 14px;
                        max-width: 523px;
                    }

                }

                .challangs__cards {
                    grid-template-columns: repeat(2, 1fr);
                }
            }
        }
    }

    /*=============== our__winners ===============*/
    .our__winners {

        .our__winners__container {

            .our__winners__content {

                .winners__cards {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 24px;
                    max-width: 1015px;
                    width: 100%;

                    .card {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        flex-direction: column;
                        gap: 16px;
                        box-shadow: 0px 0px 10px 0px #FFCF361F;
                        background-color: white;
                        border-radius: 12px;
                        padding: 24px 12px;

                        .img {
                            position: relative;
                            width: 80px;
                            height: 80px;
                            border: 4px solid #FBBF24BA;
                            border-radius: 50%;

                            img {
                                width: 100%;
                                height: 100%;
                                border-radius: 50%;
                                object-fit: cover;
                            }

                            .icon {
                                position: absolute;
                                bottom: 0;
                                left: 103%;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                width: 20px;
                                height: 28px;
                                transform: translateX(-50%);
                                color: #FFCF36;
                                border-radius: 12px;
                                background-color: white;
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                font-size: 15px;
                                box-shadow: 0px 1px 2px 0px #71797336;
                            }


                        }

                        .text {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            flex-direction: column;
                            gap: 4px;

                            h3 {
                                font-size: 14px;
                                font-weight: var(--font-regular);
                                color: var(--dark);
                            }

                            span {
                                display: flex;
                                justify-content: center;
                                align-items: center;
                                padding: 4px 15px;
                                background-color: #2B694D;
                                color: white;
                                font-size: 10px;
                                font-weight: var(--font-regular);
                                border-radius: 999px;
                            }
                        }

                        P {
                            font-size: 12px;
                            font-weight: var(--font-regular);
                            color: var(--yellow);
                        }
                    }
                }
            }
        }
    }

    /*=============== PAST CHALLANGS ===============*/
    .past__challangs {
        padding-block: 96px;
    }
}

@media (max-width: 576px) {

    /*=============== SINGLE COURSE HERO ===============*/
    .challangs__hero {
        padding-block: 13rem 98px;

        .challangs__hero__container {

            .challangs__hero__content {

                gap: 26px;

                h1 {
                    margin-bottom: 0px;
                    margin-top: 6px;
                }


                .img {
                    max-width: 328px;
                }

            }
        }

    }

    /*=============== OUR CHALLANGS ===============*/
    .our__challangs {
        padding-block: 110px;

        .our__challangs__container {

            .our__challangs__content {


                .our__challangs__bannar {

                    p {
                        font-size: 14px;
                        max-width: 317px;
                    }

                    a {
                        width: 142px;
                        height: 42px;
                    }
                }

                .challangs__cards {
                    grid-template-columns: repeat(1, 1fr);
                    gap: 37px;
                }
            }
        }
    }

    /*=============== our__winners ===============*/
    .our__winners {

        .our__winners__container {

            .our__winners__content {

                .winners__cards {
                    gap: 14px;
                }
            }
        }
    }

    /*=============== PAST CHALLANGS ===============*/
    .past__challangs {
        padding-block: 96px;
    }
}