/* ==========================================================================
   CROSOFTFILM WEBCLIENT - HOMEPAGE (DESKTOP >= 992px)
   ========================================================================== */

/* 1. Cinematic Hero Slider */
.ns-hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-height, 72px);
    margin-bottom: 24px;
    overflow: hidden;
}

.ns-hero-slider-wrap {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 65vh;
    max-height: 680px;
    overflow: hidden;
}

.ns-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ns-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
    display: flex;
    align-items: center;
}

.ns-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.ns-hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transform: scale(1.03);
    transition: transform 6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ns-hero-slide.active .ns-hero-backdrop {
    transform: scale(1);
}

.ns-hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(21, 19, 20, 0.95) 0%, rgba(21, 19, 20, 0.7) 45%, rgba(21, 19, 20, 0.15) 100%),
        linear-gradient(180deg, transparent 60%, rgba(21, 19, 20, 1) 100%),
        linear-gradient(0deg, transparent 70%, rgba(21, 19, 20, 0.8) 100%);
    pointer-events: none;
}

.ns-hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
}

.ns-hero-content {
    max-width: 640px;
    animation: heroSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badges & Chips dùng chung từ Components/Badge/badge.css */

.ns-meta-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary, #d1d5db);
}

.ns-hero-title {
    font-family: var(--font-heading, inherit);
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.ns-hero-orig-title {
    font-size: 15px;
    color: var(--text-muted, #9ca3af);
    margin-bottom: 24px;
    font-weight: 500;
}

.ns-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ns-btn-hero {
    padding: 12px 28px;
    font-size: 15px;
}

/* 2. Slider Controls (Prev / Next & Dots) */
.ns-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 10;
    transition: background 0.25s, transform 0.25s;
    cursor: pointer;
}

.ns-slider-btn:hover {
    background: var(--accent-gradient, linear-gradient(135deg, #FE4F30 0%, #F5315E 100%));
    transform: translateY(-50%) scale(1.1);
}

.ns-slider-prev {
    left: 24px;
}

.ns-slider-next {
    right: 24px;
}

.ns-slider-dots {
    position: absolute;
    bottom: 24px;
    right: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.ns-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-pill, 9999px);
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.ns-dot.active {
    width: 28px;
    background: var(--accent-start, #FE4F30);
}