/* 입교일 및 입교시간 테이블 스타일 */
.admission-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #ffffff;
    border: 1px solid #ccc;
    font-family: var(--font-primary);
}

.admission-table th,
.admission-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ccc;
    vertical-align: middle;
}

.admission-table th {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.admission-table td {
    background: #ffffff;
    color: #000000;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 날짜 스타일링 */
.admission-date {
    font-weight: 500;
    color: #333333;
}

.admission-time {
    color: #666666;
    font-size: 0.85rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .admission-table {
        font-size: 0.85rem;
    }
    
    .admission-table th,
    .admission-table td {
        padding: 10px 12px;
    }
    
    .admission-table th {
        font-size: 0.85rem;
    }
    
    .admission-table td {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .admission-table {
        font-size: 0.8rem;
    }
    
    .admission-table th,
    .admission-table td {
        padding: 8px 10px;
    }
    
    .admission-table th {
        font-size: 0.8rem;
    }
    
    .admission-table td {
        font-size: 0.75rem;
    }
}

/* 호버 효과 */
.admission-table tbody tr:hover {
    background: #f8f9fa;
}

.admission-table tbody tr:hover th,
.admission-table tbody tr:hover td {
    background: #f8f9fa;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .admission-table {
        border: 2px solid #000000;
    }
    
    .admission-table th,
    .admission-table td {
        border: 2px solid #000000;
        color: #000000;
    }
    
    .admission-table th {
        background: #ffffff;
        font-weight: 700;
    }
}

/* 수강료 테이블 스타일 */
.tuition-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #ffffff;
    border: 1px solid #ccc;
    font-family: var(--font-primary);
}

.tuition-table th,
.tuition-table td {
    padding: 15px 20px;
    text-align: center;
    border: 1px solid #ccc;
    vertical-align: middle;
}

.tuition-table th {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.tuition-table td {
    background: #ffffff;
    color: #000000;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 금액 스타일링 */
.tuition-amount {
    font-weight: 500;
    color: #333333;
}

.tuition-total {
    font-weight: 600;
    color: #ff0000;
    font-size: 1.05rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .tuition-table {
        font-size: 0.9rem;
    }
    
    .tuition-table th,
    .tuition-table td {
        padding: 12px 15px;
    }
    
    .tuition-table th {
        font-size: 0.9rem;
    }
    
    .tuition-table td {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tuition-table {
        font-size: 0.8rem;
    }
    
    .tuition-table th,
    .tuition-table td {
        padding: 10px 12px;
    }
    
    .tuition-table th {
        font-size: 0.8rem;
    }
    
    .tuition-table td {
        font-size: 0.75rem;
    }
}

/* 호버 효과 */
.tuition-table tbody tr:hover {
    background: #f8f9fa;
}

.tuition-table tbody tr:hover th,
.tuition-table tbody tr:hover td {
    background: #f8f9fa;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .tuition-table {
        border: 2px solid #000000;
    }
    
    .tuition-table th,
    .tuition-table td {
        border: 2px solid #000000;
        color: #000000;
    }
    
    .tuition-table th {
        background: #ffffff;
        font-weight: 700;
    }
    
    .tuition-total {
        color: #cc0000;
    }
}

/* 부대비용 테이블 스타일 */
.additional-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #ffffff;
    border: 1px solid #ccc;
    font-family: var(--font-primary);
}

.additional-table th,
.additional-table td {
    padding: 15px 20px;
    text-align: center;
    border: 1px solid #ccc;
    vertical-align: middle;
}

.additional-table th {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.additional-table td {
    background: #ffffff;
    color: #000000;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 금액 스타일링 */
.additional-amount {
    font-weight: 500;
    color: #333333;
}

.additional-total {
    font-weight: 600;
    color: #ff0000;
    font-size: 1.05rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .additional-table {
        font-size: 0.9rem;
    }
    
    .additional-table th,
    .additional-table td {
        padding: 12px 15px;
    }
    
    .additional-table th {
        font-size: 0.9rem;
    }
    
    .additional-table td {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .additional-table {
        font-size: 0.8rem;
    }
    
    .additional-table th,
    .additional-table td {
        padding: 10px 12px;
    }
    
    .additional-table th {
        font-size: 0.8rem;
    }
    
    .additional-table td {
        font-size: 0.75rem;
    }
}

/* 호버 효과 */
.additional-table tbody tr:hover {
    background: #f8f9fa;
}

.additional-table tbody tr:hover th,
.additional-table tbody tr:hover td {
    background: #f8f9fa;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .additional-table {
        border: 2px solid #000000;
    }
    
    .additional-table th,
    .additional-table td {
        border: 2px solid #000000;
        color: #000000;
    }
    
    .additional-table th {
        background: #ffffff;
        font-weight: 700;
    }
    
    .additional-total {
        color: #cc0000;
    }
}

/* 커리큘럼 테이블 스타일 */
.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    border: 1px solid #000000;
    font-family: var(--font-primary);
}

.curriculum-table th,
.curriculum-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #000000;
    vertical-align: middle;
    font-size: 0.9rem;
}

.curriculum-table th {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 0.9rem;
}

.curriculum-table td {
    background: #ffffff;
    color: #000000;
    font-weight: 400;
}

/* 커리큘럼 헤더 스타일 */
.curriculum-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c3e50;
    position: relative;
    padding: 8px 0;
}

.curriculum-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 2px;
}

