/* =========================================================
   style.css
   Website bài thi: 80 năm Bộ đội Pháo binh – Tên lửa
   Tone: Đỏ lịch sử · Vàng thời gian · Hiện đại
========================================================= */

/* ================= ROOT ================= */
:root {
    --red-dark: #6f0505;
    --red-main: #b51212;
    --red-bright: #d71920;
    --red-soft: #fff1ed;

    --gold-dark: #a66b00;
    --gold-main: #f4b321;
    --gold-light: #ffe49a;
    --gold-pale: #fff8dc;

    --brown-time: #6b3f18;
    --cream: #fff7e8;
    --cream-2: #fffdf5;

    --text-main: #2b160b;
    --text-soft: #6a4a32;
    --text-muted: #90745c;

    --white: #ffffff;
    --black: #080403;

    --shadow-red: 0 22px 55px rgba(111, 5, 5, 0.22);
    --shadow-gold: 0 18px 42px rgba(244, 179, 33, 0.28);
    --shadow-soft: 0 16px 36px rgba(90, 48, 19, 0.12);

    --nav-h: 72px;
    --mob-nav-h: 68px;

    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
}

/* ================= RESET ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--text-main);
    background:
        linear-gradient(
            rgba(255, 247, 232, 0.90),
            rgba(255, 253, 245, 0.96)
        ),
        url("../images/bg-pc.png") center top / cover fixed no-repeat;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* ================= NAV DESKTOP ================= */
.nav-top {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    background:
        linear-gradient(
            90deg,
            rgba(99, 5, 5, 0.94),
            rgba(143, 10, 10, 0.92),
            rgba(93, 5, 5, 0.94)
        );
    backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(255, 228, 154, 0.7);
    box-shadow: 0 12px 36px rgba(70, 0, 0, 0.26);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.nav-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.nav-logo strong {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 1.08rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--gold-light);
    white-space: nowrap;
}

.nav-logo span {
    display: block;
    color: rgba(255, 248, 220, 0.82);
    font-size: 0.72rem;
    margin-top: 4px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: rgba(255, 248, 220, 0.88);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    padding: 11px 20px;
    border-radius: 999px;
    transition: 0.24s ease;
    overflow: hidden;
}

.nav-links a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    opacity: 0;
    transition: 0.24s ease;
    z-index: -1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red-dark);
    box-shadow: 0 10px 26px rgba(244, 179, 33, 0.24);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

/* ================= NAV MOBILE ================= */
.nav-bottom {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 950;
    height: var(--mob-nav-h);
    background:
        linear-gradient(
            135deg,
            rgba(105, 5, 5, 0.94),
            rgba(165, 15, 15, 0.92)
        );
    border: 1.5px solid rgba(255, 228, 154, 0.66);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(90, 0, 0, 0.34);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.nav-bottom a {
    flex: 1;
    text-decoration: none;
    color: rgba(255, 248, 220, 0.78);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    transition: 0.22s ease;
}

.nav-bottom a span {
    font-size: 1.25rem;
    line-height: 1;
}

.nav-bottom a:hover,
.nav-bottom a.active {
    color: var(--red-dark);
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
}

/* ================= HERO ================= */
.hero {
    position: relative;
    width: 100%;
    line-height: 0;
    background: var(--red-dark);
    overflow: hidden;
}

.hero picture,
.hero img {
    width: 100%;
}

.hero img {
    min-height: calc(100vh - var(--nav-h));
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 228, 154, 0.28), transparent 30%),
        linear-gradient(to bottom, rgba(40, 0, 0, 0.08), rgba(40, 0, 0, 0.34)),
        linear-gradient(to right, rgba(82, 0, 0, 0.46), transparent 45%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 150px;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255, 247, 232, 0.74) 58%,
            var(--cream) 100%
        );
}

