/* 메인 콘텐츠 영역 */
.content {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.left-section {
    flex: 1;
}

.right-section {
    flex: 1;
}

/* 수업 카드 그리드 */
.class-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.class-card {
    background-color: #f8f8f8;
    border-radius: 0;
    padding: 1.5rem;
    min-height: 195px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.class-card:hover {
    background-color: #345f53;
    text-decoration: none;
}

.class-card:hover .class-title {
    color: white;
}

.special-card {
    background-color: #f8f8f8;
    color: inherit;
    grid-column: span 2;
}

.special-card:hover {
    background-color: #345f53;
    text-decoration: none;
}

.special-card:hover .class-title {
    color: white;
}

.class-label {
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.class-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #111;
    transition: color 0.3s ease;
}

.view-more-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 0.5rem 0;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 1px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-more-icon {
    width: 14px;
    height: 14px;
}

/* 배너 슬라이더 */
.banner-slider {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: auto;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* 배너 없음 메시지 */
.no-banner-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

.no-banner-message p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 10;
    font-family: Arial, sans-serif;
}

.slider-btn:hover {
    opacity: 0.7;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .content {
        padding: 1.5rem 1rem;
    }
    
    .class-card {
        min-height: 130px;
        padding: 1.25rem;
    }
    
    .class-title {
        font-size: 20px;
    }
    
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 8px;
    }
    
    .next-btn {
        right: 8px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .content {
        flex-direction: column-reverse;
        padding: 1rem;
    }
    
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .class-card {
        min-height: 120px;
        padding: 1.5rem;
    }
    
    .class-title {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }
    
    .class-label {
        font-size: 10px;
        margin-bottom: 0.3rem;
    }
    
    .view-more-btn {
        font-size: 10px;
        padding: 0.3rem 0;
    }
    
    .view-more-icon {
        width: 10px;
        height: 10px;
    }
    
    /* 모바일에서도 special-card는 2열 span 유지 */
    .special-card {
        grid-column: span 2;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
}

/* 반응형 - 작은 모바일 */
@media (max-width: 480px) {
    .content {
        padding: 0.75rem;
    }
    
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .class-card {
        min-height: 100px;
        padding: 0.6rem;
    }
    
    .class-title {
        font-size: 14px;
        margin-bottom: 0.4rem;
    }
    
    .class-label {
        font-size: 9px;
        margin-bottom: 0.2rem;
    }
    
    .view-more-btn {
        padding: 0.2rem 0;
        font-size: 9px;
    }
    
    .view-more-icon {
        width: 9px;
        height: 9px;
    }
    
    /* 작은 모바일에서도 special-card는 2열 span 유지 */
    .special-card {
        grid-column: span 2;
    }
    
    .slider-btn {
        width: 25px;
        height: 25px;
        font-size: 20px;
    }
}

/* ===== 팝업 시스템 스타일 ===== */

/* 팝업 오버레이 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    padding: 50px 20px 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 팝업 컨테이너 */
.popup-wrapper {
    display: flex;
    max-width: 90%;
    max-height: 90%;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

/* 개별 팝업 */
.popup-item {
    background: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 550px;
    width: 100%;
}

/* 팝업 이미지 - 600px 내에서 비율 유지하며 자동 조정 */
.popup-image {
    display: block;
    cursor: pointer;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 팝업 컨트롤 - 검정색 배경에 흰색 텍스트 */
.popup-controls {
    padding: 5px 10px;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
}

.popup-controls button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 5px 10px;
    transition: opacity 0.2s ease;
}

.popup-close-btn {
    color: #fff !important;
    font-weight: 500;
}

.popup-hide-btn {
    color: #fff;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .popup-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .popup-overlay {
        padding: 15px;
    }
} 