﻿/* 
* TIMELINE FINAL OVERRIDE - CSS SIÊU MẠNH CUỐI CÙNG
* Đảm bảo 100% timeline dùng font Arial
* Không có font nào có thể override được
* Load cuối cùng để có độ ưu tiên cao nhất
*/

/* CSS SIÊU MẠNH - OVERRIDE TẤT CẢ FONT VỚI ĐỘ ƯU TIÊN CAO NHẤT */
html body .company-history-section,
html body .company-history-section *,
html body .company-history-section *::before,
html body .company-history-section *::after,
html body .company-history-section *:hover,
html body .company-history-section *:focus,
html body .company-history-section *:active,
html body .company-history-section *:visited {
    font-family: Arial !important;
    font-family: "Helvetica Neue" !important;
    font-family: Helvetica !important;
    font-family: sans-serif !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* OVERRIDE TẤT CẢ FONT CỤ THỂ VỚI ĐỘ ƯU TIÊN CAO NHẤT */
html body .company-history-section .section-title,
html body .company-history-section .section-subtitle,
html body .company-history-section h3,
html body .company-history-section p,
html body .company-history-section .timeline-tag,
html body .company-history-section .timeline-date,
html body .company-history-section .summary-number,
html body .company-history-section .summary-text {
    font-family: Arial !important;
    font-family: "Helvetica Neue" !important;
    font-family: Helvetica !important;
    font-family: sans-serif !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* OVERRIDE TẤT CẢ FONT BEAUTIQUE VÀ CÁC FONT KHÁC */
html body .company-history-section *[style*="font-family: 'Beautique Display'"],
html body .company-history-section *[style*="font-family: \"Beautique Display\""],
html body .company-history-section *[style*="font-family: Beautique Display"],
html body .company-history-section *[style*="font-family: 'Beautique Display Condensed'"],
html body .company-history-section *[style*="font-family: \"Beautique Display Condensed\""],
html body .company-history-section *[style*="font-family: Beautique Display Condensed"],
html body .company-history-section *[style*="font-family: 'Playfair Display'"],
html body .company-history-section *[style*="font-family: \"Playfair Display\""],
html body .company-history-section *[style*="font-family: 'Inter'"],
html body .company-history-section *[style*="font-family: \"Inter\""],
html body .company-history-section *[style*="font-family: 'Calibri'"],
html body .company-history-section *[style*="font-family: \"Calibri\""],
html body .company-history-section *[style*="font-family: 'Roboto'"],
html body .company-history-section *[style*="font-family: \"Roboto\""] {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* OVERRIDE TẤT CẢ INLINE STYLE FONT */
html body .company-history-section *[style*="font-family"] {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* CSS CUSTOM PROPERTY VỚI ĐỘ ƯU TIÊN CAO NHẤT */
:root {
    --timeline-arial-ultimate: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* OVERRIDE CUỐI CÙNG - SỬ DỤNG CSS CUSTOM PROPERTY */
html body .company-history-section * {
    font-family: var(--timeline-arial-ultimate) !important;
}

/* CSS SIÊU MẠNH CUỐI CÙNG - OVERRIDE TẤT CẢ */
html body .company-history-section * {
    font-family: Arial !important;
    font-family: "Helvetica Neue" !important;
    font-family: Helvetica !important;
    font-family: sans-serif !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* OVERRIDE TẤT CẢ FONT VỚI ĐỘ ƯU TIÊN CỰC CAO */
html body .company-history-section * {
    font-family: Arial !important;
}

/* CSS CỰC MẠNH CUỐI CÙNG - KHÔNG CÓ FONT NÀO CÓ THỂ OVERRIDE */
html body .company-history-section * {
    font-family: Arial !important;
    font-family: "Helvetica Neue" !important;
    font-family: Helvetica !important;
    font-family: sans-serif !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
}

/* New Timeline Display - All Items Visible */
.journey-timeline {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 60px 20px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.timeline-item {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.timeline-marker {
    position: relative;
    padding: 30px 25px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.marker-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 50%;
    margin: 0 auto 15px;
    position: relative;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.marker-dot.highlight {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6); }
    100% { transform: scale(1); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); }
}

.marker-year {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.timeline-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.08);
}

.timeline-text {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timeline-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.timeline-text p {
    font-size: 16px;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.timeline-period {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
    align-self: flex-start;
}

.highlight-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
    align-self: flex-start;
}

.timeline-progress {
    position: relative;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 50px auto;
    max-width: 900px;
    overflow: hidden;
}

.progress-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f97316);
    border-radius: 3px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f97316);
    border-radius: 3px;
    transition: width 2.5s ease;
    animation: progressAnimation 4s ease-out forwards;
}

@keyframes progressAnimation {
    to { width: 100%; }
}

/* Journey Stats Section */
.journey-stats {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 18px;
    color: #475569;
    font-weight: 600;
    line-height: 1.4;
}

/* Vertical Centerline Timeline Overrides */
.journey-timeline {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Center vertical line */
.journey-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Stack items vertically */
.journey-timeline .timeline-container {
    display: block !important;
    margin: 0;
}

.journey-timeline .timeline-item {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 30px 0;
}

/* Marker (dot + year) at center line */
.journey-timeline .timeline-marker {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 0;
    border: 0;
    text-align: center;
}

.journey-timeline .marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
    margin: 0 auto 8px;
}

.journey-timeline .marker-dot.highlight {
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.45);
}

.journey-timeline .marker-year {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* Content cards aligned left/right */
.journey-timeline .timeline-content {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.08);
    border-radius: 20px;
    overflow: hidden;
    width: calc(50% - 60px);
}

/* Connector from center line to card */
.journey-timeline .timeline-content::before {
    content: "";
    position: absolute;
    top: 48px;
    width: 28px;
    height: 2px;
    background: #e2e8f0;
}

/* Odd items on left side */
.journey-timeline .timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.journey-timeline .timeline-item:nth-child(odd) .timeline-content::before {
    right: -28px;
}

/* Even items on right side */
.journey-timeline .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.journey-timeline .timeline-item:nth-child(even) .timeline-content::before {
    left: -28px;
}

/* Image height tweak for vertical layout */
.journey-timeline .timeline-image { height: 220px; }

/* Text spacing tweaks */
.journey-timeline .timeline-text { padding: 24px 24px 26px; }
.journey-timeline .timeline-text h3 { margin-bottom: 12px; font-size: 20px; }
.journey-timeline .timeline-text p { margin-bottom: 14px; }
.journey-timeline .timeline-period, 
.journey-timeline .highlight-badge { margin-bottom: 0; }

/* Hide horizontal progress bar in this layout */
.journey-timeline .timeline-progress { display: none; }

/* Responsive */
@media (max-width: 992px) {
    .journey-timeline::before { left: 36px; transform: none; }
    .journey-timeline .timeline-marker { left: 36px; transform: none; }
    .journey-timeline .timeline-content {
        width: auto;
        margin-left: 72px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    .journey-timeline .timeline-content::before {
        left: -28px !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    .journey-timeline .timeline-text { padding: 18px 16px 20px; }
    .journey-timeline .timeline-image { height: 180px; }
    .journey-timeline .marker-year { font-size: 12px; padding: 5px 8px; }
}

/* Responsive Design for New Timeline */
@media (max-width: 1200px) {
    .timeline-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .journey-timeline {
        padding: 40px 20px;
    }
    
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .timeline-item {
        margin-bottom: 0;
    }
    
    .timeline-text {
        padding: 25px;
    }
    
    .timeline-text h3 {
        font-size: 20px;
    }
    
    .timeline-text p {
        font-size: 15px;
    }
    
    .marker-year {
        font-size: 24px;
    }
    
    .timeline-marker {
        padding: 25px 20px;
    }
    
    .journey-stats {
        margin-top: 50px;
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .stat-label {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .journey-timeline {
        padding: 30px 15px;
    }
    
    .timeline-container {
        gap: 20px;
    }
    
    .timeline-text {
        padding: 20px;
    }
    
    .timeline-text h3 {
        font-size: 18px;
    }
    
    .timeline-text p {
        font-size: 14px;
    }
    
    .timeline-period,
    .highlight-badge {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .timeline-marker {
        padding: 20px 15px;
    }
    
    .marker-year {
        font-size: 22px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 15px;
    }
}

/* Modern Cards Timeline Layout - override vertical centerline */
html body .journey-section .journey-timeline::before { display: none !important; }
html body .journey-section .journey-timeline .timeline-marker { display: none !important; }
html body .journey-section .journey-timeline .timeline-progress { display: none !important; }

html body .journey-section .journey-timeline {
    max-width: 1320px;
    padding: 60px 20px;
}

/* Grid 3 columns with auto fit */
html body .journey-section .journey-timeline .timeline-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 0;
}

/* Card */
html body .journey-section .journey-timeline .timeline-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

html body .journey-section .journey-timeline .timeline-item:hover {
    transform: translateY(-6px);
    border-color: #dbe4ef;
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.12);
}

/* Year pill using data-year */
html body .journey-section .journey-timeline .timeline-item::after {
    content: attr(data-year);
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 8px 14px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .2px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

/* Highlight year variant */
html body .journey-section .journey-timeline .timeline-item[data-year="2018"]::after {
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(249, 115, 22, .35);
}

/* Image */
html body .journey-section .journey-timeline .timeline-content { background: transparent; border: 0; box-shadow: none; padding: 0; flex: 1; display: flex; flex-direction: column; }
html body .journey-section .journey-timeline .timeline-image { position: relative; height: 240px; }
html body .journey-section .journey-timeline .timeline-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
html body .journey-section .journey-timeline .timeline-item:hover .timeline-image img { transform: scale(1.04); }

/* Subtle gradient overlay bottom for readability */
html body .journey-section .journey-timeline .timeline-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,.35), rgba(2,6,23,0) 55%);
    pointer-events: none;
}

/* Text */
html body .journey-section .journey-timeline .timeline-text { padding: 18px 18px 20px; background: #ffffff; flex: 1; display: flex; flex-direction: column; }
html body .journey-section .journey-timeline .timeline-text h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 10px; line-height: 1.35; }
html body .journey-section .journey-timeline .timeline-text p { font-size: 15px; color: #475569; line-height: 1.55; margin: 0 0 12px; }

/* Chips */
html body .journey-section .journey-timeline .timeline-period { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; margin: 0; display: inline-block; }
html body .journey-section .journey-timeline .highlight-badge { background: linear-gradient(135deg, #f97316, #fb923c); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; margin-left: 8px; display: inline-block; }

/* Responsive */
@media (max-width: 1200px) {
    html body .journey-section .journey-timeline { padding: 40px 16px; }
    html body .journey-section .journey-timeline .timeline-container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
}

@media (max-width: 768px) {
    html body .journey-section .journey-timeline .timeline-container { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
    html body .journey-section .journey-timeline .timeline-image { height: 200px; }
    html body .journey-section .journey-timeline .timeline-item::after { top: 12px; left: 12px; padding: 7px 12px; font-size: 13px; }
    html body .journey-section .journey-timeline .timeline-text { padding: 16px; }
}

@media (max-width: 480px) {
    html body .journey-section .journey-timeline .timeline-container { grid-template-columns: 1fr; }
    html body .journey-section .journey-timeline .timeline-image { height: 180px; }
}