.hero-floating-card {
    position: absolute;
    left: clamp(22px, 5vw, 78px);
    bottom: clamp(78px, 12vh, 150px);
    z-index: 5;
    width: min(560px, calc(100% - 44px));
    padding: 30px 34px;
    border-radius: 32px;
    background:
        linear-gradient(
            135deg,
            rgba(105, 5, 5, 0.88),
            rgba(165, 18, 18, 0.74)
        );
    border: 1.5px solid rgba(255, 228, 154, 0.62);
    box-shadow: 0 26px 60px rgba(80, 0, 0, 0.34);
    backdrop-filter: blur(12px);
    line-height: 1.2;
}

.hero-floating-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 228, 154, 0.28);
    pointer-events: none;
}

.hero-mini-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-mini-label::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--gold-main);
}

.hero-floating-card h1 {
    font-family: "Oswald", sans-serif;
    color: var(--gold-light);
    font-size: clamp(2.25rem, 5.4vw, 5rem);
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.hero-floating-card p {
    color: rgba(255, 248, 220, 0.9);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-top: 18px;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 8;
    transform: translateX(-50%);
    color: var(--red-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: scrollHint 2.2s infinite;
    line-height: 1;
}

.scroll-hint span {
    color: var(--red-dark);
    background: rgba(255, 248, 220, 0.86);
    border: 1px solid rgba(244, 179, 33, 0.48);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    box-shadow: 0 10px 28px rgba(80, 0, 0, 0.14);
}

@keyframes scrollHint {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ================= MAIN CONTENT ================= */
.content {
    position: relative;
    z-index: 2;
    background:
        radial-gradient(circle at 8% 5%, rgba(215, 25, 32, 0.10), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(244, 179, 33, 0.20), transparent 32%),
        linear-gradient(to bottom, var(--cream), var(--cream-2));
}

.time-divider {
    width: min(1100px, calc(100% - 36px));
    height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    color: var(--red-main);
    font-family: "Oswald", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.time-divider i {
    height: 4px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            var(--red-main),
            var(--gold-main),
            var(--red-main)
        );
    box-shadow: 0 0 18px rgba(244, 179, 33, 0.38);
}

/* ================= SECTIONS ================= */
.section {
    width: min(1160px, calc(100% - 42px));
    margin: 0 auto;
    padding: 78px 0;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red-main);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-kicker::before {
    content: "";
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red-main), var(--gold-main));
}

.section-title {
    font-family: "Oswald", sans-serif;
    color: var(--text-main);
    font-size: clamp(2.05rem, 4.6vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.section-title em {
    color: var(--red-main);
    font-style: normal;
    background: linear-gradient(90deg, var(--red-main), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-deco {
    width: 92px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red-main), var(--gold-main));
    margin: 22px 0 26px;
}

.title-deco.center {
    margin-left: auto;
    margin-right: auto;
}

.section-body {
    max-width: 880px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 16px;
}

.section-body strong {
    color: var(--red-main);
}

.center-title {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 44px;
}

.center-title .section-kicker {
    justify-content: center;
}

.center-title .section-kicker::before {
    display: none;
}

/* ================= BUTTONS ================= */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-actions.center {
    justify-content: center;
}

.btn-primary,
.btn-outline,
.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: 0.24s ease;
}

.btn-primary {
    min-height: 50px;
    padding: 14px 30px;
    color: var(--red-dark);
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(244, 179, 33, 0.36);
}

.btn-outline {
    min-height: 50px;
    padding: 14px 30px;
    color: var(--red-main);
    background: rgba(255, 255, 255, 0.58);
    border: 1.5px solid rgba(181, 18, 18, 0.22);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--red-main);
    border-color: var(--red-main);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}

.btn-outline.light {
    color: var(--gold-light);
    border-color: rgba(255, 228, 154, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline.light:hover {
    color: var(--red-dark);
    background: var(--gold-light);
}

.btn-mini {
    min-height: 42px;
    padding: 12px 22px;
    color: var(--red-dark);
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light));
    font-size: 0.78rem;
    box-shadow: 0 12px 28px rgba(244, 179, 33, 0.25);
}

.btn-mini:hover {
    transform: translateY(-3px);
}

/* ================= INTRO ================= */
.intro-section {
    padding-top: 66px;
}

/* ================= STATS ================= */
.stats-section {
    padding-top: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.stat-card {
    position: relative;
    min-height: 245px;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 220, 0.74));
    border: 1px solid rgba(181, 18, 18, 0.12);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: 0.28s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    right: -45px;
    top: -45px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: rgba(215, 25, 32, 0.08);
}

