.services_page_main {}

.services_intro_box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: 20px auto;
    gap: 20px;
}

.services_intro_content_box {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.services_title {
    text-align: center;
}

.services_p {
    text-align: center;
}

.services_intro_image_box {
    width: 40%;
    border-radius: 25px;
    overflow: hidden;
}

.services_container {
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 40px auto;
}


/* ==============================
   Benefits Section
============================== */

.avans_benefits_section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 50px 0;
    box-sizing: border-box;
}

.avans_benefits_container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;

    width: 90%;
    max-width: 850px;
    min-width: 0;
    height: auto;

    margin: 0 auto;
    gap: 10px;

    border: 2px solid var(--primary-color);
    border-radius: 18px;
    padding: 20px;

    box-sizing: border-box;
}

.benefit_box {
    flex: 1 1 0;
    min-width: 0;
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;

    text-align: center;
    position: relative;

    padding: 10px 5px;
    box-sizing: border-box;
}

.benefit_box:not(:last-child)::after {
    content: "";
    position: absolute;

    width: 2px;
    height: 100%;

    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);

    left: -6px;
    top: 0;
}

.benefit_icon {
    font-size: 30px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefit_box h3,
.benefit_box h4 {
    max-width: 100%;
    overflow-wrap: anywhere;
    margin: 0;
}

.avan_benefits_p {
    width: 50%;
    min-width: 0;
    max-width: 850px;
    text-align: center;
    box-sizing: border-box;
}


.avan-service-card {
    width: 350px;
    height: 250px;
}



/* ==============================
   Tablet
============================== */

@media (max-width: 870px) {

    .services_intro_box {
        width: 80%;
    }

    .avans_benefits_container {
        width: 90%;
        padding: 15px;
        gap: 5px;
    }

    .benefit_box {
        min-height: 170px;
        padding: 10px 4px;
    }

    .benefit_icon {
        font-size: 27px;
    }

    .avan_benefits_p {
        width: 75%;
    }

    .avan-service-card {
        width: 250px;
    }
}


/* ==============================
   Mobile
============================== */

@media (max-width: 575px) {

    .services_intro_box {
        width: 90%;
        flex-direction: column-reverse;
    }

    .services_intro_box.secound {
        flex-direction: column;
    }

    .services_intro_content_box {
        width: 90%;
    }

    .services_intro_image_box {
        width: 55%;
    }

    /* Benefits */

    .avans_benefits_section {
        margin: 35px 0;
        padding: 0 12px;
    }

    .avans_benefits_container {
        width: 100%;
        max-width: 420px;

        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;

        gap: 0;
        padding: 12px;
    }

    .benefit_box {
        flex: 0 0 50%;
        width: 50%;
        min-height: 165px;

        padding: 15px 8px;
    }

    /* حذف جداکننده‌های عمودی در موبایل */

    .benefit_box::after {
        display: none;
    }

    /* جداکننده افقی بین دو ردیف */

    .benefit_box:nth-child(-n+2)::before {
        content: "";
        position: absolute;

        bottom: 0;
        left: 10%;

        width: 80%;
        height: 2px;

        background-color: var(--primary-color);
        box-shadow: var(--box-shadow);
    }

    .benefit_icon {
        font-size: 28px;
    }

    .benefit_box h3 {
        font-size: 15px;
        line-height: 1.8;
    }

    .benefit_box h4 {
        font-size: 13px;
        line-height: 1.9;
    }

    .avan_benefits_p {
        width: 100%;
        max-width: 420px;
    }

    .avan-service-card {
        width: 200px;
    }

}


/* ==============================
   Small Mobile
============================== */

@media (max-width: 450px) {
    .avan-service-card {
        width: 350px;
        height: 215px;
    }
}

@media (max-width: 400px) {

    .services_intro_image_box {
        width: 60%;
    }
}

@media (max-width: 360px) {

    .avans_benefits_container {
        padding: 8px;
    }

    .benefit_box {
        min-height: 155px;
        padding: 12px 5px;
    }

    .benefit_icon {
        font-size: 25px;
    }

    .benefit_box h3 {
        font-size: 14px;
    }

    .benefit_box h4 {
        font-size: 12px;
    }
}