/* --- 1. BIẾN MÀU SẮC & CẤU HÌNH CHUNG --- */
:root {
    --primary-navy: #061a33;
    --accent-gold: #c5a059;
    --text-dark: #333333;
    --white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Mulish', sans-serif;
    --font-modern-quote: 'Lora', serif; 
    
    /* Infographic Variables */
    --info-bg-overlay: rgba(0, 0, 0, 0.2);
    --info-card-bg: rgba(255, 255, 255, 0.92);
    --info-text-header: #061a33;
    --info-text-body: #334155;
    --info-border: rgba(255, 255, 255, 0.5);
    --info-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--white);
    font-size: 18px;
    margin: 0; padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, .quote-text, .closing-text { font-family: var(--font-serif); }
.text-justify { text-align: justify; }

/* Fixed Logo */
.fixed-logo {
    position: fixed; top: 20px; right: 20px; z-index: 1000;
    text-align: right; line-height: 1; color: #fff;
    mix-blend-mode: difference;
}
.fixed-logo span { display: block; font-family: var(--font-serif); font-size: 24px; font-weight: 700; }
.fixed-logo small { font-family: var(--font-serif); font-size: 14px; font-style: italic; }

/* Divider */
.divider {
    display: flex; align-items: center; justify-content: center;
    margin: 30px auto; width: 200px;
}
.divider::before, .divider::after {
    content: ''; height: 1px; background: var(--accent-gold); flex: 1; opacity: 0.5;
}
.divider span {
    width: 8px; height: 8px; background: var(--accent-gold);
    transform: rotate(45deg); margin: 0 10px;
}

/* Hero */
.hero {
    height: 100vh; width: 100%; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    color: var(--white); padding: 20px; position: relative; overflow: hidden;
}
.hero-video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(6,26,51,0.3); z-index: 1;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.5) 100%);
    z-index: 2; pointer-events: none;
}
.hero-content { text-align: center; max-width: 900px; z-index: 3; }
.hero h1 {
    font-size: 3.5rem; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.5); line-height: 1.2;
}
.hero .subtitle {
    font-size: 1.7rem; font-weight: 600; letter-spacing: 1px;
    border-top: 1px solid var(--accent-gold); border-bottom: 1px solid var(--accent-gold);
    padding: 15px 0; display: inline-block; margin-top: 20px;
    background: rgba(0,0,0,0.3); backdrop-filter: blur(2px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Content Styles */
.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.intro-section { padding: 40px 20px 10px 20px; max-width: 800px; margin: 0 auto; position: relative; z-index: 10; }
.sapo { font-weight: 600; font-size: 22px; color: var(--primary-navy); margin-bottom: 40px; text-align: center; }
.drop-cap { float: left; font-family: var(--font-serif); font-size: 80px; line-height: 60px; padding: 4px 8px 0 3px; color: var(--accent-gold); }

.content-block { margin-bottom: 30px; text-align: justify; }
.content-block h2 {
    font-size: 2.2rem; color: var(--primary-navy); margin: 60px 0 25px 0;
    position: relative; text-align: center; z-index: 1; padding: 10px 0;
}
.content-block h2::before {
    content: attr(data-index); position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    font-size: 5rem; font-family: var(--font-serif); font-weight: 700; color: #dcb048; opacity: 0.6; 
    z-index: -1; line-height: 1; letter-spacing: -2px;
}

.quote-block { text-align: center; margin: 50px 0; padding: 35px; background-color: #fcfcfc; border: 1px solid #eee; }
.quote-text { font-size: 26px; color: var(--primary-navy); font-style: italic; margin-bottom: 20px; line-height: 1.5; }
.quote-author { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--accent-gold); margin-top: 15px; }
.quote-role { font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; display: block; }

/* Images & Media */
.full-img { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; height: 550px; overflow: hidden; margin-bottom: 20px; }
.full-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.1s linear; }
.img-caption { font-family: var(--font-sans); font-size: 14px; color: #888; text-align: center; display: block; margin-bottom: 40px; font-style: italic; margin-top: 10px; }

.blended-img-wrapper { 
    position: relative; 
    width: 100%; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(6, 26, 51, 0.1); 
    max-width: 980px; 
    margin: 40px auto;
}

.blended-img { 
    width: 100%; display: block; 
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%); 
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
}

.info-graphic-img { width: 100%; height: auto; display: block; margin: 40px 0; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-container { width: 100%; max-width: 980px; margin: 40px auto 20px auto; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.2); }
.video-container video { width: 100%; display: block; }

/* Gold Blended Wrapper */
.blended-gold-wrapper {
    position: relative; width: 100%; max-width: 980px; margin: 40px auto; border-radius: 12px; overflow: hidden; box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}
.blended-gold-wrapper::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 2px solid rgba(197, 160, 89, 0.5); border-radius: 12px; box-shadow: inset 0 0 60px rgba(6, 26, 51, 0.8); pointer-events: none;
}
.blended-gold-img { width: 100%; display: block; }

