/* ----- banner ----- */
.main-carousel {
    margin: 20px 0;
    height: 400px;
}

.carousel-cell {
    width: 60%;
    height: 370px;
    margin-right: 30px;
    background: #f8f8f8;
    border-radius: 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    transform: scale(0.85);
    opacity: 0.7;
    filter: blur(1px);
}

/* اسلاید انتخاب شده */
.carousel-cell.is-selected {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    top: 15px;
}

/* اسلایدهای کناری */
.carousel-cell:not(.is-selected) {
    transform: scale(0.85) translateY(20px);
    opacity: 0.6;
    filter: blur(3px);
    height: 260px;
    top: 70px;
}

.carousel-cell img {
    object-fit: cover;
    position: absolute;
    z-index: -1;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(0deg, #068978, #00a693);
    text-align: center;
}

.carousel-cell h3 {
    margin: 15px 0;
    color: #fff;
    font-size: 1.25rem;
    bottom: 15px;
    right: 90px;
    position: absolute;
    text-shadow: 0rem 0rem 0.2rem #000;
}

.main-carousel .flickity-viewport {
    height: 100% !important;
}

@media (min-width: 980px) {
    .carousel-cell.next {
        margin-left: calc(var(--width) / -2);
    }

    .carousel-cell.previous {
        margin-left: calc(var(--width) / 2);
    }
}

@media (max-width: 980px) {
    .main-carousel {
        height: 300px;
    }

    .carousel-cell {
        height: 276px;
        border-radius: 55px;
    }

    .carousel-cell:not(.is-selected) {
        height: 180px;
    }

    .carousel-cell h3 {
        bottom: 0;
        right: 35px;
    }
}

@media (max-width: 728px) {
    .main-carousel {
        height: 250px;
    }

    .carousel-cell {
        height: 230px;
    }

    .carousel-cell:not(.is-selected) {
        height: 190px;
        top: 30px;
    }
}

@media (max-width: 625px) {
    .main-carousel {
        height: 170px;
    }

    .carousel-cell {
        height: 150px;
        border-radius: 30px;
    }

    .carousel-cell:not(.is-selected) {
        height: 120px;
        top: 30px;
    }

    .carousel-cell h3 {
        margin-bottom: 10px;
        right: 20px;
        font-size: 1rem;
    }
}

/* ----- categories ----- */

#categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 50px;
}

.category {
    width: calc(50% - 25px);
    height: auto;
    aspect-ratio: 16 / 9;
}

.category .title-box {
    width: fit-content;
    margin: auto;
}

.category .title-box .title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    text-shadow: var(--text-border-b);
    margin-bottom: 0;
}

.category .title-box .green-underline {
    display: none;
    width: 100%;
    height: 22px;
    background-color: #00a693;
    border-radius: 999px 999px 0 0;
    margin-top: -19px;
    padding: 0 8px;
    box-sizing: content-box;
    transform: translateX(9px);
    z-index: -1;
    position: relative;
}

.category .cover-box {
    position: relative;
}

.category .cover-box .green-bg {
    position: absolute;
    width: 66%;
    height: 100%;
    box-sizing: content-box;
    padding: 6px 0;
    top: -6px;
    background-color: #00a693;
    border-radius: 20px;
    margin: 0 17%;
    z-index: -1;
}

.category .cover-box .cover {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 3;
    border-radius: 999px;
    background-color: #baf9f0;
    text-align: center;
    object-fit: cover;
}

@media (max-width: 728px) {
    .category {
        width: 100%;
    }

    .category .cover-box .cover {
        border-radius: 60px;
    }

    .category .title-box .title {
        font-size: 1.1rem;
    }

    .category .cover-box .green-bg {
        width: 78%;
        margin: 0 11%;
    }
}