/* ==========================================================================
   HERO SECTION: "GIÓ VIỆT NAM — WIND FIELD"
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 24 / 5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.35s ease;
    margin-top: var(--header-height);
}

/* Responsive Banner Container */
.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    overflow: hidden;
    touch-action: pan-y;
    background: #fff;
}

.hero-banner-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.mobile-banner-brand {
    display: none;
}

.mobile-header-logo {
    display: none;
}

.hero-canvas-container:active {
    cursor: grabbing;
}

.hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    /* Pointer events captured by container */
}

/* Atmospheric Overlays */
.hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* Soft ambient vignette */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: var(--hero-vignette);
    transition: background 0.4s ease;
}

/* Warm atmospheric glow in upper right matching diagonal wind flow */
.hero-ambient-glow {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: var(--hero-ambient-glow);
    filter: blur(60px);
    transform: translate3d(0, 0, 0);
    transition: background 0.4s ease;
}

/* Bottom fade transition into content sections */
.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    transition: background 0.35s ease;
}

/* Hero Content Layer */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 960px;
    padding: 0 24px;
    pointer-events: none;
    /* Let pointer pass through to canvas container */
    will-change: transform, opacity;
    transform-origin: center center;
    margin-top: var(--header-height);
}

/* Protected reading zone behind typography */
.hero-text-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125%;
    height: 145%;
    border-radius: 50%;
    background: var(--hero-text-backdrop);
    filter: blur(35px);
    z-index: -1;
    transition: background 0.4s ease;
}

/* Concept Badge */
.hero-concept-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border-radius: 30px;
    background: var(--hero-badge-bg);
    border: 1px solid var(--hero-badge-border);
    /* margin-bottom: 22px; */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--hero-badge-shadow);
    transition: all 0.35s ease;
}

.concept-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 10px var(--brand-accent);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

@media (max-width: 767px) {
    .site-header {
        position: absolute;
        top: 0;
        height: 64px;
        background: transparent;
        border-bottom: 0;
        backdrop-filter: none;
    }

        .site-header.scrolled {
            background: transparent;
            backdrop-filter: none;
            border-bottom: 0;
        }

    .header-inner {
        position: static;
    }

    .site-brand,
    .main-nav {
        display: none;
    }

    .mobile-header-logo {
        display: block;
        position: absolute;
        top: 12px;
        left: 16px;
        width: 118px;
        height: auto;
        max-height: 38px;
        object-fit: contain;
        z-index: 130;
    }

    .header-actions {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        /*width: 162px;*/
        height: 42px;
        gap: 8px;
        z-index: 130;
    }

    .hero-section {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        display: block;
        margin-top: 0;
    }

    .hero-canvas-container {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 3879 / 1955;
    }

    .hero-banner-picture,
    .hero-banner-image {
        height: 100%;
    }

    .hero-banner-image {
        object-fit: cover;
    }

    .mobile-banner-brand {
        position: sticky;
        top: 0;
        z-index: 140;
        /*height: 118px;*/
        display: flex;
        align-items: center;
        padding: 8px 174px 8px 16px;
        background: var(--bg-primary);
    }

        .mobile-banner-brand .img {
            display: block;
            width: min(224px, calc(100vw - 190px));
            height: auto;
            max-height: 64px;
            object-fit: contain;
            object-position: left center;
        }

        .mobile-banner-brand .brand-image {
            display: block;
            width: min(224px, calc(100vw - 190px));
            height: auto;
            max-height: 64px;
            object-fit: contain;
            object-position: left center;
        }
}

@keyframes pulseGlow {

    0%, 100% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.concept-text {
    /* font-size: 0.76rem; */
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    /* color: var(--hero-badge-text); */
    color: var(--text-primary);
    transition: color 0.35s ease;
}

/* Main Editorial Headline */
.hero-title {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-title-main {
    /* font-family: var(--font-display); */
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--pink);
    /* background: var(--hero-title-gradient); */
    /* background: var(--hero-title-gradient); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    text-shadow: var(--hero-title-shadow);
    transition: all 0.35s ease;
    text-shadow: 0 2px 2px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(255, 255, 255, 0.95);
}

.hero-title-sub {
    font-family: var(--font-body);
    font-size: clamp(0.92rem, 1.8vw, 1.3rem);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-accent-soft);
    opacity: 0.95;
    transition: color 0.35s ease;
}

/* Poetic Manifesto */
.hero-manifesto {
    font-size: clamp(0.92rem, 1.45vw, 1.12rem);
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 680px;
    margin: 0 auto;
    text-wrap: balance;
    transition: color 0.35s ease;
}

    .hero-manifesto em {
        font-family: var(--font-display);
        font-style: italic;
        color: var(--text-primary);
        font-weight: 500;
    }

/* Atmospheric Indicator */
.hero-wind-status {
    position: absolute;
    left: 32px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 12px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--card-shadow);
    pointer-events: none;
    transition: all 0.35s ease;
}

.wind-stream-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-accent);
}

    .wind-stream-icon svg {
        width: 20px;
        height: 20px;
        animation: windDrift 3s infinite ease-in-out;
    }