.stat-card::after {
    content: "★";
    position: absolute;
    right: 22px;
    bottom: 12px;
    color: rgba(244, 179, 33, 0.22);
    font-size: 4.5rem;
    line-height: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(181, 18, 18, 0.24);
    box-shadow: var(--shadow-red);
}

.stat-num {
    display: block;
    font-family: "Oswald", sans-serif;
    color: var(--red-main);
    font-size: 3.1rem;
    line-height: 1;
    font-weight: 800;
}

.stat-label {
    display: block;
    margin-top: 12px;
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card p {
    position: relative;
    z-index: 1;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.72;
    margin-top: 12px;
}

/* ================= FEATURE ================= */
.feature-section {
    padding-top: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 52px;
    align-items: center;
}

.feature-visual {
    position: relative;
}

.image-frame {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 228, 154, 0.36), transparent 32%),
        linear-gradient(135deg, var(--red-dark), var(--red-main));
    border: 1.5px solid rgba(244, 179, 33, 0.42);
    box-shadow: var(--shadow-red);
}

.image-frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 26px;
    border: 1px solid rgba(255, 228, 154, 0.34);
    z-index: 2;
    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.image-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(90, 0, 0, 0.40),
            transparent 55%
        );
    z-index: 1;
    pointer-events: none;
}

.image-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--gold-light);
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
}

.image-fallback span {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
}

.image-fallback strong {
    display: block;
    font-size: 3.4rem;
    line-height: 1;
}

/* ================= TIMELINE ================= */
.timeline-section {
    padding-top: 82px;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 980px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 118px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background:
        linear-gradient(
            to bottom,
            var(--red-main),
            var(--gold-main),
            var(--red-main)
        );
    opacity: 0.72;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 28px;
    align-items: stretch;
}

.timeline-year {
    position: relative;
    z-index: 2;
    align-self: start;
    width: 116px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--red-main), var(--red-dark));
    color: var(--gold-light);
    font-family: "Oswald", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-red);
    border: 1px solid rgba(255, 228, 154, 0.35);
}

.timeline-card {
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 220, 0.78));
    border: 1px solid rgba(181, 18, 18, 0.12);
    box-shadow: var(--shadow-soft);
    transition: 0.26s ease;
}

.timeline-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-red);
}

.timeline-card h3 {
    font-family: "Oswald", sans-serif;
    color: var(--red-main);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.timeline-card p {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.78;
}

/* ================= MOTTO ================= */
.motto-section {
    padding-top: 54px;
    padding-bottom: 54px;
}

.motto-box {
    position: relative;
    padding: 64px 58px;
    border-radius: 40px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 228, 154, 0.28), transparent 34%),
        linear-gradient(135deg, var(--red-dark), var(--red-main));
    color: var(--white);
    box-shadow: 0 26px 70px rgba(90, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 228, 154, 0.48);
}

.motto-box::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 228, 154, 0.28);
    pointer-events: none;
}

.motto-box::after {
    content: "1946";
    position: absolute;
    right: -10px;
    bottom: -35px;
    color: rgba(255, 228, 154, 0.08);
    font-family: "Oswald", sans-serif;
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
}

