/* Core variables matching the reference image */
:root {
    --red-main: #ce1219;
    --red-dark: #8c0004;
    --gold-main: #fce28b;
    --gold-light: #fef0b8;
    --gold-dark: #b68d27;
    --text-white: #ffffff;
    --text-dark: #333333;
    
    --font-main: 'Roboto Condensed', sans-serif;
    --font-heading: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--red-main);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   HEADER NAV
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0; /* Removed padding */
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.header.sticky {
    background: rgba(140, 0, 4, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    height: 70px; /* Fixed height for the header content */
}

.nav-logo {
    position: absolute;
    left: 0;
    top: 0;
    height: 70px; 
    width: 70px;
    object-fit: contain;
    background: #fff;
    padding: 10px; /* Breathing room inside the square */
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-main);
}

.nav-link.nav-btn-share {
    background: linear-gradient(180deg, #fff2c4 0%, #fbd158 100%);
    color: var(--red-dark);
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-link.nav-btn-share:hover {
    box-shadow: 0 0 15px rgba(252, 226, 139, 0.5);
    transform: translateY(-2px);
    color: var(--red-dark);
}

/* =========================================
   FIREWORKS
========================================= */
.fireworks {
    position: absolute;
    z-index: 2; /* Below hero content but above bg */
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0.8;
    max-width: 100vw;
    overflow: hidden;
}

.fw-1 { top: 10%; left: 5%; width: 400px; max-width: 80%; }
.fw-2 { top: 30%; right: 5%; width: 500px; max-width: 90%; }
.fw-3 { top: 60%; left: 10%; width: 450px; max-width: 85%; }

/* =========================================
   SECTION 1: HERO
========================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Exactly viewport height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Gradient moved to overlay */
    padding-top: 100px;
    padding-bottom: 120px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/imgA1.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Linear gradient top to bottom */
    background: linear-gradient(to bottom, rgba(140,0,4,0.3) 0%, rgba(206,18,25,0.95) 100%);
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    z-index: 10;
    padding: 0 20px;
}

.hero-columns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: -30px;
}

.hero-left-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right-content {
    flex: 1.5; /* Increased flex to give text more space */
    text-align: left;
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--gold-main);
    font-size: 32px; /* Reduced to fit on one line */
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
    white-space: nowrap; /* Force one line */
}

.hero-title-small {
    font-size: 20px; /* Adjusted proportionally */
    color: var(--text-white);
    font-weight: 700;
    white-space: normal; /* Allow subtitle to wrap */
}

.hero-logo-large {
    max-width: 500px;
    width: 100%;
    /* Exact CSS filter for #fce28b, without drop-shadow */
    filter: brightness(0) invert(85%) sepia(31%) saturate(543%) hue-rotate(334deg) brightness(101%) contrast(100%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Countdown */
.countdown-container {
    position: relative;
    display: inline-block;
    cursor: default;
}

.countdown-wrapper {
    display: flex;
    gap: 20px;
}

.countdown-item {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(252, 226, 139, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    width: 85px;
    height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.countdown-item span:first-child {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 900;
    color: var(--gold-main);
    line-height: 1;
}

.cd-label {
    font-size: 14px;
    color: #fff;
    text-transform: lowercase;
    margin-top: 5px;
    font-weight: 500;
}

/* Bottom Nav Bar */
.hero-bottom-nav {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px;
    padding: 10px 15px;
    gap: 10px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hb-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s;
    text-transform: uppercase;
    white-space: nowrap;
}

.hb-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--gold-main);
}

.hb-nav-link.hb-highlight {
    background: linear-gradient(180deg, #fff2c4 0%, #fbd158 100%);
    color: var(--red-dark);
    font-weight: 700;
}

.hb-nav-link.hb-highlight:hover {
    box-shadow: 0 0 15px rgba(252, 226, 139, 0.5);
    transform: translateY(-2px);
}

/* Scroll Down Icon */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-main);
    font-size: 40px; /* Made bigger */
    z-index: 100;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* =========================================
   SECTION HEADINGS
========================================= */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* For the marquee timeline */
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 900;
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold-main);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(252, 226, 139, 0.5);
}

.section-title-wrapper.dark .section-title {
    color: var(--red-main);
    text-shadow: none;
}

.section-title-wrapper.dark .section-title::after {
    background: var(--red-main);
    box-shadow: none;
}

/* =========================================
   SECTION 2: TỰ HÀO VƯƠN XA (Beige bg)
========================================= */
.tu-hao-section {
    background: #fdf5d3;
}

