﻿/* ==========================================================================
   DESIGN SYSTEM & CONSTANTS
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F7F5EE;
    /* Vàng nhạt luxury */
    --color-bg-gray: #F9F9F8;

    --color-text-primary: #1A1A1A;
    /* Màu đen báo chí kinh tế */
    --color-text-secondary: #4A4A4A;
    --color-text-light: #6E6E6E;

    --color-accent-green: #2E7D32;
    /* Xanh lá đậm kinh tế xanh */
    --color-accent-olive: #6D9F3A;
    /* Xanh olive */
    --color-accent-gold: #D4AF37;
    /* Vàng kim sang trọng */
    --color-accent-gold-dark: #AA7C11;

    /* Fonts */
    --font-title: 'Playfair Display', Georgia, serif;
    --font-heading: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout values */
    --width-narrow: 800px;
    /* Chiều rộng tối ưu cho đọc báo longform */
    --width-wide: 1100px;
    --spacing-section: 120px;
    --spacing-paragraph: 32px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* 1rem = 16px */
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: 1.85;
    overflow-x: hidden;
}

/* KHÔNG CÓ BẤT KỲ CHỮ NÀO NHỎ HƠN 20PX TRÊN TOÀN TRANG */
body,
p,
span,
a,
li,
figcaption,
text,
tspan,
div {
    font-size: 22px;
    /* Cỡ chữ mặc định */
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4 {
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.25;
}

/* ==========================================================================
   HERO BANNER (TOÀN MÀN HÌNH - CHỈ HÌNH ẢNH)
   ========================================================================== */
.hero-banner {
    position: relative;
    width: 100vw;
    height: 130vh;
    overflow: hidden;
    background-color: #000;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
    animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.02) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(0, -10px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

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

/* ==========================================================================
   EDITORIAL HEADER (TIÊU ĐỀ CHÍNH & SAPO)
   ========================================================================== */
.editorial-header {
    padding: 100px 0 60px 0;
    text-align: center;
    background-color: var(--color-bg-primary);
}

.editorial-label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--color-accent-green);
    margin-bottom: 24px;
    display: inline-block;
    border-bottom: 2px solid var(--color-accent-gold);
    padding-bottom: 6px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 76px;
    /* Cỡ chữ 70-90px */
    font-weight: 700;
    color: var(--color-text-primary);
    max-width: 1000px;
    margin: 0 auto 30px auto;
    letter-spacing: -1px;
    line-height: 1.15;
}

.title-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
}

.title-divider::before,
.title-divider::after {
    content: "";
    width: 80px;
    height: 1px;
    background-color: var(--color-accent-gold);
}

.dot-gold {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-gold);
    border-radius: 50%;
    margin: 0 15px;
}

/* Sapo */
.sapo-container {
    max-width: var(--width-narrow);
    margin: 0 auto 40px auto;
    text-align: justify;
}

.sapo-text {
    font-family: var(--font-title);
    font-size: 26px;
    /* Nổi bật hơn body */
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-style: italic;
    border-left: 4px solid var(--color-accent-green);
    padding-left: 24px;
}

/* Metadata */
.author-meta {
    font-family: var(--font-heading);
    font-size: 20px;
    /* Không nhỏ hơn 20px */
    color: var(--color-text-light);
    margin-top: 40px;
    font-weight: 600;
}

.meta-separator {
    color: var(--color-accent-gold);
    margin: 0 15px;
}

/* ==========================================================================
   LAYOUT CẤU TRÚC 3 PHẦN & BACKGROUNDS
   ========================================================================== */
.emagazine-part {
    padding: var(--spacing-section) 0;
    position: relative;
}

