/* 캐러셀 스타일 */
#mainCarousel {
    margin-top: 116px; /* 유틸리티바(36px) + 헤더(80px) */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

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

.carousel-item {
    height: 600px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.carousel-caption {
    padding: 20px;
    bottom: 50%;
    transform: translateY(50%);
    max-width: 800px;
    margin: 0 auto;
    left: 10%;
    right: 10%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #fff;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #fff;
    opacity: 0.5;
    border: none;
}

.carousel-indicators button.active {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .carousel-item {
        height: 600px;
    }
    
    .carousel-caption h2 {
        font-size: 3rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .carousel-item {
        height: 500px;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #mainCarousel {
        margin-top: 96px; /* 유틸리티바(36px) + 헤더(60px) */
    }

    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

@media (max-width: 576px) {
    #mainCarousel {
        margin-top: 86px; /* 유틸리티바(36px) + 헤더(50px) */
    }

    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
} 