.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.hero {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    margin: 40px auto 60px auto; /* ⬅️ 상단 간격 추가 */
    color: white;
    justify-content: flex-start;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}


.hero-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    text-align: left;
}


.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    margin: 0.3rem 0;
    font-size: 1.1rem;
}

.hero-content span {
    font-size: 0.95rem;
    color: #ddd;
}



/* swiper 외곽 자체를 가운데 정렬 */

.slider-container {
    max-width: 1200px;
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.swiper {
    width: 100% !important;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
}

.swiper-slide {
    width: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* 슬라이드 기본 세팅 */
.swiper-slide {
    display: block;
    text-align: center;
}

.swiper-button-next,
.swiper-button-prev {
    background: none !important;       /* 기본 이미지 제거 */
    background-image: none !important; /* 정말 확실하게 제거 */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}


.custom-swiper-btn {
    width: 40px !important;
    height: 40px !important;
    background-color: white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.2s ease !important;
}

.custom-swiper-btn:hover {
    background-color: #f3f3f3;
}

.swiper-button-prev {
    left: -20px !important;
}

.swiper-button-next {
    right: -20px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none !important;
}


.card {
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


.info {
    padding: 12px;
    text-align: left;
}

.info h3,
.info p,
.info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.info p {
    margin: 4px 0;
    color: #555;
}

.info span {
    font-size: 0.85rem;
    color: #999;
}
@media (max-width: 768px) {
    .swiper-slide {
        justify-content: center;
    }

    .swiper-button-prev {
        left: 10px !important;
    }

    .swiper-button-next {
        right: 10px !important;
    }

    .hero {
        margin: 20px 0 40px 0; /* 모바일에선 조금 더 컴팩트하게 */
        border-radius: 0;
    }
}


/* ✅ PC에서는 Hero 전체를 감싸는 컨테이너에 max-width 설정 */
@media (min-width: 768px) {
    .hero {
        max-width: 1200px;
        margin: 30px auto 60px auto;
        border-radius: 12px;
        overflow: hidden;
    }
}
