/* 온율학원 인덱스 페이지 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

.main-container {
    width: 100vw;
    height: 100vh;
    background-image: url('../images/index/bg.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.button-container {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-button {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.nav-button img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 오버레이 스타일 */
.nav-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(40, 35, 30, 1);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.nav-button:hover .nav-button-overlay {
    opacity: 1;
}

.overlay-title {
    color: white;
    font-size: 18px;
    line-height: 1.4;
    font-family: 'Noto Sans KR', sans-serif;
}

.overlay-link {
    color: #aaa;
    font-size: 12px;
    text-align: right;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 개별 버튼 크기 조정 (필요시) */
.nav-button:nth-child(1) img,
.nav-button:nth-child(2) img,
.nav-button:nth-child(3) img,
.nav-button:nth-child(4) img {
    width: 350px;
    height: auto;
}

/* 데스크톱에서 모바일 요소 숨기기 */
.mobile-wrapper {
    display: none;
}

/* 모바일 버전 (768px 이하) */
@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        height: auto;
    }

    .main-container {
        display: none !important;
    }

    .mobile-wrapper {
        display: block !important;
        width: 100%;
        min-height: 100vh;
        background-image: url('../images/index/bg_m.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-color: #333;
    }

    .mobile-hero-bg {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 200px;
        background: transparent;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 30px;
        margin-bottom: 20px;
    }

    .mobile-title {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 80%;
        max-width: 300px;
        z-index: 10;
    }

    .mobile-title img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mobile-banners {
        padding: 30px 20px 40px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        background: transparent;
        margin-top: 10px;
    }

    .mobile-banner {
        width: 100%;
        max-width: 450px;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .mobile-banner img {
        width: 100%;
        height: auto;
        display: block;
    }
}
