/* ==================================================
   important_dates.css
   重要時程頁面樣式
================================================== */

.important-dates-section {
    padding: 80px 0;
    background:
        radial-gradient(circle at top left, rgba(244, 226, 133, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(140, 179, 105, 0.20), transparent 34%),
        #fbfaf2;
}

/* 頁面標題區 */
.page-title-area {
    text-align: center;
    margin-bottom: 45px;
}

.page-subtitle {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(140, 179, 105, 0.18);
    color: #4C2E05;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.page-intro {
    max-width: 760px;
    margin: 14px auto 0;
    color: #5f665f;
    font-size: 18px;
    line-height: 1.9;
}

/* 時程卡片 */
.schedule-card {
    position: relative;
    padding: 38px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(140, 179, 105, 0.28);
    box-shadow: 0 12px 30px rgba(76, 46, 5, 0.10);
}

.schedule-card-header {
    margin-bottom: 34px;
    text-align: center;
}

.schedule-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(244, 226, 133, 0.45);
    color: #4C2E05;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.schedule-card-header h3 {
    margin: 0;
    color: #3A445D;
    font-size: 28px;
    font-weight: 800;
}

/* 時間軸 */
.timeline {
    position: relative; 
    padding-left: 0; }

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 59px;
    width: 3px;
    height: calc(100% - 16px);
    background: linear-gradient(
        180deg,
        #8CB369,
        #F4E285
    );
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: relative;
    z-index: 2;
    width: 118px;
    min-height: 78px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #8CB369,
        #F4E285
    );
    color: #4C2E05;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 18px rgba(76, 46, 5, 0.12);
}

.timeline-date .year {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.85;
}

.timeline-date .date {
    font-size: 25px;
    font-weight: 900;
    line-height: 1.2;
}

.timeline-content {
    position: relative;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(245, 247, 237, 0.95);
    border: 1px solid rgba(140, 179, 105, 0.22);
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -50px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8CB369;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(140, 179, 105, 0.24);
}

.timeline-content h4 {
    margin-bottom: 8px;
    color: #4C2E05;
    font-size: 21px;
    font-weight: 800;
}

.timeline-content p {
    margin: 0;
    color: #3A445D;
    font-size: 18px;
    line-height: 1.8;
}

/* 研討會舉辦日強調 */
.timeline-item.highlight .timeline-date {
    background: linear-gradient(
        135deg,
        #F4E285,
        #8CB369
    );
}

.timeline-item.highlight .timeline-content {
    background: rgba(244, 226, 133, 0.28);
    border-color: rgba(140, 179, 105, 0.38);
}

.timeline-item.highlight .timeline-content h4 {
    color: #3A445D;
}

/* 提醒事項 */
.notice-box {
    margin-top: 34px;
    padding: 28px 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(140, 179, 105, 0.28);
    box-shadow: 0 8px 22px rgba(76, 46, 5, 0.08);
}

.notice-box h4 {
    margin-bottom: 10px;
    color: #4C2E05;
    font-size: 22px;
    font-weight: 800;
}

.notice-box p {
    margin: 0;
    color: #3A445D;
    font-size: 18px;
    line-height: 1.8;
}

/* RWD：平板 */
@media (max-width: 991px) {
    .important-dates-section {
        padding: 60px 0;
    }

    .schedule-card {
        padding: 30px 26px;
    }

    .timeline::before {
        left: 50px;
    }

    .timeline-item {
        grid-template-columns: 100px 1fr;
        gap: 42px;
    }

    .timeline-date {
        width: 100px;
    }
    .timeline-content::before {
        left: -34px;
    }

}

/* RWD：手機 */
@media (max-width: 576px) {
    .page-intro {
        font-size: 16px;
        line-height: 1.8;
    }

    .schedule-card {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .schedule-card-header h3 {
        font-size: 23px;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        display: block;
        margin-bottom: 26px;
        padding-left: 48px;
    }

    .timeline-date {
        width: auto;
        min-height: auto;
        align-items: flex-start;
        padding: 10px 16px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .timeline-date .year {
        font-size: 13px;
    }

    .timeline-date .date {
        font-size: 22px;
    }

    .timeline-content {
        padding: 18px 18px;
    }

    .timeline-content::before {
        top: 24px;
        left: -32px;
        width: 15px;
        height: 15px;
    }

    .timeline-content h4 {
        font-size: 19px;
    }

    .timeline-content p {
        font-size: 16px;
        line-height: 1.8;
    }

    .notice-box {
        padding: 24px 22px;
    }

    .notice-box h4 {
        font-size: 20px;
    }

    .notice-box p {
        font-size: 16px;
    }
}
