.experience_title {
    color: #F75929;
    max-width: 813px;
    margin: 0 auto;
    text-align: center;
}

.experience_title span {
    color: #2D487D;
}

.experience_cards {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.experience_card {
    border: 1px solid #F75929;
    border-radius: 24px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.experience_card_img img {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience_card_img {
    width: 100%;
    height: 320px;
    position: relative;
}

.experience_card_img_b_a{
    position: relative;
    height: 100%;
}
.experience_card_img_b_a::before,
.experience_card_img_b_a::after {
    position: absolute;
    background: transparent;
    /* Fonni shaffof qildik */
    content: "";
    width: 30px;
    height: 30px;
    z-index: 20;
    right: 0;
}

.experience_card_img_b_a::after {
    bottom: 31%;
    right: -15px;
    border-right: 15px solid #fff;
    border-bottom: 7px solid #fff;
    border-radius: 0 0 24px 0;
}

.experience_card_img_b_a::before {
    right: 31%;
    bottom: -20px;
    border-radius: 15px;
    border-right: 10px solid #fff;
    border-bottom: 20px solid #fff;
    border-radius: 0 0 36px 0;
}



.experience_size_border{
    border-radius: 16px;
    position: absolute;
    background: #fff;
    padding: 13px;
    bottom: -12px;
    right: -13px;
    width: 40%;
    height: 38%;
}

.experience_size {
    background: #F75929;
    border-radius: 16px;
    padding-top: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 45;
    width: 100%;
}

.experience_size span {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
}

.experience_size p {
    font-family: Bebas Neue, sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 54px;
    text-align: center;
}

.experience_teacher_name {
    font-family: Bebas Neue, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-align: left;
    color: #F75929;
    margin-bottom: 4px;
    margin-top: 16px;
}

.experience_teacher_science {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    color: #2D487D;
}

.teacher_card-wrapper{
    padding: 60px 0; 
}
/* ---------------------------- */


@media (max-width:1270px) {
    .experience_size span {
        font-size: 14px;
    }

    .experience_size p {
        font-size: 22px;
        line-height: 30px;
    }
}
@media (max-width:1024px) {
    .experience_size p {
        line-height: 35px;
    }
}

@media (max-width:970px) {
    .experience_card_img_b_a::before {
        right: 30%;
    }
}

@media (max-width:860px) {
    .experience_card_img_b_a::before {
            right: 32%;
        }
}

@media (max-width:700px) {
    .experience_card_img_b_a::before {
            right: 29%;
        }
}

@media (max-width: 768px) {
    .card-wrapper {
        margin: 0 10px 25px;
    }

    /* .card-wrapper .swiper-slide-button {
        display: none;
    } */
}

@media (max-width:630px) {
    .experience_card{
        width: 80%;
        margin: 0 auto !important;
    }

    .experience_card_img_b_a::before {
        right: 33.5%;
    }
}


@media (max-width:576px) {
    
    .experience_card{
        width: 100%;
        margin: 0 !important;
    }
    .experience_card_img_b_a::before {
        right: 34%;
    }

    .experience_teacher_name {
        font-size: 20px;
        line-height: 30px;
        margin-bottom: 0;
        margin-top: 5px;
    }

    .experience_teacher_science {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

    .experience_size span {
        font-size: 12px;
    }

    .experience_size p {
        font-size: 15px;
        line-height: 24px;
    }

    .experience_card {
        margin-right: 0;
        gap: 10px;
    }

    .experience_card {
        margin-right: 0 !important;
    }
}


@media (max-width:470px) {
    .experience_card_img_b_a::before {
        right: 33%;
    }
}

@media (max-width:400px) {
    .experience_card_img_b_a::before {
        right: 31%;
    }
}

@media (max-width:380px) {
    .experience .card-wrapper {
        padding-left: 50px;
    }
}