.tu-hao-layout {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tu-hao-left {
    flex: 1;
    display: flex;
    justify-content: center;
    border-right: 2px dashed rgba(206, 18, 25, 0.3);
    padding-right: 30px;
}

.tu-hao-right {
    flex: 2;
    padding-left: 30px;
}

.hero-medals {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    gap: 30px;
    align-items: center;
}

.hero-medal-img {
    height: 220px;
    width: auto;
    filter: none; /* No default glow */
    transition: transform 0.3s, filter 0.3s;
    cursor: pointer;
}

.hero-medal-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.hero-stats {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.stat-item {
    background: linear-gradient(135deg, var(--red-main) 0%, var(--red-dark) 100%);
    border: 1px solid rgba(252, 226, 139, 0.3);
    border-radius: 20px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(186, 32, 46, 0.2);
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle inner glow */
.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    color: var(--gold-main);
    line-height: 1;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(252, 226, 139, 0.4);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 15px;
    color: #fdf5d3;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.stat-divider {
    display: none;
}

/* =========================================
   SECTION 3: LỊCH SỬ (Red bg)
========================================= */
.lich-su-section {
    background: url('https://www.transparenttextures.com/patterns/stardust.png'), linear-gradient(135deg, #e61b23 0%, #a40000 100%);
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Marquee Timeline */
.marquee-timeline-container {
    width: 100vw; /* full width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ht-item {
    position: relative;
    width: 400px; /* Fixed width for each item */
    margin: 0 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(252, 226, 139, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.ht-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(252, 226, 139, 0.5);
    transform: translateY(-10px);
}

.ht-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ht-dot {
    display: none;
}

.ht-year {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--gold-main);
    margin-bottom: 10px;
}

.ht-title {
    font-size: 18px;
    color: var(--gold-main);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.ht-desc {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}

/* =========================================
   SECTION 4: BẢN ĐỒ LỜI CHÚC (Beige bg)
========================================= */
.ban-do-section {
    background: #fdf5d3;
}

.wish-layout {
    display: flex;
    gap: 30px;
    height: 600px;
}

.map-area {
    flex: 2;
    background: rgba(206, 18, 25, 0.05);
    border-radius: 20px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.map-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    z-index: 10;
}

.map-filters select {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--red-main);
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
}

.map-filters select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.75;
}

.map-visual {
    flex: 1;
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(206, 18, 25, 0.15);
    background: #fdf5d3;
}

#real-map-container {
    width: 100%;
    height: 100%;
    min-height: 480px;
    z-index: 1;
}

/* Custom pulsing marker pin on Leaflet */
.leaflet-custom-marker {
    background: transparent !important;
    border: none !important;
}

.pulse-pin {
    width: 22px;
    height: 22px;
    background: var(--red-main);
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(206, 18, 25, 0.6);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pulse-pin.size-large {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #e61b23 0%, #a40000 100%);
    box-shadow: 0 4px 15px rgba(206, 18, 25, 0.8);
}

.pulse-pin.size-medium {
    width: 24px;
    height: 24px;
    background: #ce1219;
}

.pulse-pin.size-small {
    width: 18px;
    height: 18px;
    background: #e61b23;
}

.pulse-pin .pin-count {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.pulse-pin::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: rgba(206, 18, 25, 0.35);
    animation: marker-pulse 2s infinite ease-out;
    pointer-events: none;
}

.pulse-pin:hover {
    transform: scale(1.35);
    z-index: 999;
}

@keyframes marker-pulse {
    0% { transform: scale(0.85); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Leaflet & MapVina Popups */
.leaflet-popup-content-wrapper,
.mapvinagl-popup-content {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    padding: 12px 16px !important;
    border: 1px solid rgba(206, 18, 25, 0.15) !important;
    font-family: var(--font-main), 'Roboto', sans-serif !important;
    line-height: 1.4 !important;
    max-width: 280px;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.mapvinagl-popup {
    z-index: 1000;
}

.mapvinagl-popup-anchor-top .mapvinagl-popup-tip {
    border-bottom-color: #ffffff !important;
}

.mapvinagl-popup-anchor-bottom .mapvinagl-popup-tip {
    border-top-color: #ffffff !important;
}

.mapvinagl-popup-anchor-left .mapvinagl-popup-tip {
    border-right-color: #ffffff !important;
}

.mapvinagl-popup-anchor-right .mapvinagl-popup-tip {
    border-left-color: #ffffff !important;
}

.mapvinagl-ctrl-group {
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(206, 18, 25, 0.15) !important;
}

.mapvinagl-ctrl-group button {
    width: 32px !important;
    height: 32px !important;
}

.map-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.map-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--red-main);
}

.map-popup-badge {
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.map-popup-author {
    font-size: 12.5px;
    color: #444;
    margin-bottom: 4px;
    font-weight: 600;
}

.map-popup-quote {
    font-size: 12px;
    color: #666;
    font-style: italic;
    line-height: 1.4;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating CTA button */
.map-cta {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 14px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ce1219 0%, #9e0004 100%);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.map-cta:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 25px rgba(206, 18, 25, 0.5);
    background: linear-gradient(135deg, #e0161e 0%, #b30005 100%);
}

.feed-area {
    flex: 1;
    background: rgba(206, 18, 25, 0.05);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.feed-title {
    color: var(--red-main);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 20px;
}

.feed-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.feed-track {
    animation: marquee-vertical 15s linear infinite;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-vertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.feed-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

.feed-item::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 40px;
    color: rgba(186, 32, 46, 0.05);
    z-index: 0;
}

.fi-author, .fi-location, .fi-meta-group, .fi-content, .read-more-btn {
    position: relative;
    z-index: 1;
}

.fi-author {
    color: var(--red-dark);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 16px;
}

.fi-location {
    font-weight: 400;
    font-size: 13px;
    color: #888;
}

.fi-meta-group {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fi-content {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-btn {
    margin-top: 8px;
    color: var(--red-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
}
.read-more-btn:hover {
    text-decoration: underline;
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; 
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border: none;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.close-modal:hover {
    color: var(--red-main);
    background: #ffebeb;
}

.modal-content h3 {
    color: var(--red-main);
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    color: #333;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 15px;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red-main);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(186, 32, 46, 0.1);
}

.form-group select option {
    background: #ffffff;
    color: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.pre-footer-img {
    width: 100%;
    height: 400px;
    background-image: 
        linear-gradient(to bottom, #fdf5d3 0%, rgba(253, 245, 211, 0) 100%),
        url('assets/imgA12.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.footer {
    background: var(--red-dark);
    padding: 20px 0;
    text-align: center;
    color: var(--gold-main);
    font-size: 14px;
}

.location-box {
    background: rgba(206, 18, 25, 0.05);
    border: 1px solid rgba(206, 18, 25, 0.12);
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--red-main);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   WISH FORM - IMAGE UPLOAD ZONE & PREVIEW
========================================= */
.upload-group {
    margin-bottom: 16px;
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-align: left;
}

.upload-label i {
    color: var(--red-main);
}

.optional-tag {
    font-weight: 400;
    color: #888;
    font-size: 12px;
}

.image-upload-box {
    position: relative;
    border: 2px dashed #d6d9e0;
    background: #fafafa;
    border-radius: 12px;
    transition: all 0.25s ease;
    overflow: hidden;
}

.image-upload-box:hover {
    border-color: var(--red-main);
    background: #fff8f8;
}

.image-upload-box.has-file {
    border: 1.5px solid #16a34a;
    background: #f0fdf4;
}

.image-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.image-upload-box.has-file input[type="file"] {
    display: none;
}

/* Trạng thái chưa chọn ảnh */
.upload-idle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.upload-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(206, 18, 25, 0.08);
    color: var(--red-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.image-upload-box:hover .upload-icon {
    transform: translateY(-2px) scale(1.05);
}

.upload-prompt {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.prompt-main {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
}

.prompt-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Trạng thái đã chọn ảnh (Preview) */
.upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    position: relative;
    z-index: 3;
}

.preview-img-container {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.preview-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-details {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
}

.preview-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.preview-size {
    font-size: 11px;
    color: #6b7280;
}

.btn-clear-img {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-clear-img:hover {
    background: #fca5a5;
    color: #991b1b;
}

/* =========================================
   WISH SUBMIT BUTTON - PREMIUM RED GRADIENT
========================================= */
.wish-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ce1219 0%, #9e0004 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-heading), 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(206, 18, 25, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
}

.wish-submit-btn:hover {
    background: linear-gradient(135deg, #e0161e 0%, #b30005 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(206, 18, 25, 0.4);
}

.wish-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(206, 18, 25, 0.25);
}

.wish-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =========================================
   SECTION 5: Ô CỬA THỜI GIAN
========================================= */
.o-cua-section {
    background: url('https://www.transparenttextures.com/patterns/stardust.png'), linear-gradient(135deg, #e61b23 0%, #a40000 100%);
}

.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.masonry-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(140, 0, 4, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.masonry-overlay span {
    color: var(--gold-main);
    font-size: 18px;
    font-weight: bold;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.masonry-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-item:hover .masonry-overlay span {
    transform: translateY(0);
}

/* Artifact Modal */
.artifact-content {
    max-width: 900px;
    width: 90%;
    background: #fff;
    border: none;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-artifact {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.artifact-layout {
    display: flex;
}

.artifact-img-box {
    flex: 1;
    background: #000;
}

.artifact-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artifact-info {
    flex: 1;
    padding: 40px;
    background: #fdf5d3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark-title {
    color: var(--red-main) !important;
    font-size: 28px !important;
    text-align: left !important;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

#artifact-desc {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
}

/* =========================================
   SECTION 6: NHỊP ĐẬP 70 NĂM (Beige bg)
========================================= */
.nhip-dap-section {
    background: #fdf5d3;
}

.nhip-dap-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.nd-video-box {
    flex: 2;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}

.nd-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nd-video-box:hover .nd-thumbnail {
    opacity: 0.6;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(252, 226, 139, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-main);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(252, 226, 139, 0.6);
    transition: transform 0.3s, box-shadow 0.3s;
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(252, 226, 139, 1);
}

.live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff0000;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    animation: blink 2s infinite;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.nd-news-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.news-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.news-card:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-card img {
    width: 150px; /* Made slightly wider for better 16:9 look */
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    flex-shrink: 0; /* Prevent flexbox from shrinking the image */
}

.news-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--red-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-date {
    font-size: 13px;
    color: var(--red-main);
}

.view-more-news {
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--red-main);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s;
}

.view-more-news:hover {
    background: var(--red-dark);
}

/* =========================================
   SECTION 7: THỬ THÁCH (Red bg)
========================================= */
.thu-thach-section {
    background: url('https://www.transparenttextures.com/patterns/stardust.png'), linear-gradient(135deg, #e61b23 0%, #a40000 100%);
}

.games-layout {
    display: flex;
    gap: 30px;
}

.game-card {
    flex: 1;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.game-flappy {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.game-run {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.game-puzzle {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.game-icon {
    font-size: 50px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-card p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.game-play-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #333;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-flappy .game-play-btn { color: #00f2fe; }
.game-run .game-play-btn { color: #f5576c; }
.game-puzzle .game-play-btn { color: #38f9d7; }

/* =========================================
   SECTION 8: ĐƠN VỊ ĐỒNG HÀNH
========================================= */
.dong-hanh-section {
    background: #fdf5d3;
}

.tier-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tier-title.diamond { color: #0088a9; }
.tier-title.gold { color: #b8860b; }

.sponsor-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
    position: relative;
    /* Optional: Fading effect for light background */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.sponsor-track {
    display: flex;
    gap: 40px;
    width: max-content;
    padding: 10px 0;
}

.track-slow { animation: marquee-horizontal 30s linear infinite; }
.track-fast { animation: marquee-horizontal 20s linear infinite; }

@keyframes marquee-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sponsor-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.diamond-logo { width: 300px; height: 150px; font-size: 20px; border: 2px solid #0088a9; color: #0088a9; }
.gold-logo { width: 220px; height: 120px; border: 2px solid #b8860b; color: #b8860b; }
.silver-logo { width: 220px; height: 120px; border: 2px solid #999; color: #999; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .tu-hao-layout {
        flex-direction: column;
    }
    .tu-hao-left {
        border-right: none;
        border-bottom: 2px dashed rgba(252, 226, 139, 0.4);
        padding-right: 0;
        padding-bottom: 30px;
    }
    .tu-hao-right {
        padding-left: 0;
    }
    .hero-stats {
        flex-direction: column;
    }
    .hero-medals {
        flex-direction: row;
    }
    .horizontal-timeline {
        flex-direction: column;
        gap: 40px;
    }
    .ht-line {
        top: 0; bottom: 0;
        left: 50%; width: 4px; height: auto;
        margin-left: -2px;
    }
    .ht-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-columns {
        flex-direction: column;
        margin-top: 0;
    }
    .hero-right-content {
        text-align: center;
    }
    .countdown-wrapper {
        justify-content: center;
    }
    .hero-logo-large {
        max-width: 300px;
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-title-small {
        font-size: 16px;
    }
    .hero-bottom-nav {
        display: none;
    }
    .wish-layout {
        flex-direction: column;
        height: auto;
    }
    .map-area {
        height: 400px;
        margin-bottom: 30px;
    }
    .feed-area {
        height: 500px;
    }
    .masonry-gallery {
        column-count: 2;
    }
    .artifact-layout {
        flex-direction: column;
    }
    .artifact-img-box {
        height: 300px;
    }
    .artifact-info {
        padding: 20px;
    }
    .nhip-dap-layout {
        flex-direction: column;
    }
    .nd-video-box {
        height: 400px;
        margin-bottom: 30px;
    }
    .games-layout {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}
@media (min-width: 769px) {
    .mobile-break {
        display: none;
    }
    .hamburger-btn {
        display: none;
    }
    .nav-menu {
        display: flex;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 992px) {
    .header {
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding-top: 10px;
    }
    .header.sticky {
        padding-top: 0;
    }
    .nav {
        justify-content: space-between;
        padding: 0 15px;
    }
    .nav-logo {
        position: relative;
        left: 0;
        opacity: 0; /* Hidden on hero transparent header */
        transition: opacity 0.3s;
    }
    .header.sticky .nav-logo {
        opacity: 1; /* Visible when sticky */
    }
    .hamburger-btn {
        display: block;
        background: rgba(0,0,0,0.3);
        border: none;
        color: var(--gold-main);
        font-size: 24px;
        cursor: pointer;
        z-index: 100;
        padding: 10px 15px;
        border-radius: 5px;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(186, 32, 46, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        padding-top: 80px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-menu.open {
        right: 0;
    }
    .nav-link {
        font-size: 16px;
        padding: 10px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 32px;
    }
    .masonry-gallery {
        column-count: 2;
        column-gap: 10px;
    }
    .pre-footer-img {
        height: 250px;
    }
    .countdown-wrapper {
        gap: 10px;
    }
    .countdown-item {
        width: 70px;
        height: 80px;
    }
    .countdown-item span:first-child {
        font-size: 28px;
    }
    .cd-label {
        font-size: 12px;
    }
}

/* ================= SUBMISSION DETAIL MODAL (XEM CHI TIẾT CẢM XÚC) ================= */
.sub-detail-modal-content {
    max-width: 580px !important;
    width: 92% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    padding: 30px 28px !important;
    background: #ffffff !important;
    border: 1px solid rgba(206, 18, 25, 0.15) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
    position: relative;
    box-sizing: border-box;
}

.sub-detail-modal-content .close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
}

.sub-detail-modal-content .close-modal:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.sub-detail-body {
    display: flex;
    flex-direction: column;
}

/* 1. Hình ảnh (nếu có) */
.sub-detail-img-wrap {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 20px;
    background: #f8f8f8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sub-detail-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* 2. Fullname */
.sub-detail-fullname {
    font-size: 23px !important;
    font-weight: 700 !important;
    color: var(--red-main, #ce1219) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: none !important;
}

/* 3. raw_location */
.sub-detail-location-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    color: #555555;
    font-weight: 500;
    margin-bottom: 14px;
}

.sub-detail-location-wrap i {
    color: var(--red-main, #ce1219);
    font-size: 14px;
}

/* 4 & 5. wish_type + start year - end year */
.sub-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.sub-badge.badge-type {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid rgba(206, 18, 25, 0.18);
}

.sub-badge.badge-unit {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.sub-badge.badge-years {
    background: #fdf5d3;
    color: #854d0e;
    border: 1px solid rgba(202, 138, 4, 0.3);
}

/* Divider */
.sub-detail-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(206, 18, 25, 0.25), rgba(212, 175, 55, 0.4), transparent);
    margin-bottom: 18px;
}

/* 6. Content */
.sub-detail-content-box {
    position: relative;
    background: #fffcf5;
    border-left: 4px solid var(--red-main, #ce1219);
    padding: 16px 20px 16px 22px;
    border-radius: 0 12px 12px 0;
    border-top: 1px solid #faeed1;
    border-right: 1px solid #faeed1;
    border-bottom: 1px solid #faeed1;
}

.sub-quote-mark {
    color: rgba(206, 18, 25, 0.2);
    font-size: 22px;
    margin-bottom: 6px;
    display: block;
}

.sub-detail-content {
    font-size: 15.5px !important;
    line-height: 1.75 !important;
    color: #2c3e50 !important;
    font-style: italic !important;
    white-space: pre-wrap !important;
    margin: 0 !important;
}