.motto-small {
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.motto-box h2 {
    position: relative;
    z-index: 1;
    font-family: "Oswald", sans-serif;
    color: var(--gold-light);
    font-size: clamp(2rem, 5.4vw, 5rem);
    line-height: 1.04;
    text-transform: uppercase;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
}

.motto-box p {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 26px auto 0;
    color: rgba(255, 248, 220, 0.88);
    font-size: 1rem;
    line-height: 1.85;
}

/* ================= CONTENT MAP ================= */
.content-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.map-card {
    position: relative;
    padding: 30px 26px;
    min-height: 310px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 220, 0.74));
    border: 1px solid rgba(181, 18, 18, 0.12);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: 0.26s ease;
}

.map-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-red);
}

.map-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--red-main), var(--red-dark));
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Oswald", sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 16px 32px rgba(181, 18, 18, 0.22);
}

.map-card h3 {
    font-family: "Oswald", sans-serif;
    color: var(--red-main);
    font-size: 1.32rem;
    line-height: 1.25;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.map-card p {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.76;
}

/* ================= QUOTE ================= */
.quote-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

.quote-card {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 56px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 220, 0.82));
    border: 1px solid rgba(244, 179, 33, 0.36);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.quote-mark {
    position: absolute;
    left: 28px;
    top: 8px;
    color: rgba(215, 25, 32, 0.16);
    font-family: "Playfair Display", serif;
    font-size: 8rem;
    line-height: 1;
}

.quote-card p {
    position: relative;
    z-index: 1;
    color: var(--text-main);
    font-size: clamp(1.15rem, 2.3vw, 1.75rem);
    line-height: 1.58;
    font-weight: 700;
}

.quote-card span {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 22px;
    color: var(--red-main);
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ================= GALLERY PREVIEW ================= */
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: repeat(2, 240px);
    gap: 22px;
}

.preview-img {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--red-dark), var(--red-main));
    border: 1.5px solid rgba(244, 179, 33, 0.35);
    box-shadow: var(--shadow-soft);
}

.preview-img.big {
    grid-row: span 2;
}

.preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.preview-img:hover img {
    transform: scale(1.06);
}

.preview-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(90, 0, 0, 0.28),
            transparent 55%
        );
}

.preview-img.no-img::before {
    content: "HÌNH ẢNH TƯ LIỆU";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    font-family: "Oswald", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    z-index: 2;
    text-align: center;
}

/* ================= CTA FINAL ================= */
.cta-final {
    position: relative;
    width: min(1160px, calc(100% - 42px));
    margin: 50px auto 0;
    padding: 76px 30px;
    border-radius: 42px 42px 0 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 228, 154, 0.32), transparent 32%),
        linear-gradient(135deg, var(--red-dark), var(--red-main));
    box-shadow: 0 28px 70px rgba(90, 0, 0, 0.34);
    border: 1.5px solid rgba(255, 228, 154, 0.42);
    text-align: center;
    color: var(--white);
}

.cta-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    right: -130px;
    top: -150px;
    border-radius: 999px;
    background: rgba(244, 179, 33, 0.26);
    filter: blur(10px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
}

.cta-content .section-kicker {
    color: var(--gold-light);
    justify-content: center;
}

.cta-content .section-kicker::before {
    display: none;
}

.cta-content h2 {
    font-family: "Oswald", sans-serif;
    color: var(--gold-light);
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.05;
    text-transform: uppercase;
}

.cta-content p {
    max-width: 700px;
    margin: 20px auto 0;
    color: rgba(255, 248, 220, 0.88);
    font-size: 1rem;
    line-height: 1.78;
}

