:root {
    --primary-blue: #003B6F;
    /* Xanh thẫm */
    --light-blue: #E6F4F9;
    /* Xanh nhạt */
    --accent-red: #D32F2F;
    /* Đỏ */
    --text-color: #1A1A1A;
    --white: #FFFFFF;
    --font-main: 'Encode Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--light-blue);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

/* Navigation - Hidden by default */
.hidden-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    padding: 15px 0;
}

.hidden-menu.show-menu {
    transform: translateY(0);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu-item {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.menu-item:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero {
    min-height: 600px; /* Đổi từ 100vh để tránh loop height trong iframe */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #005a9e 100%);
    color: var(--white);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInDown 1s ease-out;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.sub-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

.quote {
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    display: inline-block;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down .arrow {
    font-size: 1.5rem;
    margin-top: 5px;
}

/* Common Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 60px;
    font-style: italic;
}

.white-text {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Timeline */
.timeline-wrapper {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    /* Contain background elements */
}

/* Timeline Background Elements */
.timeline-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Soft Gradient Mesh Animation */
    background: radial-gradient(circle at 10% 10%, rgba(0, 59, 111, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(211, 47, 47, 0.03) 0%, transparent 40%);
    animation: gradientPulse 10s ease-in-out infinite alternate;
}

@keyframes gradientPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.bg-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    color: var(--primary-blue);
    opacity: 0.08;
    /* Slightly more visible */
}

/* Floating Animations */
@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rockIcon {

    0%,
    100% {
        transform: rotate(15deg) translateY(0);
    }

    50% {
        transform: rotate(5deg) translateY(-10px);
    }
}

@keyframes rockIconRev {

    0%,
    100% {
        transform: rotate(-10deg) translateY(0);
    }

    50% {
        transform: rotate(-20deg) translateY(-10px);
    }
}

.cloud-1 {
    top: 5%;
    left: 5%;
    width: 140px;
    height: 140px;
    animation: floatIcon 6s ease-in-out infinite;
}

.cloud-2 {
    bottom: 15%;
    right: 10%;
    width: 160px;
    height: 160px;
    animation: floatIcon 8s ease-in-out infinite reverse;
}

.tool-1 {
    top: 25%;
    right: 5%;
    animation: rockIcon 5s ease-in-out infinite;
}

.tool-2 {
    bottom: 35%;
    left: 8%;
    animation: rockIconRev 7s ease-in-out infinite;
}

.timeline-svg-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    /* Width of the wave */
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.timeline-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.path-line {
    stroke: var(--primary-blue);
    stroke-width: 3;
    opacity: 0.3;
}

.timeline-nodes {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.node {
    position: relative;
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
    opacity: 0;
    /* Hidden for JS reveal */
    /* Hidden for JS reveal */
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.node.left {
    left: 0;
    text-align: right;
    transform: translateX(-150px);
}

.node.right {
    left: 50%;
    text-align: left;
    transform: translateX(150px);
}

.node.visible {
    opacity: 1;
    transform: translateX(0);
}

.node-dot {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary-blue);
    transform: translateY(-50%);
}

.node.left .node-dot {
    right: -10px;
    /* Half of dot width */
}

.node.right .node-dot {
    left: -10px;
}

.node-content h3 {
    display: inline-block;
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 59, 111, 0.1);
    color: var(--primary-blue);
    font-size: 1.2rem;
    border: 1px solid rgba(0, 59, 111, 0.1);
    font-weight: 700;

    /* Text Slide Up Animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    /* Delay to start after node appears */
}

/* Trigger for inner text */
.node.visible .node-content h3 {
    opacity: 1;
    transform: translateY(0);
}

/* Results Section */
.results-section {
    background-color: var(--accent-red);
    padding: 80px 0;
    color: var(--white);
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 100%);
    margin-top: -50px;
    /* Slight overlap */
    padding-top: 130px;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.stat-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-details {
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.8;
}

.stat-divider {
    width: 2px;
    height: 150px;
    background: rgba(255, 255, 255, 0.3);
    display: none;
    /* Hide on mobile mostly */
}

@media(min-width: 768px) {
    .stat-divider {
        display: block;
    }
}

/* Resources Section */
.resources-bg {
    background: #f8fbff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s;
    border-top: 5px solid var(--primary-blue);

    /* Animation initial state */
    opacity: 0;
    transform: translateY(100px);
    /* Lower start for more dramatic rise */
}

/* Staggered Layout for Desktop */
.resource-card:nth-child(even) {
    margin-top: 80px;
}

.resource-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animation Delay for Sequential Effect */
/* Actually, simply resetting to 0 removes margin influence? No, margin is static layout. Transform is visual. 
   If I have margin-top: 80px, and transform translateY(0), it sits at 80px offset. Correct. 
   But wait, 'visible' sets transform: translateY(0). The 'even' cards start at translateY(100px) + margin-top (static).
   When visible, they go to translateY(0) (relative to their static position). So they will still be staggered. 
*/

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Stagger delays */
.resource-card:nth-child(1) {
    transition-delay: 0.1s;
}

.resource-card:nth-child(2) {
    transition-delay: 0.3s;
}

.resource-card:nth-child(3) {
    transition-delay: 0.1s;
}

.resource-card:nth-child(4) {
    transition-delay: 0.3s;
}

.resource-card:nth-child(5) {
    transition-delay: 0.1s;
}

.resource-card:nth-child(6) {
    transition-delay: 0.3s;
}

.resource-card:nth-child(7) {
    transition-delay: 0.1s;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-blue);
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.card-agency {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #666;
}

.card-body .highlight {
    font-weight: 800;
    color: var(--accent-red);
    font-size: 1.1rem;
}

.card-body .small {
    font-size: 0.85rem;
    color: #999;
}

.footer {
    text-align: center;
    padding: 30px;
    background: var(--primary-blue);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .hidden-menu .menu-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* Timeline on mobile: Vertical straight line on left */
    .timeline-svg-container {
        display: none;
    }

    .node {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 50px;
        padding-right: 0;
        /* Reset transform for mobile - simple fade in up */
        transform: translateY(20px) !important;
    }

    .node.visible {
        transform: translateY(0) !important;
    }

    .node-dot {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 19px;
        width: 2px;
        background: var(--primary-blue);
        opacity: 0.3;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .stat-divider {
        display: none;
    }

    .hero {
        padding-top: 80px;
    }

    /* Reset Grid for Mobile */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-card:nth-child(even) {
        margin-top: 0;
    }

    .resource-card:nth-child(even).visible {
        transform: translateY(0);
    }
}

/* Intro Block Styles */
.intro-block {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.intro-highlight {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    line-height: 1.4;
    font-style: italic;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-red);
}

.intro-highlight strong {
    font-weight: 700;
    font-style: normal;
}

.intro-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.intro-divider {
    height: 1px;
    width: 200px;
    background: var(--primary-blue);
    opacity: 0.2;
    margin: 40px auto 0;
}

@media screen and (max-width: 768px) {
    .intro-highlight {
        font-size: 1.2rem;
        padding: 20px;
    }

    .intro-text p {
        text-align: left;
    }
}

/* Node Stats Styling */
.node-stats {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
    justify-content: flex-end;
    /* Align right for left nodes by default logic? No, depends on parent text-align */
}

/* Parent alignment inheritance */
.node.left .node-stats {
    justify-content: flex-end;
}

.node.right .node-stats {
    justify-content: flex-start;
}

.node.visible .node-stats {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    border: 1px solid rgba(0, 59, 111, 0.1);
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-red);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .node-stats {
        justify-content: flex-start !important;
        /* Always left align on mobile */
        flex-wrap: wrap;
    }

    .stat-item {
        flex-direction: row;
        gap: 5px;
        min-width: auto;
    }

    .stat-val {
        font-size: 1rem;
    }

    .stat-lbl {
        font-size: 0.75rem;
    }
}