.overview-stat-card {
    display: flex;
    min-height: 188px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.overview-stat-card p {
    max-width: 18rem;
    text-wrap: balance;
}

.leader-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1.5rem 1.1rem;
}

.leader-card h4 {
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
}

.leader-card .leader-title {
    text-wrap: balance;
}

.leader-card p {
    margin-bottom: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: left;
    text-wrap: pretty;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 991.98px) {
    .leader-card p {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {
    .overview-stat-card {
        min-height: 172px;
        padding: 1.25rem !important;
    }

    .overview-stat-card p {
        max-width: 15rem;
    }
}
/* ==========================================================================
   HUB History Section (Lịch Sử Hình Thành) - Horizontal Timeline Component
   ========================================================================== */
.box-history {
    position: relative;
    margin-top: 1.5rem;
}

.history-sub-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #17376e;
    margin-bottom: 2.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Timeline Navigation Bar (Top) */
.history-top-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 2.5rem;
    position: relative;
}

.history-timeline-container {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 10px 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #a41034 transparent;
    -webkit-overflow-scrolling: touch;
}

.history-timeline-container::-webkit-scrollbar {
    height: 4px;
}
.history-timeline-container::-webkit-scrollbar-thumb {
    background: #a41034;
    border-radius: 4px;
}
.history-timeline-container::-webkit-scrollbar-track {
    background: transparent;
}

/* Axis line passing behind dots */
.history-timeline-container::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 45px;
    right: 45px;
    height: 2px;
    background-color: #dcdcdc;
    z-index: 1;
    pointer-events: none;
}

.history-track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 820px;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 10px;
}

/* Year Milestone Stop */
.year-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0 6px;
    flex: 1;
    text-align: center;
    transition: all 0.25s ease;
    outline: none;
    user-select: none;
}

.year-slide .dot {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: #ffffff;
    transition: all 0.2s ease;
    margin: 0 auto 10px;
}

.year-slide .dot::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #a41034;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.year-slide .year {
    font-size: 15px;
    font-weight: 700;
    color: #525252;
    margin: 0;
    line-height: 1.35;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.year-slide:hover .year {
    color: #a41034;
}

/* Active Milestone State */
.year-slide.active .dot,
.year-slide[aria-selected="true"] .dot {
    border-color: #a41034;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(164, 16, 52, 0.15);
}

.year-slide.active .dot::before,
.year-slide[aria-selected="true"] .dot::before {
    background-color: #a41034;
    border-color: #a41034;
}

.year-slide.active .year,
.year-slide[aria-selected="true"] .year {
    color: #a41034;
    font-weight: 800;
    transform: scale(1.12);
}

/* Navigation Arrow Buttons */
.history-nav-arrow {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #d9dfe8;
    background: #ffffff;
    color: #17376e;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.history-nav-arrow:hover:not(:disabled) {
    background: #a41034;
    border-color: #a41034;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(164, 16, 52, 0.25);
}

.history-nav-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.history-nav-arrow:focus-visible,
.year-slide:focus-visible {
    outline: 2px solid #a41034;
    outline-offset: 2px;
}

/* History Content Panel (Bottom) */
.history-bot {
    position: relative;
    min-height: 400px;
}

.history-panel {
    display: none;
}

.history-panel.active,
.history-panel:not([hidden]) {
    display: block;
    animation: historyFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes historyFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-item {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.history-item .image {
    flex: 0 0 60%;
    max-width: 60%;
    min-height: 380px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #f1f3f6;
}

.history-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-item:hover .image img {
    transform: scale(1.03);
}

.history-item .caption {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
    background: #ffffff;
}

.history-item .caption .year {
    background-color: #a41034;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(164, 16, 52, 0.25);
    line-height: 1.4;
}

.history-item .caption .brief p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 0;
    text-align: justify;
}

/* Dark Mode Overrides */
[data-theme="dark"] .history-sub-title {
    color: #93c5fd;
}
[data-theme="dark"] .history-timeline-container::before {
    background-color: #334155;
}
[data-theme="dark"] .year-slide .dot {
    background-color: #0f172a;
}
[data-theme="dark"] .year-slide .dot::before {
    background-color: #0f172a;
    border-color: #ff8891;
}
[data-theme="dark"] .year-slide .year {
    color: #94a3b8;
}
[data-theme="dark"] .year-slide.active .dot,
[data-theme="dark"] .year-slide[aria-selected="true"] .dot {
    border-color: #ff8891;
    background-color: #0f172a;
    box-shadow: 0 0 0 4px rgba(255, 136, 145, 0.2);
}
[data-theme="dark"] .year-slide.active .dot::before,
[data-theme="dark"] .year-slide[aria-selected="true"] .dot::before {
    background-color: #ff8891;
    border-color: #ff8891;
}
[data-theme="dark"] .year-slide.active .year,
[data-theme="dark"] .year-slide[aria-selected="true"] .year {
    color: #ff8891;
}
[data-theme="dark"] .history-nav-arrow {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .history-nav-arrow:hover:not(:disabled) {
    background: #ff8891;
    border-color: #ff8891;
    color: #0f172a;
}
[data-theme="dark"] .history-item {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .history-item .caption {
    background: #1e293b;
}
[data-theme="dark"] .history-item .caption .brief p {
    color: #cbd5e1;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
    .history-top-wrapper {
        gap: 8px;
        margin-bottom: 20px;
    }
    .history-nav-arrow {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .history-item {
        flex-direction: column;
    }
    .history-item .image {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 240px;
    }
    .history-item .caption {
        padding: 24px 20px;
    }
    .history-item .caption .year {
        font-size: 1.05rem;
        margin-bottom: 16px;
        padding: 6px 18px;
    }
    .history-item .caption .brief p {
        font-size: 1rem;
        line-height: 1.75;
    }
}