@keyframes windDrift {

    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(3px);
    }
}

.wind-status-text {
    display: flex;
    flex-direction: column;
}

.wind-status-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wind-status-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Scroll Indicator */
.hero-scroll-prompt {
    position: absolute;
    right: 32px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-line {
    width: 32px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brand-accent));
    position: relative;
    overflow: hidden;
}

    .scroll-line::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        animation: scrollScan 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
    }

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

    100% {
        transform: translateX(100%);
    }
}

/* ==========================================================================
   HERO RESPONSIVE DESIGN & ACCESSIBILITY
   ========================================================================== */

@media (min-width: 768px) and (max-width: 900px) {
    .hero-section {
        height: 31vw;
        min-height: 240px;
        max-height: 320px;
    }

    .main-nav {
        display: none;
    }

    .hero-wind-status {
        left: 16px;
        bottom: 16px;
        padding: 6px 12px 6px 8px;
    }

    .hero-scroll-prompt {
        display: none;
    }
}

/* PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
    .concept-pulse-dot {
        animation: none;
        opacity: 0.8;
    }

    .wind-stream-icon svg {
        animation: none;
    }

    .scroll-line {
        animation: none;
        height: 16px;
    }
}

/* 3D Panorama Swiper Container */
.hero-panorama-swiper {
    width: 100%;
    padding: 24px 0 32px;
    perspective: 1200px;
    transform-style: flat;
    overflow: visible !important;
    position: relative;
    z-index: 2;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

    .hero-panorama-swiper .swiper-wrapper {
        align-items: center;
        transform-style: preserve-3d;
    }

/* Swiper Slide with 3D Panorama Depth & Curved Optics (No Overlap) */
.hero-swiper-slide {
    width: 70vw;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d;
    transition-property: transform, opacity;
    transition-duration: 0ms;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0.5;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    flex-shrink: 0;
    will-change: transform;
}

    .hero-swiper-slide.swiper-slide-active {
        opacity: 1;
        z-index: 10;
        cursor: default;
    }



    .hero-swiper-slide:hover {
        opacity: 1;
    }

    /* Non-active slides ignore click events on children */
    .hero-swiper-slide:not(.swiper-slide-active) * {
        pointer-events: none;
    }

    /* Active slide: inner links & buttons are interactive */
    .hero-swiper-slide.swiper-slide-active * {
        pointer-events: auto;
    }

/* Main Featured News Card Frame */
.hero-featured-news-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 60px -12px rgba(11, 48, 102, 0.28), 0 12px 28px -6px rgba(56, 189, 248, 0.22), 0 0 0 1px rgba(56, 189, 248, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1);
    display: flex;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    transition: box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease;
    will-change: box-shadow;
}

    .hero-featured-news-card img,
    .featured-card-thumb,
    .hero-featured-news-card a {
        -webkit-user-drag: none;
        user-select: none;
        -webkit-user-select: none;
    }

    .hero-featured-news-card img,
    .featured-card-thumb {
        pointer-events: none;
    }

/* 3D Panorama Swiper Navigation Controls & Indicators */
.hero-swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    position: relative;
    z-index: 25;
}

.hero-swiper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(11, 48, 102, 0.15), 0 0 12px rgba(56, 189, 248, 0.2);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
    padding: 0;
}

    .hero-swiper-btn:hover {
        background: #0284c7;
        border-color: #38bdf8;
        color: #ffffff;
        transform: translateY(-2px) scale(1.08);
        box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35), 0 0 20px rgba(56, 189, 248, 0.5);
    }

    .hero-swiper-btn:active {
        transform: translateY(0) scale(0.96);
    }

    .hero-swiper-btn.swiper-button-disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

.hero-swiper-pagination {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    position: static !important;
}

    .hero-swiper-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        border-radius: 9999px;
        background: rgba(2, 132, 199, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.85);
        opacity: 1;
        margin: 0 !important;
        transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
        cursor: pointer;
    }

        .hero-swiper-pagination .swiper-pagination-bullet:hover {
            background: rgba(2, 132, 199, 0.65);
            transform: scale(1.2);
        }

    .hero-swiper-pagination .swiper-pagination-bullet-active {
        width: 32px;
        background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
        border-color: #ffffff;
    }