/* INTRO ALBUM STYLES */
.intro-album-wrapper {
    margin: 40px auto;
    width: 100%;
    max-width: 1340px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.intro-album-top {
    width: 100%;
    max-width: 980px; 
}
.intro-album-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}
.intro-album-bottom img {
    width: 660px; 
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
@media (max-width: 1360px) {
     .intro-album-bottom img { width: 48%; min-width: 300px; }
}

/* SLIDER ALBUM STYLES */
.slider-album-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
    cursor: grab; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.slider-album-container.active {
    cursor: grabbing; 
}
.slider-album-container::-webkit-scrollbar { 
    display: none;
}
.slider-wrapper {
    display: inline-flex;
    gap: 20px;
    padding: 0 max(calc(50vw - 490px), 20px); 
    align-items: flex-start;
}
.slider-item {
    display: inline-block;
    width: 980px; 
    height: auto; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    flex-shrink: 0;
    position: relative;
    user-select: none; 
}
.slider-item img {
    width: 100%;
    height: auto; 
    display: block;
    object-fit: contain; 
    transition: transform 0.5s ease;
    pointer-events: none; 
}
.slider-item:hover img {
    transform: scale(1.01);
}

@media (max-width: 1000px) {
    .slider-item { width: 90vw; }
    .slider-wrapper { padding: 0 5vw; }
}

/* Widget Styles */
.race-widget-wrapper {
    --primary-blue: #003060; --gold-solid: #bf953f; --bg-white: #ffffff; --text-dark: #333; --text-gray: #555; --track-bg: #e0e0e0;
    font-family: 'Montserrat', sans-serif; width: 100%; overflow: hidden; box-sizing: border-box; margin: 40px 0 0 0;
}
.race-widget-wrapper *, .race-widget-wrapper *::before, .race-widget-wrapper *::after { box-sizing: border-box; }
.race-chart-container {
    margin: 0 auto; padding: 40px 30px; background: var(--bg-white); border: 1px solid #eee; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); max-width: 980px; width: 100%; border-radius: 12px; overflow: hidden; 
}
.race-title { text-align: center; color: var(--primary-blue); font-size: 18px; font-weight: 800; text-transform: uppercase; margin-bottom: 50px; letter-spacing: 0.5px; }
.race-row { position: relative; margin-bottom: 60px; width: 100%; }
.race-row:last-child { margin-bottom: 80px; }
.race-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--text-gray); }
.race-info span:first-child { color: var(--primary-blue); font-weight: 700; }
.race-time { color: var(--primary-blue); font-weight: 800; }
.track-line { height: 6px; background: var(--track-bg); border-radius: 3px; position: relative; width: 100%; }
.track-line::after { content: ""; position: absolute; right: 0; top: -10px; bottom: -10px; width: 4px; background: #333; }
.vehicle-wrap {
    position: absolute; top: -45px; left: -100px; width: 80px;
    animation-name: race-move; animation-timing-function: linear; animation-iteration-count: infinite; z-index: 3; will-change: left;
}
.v-moto { width: 50px; top: -42px; animation-duration: 30s; }
.v-bus { width: 90px; top: -45px; animation-duration: 21.8s; }
.v-car { width: 70px; top: -28px; animation-duration: 13.6s; }
.v-hsr { width: 240px; top: -55px; animation-duration: 3.6s; }
.vehicle-icon { width: 100%; height: auto; display: block; }
.blend-multiply { mix-blend-mode: multiply; }
.vehicle-tooltip {
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    background: #222; color: #fff; padding: 3px 8px; border-radius: 3px;
    font-size: 10px; font-weight: 700; white-space: nowrap; opacity: 0; transition: 0.3s;
}
.v-hsr .vehicle-tooltip { top: -30px; }
.race-row:hover .vehicle-tooltip { opacity: 1; }
@keyframes race-move { 0% { left: -20%; } 100% { left: 105%; } }
.race-row.highlight .track-line { background: linear-gradient(90deg, #e3f2fd, #90caf9); }
.race-row.highlight .vehicle-wrap { animation-timing-function: linear; }
@media (max-width: 768px) {
    .race-chart-container { width: 100%; padding: 30px 15px; border: none; box-shadow: none; }
    .v-moto { width: 40px; top: -35px; } .v-car { width: 55px; top: -22px; } .v-bus { width: 70px; top: -38px; } .v-hsr { width: 150px; top: -40px; }
    .race-title { font-size: 16px; margin-bottom: 40px; }
    .race-info { font-size: 12px; }
    .race-row:last-child { margin-bottom: 60px; }
}

/* Closing Style */
.closing-bg-wrapper { 
    position: relative; width: 100%; max-width: 980px; margin: 5px auto; 
    height: auto; 
    overflow: hidden; border-radius: 12px;
}
.closing-bg-img { 
    width: 100%; 
    height: auto; 
    object-fit: contain;
    display: block;
}
.closing-content-box {
    position: absolute; top: 40px; right: 20px; 
    left: auto; width: 50%; max-width: 500px;
    background: transparent; padding: 20px; text-align: right; 
}
.closing-quote {
    font-family: var(--font-serif); font-size: 20px; 
    font-weight: 700; font-style: italic;
    color: #ffffff; line-height: 1.6; text-shadow: 0 2px 20px rgba(0,0,0,0.9); 
}

/* Album & Others */
.album-section { margin: 50px 0; }

.guide-box {
    background-color: transparent; padding: 20px; text-align: center;
    max-width: 800px; margin: 10px auto 30px auto; border: none;
}
.guide-title {
    color: var(--primary-navy); font-weight: 800; text-transform: uppercase; font-size: 1.1rem;
    margin-bottom: 5px; letter-spacing: 1px;
}
.guide-subtitle { color: #666; font-size: 0.9rem; font-style: italic; }

.section-5-container { background-color: #fff; padding-bottom: 40px; }

/* Footer Styles */
footer { background-color: #f0f5fa; color: var(--primary-navy); text-align: center; padding: 50px 20px; font-size: 1rem; border-top: 4px solid var(--accent-gold); }
footer h3 { font-size: 28px; margin-bottom: 10px; color: var(--accent-gold); font-family: 'Orbitron', sans-serif; font-weight: 700; }
footer p { margin: 5px 0; }
.social-actions { margin-top: 20px; display: flex; justify-content: center; gap: 15px; }
.social-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    border: none; color: white;
}
.btn-like { background-color: #1877F2; }
.btn-share { background-color: #ffffff; color: #1877F2; border: 1px solid #1877F2; }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }


#react-hsr-map { width: 100%; margin: 0; padding: 0; }

/* Box Dự án Yên Viên */
.railway-project-full {
    width: 100%;
    max-width: 1920px; 
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background-color: #f8fafc;
    padding: 10px 0 40px 0;
}
#react-railway-project {
    width: 100%;
    max-width: 1920px;
    padding: 0 20px;
}

#react-passenger-chart { width: 100%; margin: 0; padding: 0; }

/* --- EMBEDDED INFOGRAPHIC STYLES --- */
.infographic-wrapper {
    margin: 40px auto; 
    padding: 0;
    width: 100%;
    max-width: 980px; 
    height: 700px; 
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    color: var(--info-text-body);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/5/geminigeneratedimagezbtlbzzbtlbzzbtl-1764898408208412724898.png');
    background-size: cover;
    background-position: center;
}

.infographic-wrapper #bg-video {
    display: none; 
}

.infographic-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--info-bg-overlay);
    z-index: 1;
}

.infographic-wrapper .infographic-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 20px;
    max-width: 980px; 
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
}

.infographic-wrapper .header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.infographic-wrapper .header h1 {
    font-family: var(--font-serif); 
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff; 
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 800;
}

.infographic-wrapper .header h2 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: #fbbf24;
    margin: 10px 0;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.infographic-wrapper .header p {
    font-size: 1rem;
    color: #e2e8f0;
    margin-top: 5px;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.infographic-wrapper .column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.infographic-wrapper .card {
    background: var(--info-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--info-border);
    padding: 20px;
    border-radius: 12px;
    width: 100%; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
    box-shadow: var(--info-shadow);
}

.infographic-wrapper .column-left .card { border-left: 4px solid var(--info-text-header); }
.infographic-wrapper .column-right .card { border-right: 4px solid var(--accent-gold); text-align: right; }

.infographic-wrapper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10;
}

.infographic-wrapper .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.infographic-wrapper .column-right .card-header { flex-direction: row-reverse; }

.infographic-wrapper .icon-box {
    width: 45px;
    height: 45px;
    background: #e0f2fe; 
    color: var(--info-text-header);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: transform 0.3s, background 0.3s;
}

.infographic-wrapper .card:hover .icon-box {
    transform: scale(1.1);
    background: #bae6fd;
}

.infographic-wrapper .card-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--info-text-header);
    text-transform: uppercase;
}

