/* ============================================
   시간표 기본 스타일
   ============================================ */

/* Noto Sans KR 폰트 기본 적용 */
.timetable_wrap,
.timetable-period-title,
.timetable-info-message,
.timeTD,
.dayweekTD,
.lecture-box {
    font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* 시간표 래퍼 - margin-top은 header.asp에서 통일 관리 */
.timetable_wrap {
    margin-bottom: 20px;
}

.timetable-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.timetable-content {
    position: relative;
    min-width: 820px;
}

/* 기간 제목 - header.asp에서 통일된 스타일 적용 */
.timetable-period-title {
    /* 스타일은 header.asp에서 통일 관리 */
}

/* 안내 메시지 */
.timetable-info-message {
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #17479e;
}

.timetable-info-message.hide {
    display: none;
}

/* 시간 표시 */
.timeTD {
    color: #6633cc;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
}

/* 요일 헤더 */
.dayweekTD {
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border: 0px solid;
    background-color: #7c7c7c;
    text-align: center;
    padding: 10px 0;
}

.day-header {
    cursor: default;
}

/* 강좌 번호 표시 */
.lectnumTD {
    left: -15px;
    top: -45px;
    height: 80px;
    width: 100px;
    padding-top: 10px;
    position: absolute;
    overflow: none;
    font-family: Arial;
    color: #000000;
    font-size: 60px;
    font-weight: bold;
    opacity: 0.12;
    filter: Alpha(opacity=15);
    z-index: 9999;
}

/* 강좌 박스 색상 (0~29번) - Noto Sans KR 폰트 적용 */
.lectTD0 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ffffff; }
.lectTD1 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ffede1; }
.lectTD2 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD3 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #e1f1ff; }
.lectTD4 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #d9b3ff; }
.lectTD5 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FDCCE6; }
.lectTD6 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ece4f8; }
.lectTD7 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD8 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD9 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD10 { color: #333399; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FFCC00; }
.lectTD11 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FFFFFF; }
.lectTD12 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ffedff; }
.lectTD13 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD14 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD15 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #e1f1ff; }
.lectTD16 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #CC99FF; }
.lectTD17 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD18 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ece4f8; }
.lectTD19 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FDCCE6; }
.lectTD20 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #ffffff; }
.lectTD21 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #ffede1; }
.lectTD22 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD23 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #e1f1ff; }
.lectTD24 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #CC99FF; }
.lectTD25 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #efefef; }
.lectTD26 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #ece4f8; }
.lectTD27 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #FDCCE6; }
.lectTD28 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 35px; border: 1px solid #000000; background-color: #FFCC66; letter-spacing: -2px; }
.lectTD29 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 35px; border: 1px solid #000000; background-color: #CCFFCC; }

/* 강좌 박스 스타일 */
.lecture-box .lect-title {
    font-family: 'Noto Sans KR', '나눔고딕', 'Malgun Gothic', sans-serif;
    font-size: 19px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    word-break: keep-all;
    word-wrap: break-word;
    white-space: normal;
}

.lecture-box .lect-detail {
    font-family: 'Noto Sans KR', '나눔고딕', 'Malgun Gothic', sans-serif;
    font-size: 16px;
    line-height: 2em;
    letter-spacing: -0.02em;
    word-break: keep-all;
    word-wrap: break-word;
    white-space: normal;
}

.lecture-box .lect-detail span {
    font-family: 'Noto Sans KR', '나눔고딕', 'Malgun Gothic', sans-serif !important;
    font-size: 16px !important;
    line-height: 2em !important;
    letter-spacing: -0.02em !important;
    word-break: keep-all !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* 축소된 박스는 상세정보 숨김 */
.overlap-box .lect-detail {
    display: none;
}

/* 모든 강좌 박스 공통 스타일 */
.lecture-box {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.lecture-box table td {
    padding: 5px !important;
}

/* 활성화 시 색상 반전 */
.lecture-box.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    z-index: 100 !important;
}

.lecture-box.active table td {
    background-color: #17479e !important;
    color: #ffffff !important;
    padding: 5px !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lecture-box.active .lect-title {
    color: #ffffff !important;
}

.lecture-box.active .lect-detail span {
    color: #e6e6e6 !important;
}

/* 연결선 스타일 */
.lecture-connection-line {
    transition: all 0.3s ease;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.lecture-connection-line.active-connection {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-top-width: 5px !important;
    border-top-color: #0d3a7a !important;
    z-index: 80 !important;
}

.lecture-week-label {
    transition: all 0.3s ease;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.lecture-week-label.active-connection {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #17479e !important;
    color: white !important;
    border-color: #0d3a7a !important;
    transform: scale(1.1);
    z-index: 90 !important;
    box-shadow: 0 4px 12px rgba(23, 71, 158, 0.4) !important;
}

/* 겹치는 박스 확장 */
.overlap-box.expanded {
    width: 156px !important;
    z-index: 101 !important;
    transform: translateX(-39px);
}

.overlap-box.expanded.active {
    z-index: 110 !important;
}

.overlap-box.expanded .lect-detail {
    display: block;
}

.overlap-box {
    transition: width 0.3s ease, transform 0.3s ease, z-index 0s;
    cursor: pointer;
}

/* 모바일 네비게이션 버튼 */
.timetable-nav-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(23, 71, 158, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.timetable-nav-btn:hover {
    background-color: rgba(23, 71, 158, 1);
}

.timetable-nav-prev {
    left: 10px;
}

.timetable-nav-next {
    right: 10px;
}

.timetable-nav-btn.hidden {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 인쇄 관련 */
.no-print {
    display: block;
}

@media print {
    .no-print {
        display: none !important;
    }
    
    .timetable-scroll-container {
        overflow: visible;
    }
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .timetable-nav-btn {
        display: block;
    }
    
    .timetable-period-title {
        font-size: 20px !important; /* 모바일에서 약간 작게 */
    }
    
    .timetable-info-message {
        font-size: 13px;
        padding: 8px;
    }
}

