/* 클래스 상세 페이지 전용 스타일 */

/* Hero 섹션 스타일 */
.hero-section {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 1rem;
}

.hero-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.hero-text {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 32px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
}

/* 서브 네비게이션 바 */
.sub-navigation {
    width: 100%;
    background-color: #222;
    height: 70px;
    position: static;
    z-index: auto;
}

.sub-nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1px;
    padding: 0 1rem;
}

.sub-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex: 1;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #222;
    border: 1px solid #222;
}

.sub-nav-item:hover {
    background-color: #333;
    border-color: #333;
}

.sub-nav-item.active {
    background-color: #222;
    color: #345f53;
    font-weight: bold;
    border-bottom: 3px solid #345f53;
}

.sub-nav-item.class-name {
    background-color: #345f53;
    color: white;
    font-weight: 600;
    cursor: default;
    border: 1px solid #345f53;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sub-nav-item.class-name:hover {
    background-color: #345f53;
    border-color: #345f53;
}

.class-number {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.class-number-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hero-class-title {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* 클래스 상세 페이지 본문 */
.class-detail-page {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #fff;
}

.class-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 페이지 제목 */
.page-title {
    font-size: 42px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* 강의안내 콘텐츠 */
.lecture-content {
    max-width: 1100px;
    margin: 0 auto;
}

.lecture-image {
    max-width: 1100px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
}

.lecture-image:last-child {
    margin-bottom: 0;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-content {
        padding: 2.5rem 1rem;
    }
    
    .hero-logo-img {
        width: 90px;
        height: 90px;
    }
    
    .hero-text {
        font-size: 28px;
    }
    
    .sub-nav-container {
        gap: 0;
        padding: 0 1rem;
    }
    
    .sub-nav-item {
        font-size: 14px;
    }
    
    .sub-nav-item.class-name {
        gap: 0.4rem;
    }
    
    .class-number-styled {
        font-size: 20px;
    }
    
    .class-number-icon {
        width: 20px;
        height: 20px;
    }
    
    .hero-class-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .hero-text {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }
    
    .sub-navigation {
        height: 80px;
        position: relative;
    }
    
    .sub-nav-container {
        position: relative;
        flex-direction: column;
        max-width: 100%;
        gap: 0;
        height: 100%;
    }
    
    /* 클래스 이름 부분을 상단 전체 줄에 배치 */
    .sub-nav-item.class-name {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background-color: #345f53;
        color: white;
        font-weight: 600;
        cursor: default;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0;
        z-index: 2;
    }
    
    .sub-nav-item.class-name:hover {
        background-color: #345f53;
    }
    
    /* 나머지 네비게이션 메뉴들을 하단 줄에 배치 */
    .sub-nav-item:not(.class-name) {
        position: absolute;
        top: 40px;
        height: 40px;
        font-size: 14px;
        border-right: 1px solid #333;
        z-index: 1;
    }
    
    /* 모바일에서 active 상태 스타일 */
    .sub-nav-item:not(.class-name).active {
        border-bottom: 3px solid #345f53;
        color: #345f53;
        font-weight: bold;
    }
    
    /* 첫 번째 메뉴 (정규시간표) - HTML에서 2번째 자식 */
    .sub-nav-item:not(.class-name):nth-child(2) {
        left: 0;
        width: 25%;
    }
    
    /* 두 번째 메뉴 (내신시간표) - HTML에서 3번째 자식 */
    .sub-nav-item:not(.class-name):nth-child(3) {
        left: 25%;
        width: 25%;
    }
    
    /* 세 번째 메뉴 (강의안내) - HTML에서 4번째 자식 */
    .sub-nav-item:not(.class-name):nth-child(4) {
        left: 50%;
        width: 25%;
    }
    
    /* 네 번째 메뉴 (온라인 강의실) - HTML에서 5번째 자식 */
    .sub-nav-item:not(.class-name):nth-child(5) {
        left: 75%;
        width: 25%;
        border-right: none;
    }
    
    .class-number {
        font-size: 14px;
    }
    
    .class-number-icon {
        width: 14px;
        height: 14px;
    }
    
    .hero-class-title {
        font-size: 16px;
    }
    
    .class-detail-page .container {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 32px;
        margin-bottom: 2rem;
    }
    
    .lecture-content {
        max-width: 100%;
    }
    
    .lecture-image {
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .hero-text {
        font-size: 20px;
        margin-bottom: 1rem;
    }
    
    .sub-nav-item {
        height: 45px;
        font-size: 12px;
    }
    
    .sub-nav-item.class-name {
        gap: 0.3rem;
    }
    
    .class-number-styled {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .class-number-icon {
        width: 12px;
        height: 12px;
    }
    
    .hero-class-title {
        font-size: 16px;
    }
    
    .class-detail-page .container {
        padding: 1rem 0.5rem;
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 1.5rem;
    }
    
    .lecture-image {
        margin-bottom: 1rem;
    }
    
    /* 480px 이하에서도 active 상태 스타일 유지 */
    .sub-nav-item:not(.class-name).active {
        border-bottom: 3px solid #345f53;
        color: #345f53;
        font-weight: bold;
    }
} 
/* ===== Admin 편집 모드 스타일 ===== */

/* 편집 툴바 */
.editor-toolbar {
    position: sticky;
    top: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.toolbar-btn:hover {
    background: #e0e0e0;
    border-color: #999;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 5px;
}

.save-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
}

.save-btn:hover {
    background: #45a049;
}

.lecture-content-editable {
    min-height: 400px;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    outline: none;
}

.lecture-content-editable:focus {
    border-color: #4CAF50;
    background: #fafafa;
}

.lecture-content-editable img {
    max-width: 100%;
    height: auto;
}

.edit-notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ffc107;
}

.save-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.save-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.save-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

input[type="file"] {
    display: none;
}
