.mainbanner-section {
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.7s ease;
    display: flex;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-controller {
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    left:0;
    display: flex;
}

.carousel-controller__prev{
    flex: 1 0 40px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
    background: linear-gradient(to right, rgba(121, 121, 121, 0.1), transparent);
    position: relative;
}

.carousel-controller__temp{
    flex: 0 1 1280px;
}

.carousel-controller__next{
    flex: 1 0 40px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 40px;
    background: linear-gradient(to left, rgba(121, 121, 121, 0.1), transparent);
    position: relative;
}

.carousel-indicator__prev{
    flex: 1 0 60px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 60px;
    position: relative;
}

.carousel-indicator__prev::after {
    content: '';
    display: block;
    background-image: url('../../images/icons/arrow-left.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px; /* 적절한 크기로 수정 */
    height: 20px; /* 적절한 크기로 수정 */
    position: absolute;
    right: 15px;
}

.carousel-indicator__counter{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #7a7a7a;
    width: 150px;
    padding: 0 15px;
}

.carousel-indicator__pause {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
}

.carousel-indicator__pause:hover {

    background-color: #f6f6f6;
}

.carousel-indicator__counter img {
    width: 10px;
    height: 10px;
    object-fit: contain;
}

.carousel-indicator__counter span {
    margin: 10px;
}

.carousel-indicator__content{
    flex: 0 1 1280px;
    display: flex;
    flex-direction: row;
    max-width: 1130px;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.carousel-indicator__content::-webkit-scrollbar {
    display: none;
}

.indicator-slide{
    min-width: 210px;
    height: 70%;
    background-color: #F4F7FA;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 2;
    padding: 10px 20px;
    color: #475467;
    transition: background-color 0.3s ease;
}

.indicator-slide span{
    display: inline-block;  /* 또는 inline-block */
    white-space: nowrap;    /* 텍스트를 한 줄로 표시 */
    overflow: hidden;       /* 넘치는 부분 숨김 */
    text-overflow: ellipsis; /* 잘린 부분에 ... 표시 */
    font-family:"Pretendard","Montserrat",sans-serif;
}

.indicator-slide.active{
    color: #FFFFFF;
    background-color: #FA9D1C;
    font-weight: bold;
}

.carousel-indicator__next {
    flex: 1 0 60px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
    position: relative;
}

.carousel-indicator__next::after {
    content: '';
    display: block;
    background-image: url('../../images/icons/arrow-left.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 15px;
    transform: scaleX(-1);
}

/* PC 767 초과 */
@media (min-width: 768px) {
    .carousel-slides {
        position: relative;
        width: 100%;
        max-height: 350px;
        height: calc(100vw * 350 / 1320);
    }

    .carousel-indicator {
        width: 100%;
        height: 60px;
        border-bottom: 1px solid rgba(212, 212, 212, 0.5);
        display: flex;
    }

    .carousel-slide img {
        width: 100%;
        max-height: 350px;
        max-width: 1320px;
    }
}
/* Mobile 767 이하 */
@media (max-width: 767px) {
    .carousel-slides {
        position: relative;
        width: 100%;
        max-height: 350px;
        height: calc(100vw * 350 / 375);
    }

    .carousel-slide img {
        width: 100%;
        max-height: 350px;
        max-width: 375px;
    }

    .carousel-indicator {
        display: none;
    }

    .carousel-controller__prev::after {
        content: '❮';             /* 화살표 추가 */
        color: #fff;               /* 화살표 색상 */
        transition: opacity 0.3s;  /* 부드럽게 나타나기 */
        position: absolute;        /* 부모 기준 위치 설정 */
        right: 6px;               /* 오른쪽 여백 (적당히 조정 가능) */
        font-size: 25px;           /* 화살표 크기 (필요하면 조정) */
        opacity: 0.5;
    }

    .carousel-controller__next::after {
        content: '❯';             /* 오른쪽 화살표 추가 */
        color: #fff;               /* 화살표 색상 */
        transition: opacity 0.3s;  /* 부드럽게 나타나기 */
        position: absolute;        /* 부모 기준 위치 설정 */
        left: 6px;                /* 왼쪽 여백 (적당히 조정 가능) */
        font-size: 25px;           /* 화살표 크기 (필요하면 조정) */
        opacity: 0.5;
    }
}