﻿/* =============================
   UNISTRAW HISTORY SECTION
   ============================= */

.history-section {
    background: #1A1A1A;
    color: #fff;
    padding: 80px 0;
    font-family: "Montserrat", sans-serif;
}

.history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid chia 2 phần */
.history-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.history-info {
    flex: 1 1 280px; /* trái */
    text-align: left;
}

.history-title {
    font-size: 40px;
    color: #D4A017;
    font-weight: 700;
    margin-bottom: 12px;
}

.history-subtitle {
    font-size: 20px;
    color: #ccc;
}

/* =================================
   TIMELINE BÊN PHẢI — PHÓNG TO
   ================================= */

.timeline-wrapper {
    flex: 4 1 750px;
    position: relative;
    padding: 60px;
    /* Chỉ cần 2 dòng này là đủ */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* ẩn scrollbar cho Firefox */
}
    .timeline-wrapper::-webkit-scrollbar {
        display: none;
    }

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px; /* to hơn */
    background: #777;
    transform: translateY(-50%);
    border-radius: 3px;
    z-index: 1;
}

.timeline-items {
    display: flex;
    gap: 80px; /* xa hơn — sang hơn */
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px; /* to hơn */
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-marker {
    width: 26px;
    height: 26px;
    background: #D4A017;
    border-radius: 50%;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.timeline-year {
    font-size: 20px;
    color: #ccc;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.timeline-event {
    font-size: 16px;
    color: #aaa;
    max-width: 250px;
    transition: all 0.3s ease;
    margin-top: 23px;
}

/* Mốc đang active — nổi bật mạnh */
.timeline-item.active .timeline-marker {
    transform: scale(1.5);
    background: #FFD700;
    opacity: 1;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.timeline-item.active .timeline-year {
    font-size: 24px;
    color: #FFD700;
}

.timeline-item.active .timeline-event {
    color: #fff;
    font-size: 17px;
}

/* =================================
   NAVIGATION BUTTONS
   ================================= */

.timeline-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-left: 10px;
}

    .timeline-nav button {
        background: #2a2a2a;
        color: #D4A017;
        border: none;
        width: 55px;
        height: 55px;
        border-radius: 50%;
        font-size: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .timeline-nav button:hover {
            background: #FFD700;
            color: #1A1A1A;
            transform: scale(1.12) translateY(-4px);
        }

        .timeline-nav button:active {
            transform: scale(0.92);
        }

/* =================================
   RESPONSIVE
   ================================= */

@media (max-width: 1024px) {
    .history-grid {
        flex-direction: column;
    }

    .timeline-items {
        gap: 100px;
    }
}

@media (max-width: 768px) {
    .timeline-items {
        gap: 70px;
    }

    .timeline-event {
        max-width: 150px;
        font-size: 14px;
    }
}
