@charset "utf-8";

/* 메인 히어로 슬라이더 */
.main-hero-slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #111;
}

.main-hero-swiper {
    position: relative;
    width: 100%;
    height: clamp(360px, 42vw, 720px);
    overflow: hidden;
}

.main-hero-swiper .swiper-wrapper,
.main-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.hero-slide-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: scale(1.02);
}

.hero-empty {
    background: linear-gradient(135deg, #222, #555);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.46) 32%, rgba(0,0,0,.15) 62%, rgba(0,0,0,.05) 100%),
        linear-gradient(0deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 42%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 90%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0 40px 100px;
    box-sizing: border-box;
}

.hero-slide-content h2 {
    margin: 0 0 24px;
    max-width: 720px;
    color: #fff;
    font-size: clamp(34px, 4.2vw, 68px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.05em;
    word-break: keep-all;
    text-shadow: 0 3px 14px rgba(0,0,0,.35);
}

.hero-slide-content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255,255,255,.92);
    font-size: clamp(16px, 1.45vw, 24px);
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: -0.035em;
    word-break: keep-all;
    text-shadow: 0 2px 10px rgba(0,0,0,.32);
}

/* 좌우 화살표 */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 54px;
    height: 54px;
    margin-top: -27px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.25);
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(0,0,0,.45);
}

.hero-prev:before,
.hero-next:before {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}

.hero-prev:before {
    left: 21px;
    transform: translateY(-50%) rotate(-135deg);
}

.hero-next:before {
    right: 21px;
    transform: translateY(-50%) rotate(45deg);
}

/* 점 페이지네이션 */
.hero-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px !important;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 11px;
    height: 11px;
    margin: 0 !important;
    background: #fff;
    opacity: .85;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 20px;
    background: #1677ff;
    opacity: 1;
}

/* 태블릿 */
@media (max-width: 1024px) {
    .main-hero-swiper {
        height: clamp(330px, 55vw, 560px);
    }

    .hero-slide-content {
        width: 86%;
    }

    .hero-prev,
    .hero-next {
        width: 44px;
        height: 44px;
        margin-top: -22px;
    }

    .hero-prev {
        left: 18px;
    }

    .hero-next {
        right: 18px;
    }
}

/* 모바일 */
@media (max-width: 640px) {
    .main-hero-swiper {
        height: 520px;
    }

    .hero-slide-bg {
        background-position: center center;
    }

    .hero-slide-overlay {
        background:
            linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.1) 100%),
            linear-gradient(0deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 45%);
    }

    .hero-slide-content {
        width: 82%;
        padding: 34px 0 70px;
        justify-content: center;
    }

    .hero-slide-content h2 {
        font-size: clamp(28px, 9vw, 42px);
        margin-bottom: 18px;
    }

    .hero-slide-content p {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-prev,
    .hero-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        background: rgba(0,0,0,.22);
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-prev:before,
    .hero-next:before {
        width: 13px;
        height: 13px;
        border-width: 2px;
    }

    .hero-prev:before {
        left: 15px;
    }

    .hero-next:before {
        right: 15px;
    }

    .hero-pagination {
        bottom: 24px !important;
        gap: 9px;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
    }

    .hero-pagination .swiper-pagination-bullet-active {
        width: 24px;
    }
}
