/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* 반응형 */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* 시설 사진 슬라이드 개선판 */
#facility {
    padding: 0 !important; /* 상하 패딩 제거 */
    position: relative;
}

#facility .container {
    padding: 0 !important; /* 컨테이너 패딩 제거 */
    height: 100%;
}

/* 기존 #facilityCarousel 스타일 수정 */
#facilityCarousel {
    height: 80vh; /* 100vh → 80vh로 변경 */
    min-height: 500px; /* 최소 높이 조정 */
    overflow: hidden;
    position: relative;
}

/* 데스크탑 중간 크기 대응 */
@media (min-width: 992px) and (max-width: 1399px) {
    #facilityCarousel {
        height: 75vh; /* 중간 크기 화면에서는 75% */
        min-height: 450px;
    }
}

/* 태블릿 가로 모드 대응 */
@media (max-width: 991px) and (orientation: landscape) {
    #facilityCarousel {
        height: 85vh; /* 가로 모드일 때 약간 높게 */
        min-height: 400px;
    }
}

/* 모바일 세로 모드 대응 */
@media (max-width: 767px) {
    #facilityCarousel {
        height: 70vh; /* 모바일에서는 70% */
        min-height: 350px;
    }
    
    /* 모바일 텍스트 크기 조정 */
    .carousel-content h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
    }
}

/* 초대형 화면 제한 */
@media (min-width: 1920px) {
    #facilityCarousel {
        max-height: 900px; /* 80vh가 너무 커지는 것 방지 */
    }
}

/* 나머지 스타일은 기존 유지 */
.carousel-inner, 
.carousel-item {
    height: 100% !important;
    background-size: cover;
    background-position: center;
}

/* 나머지 공통 스타일 */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

.pricing-card {
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

footer {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.list-icon {
    color: #2a9d8f;
    font-size: 1.4rem;
    min-width: 30px;
}

.feature-item {
    border-left: 3px solid #2a9d8f;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

/* 이미지 호버 효과 */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
}
.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.list-unstyled li {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 텍스트 가독성 강화 */
.carousel-content {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: #fff !important;
}

.carousel-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0 !important;
    max-width: 600px;
    margin: 0 auto;
}

/* 아이콘 디자인 업그레이드 */
.feature-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2.2rem !important;
    color: #fff !important;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* 호버 효과 */
.carousel-item:hover .feature-icon:before {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-item:hover .feature-icon i {
    transform: scale(1.15);
}

/* 배경 오버레이 강화 */
.carousel-item::after {
    background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .carousel-content {
        padding: 1.5rem;
        width: 90%;
    }
    
    .carousel-content h3 {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 576px) {
    .carousel-content h3 {
        font-size: 1.5rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
}

/* 학습관리 캐러셀 전용 스타일 */
#studyingCarousel {
    height: 60vh;
    min-height: 400px;
    max-height: 800px;
    margin: 2rem auto;
}

.study-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.study-icon i {
    color: rgba(255,255,255,0.9);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.carousel-item:hover .study-icon {
    transform: scale(1.1);
    background: rgba(255,255,255,0.15);
}

/* 기존 캐러셀 스타일 상속 */
#studyingCarousel .carousel-content,
#studyingCarousel .carousel-item::after {
    /* facility 섹션과 동일 스타일 적용 */
}

/* 이미지 효과 */
#lifestyle img {
    transition: all 0.3s ease;
    border: 4px solid white;
    cursor: pointer;
}

#lifestyle img:hover {
    transform: translateY(-10px) rotate(0deg) !important;
    z-index: 3 !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

/* 반응형 조정 */
@media (max-width: 992px) {
    #lifestyle .position-relative {
        min-height: 400px !important;
    }
    
    #lifestyle img {
        width: 70% !important;
        transform: translateX(5%) rotate(-3deg) !important;
    }
    
    #lifestyle div:nth-child(2) img {
        transform: translateX(-5%) rotate(3deg) !important;
        top: 30px !important;
    }
}

