/* =========================================
   BASE
========================================= */
section[data-module="timeline-slide"] {}

/* =========================================
   WRAPPER
========================================= */
section[data-module="timeline-slide"] .knm-timeline-wrapper {
    position: relative;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* =========================================
   CENTER AREA
========================================= */
section[data-module="timeline-slide"] .timeline-center {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* =========================================
   STATIC TIMELINE LINE
========================================= */
section[data-module="timeline-slide"] .timeline-line {
    position: absolute;
    top: 48%;
    left: 40px;
    right: 40px;
    height: 88px;
    background: url("https://cab.stagings.entertopwp.com/wp-content/uploads/2026/04/timeline-line.png") repeat-x;
    background-size: auto 100%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   VIEWPORT / TRACK
========================================= */
section[data-module="timeline-slide"] .knm-timeline-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

section[data-module="timeline-slide"] .knm-timeline-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* =========================================
   EACH SLIDE
========================================= */
section[data-module="timeline-slide"] .timeline-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 640px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 60px 40px;
    box-sizing: border-box;
}

/* =========================================
   ITEM BASE
========================================= */
section[data-module="timeline-slide"] .timeline-item {
    position: relative;
    flex: 0 0 calc(100% / 6);
    max-width: calc(100% / 6);
    min-width: 0;
    text-align: center;
    z-index: 3;
}

/* =========================================
   INDIVIDUAL ITEM POSITION CONTROL
   6 ITEMS PER SLIDE
========================================= */

/* Item 1 */
section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(1) {
    top: 266px;
    left: 38px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(1) .dot {
    transform: translateY(-8px);
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(1) .year-bottom {
    top: 20px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(1) .card.bottom-card {
    margin-top: 200px;
}

section[data-module="timeline-slide"] .card.bottom-card.timeline-click {
  top: 75px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

section[data-module="timeline-slide"] .card.top-card.timeline-click {
  margin-top: -265px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Item 2 */
section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(2) {
    top: 273px;
    left: 60px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(2) .dot {
    transform: translateY(0);
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(2) .year {
    top: -75px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(2) .card.top-card {
    margin-top: -260px !important;
}

/* Item 3 */
section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(3) {
    top: 210px;
    left: 24px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(3) .dot {
    transform: translateY(-8px);
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(3) .year-bottom {
    top: 20px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(3) .card.bottom-card {
    margin-top: 75px;
}

/* Item 4 */
section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(4) {
    top: 273px;
    left: 0px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(4) .dot {
    transform: translateY(0);
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(4) .year {
    top: -75px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(4) .card.top-card {
    margin-top: -260px;
}

/* Item 5 */
section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(5) {
    left: -39px;
    top: 210px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(5) .dot {
    transform: translateY(-8px);
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(5) .year-bottom {
    top: 20px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(5) .card.bottom-card {
    margin-top: 75px;
}

/* Item 6 */
section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(6) {
    top: 273px;
    left: -66px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(6) .dot {
    transform: translateY(0);
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(6) .year {
    top: -75px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(6) .card.top-card {
    margin-top: -260px;
}

/* Item 7 */
section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(7) {
    top: 203px;
    left: -98px;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(7) .dot {
    transform: translateY(0);
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(7) .year {
    top: -60px !important;
}

section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(7) .card.top-card {
    margin-top: -257px;
}

/* =========================================
   YEAR
========================================= */
section[data-module="timeline-slide"] .timeline-item .year,
section[data-module="timeline-slide"] .timeline-item .year-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    font-weight: 600;
    color: #F7F6F2;
    white-space: nowrap;
	top: 20px;
}

section[data-module="timeline-slide"] .timeline-item .year {
	top: -70px !important;
}

/* =========================================
   DOT
========================================= */
section[data-module="timeline-slide"] .timeline-item .dot {
    width: 20px;
    height: 20px;
    background: red;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* =========================================
   CARD
========================================= */
section[data-module="timeline-slide"] .timeline-item .card {
  background: #F7F6F2;
  border-radius: 20px;
  padding: 16px 14px;
  width: 320px;
  max-width: 320px;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  box-sizing: border-box;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section[data-module="timeline-slide"] .timeline-item .card.timeline-click {
    cursor: pointer;
}

/* IMAGE */
section[data-module="timeline-slide"] .timeline-item .card img {
    width: 50px;
    max-width: 100%;
    border-radius: 8px;
    margin: 0 auto 10px;
    display: block;
}

/* TEXT */
section[data-module="timeline-slide"] .timeline-item .card p {
    font-size: 18px;
    color: #000;
    font-weight: 500;
    text-align: left;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* =========================================
   READ MORE
========================================= */
section[data-module="timeline-slide"] .timeline-readmore-btn {
    color: #EE303C;
    transition: color 0.3s ease;
    font-size: 18px;
    cursor: pointer;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

section[data-module="timeline-slide"] .timeline-readmore-btn:hover {
    color: #00448b;
}

/* =========================================
   ARROWS
========================================= */
section[data-module="timeline-slide"] .timeline-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 20;
    position: relative;
    padding: 0;
    line-height: 0;
    flex: 0 0 auto;
	top: 22px;
    left: -40px;
}

section[data-module="timeline-slide"] .timeline-arrow.left-arrow {
  top: -44px !important;
  left: 40px !important;
}

section[data-module="timeline-slide"] .timeline-arrow img {
    width: 50px;
    transition: all 0.3s ease;
    pointer-events: none;
}

section[data-module="timeline-slide"] .timeline-arrow:hover img {
    transform: scale(1.12);
}

section[data-module="timeline-slide"] .timeline-arrow.disabled,
section[data-module="timeline-slide"] .timeline-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* =========================================
   POPUP
========================================= */
section[data-module="timeline-slide"] .timeline-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 30px;
}

section[data-module="timeline-slide"] .timeline-popup.active {
    display: flex;
}

section[data-module="timeline-slide"] .timeline-popup-box {
    background: #fff;
    width: min(720px, 100%);
    max-height: 80vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

section[data-module="timeline-slide"] .popup-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #003d8d;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

section[data-module="timeline-slide"] .popup-close:hover,
section[data-module="timeline-slide"] .popup-close:focus,
section[data-module="timeline-slide"] .popup-close:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    color: #003d8d;
}

section[data-module="timeline-slide"] .popup-title {
    margin-top: 0;
    margin-bottom: 18px;
    color: #003d8d;
    font-size: 28px;
    line-height: 1.3;
}

section[data-module="timeline-slide"] .popup-content {
    color: #000;
    font-size: 16px;
    line-height: 1.7;
}

section[data-module="timeline-slide"] .popup-content p {
    margin: 0;
}

section[data-module="timeline-slide"] .popup-content ul {
    margin: 0;
    padding-left: 22px;
}

section[data-module="timeline-slide"] .popup-content li {
    margin-bottom: 8px;
}

body.timeline-popup-open {
    overflow: hidden;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1400px) {
    section[data-module="timeline-slide"] .timeline-slide {
        padding: 60px 20px;
    }

    section[data-module="timeline-slide"] .timeline-line {
        left: 20px;
        right: 20px;
    }

    section[data-module="timeline-slide"] .timeline-item .year,
    section[data-module="timeline-slide"] .timeline-item .year-bottom {
        font-size: 34px;
    }

    section[data-module="timeline-slide"] .timeline-item .card {
        width: min(190px, calc(100% - 8px));
        min-height: 165px;
    }

    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(1),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(3),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(5) {
        top: 325px;
    }

    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(2),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(4),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(6) {
        top: 255px;
    }
}

@media (max-width: 1200px) {
    section[data-module="timeline-slide"] .timeline-item .card {
        width: min(170px, calc(100% - 8px));
        min-height: 160px;
        padding: 14px 12px;
    }

    section[data-module="timeline-slide"] .timeline-item .card p,
    section[data-module="timeline-slide"] .timeline-readmore-btn {
        font-size: 14px;
    }

    section[data-module="timeline-slide"] .timeline-item .year,
    section[data-module="timeline-slide"] .timeline-item .year-bottom {
        font-size: 30px;
    }
}

@media (max-width: 810px) {
    section[data-module="timeline-slide"] .timeline-slide {
        height: 680px;
        padding: 60px 15px;
    }

    section[data-module="timeline-slide"] .timeline-line {
        left: 15px;
        right: 15px;
    }

    section[data-module="timeline-slide"] .timeline-arrow img {
        width: 42px;
    }

    section[data-module="timeline-slide"] .timeline-item .card {
        width: min(150px, calc(100% - 6px));
        min-height: 150px;
    }

    section[data-module="timeline-slide"] .timeline-item .year,
    section[data-module="timeline-slide"] .timeline-item .year-bottom {
        font-size: 26px;
    }

    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(1),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(3),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(5) {
        top: 320px;
    }

    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(2),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(4),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(6) {
        top: 250px;
    }
}

@media (max-width: 480px) {
    section[data-module="timeline-slide"] .knm-timeline-wrapper {
        gap: 8px;
    }

    section[data-module="timeline-slide"] .timeline-slide {
        height: 620px;
        padding: 50px 10px;
    }

    section[data-module="timeline-slide"] .timeline-line {
        left: 10px;
        right: 10px;
    }

    section[data-module="timeline-slide"] .timeline-arrow img {
        width: 36px;
    }

    section[data-module="timeline-slide"] .timeline-item .card {
        width: min(120px, calc(100% - 4px));
        min-height: 135px;
        padding: 12px 8px;
    }

    section[data-module="timeline-slide"] .timeline-item .card p,
    section[data-module="timeline-slide"] .timeline-readmore-btn {
        font-size: 12px;
    }

    section[data-module="timeline-slide"] .timeline-item .year,
    section[data-module="timeline-slide"] .timeline-item .year-bottom {
        font-size: 22px;
    }

    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(1),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(3),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(5) {
        top: 300px;
    }

    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(2),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(4),
    section[data-module="timeline-slide"] .timeline-slide .timeline-item:nth-child(6) {
        top: 240px;
    }

    .timeline-popup {
        padding: 18px;
    }

    .timeline-popup-box {
        padding: 28px 22px;
    }

    .popup-title {
        font-size: 24px;
    }
}