/* Căn lề giữa cho nội dung */
.container-narrow {
    max-width: var(--width-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* NỀN PHẦN 1: Texture giấy cao cấp chìm (Premium Paper Texture) */
.part-1 {
    background-color: var(--color-bg-secondary);
    background-image: radial-gradient(rgba(46, 125, 50, 0.03) 1px, transparent 0),
        radial-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

/* NỀN PHẦN 2: Gradient trắng xanh nhạt mềm mại */
.part-2 {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F3F7F3 50%, #EBF2EB 100%);
}

/* NỀN PHẦN 3: Trắng tinh khiết */
.part-3 {
    background-color: #FFFFFF;
}

/* Badge số phần */
.section-badge {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent-gold-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 48px;
    /* Cỡ chữ 44-52px */
    color: var(--color-accent-green);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-gold);
}

.paragraph {
    font-family: var(--font-body);
    font-size: 23px;
    /* Cỡ chữ 22-24px */
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-paragraph);
    text-align: justify;
}

/* ==========================================================================
   HÌNH MINH HỌA
   ========================================================================== */
.editorial-image-container {
    margin-top: 60px;
    margin-bottom: 60px;
}

.editorial-image {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    border-radius: 16px;
    /* Bo góc lớn */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Shadow nhẹ */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-image-container:hover .editorial-image {
    transform: scale(1.03);
    /* Zoom nhẹ khi hover */
}

.image-caption {
    font-family: var(--font-body);
    font-size: 20px;
    /* Không nhỏ hơn 20px */
    color: var(--color-text-light);
    line-height: 1.6;
    margin-top: 20px;
    text-align: center;
    padding: 0 40px;
    border-left: 2px solid var(--color-accent-gold);
    display: inline-block;
}

/* ==========================================================================
   DIVIDER GIỮA CÁC PHẦN
   ========================================================================== */
.section-divider {
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-svg {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   INFOGRAPHICS CONTAINERS
   ========================================================================== */
.infographic-wrapper {
    margin: 80px 0;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 40px 24px;
    border-radius: 24px;
    box-shadow: inset 0 0 40px rgba(230, 230, 225, 0.5),
        0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.infographic-container {
    width: 100%;
    position: relative;
}

.scrollable-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.infographic-scroll-hint {
    display: none;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-accent-green);
    text-align: center;
    margin-bottom: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.svg-wrapper {
    width: 100%;
}

.interactive-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* CSS SVG ANIMATIONS */
.connecting-line {
    stroke-dasharray: 8 6;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Hiệu ứng xoay của các vòng tròn trong SVG */
.animate-spin-slow {
    transform-origin: 50% 50%;
    animation: spin 60s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.eco-petal,
.svg-node,
.process-step,
.brand-core {
    cursor: pointer;
}

.svg-node circle,
.process-step rect,
.eco-petal rect,
.brand-core circle {
    transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

/* Hover chỉ sáng lên, không scale */
.svg-node:hover circle {
    stroke: var(--color-accent-gold) !important;
    stroke-width: 4px !important;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.process-step:hover rect {
    stroke: var(--color-accent-gold) !important;
    stroke-width: 4px !important;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.eco-petal:hover rect {
    stroke: var(--color-accent-green) !important;
    stroke-width: 3.5px !important;
    filter: drop-shadow(0 0 8px rgba(46, 125, 50, 0.5));
}

.central-node:hover circle {
    stroke: var(--color-accent-gold) !important;
    stroke-width: 5px !important;
}

.brand-core:hover circle {
    stroke: var(--color-accent-gold) !important;
}

/* ==========================================================================
   REVEAL ON SCROLL EFFECTS
   ========================================================================== */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.editorial-footer {
    background-color: var(--color-text-primary);
    color: var(--color-bg-secondary);
    padding: 80px 0;
    text-align: center;
    border-top: 4px solid var(--color-accent-gold);
}

.footer-brand {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-bg-secondary);
    margin-bottom: 24px;
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 20px;
    /* Không nhỏ hơn 20px */
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */

/* Large Tablets & Small Desktop (<= 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --spacing-section: 90px;
    }

    .hero-title {
        font-size: 60px;
    }

    .section-title {
        font-size: 42px;
    }

    /* Hiển thị vuốt ngang cho Infographic */
    .infographic-scroll-hint {
        display: flex;
    }
}

/* Tablets (<= 768px) */
@media screen and (max-width: 768px) {
    :root {
        --spacing-section: 70px;
        --spacing-paragraph: 24px;
    }

    .hero-title {
        font-size: 46px;
    }

    .section-title {
        font-size: 36px;
    }

    .sapo-text {
        font-size: 23px;
        padding-left: 16px;
    }

    body,
    p,
    span,
    a,
    li,
    figcaption,
    text,
    tspan,
    div {
        font-size: 21px;
        /* Vẫn giữ tối thiểu 20px */
    }

    .image-caption {
        padding: 0 16px;
        font-size: 20px;
    }

    .infographic-wrapper {
        padding: 24px 12px;
        margin: 40px 0;
    }
}

/* Mobile Phones (<= 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 38px;
    }

    .section-title {
        font-size: 32px;
    }

    .editorial-header {
        padding: 60px 0 40px 0;
    }

          body,
      p,
      span,
      a,
      li,
      figcaption,
      div {
          font-size: 20px;
        /* Bắt buộc tối thiểu 20px */
    }
}
/* ==========================================================================
   SVG INFOGRAPHIC 1 - NEW HOVER EFFECTS
   ========================================================================== */
.node-scale {
    transition: transform 0.3s ease, filter 0.3s ease;
    transform-origin: 0 0; /* Sử dụng tâm gốc tại 0,0 của group */
}
.svg-node {
    cursor: pointer;
}
.svg-node:hover .node-scale {
    transform: scale(1.08);
    filter: brightness(1.1);
}

