/* =========================================
   학사 일정 타임라인 (Timeline)
   ========================================= */
.timeline-card {
    background-color: var(--card-dark);
    border-radius: 25px;
    padding: 30px 20px; /* 카드의 기본 여백 */
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
    box-sizing: border-box;
}

.timeline-track-container {
    width: 100%;
    /* 🌟 글자가 상자 밖으로 삐져나가지 않게 좌우 40px 안전 여백 확보 */
    padding: 40px 40px; 
    box-sizing: border-box;
}

/* 기본 회색 트랙 */
.timeline-track {
    width: 100%;
    height: 8px;
    background-color: #333; 
    border-radius: 10px;
    position: relative;
}

/* 채워지는 코랄색 바 */
.timeline-progress {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background-color: var(--coral);
    border-radius: 10px;
    width: 0%; 
    z-index: 1;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* 각 분기점 묶음 */
.time-marker {
    position: absolute;
    top: 50%; /* 선의 정중앙 */
    transform: translate(-50%, -50%); /* 중심축을 한가운데로 맞춤 */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

/* 점 기준 위쪽 글자 (월) */
.marker-top {
    position: absolute;
    bottom: 16px; /* 점 위로 띄움 */
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 점 기준 아래쪽 글자 (학기 시작) */
.marker-bottom {
    position: absolute;
    top: 16px; /* 점 아래로 띄움 */
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

/* 각 분기점 동그라미 */
.marker-dot {
    width: 14px;
    height: 14px;
    background-color: #666;
    border-radius: 50%;
    border: 3px solid var(--card-dark);
}

/* =========================================
   현재 날짜 표시기 (오늘 위치)
   ========================================= */
.current-date-indicator {
    position: absolute;
    top: 50%; /* 🌟 트랙의 정중앙에 오도록 수정 (0px -> 50%) */
    left: 0%; 
    transform: translate(-50%, -50%); /* 정확히 십자선 중앙으로 정렬 */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: left 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.pulse-dot {
    width: 18px;
    height: 18px;
    background-color: var(--yellow);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 35px; height: 35px;
    background-color: rgba(255, 217, 61, 0.5);
    border-radius: 50%;
    z-index: 1;
    animation: pulseAnim 2s infinite ease-out;
}

.current-label {
    position: absolute;
    bottom: 25px; 
    background-color: var(--yellow);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.current-label::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--yellow) transparent transparent transparent;
}

@keyframes pulseAnim {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
    .timeline-track-container { padding: 40px 25px; } /* 모바일에서는 여백 살짝 줄임 */
    .marker-bottom { font-size: 0.75rem; }
    .marker-top { font-size: 0.7rem; }
}