/* ============ UTILITIES & BASE ============ */
.sejarah-page {
    color: var(--text-body);
    padding-bottom: 4rem;
}

/* ============ HERO SECTION ============ */
.hero-sejarah {
    position: relative;
    padding: 8rem 0 5rem;
    background: transparent; /* Diatur oleh body main.css */
    overflow: hidden;
}

.hero-sejarah::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: var(--glow-yellow);
    border-radius: 50%;
    filter: blur(40px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-yellow);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-yellow);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-heading); /* Biar aman di Light Mode */
    transition: color var(--trans);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.8;
}

/* ============ FEATURED IMAGE ============ */
.featured-image {
    margin: -3rem 0 5rem;
    position: relative;
    z-index: 10;
}

.featured-image img {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid var(--border-yellow);
}

/* ============ TIMELINE SECTION ============ */
.timeline-section {
    padding: 3rem 0 5rem;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-yellow) 0%, transparent 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.timeline-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    padding-left: 4rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    padding-right: 4rem;
    text-align: right;
}

.timeline-content {
    width: 50%;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-yellow);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 8px var(--glow-yellow), 0 0 20px var(--glow-yellow);
    z-index: 10;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    transition: border-color var(--trans);
}

.timeline-item:nth-child(odd) .timeline-card::before {
    left: -24px;
    border-right-color: var(--bg-card);
}

.timeline-item:nth-child(even) .timeline-card::before {
    right: -24px;
    border-left-color: var(--bg-card);
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    box-shadow: 0 20px 50px var(--glow-yellow);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--yellow-soft) 100%);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(241,196,15,0.2);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.timeline-text {
    color: var(--text-body);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============ SCROLL REVEAL ============ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-sejarah { padding: 5rem 0 3rem; }
    
    .featured-image { margin: 0 0 3rem; }
    .featured-image img { height: 250px; }
    
    .timeline::before { left: 30px; transform: none; }
    .timeline-dot { left: 30px; }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        padding-left: 5rem;
        padding-right: 1rem;
        text-align: left;
    }
    
    /* Responsive Pointer Triangle */
    .timeline-item:nth-child(odd) .timeline-card::before {
        left: -24px;
        border-right-color: var(--bg-card);
        border-left-color: transparent;
    }
    .timeline-item:nth-child(even) .timeline-card::before {
        left: -24px;
        right: auto;
        border-right-color: var(--bg-card);
        border-left-color: transparent;
    }
}