/* assets/style.css */
.custom-rolling-timeline-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
}

.custom-rolling-timeline-container .left-col {
    width: 40%;
    position: sticky;
    top: 50vh; 
    transform: translateY(-50%);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-rolling-timeline-container .year-display-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.custom-rolling-timeline-container .progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    z-index: 1;
}

.custom-rolling-timeline-container .static-prefix {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translateY(-50%);
    margin-right: 60px;
    font-size: 6.5rem;
    font-weight: 900;
    color: #1a1a5c;
    line-height: 100px;
    letter-spacing: -2px;
    z-index: 2;
}

.custom-rolling-timeline-container .year-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 100px;
    overflow: visible;
    z-index: 2;
}

.custom-rolling-timeline-container .year-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.custom-rolling-timeline-container .year-item {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6.5rem;
    font-weight: 900;
    color: #e0e0e0;
    line-height: 100px;
    letter-spacing: -2px;
    transition: color 0.3s ease;
}

.custom-rolling-timeline-container .year-item.active {
    color: #1a1a5c;
}

.custom-rolling-timeline-container .right-col {
    width: 60%;
    padding-left: 50px;
}

.custom-rolling-timeline-container .content-item {
    min-height: 80vh; 
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}

/* ========================================== */
/* RESPONSIVE: MOBILE & TABLET (Dưới 768px)   */
/* ========================================== */
@media (max-width: 768px) {
    /* 1. Ẩn hoàn toàn cột trái (Số và Vòng tròn) */
    .custom-rolling-timeline-container .left-col {
        display: none !important;
    }

    /* 2. Cột nội dung dàn full 100% chiều rộng và reset khoảng cách */
    .custom-rolling-timeline-container .right-col {
        width: 100% !important;
        padding-left: 0 !important; /* Xóa khoảng trống bù cột trái lúc trước */
    }

    /* 3. Tối ưu lại khoảng cách chung của Widget trên mobile */
    .custom-rolling-timeline-container {
        padding: 30px 15px; 
    }

    /* 4. Reset chiều cao bài viết (không ép dài 80vh nữa để mobile cuộn tự nhiên hơn) */
    .custom-rolling-timeline-container .content-item {
        min-height: auto;
        padding: 30px 0;
    }
}