.curriculum-header .icon-square {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 6px;
    display: inline-block;
    margin-right: 12px;
    box-shadow: 0 3px 10px rgba(0, 182, 228, 0.3);
    position: relative;
}

.curriculum-header .icon-square::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.curriculum-header .icon-triangle {
    width: 0;
    height: 0;
    border-left: 10px solid var(--primary-blue);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    display: inline-block;
    margin-right: 12px;
    filter: drop-shadow(0 3px 6px rgba(0, 182, 228, 0.3));
    position: relative;
}

.curriculum-header .icon-triangle::before {
    content: '';
    position: absolute;
    left: -8px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 6px solid rgba(255, 255, 255, 0.8);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* 분류 표시 스타일 */
.classification-header {
    background: #f5f5f5;
    font-weight: 600;
    color: #333333;
    font-size: 1.1rem;
}

/* 2차/3차 보조 문구 스타일 */
.classification-2nd {
    background: linear-gradient(135deg, var(--primary-blue-lightest) 0%, var(--primary-blue-lighter) 100%);
    color: var(--primary-blue-dark);
    position: relative;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--primary-blue);
}

.classification-2nd::after {
    content: '2차';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 182, 228, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
    z-index: 10;
}

.classification-3rd {
    background: linear-gradient(135deg, #e6f7fc 0%, #b3e8f9 100%);
    color: var(--primary-blue-dark);
    position: relative;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid var(--primary-blue-light);
}

.classification-3rd::after {
    content: '3차';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 182, 228, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
    z-index: 10;
}

/* 주차 스타일 */
.week-cell {
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--primary-blue-lightest) 100%);
    font-size: 1.1rem;
    color: var(--primary-blue-dark);
    border-right: 3px solid var(--primary-blue);
    position: relative;
}

.week-cell::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-dark));
}

/* 학습내용 스타일 */
.curriculum-table tbody td {
    font-size: 1.05rem;
    font-weight: 500;
    color: #333333;
    transition: all 0.3s ease;
}

.curriculum-table tbody td:hover {
    color: var(--primary-blue-dark);
    background: var(--primary-blue-lightest);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .curriculum-table {
        font-size: 0.8rem;
    }
    
    .curriculum-table th,
    .curriculum-table td {
        padding: 8px 10px;
    }
    
    .curriculum-header {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .curriculum-table {
        font-size: 0.75rem;
    }
    
    .curriculum-table th,
    .curriculum-table td {
        padding: 6px 8px;
    }
    
    .curriculum-header {
        font-size: 0.9rem;
    }
}

/* 호버 효과 */
.curriculum-table tbody tr:hover {
    background: #f8f9fa;
}

.curriculum-table tbody tr:hover th,
.curriculum-table tbody tr:hover td {
    background: #f8f9fa;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .curriculum-table {
        border: 2px solid #000000;
    }
    
    .curriculum-table th,
    .curriculum-table td {
        border: 2px solid #000000;
        color: #000000;
    }
    
    .curriculum-table th {
        background: #ffffff;
        font-weight: 700;
    }
}

/* 사이트 메인 컬러 변수 */
:root {
    --primary-blue: #00b6e4;
    --primary-blue-dark: #00688f;
    --primary-blue-light: #4dd4f7;
    --primary-blue-lighter: #b3e8f9;
    --primary-blue-lightest: #e6f7fc;
}

/* 탭 시스템 스타일 */
.curriculum-tabs {
    margin: 30px 0;
}

.grade-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.grade-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grade-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.grade-tab:hover::before {
    left: 100%;
}

.grade-tab:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.grade-tab.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 182, 228, 0.4);
    transform: translateY(-2px);
}

.grade-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-blue);
}

/* 과목 탭 스타일 */
.subject-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.subject-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subject-tab:hover {
    color: #495057;
    background: #f8f9fa;
    transform: translateY(-1px);
}

.subject-tab.active {
    background: linear-gradient(135deg, var(--primary-blue-lightest) 0%, var(--primary-blue-lighter) 100%);
    color: var(--primary-blue-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 182, 228, 0.3);
}

/* 탭 콘텐츠 스타일 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 탭 디자인 */
@media (max-width: 768px) {
    .grade-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .grade-tab {
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    .subject-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .subject-tab {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .grade-tab {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .subject-tab {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}