@media (max-width: 768px) {
    #lifestyle .position-relative {
        min-height: 300px !important;
    }
    
    #lifestyle img {
        width: 80% !important;
        transform: rotate(0deg) !important;
        top: 0 !important;
    }
    
    #lifestyle div:nth-child(2) img {
        transform: rotate(0deg) !important;
        margin-top: 20px;
    }
}

.img-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    perspective: 1000px;
}

img {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.img-card:hover {
    z-index: 3 !important;
    transform: translateY(-15px) rotate(0deg) !important;
}

.img-card:nth-child(1):hover ~ .img-card:nth-child(2) {
    transform: translateX(-15%) rotate(5deg) scale(0.95) !important;
    filter: brightness(0.9);
}

.img-card:nth-child(2):hover {
    z-index: 3 !important;
    transform: translateX(-15%) rotate(0deg) translateY(-15px) !important;
}

.img-card:nth-child(2):hover ~ .img-card:nth-child(1) {
    transform: translateX(15%) rotate(-5deg) scale(0.95) !important;
    filter: brightness(0.9);
}

/* 반응형 조정 */
@media (max-width: 992px) {
    .img-card {
        width: 70% !important;
        transform: translateX(10%) rotate(-3deg) !important;
    }
    
    .img-card:nth-child(2) {
        transform: translateX(-10%) rotate(3deg) !important;
    }
}

@media (max-width: 768px) {
    .img-card {
        width: 85% !important;
        transform: rotate(0deg) !important;
        top: 0 !important;
    }
    
    .img-card:nth-child(2) {
        margin-top: 30px !important;
    }
}

a[href^="mailto:"] {
    color: inherit;
    transition: color 0.3s ease;
}

a[href^="mailto:"]:hover {
    color: #0d6efd !important;
    text-decoration: underline;
}

a[href^="tel:"] {
    color: inherit;
    transition: color 0.3s ease;
}

a[href^="tel:"]:hover {
    color: #0d6efd !important;
    text-decoration: underline;
}

#location .row {
    min-height: 400px; /* 전체 섹션 최소 높이 */
}

#location h2 {
    padding-top: 2rem; /* 상단 여백 조정 */
}

@media (max-width: 992px) {
    #location .row {
        min-height: auto; /* 모바일 높이 자동 조정 */
    }
    
    #location h2 {
        padding-top: 1rem;
    }
    
    #location .col-lg-6 {
        height: auto !important;
    }
}

/* 네비게이션 텍스트 스타일 */
.nav-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2d3436;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.9),
        0 -1px 0 rgba(0,0,0,0.1); /* 기본 3D 효과 */
    position: relative;
    display: inline-block;
}

.nav-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1a237e, transparent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover .nav-text::after {
    transform: scaleX(1);
}
/* 호버 효과 */
.nav-link:hover .nav-text {
    color: #1a237e !important;
    font-weight: 600;
    transform: translateY(-1px) scale(1.05); /* 약간 위로 올라가는 효과 */
    text-shadow: 
        0 2px 2px rgba(0,0,0,0.1),
        0 4px 6px rgba(0,0,0,0.1),
        0 -1px 0 rgba(0,0,0,0.05); /* 입체감 강화 */
}

/* 액티브 메뉴 */
.nav-link.active .nav-text {
    color: #1a237e !important;
    font-weight: 700;
    text-shadow: 
        0 3px 3px rgba(0,0,0,0.15),
        0 6px 9px rgba(0,0,0,0.1);
}

/* 버튼 효과 개선 */
.btn-primary {
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(26, 35, 126, 0.25);
}

/* 플로팅 뱃지 */
.floating-badge {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.floating-badge img {
    width: 200px;
    height: 70px;
    border-radius: 12%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.floating-badge img:hover {
    transform: scale(1.1) rotate(10deg);
}

/* 이벤트 뱃지 메뉴 */
.event-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
        
.event-badge {
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    min-width: 180px;
}
    
.event-badge img {
    width: 200px;
    height: 70px;
    border-radius: 12%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.event-badge:hover {
    transform: scale(1.1) rotate(10deg);
}