@charset "utf-8";

/* 네비 버튼 */
.basic-banner .owl-nav {
    position: absolute;
    right: 0;
    top: -3.75rem;
    z-index: 1;
    display: flex; /* Ensure the buttons are laid out side-by-side */
}

.basic-banner .owl-nav button {
    width: 26px;
    height: 26px;
    background: #51515c;
    z-index: 1;
    transition: all 0.1s ease-in-out;
    display: flex; /* Ensure the button content is centered */
    justify-content: center;
    align-items: center;
}

.basic-banner .owl-nav button.owl-prev,
.basic-banner .owl-nav button.owl-next {
    width: 26px;
    height: 26px;
    background: #51515c;
    z-index: 1;
    transition: all 0.1s ease-in-out;
}

/* For the next button */
.basic-banner .owl-nav button.owl-next {
    margin-left: 1px; /* Separate the two buttons */
}

/* Optional hover effect for both buttons */
.basic-banner .owl-nav button:hover {
    background: #616161; /* Slightly lighter on hover */
}
/* 기본 래퍼 스타일 */
.ebs-comm004-main-wrap-<?php echo $es_code; ?> {
    position: relative;
    margin-bottom: 30px;
}

.ebs-comm004-main-in {
    position: relative;
    overflow: hidden;
}

.ebs-comm004-main-in .owl-carousel {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ebs-comm004-main-in .owl-item {
    text-align: center;
    font-size: 0.9375rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ebs-comm004-main-in .owl-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebs-comm004-main-in .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.2;
    z-index: 2;
}

.ebs-comm004-main-in .owl-next,
.ebs-comm004-main-in .owl-prev {
    width: 30px;
    height: 60px;
    border: 0;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.ebs-comm004-main-in .owl-next {
    right: 15px;
}

.ebs-comm004-main-in .owl-prev {
    left: 15px;
}

.ebs-comm004-main-in .owl-next::before,
.ebs-comm004-main-in .owl-prev::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    transform: rotate(45deg);
}

.ebs-comm004-main-in .owl-next::before {
    right: 10px;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
}

.ebs-comm004-main-in .owl-prev::before {
    left: 10px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.ebs-comm004-main-in .owl-next:hover::after,
.ebs-comm004-main-in .owl-prev:hover::after {
    width: 40px;
}

.ebs-comm004-main-in .owl-next.disabled,
.ebs-comm004-main-in .owl-prev.disabled {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 1399px) {
    .ebs-comm004-main-in .swiper-main .swiper-cont {
        top: 50px;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .ebs-comm004-main-in .swiper-main .swiper-cont {
        top: 50%;
        transform: translateY(-50%);
    }

    .ebs-comm004-main-in .swiper-thumbs-wrap {
        display: none;
    }

    .ebs-comm004-main-in .swiper-main .swiper-cont h2 {
        font-size: 1.875rem;
    }
}

@media (max-width: 576px) {
    .ebs-comm004-main-in .swiper-main .swiper-cont {
        left: 30px;
        right: 30px;
        text-align: center;
    }

    .ebs-comm004-main-in .swiper-main .swiper-cont h2 {
        font-size: 1.375rem;
    }

    .ebs-comm004-main-in .swiper-main .swiper-cont h3,
    .ebs-comm004-main-in .swiper-main .swiper-cont h4 {
        font-size: 0.9375rem;
    }

    .ebs-comm004-main-in .swiper-main .swiper-cont .btn-e {
        padding: 7px 20px;
        font-size: 0.8125rem;
    }

    .ebs-comm004-main-in .owl-next,
    .ebs-comm004-main-in .owl-prev {
        top: inherit;
        bottom: 10px;
    }

    .ebs-comm004-main-in .owl-next::before,
    .ebs-comm004-main-in .owl-prev::before {
        width: 24px;
        height: 24px;
        margin-top: -12px;
    }

    .ebs-comm004-main-in .owl-next::before {
        right: 6px;
    }

    .ebs-comm004-main-in .owl-prev::before {
        left: 6px;
    }

    .ebs-comm004-main-in .owl-next:hover::after,
    .ebs-comm004-main-in .owl-prev:hover::after {
        width: 24px;
    }
}
