/* =========================================================
   LATAR BELAKANG UTAMA - NAVY BLUE DPMM (#0F2147)
   ========================================================= */
.zigzag-timeline-section {
    background-color: #0F2147 !important;
    color: #ffffff;
    padding: 100px 20px;
    position: relative;
    font-family: inherit;
    overflow: hidden;
}

.zigzag-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header */
.zigzag-header {
    text-align: center;
    margin-bottom: 80px;
}

.zigzag-badge {
    display: inline-block;
    color: #C5A059;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.zigzag-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.zigzag-subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.zigzag-glow-bar {
    width: 80px;
    height: 4px;
    background: #C5A059;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

/* Kontena Laluan SVG */
.zigzag-path-container {
    position: relative;
    padding: 40px 0;
}

.zigzag-svg-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.path-progress {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 0.1s linear;
}

/* Susunan Baris Zigzag */
.zigzag-row {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 70px;
    width: 100%;
    z-index: 2;
}

.zigzag-row.left-side {
    justify-content: flex-start;
    padding-right: 55%;
}

.zigzag-row.right-side {
    justify-content: flex-end;
    padding-left: 55%;
}

/* Node Dot Center */
.node-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: #0F2147;
    border: 4px solid #E52226;
    border-radius: 50%;
    box-shadow: 0 0 15px #E52226;
    z-index: 3;
}

/* =========================================================
   KAD SEJARAH - TEMA KORPORAT (#0F2147 & #142854)
   ========================================================= */
.zigzag-card {
    background: #142854;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    width: 100%;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.left-side .zigzag-card {
    transform: translateX(-50px) translateY(30px);
}

.right-side .zigzag-card {
    transform: translateX(50px) translateY(30px);
}

.zigzag-card.is-active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.zigzag-card:hover {
    background: #193166;
    border-color: #C5A059;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(197, 160, 89, 0.2);
    transform: translateY(-5px);
}

/* Year Badge Box */
.card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.year-box {
    background: linear-gradient(135deg, #E52226 0%, #b31215 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(229, 34, 38, 0.35);
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.zigzag-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.zigzag-card p {
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   FRAME LOGO DPMM (LANDSCAPE) & FINALE BOX
   ========================================================= */
.center-logo-row {
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

.logo-frame-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.logo-frame-box {
    width: 300px;
    height: 180px;
    background: #142854;
    border: 2px dashed #C5A059;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.logo-frame-box:hover {
    transform: scale(1.03);
    border-style: solid;
    border-color: #E52226;
}

.logo-img-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-frame-caption {
    font-size: 0.85rem;
    color: #C5A059;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Finale Card Box */
.zigzag-center-finale {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.zigzag-center-finale.is-active {
    opacity: 1;
    transform: translateY(0);
}

.finale-card-box {
    background: linear-gradient(135deg, #142854 0%, #0a1733 100%);
    border: 1px solid #C5A059;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(197, 160, 89, 0.15);
}

.finale-glow-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.finale-card-box h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.finale-card-box p {
    font-size: 1.05rem;
    color: #f1f5f9;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* =========================================================
   MEDIA QUERIES MOBILE & TABLET
   ========================================================= */
@media (max-width: 768px) {
    .zigzag-svg-line {
        display: none;
    }
    .zigzag-row.left-side, 
    .zigzag-row.right-side {
        padding: 0 !important;
        justify-content: center !important;
    }
    .node-dot {
        display: none;
    }
    .zigzag-main-title {
        font-size: 2.2rem;
    }
    .logo-frame-box {
        width: 100%;
        max-width: 280px;
        height: 160px;
    }
    .finale-card-box {
        padding: 30px 20px;
    }
}