/* ----- 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;
    }

    #list .item-box {
        padding: 20px 0 !important;
    }

    #list .item {
        padding: 0px 20px 4px 24px !important;
    }
}

@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;
    }
}

/* ----- description ----- */
#description {
    margin-top: 10px;
}

#description .title {
    color: #d99058;
    font-weight: 800;
    display: flex;
    gap: 5px;
    line-height: 150%;
    margin-bottom: 0;
}

#description .title .beforeline {
    width: 5px;
    border-radius: 999px;
    background-color: #068978;
    display: none;
}

#description .parg {
    margin: 10px 0 16px 0;
    display: flex;
    gap: 7px;
}

#description .parg .line {
    width: 5px;
    border-radius: 999px;
    background-color: #f0eeec;
    display: none;
}

#description .parg .text {
    margin: 0;
    width: fit-content;
}

#description .underline {
    margin-top: 20px;
    width: 100%;
    height: 2px;
    background-color: #dfdfdf;
}

@media (max-width: 928px) {
    #description .title .beforeline,
    #description .parg .line {
        display: block;
    }

    #description .underline {
        display: none;
    }

    #description .parg .text {
        text-align: center;
    }
}

/* ----- list ----- */

#list {
    margin-top: 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#list .item-box {
    width: 50%;
    padding: 20px 40px;
}

#list .item {
    border-radius: 999px;
    background-color: #f0eeec;
    padding: 0px 25px 4px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    --logo-height: 90px;
    --logo-translateY: translateY(-18px);
}

#list .item .title {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--title-color);
    margin: 0;
}

#list .item .logo {
    height: var(--logo-height);
    transform: var(--logo-translateY);
}

@media (max-width: 928px) {
    #list .item-box {
        width: 100%;
    }
}