.infographic-wrapper .card-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--info-text-body);
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.infographic-wrapper .card-content.show-always {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 0;
    color: var(--info-text-header);
    font-weight: 600;
    font-size: 1.1rem;
}

.infographic-wrapper .card:hover .card-content {
    max-height: 150px;
    opacity: 1;
    margin-top: 10px;
}

.infographic-wrapper .highlight-number {
    font-weight: 800;
    color: #d97706; 
    font-size: 1.1em;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.infographic-wrapper .column-left .card { animation: slideInLeft 0.6s ease-out backwards; }
.infographic-wrapper .column-right .card { animation: slideInRight 0.6s ease-out backwards; }

.infographic-wrapper .card:nth-child(1) { animation-delay: 0.1s; }
.infographic-wrapper .card:nth-child(2) { animation-delay: 0.2s; }
.infographic-wrapper .card:nth-child(3) { animation-delay: 0.3s; }

@media (max-width: 1024px) {
    .infographic-wrapper {
        height: auto;
        display: block;
        padding-top: 20px;
    }
    .infographic-wrapper .infographic-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
        padding: 20px;
    }
    .infographic-wrapper .column-left, .infographic-wrapper .column-right {
        align-items: stretch;
        margin-bottom: 0;
        padding: 0;
    }
    .infographic-wrapper .card { border-left: 4px solid var(--info-text-header); border-right: none; text-align: left; }
    .infographic-wrapper .column-right .card-header { flex-direction: row; }
    .infographic-wrapper .card-content { max-height: 200px; opacity: 1; margin-top: 5px; }
}