/* --- TIMELINE BENTO LAYOUT --- */
.timeline-section { padding: 4rem 2rem; max-width: 1400px; margin: 0 auto; }
.timeline-header { text-align: center; margin-bottom: 3rem; }
.timeline-header h2 { font-size: 2.5rem; color: var(--primary); margin: 0.5rem 0; }
.timeline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.timeline-card { 
    background: var(--surface); border-radius: var(--radius-lg); 
    overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid #e2e8f0; cursor: pointer;
}
.timeline-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }

.timeline-image { position: relative; width: 100%; height: 240px; background: #eee; }
.timeline-image img { width: 100%; height: 100%; object-fit: cover; }

.timeline-tag {
    position: absolute; top: 1rem; right: 1rem; padding: 0.4rem 1rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 700; color: white;
}
.timeline-tag.prestasi { background: #10b981; }
.timeline-tag.video { background: #ef4444; }
.timeline-tag.info { background: var(--secondary); }

.timeline-info { padding: 1.5rem; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 0.5rem; }
.timeline-info h4 { font-size: 1.1rem; line-height: 1.4; color: var(--text-main); }

/* LIGHTBOX OVERLAY */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}
#lightbox-overlay.active { opacity: 1; }

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

/* TOMBOL CLOSE RESPONSIF */
.lightbox-close {
    position: fixed;
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

/* PC & Tablet: Kanan Atas */
@media (min-width: 769px) {
    .lightbox-close {
        top: 30px;
        right: 30px;
    }
}

/* HP: Tengah Bawah */
@media (max-width: 768px) {
    .lightbox-close {
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.lightbox-close:hover {
    background: #d97706;
    transform: scale(1.05) ${window.innerWidth <= 768 ? 'translateX(-50%)' : ''};
}