/* ================= FOOTER ================= */
.footer {
    background:
        linear-gradient(
            90deg,
            var(--red-dark),
            #8f0909,
            var(--red-dark)
        );
    color: rgba(255, 248, 220, 0.82);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid rgba(255, 228, 154, 0.5);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.footer strong {
    display: block;
    color: var(--gold-light);
    font-family: "Oswald", sans-serif;
    font-size: 1.12rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer span {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
}

.footer p {
    margin-top: 10px;
    color: rgba(255, 248, 220, 0.62);
    font-size: 0.78rem;
}

/* ================= REVEAL ANIMATION ================= */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition:
        opacity 0.78s ease,
        transform 0.78s ease;
}

.reveal {
    transform: translateY(34px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ================= RESPONSIVE TABLET ================= */
@media (max-width: 1100px) {
    .nav-top {
        padding: 0 24px;
    }

    .nav-logo span {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        max-width: 680px;
        width: 100%;
        margin: 0 auto;
    }

    .content-map {
        grid-template-columns: 1fr;
    }

    .map-card {
        min-height: auto;
    }
}

/* ================= RESPONSIVE MOBILE ================= */
@media (max-width: 768px) {
    body {
        background:
            linear-gradient(
                rgba(255, 247, 232, 0.90),
                rgba(255, 253, 245, 0.96)
            ),
            url("../images/bg-mobile.png") center top / cover scroll no-repeat;
        padding-bottom: calc(var(--mob-nav-h) + 24px);
    }

    .nav-top {
        display: none;
    }

    .nav-bottom {
        display: flex;
    }

    .hero img {
        min-height: auto;
        object-fit: contain;
    }

    .hero-shade {
        background:
            linear-gradient(to bottom, rgba(60, 0, 0, 0.04), rgba(60, 0, 0, 0.30));
    }

    .hero::after {
        height: 90px;
    }

    .hero-floating-card {
        position: relative;
        left: auto;
        bottom: auto;
        width: calc(100% - 26px);
        margin: -42px auto 0;
        padding: 24px 22px;
        border-radius: 26px;
    }

    .hero-floating-card h1 {
        font-size: clamp(2rem, 12vw, 3.4rem);
    }

    .hero-floating-card p {
        font-size: 0.88rem;
    }

    .scroll-hint {
        display: none;
    }

    .time-divider {
        height: 64px;
        width: calc(100% - 28px);
        font-size: 1.05rem;
        gap: 12px;
    }

    .section {
        width: calc(100% - 28px);
        padding: 54px 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 9vw, 2.7rem);
    }

    .section-body {
        font-size: 0.94rem;
        line-height: 1.8;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        min-height: auto;
        padding: 24px 22px;
    }

    .feature-grid {
        gap: 30px;
    }

    .image-frame,
    .image-frame img {
        min-height: 300px;
    }

    .timeline::before {
        left: 28px;
    }

    .timeline-item {
        grid-template-columns: 64px 1fr;
        gap: 14px;
    }

    .timeline-year {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 0.92rem;
    }

    .timeline-card {
        padding: 22px 20px;
        border-radius: 22px;
    }

    .timeline-card h3 {
        font-size: 1.12rem;
    }

    .motto-box {
        padding: 44px 22px;
        border-radius: 30px;
    }

    .motto-box h2 {
        font-size: clamp(1.8rem, 10vw, 3.1rem);
    }

    .motto-box p {
        font-size: 0.92rem;
    }

    .content-map {
        gap: 16px;
    }

    .map-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .quote-card {
        padding: 42px 24px;
        border-radius: 26px;
    }

    .quote-mark {
        left: 18px;
        top: 4px;
        font-size: 6rem;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .preview-img,
    .preview-img.big {
        height: 230px;
        grid-row: auto;
    }

    .cta-final {
        width: calc(100% - 28px);
        padding: 56px 20px;
        border-radius: 32px 32px 0 0;
    }

    .footer {
        padding-bottom: 34px;
    }
}

/* ================= VERY SMALL MOBILE ================= */
@media (max-width: 420px) {
    .nav-bottom {
        left: 8px;
        right: 8px;
        bottom: 8px;
        height: 64px;
        border-radius: 20px;
    }

    .nav-bottom a {
        font-size: 0.58rem;
    }

    .nav-bottom a span {
        font-size: 1.12rem;
    }

    .hero-floating-card {
        width: calc(100% - 20px);
        padding: 22px 18px;
    }

    .section {
        width: calc(100% - 22px);
    }

    .section-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .stat-num {
        font-size: 2.65rem;
    }

    .timeline-item {
        grid-template-columns: 56px 1fr;
    }

    .timeline-year {
        width: 52px;
        height: 52px;
        font-size: 0.82rem;
    }

    .timeline::before {
        left: 25px;
    }

    .motto-box {
        padding: 38px 18px;
    }

    .quote-card {
        padding: 38px 20px;
    }
}

/* =========================================================
   FIX TIÊU ĐỀ LỚN KHÔNG BỊ NHẢY DÒNG / TRÀN KHUNG
========================================================= */

.one-line {
    display: block;
    white-space: nowrap;
    max-width: 100%;
}

/* HERO CARD */
.hero-floating-card {
    width: min(760px, calc(100% - 44px));
}

.hero-title-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-title-main .gold-line {
    color: var(--gold-light);
    font-family: "Oswald", sans-serif;
    font-size: clamp(3.8rem, 9vw, 7.8rem);
    line-height: 0.9;
    letter-spacing: 0.03em;
}

.hero-title-main .white-line {
    color: var(--white);
    font-family: "Oswald", sans-serif;
    font-size: clamp(1.75rem, 3.7vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: 0.025em;
}

/* TIÊU ĐỀ SECTION CHUNG */
.section-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title .one-line {
    font-size: inherit;
    line-height: 1.02;
}

.section-title em.one-line {
    display: block;
}

/* Tiêu đề dài hơn bình thường */
.wide-title {
    font-size: clamp(1.7rem, 3.7vw, 3.35rem);
}

.wide-title em {
    font-size: clamp(1.45rem, 3.1vw, 2.8rem);
}

/* CTA cuối trang */
.cta-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-title .one-line {
    white-space: nowrap;
}

/* TRÁNH CHỮ BỊ CẮT TRONG KHUNG */
.hero-floating-card,
.motto-box,
.cta-final,
.highlight-box {
    overflow: visible;
}

.hero-floating-card {
    line-height: 1;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */
@media (max-width: 1100px) {
    .hero-floating-card {
        width: min(680px, calc(100% - 40px));
    }

    .hero-title-main .gold-line {
        font-size: clamp(3rem, 8vw, 6.2rem);
    }

    .hero-title-main .white-line {
        font-size: clamp(1.45rem, 3.4vw, 3rem);
    }

    .wide-title {
        font-size: clamp(1.55rem, 3.3vw, 2.8rem);
    }

    .wide-title em {
        font-size: clamp(1.25rem, 2.8vw, 2.25rem);
    }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */
@media (max-width: 768px) {
    .one-line {
        white-space: normal;
    }

    .hero-title-main .gold-line {
        white-space: nowrap;
        font-size: clamp(3.1rem, 16vw, 5.2rem);
    }

    .hero-title-main .white-line {
        white-space: normal;
        font-size: clamp(1.65rem, 8vw, 2.6rem);
        line-height: 1.08;
    }

    .section-title {
        gap: 6px;
    }

    .section-title .one-line,
    .section-title em.one-line,
    .wide-title .one-line,
    .wide-title em.one-line,
    .cta-title .one-line {
        white-space: normal;
    }

    .wide-title {
        font-size: clamp(1.55rem, 7.5vw, 2.35rem);
    }

    .wide-title em {
        font-size: clamp(1.35rem, 6.7vw, 2rem);
    }

    .cta-title {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }
}

/* =========================================================
   MOBILE RẤT NHỎ
========================================================= */
@media (max-width: 420px) {
    .hero-title-main .gold-line {
        font-size: clamp(2.8rem, 15vw, 4.3rem);
    }

    .hero-title-main .white-line {
        font-size: clamp(1.38rem, 7.4vw, 2.1rem);
    }

    .section-title {
        font-size: clamp(1.55rem, 8.2vw, 2.25rem);
    }
}