/* --- FONT CHỮ (Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;900&display=swap');

/* --- RESET VÀ TIỆN ÍCH (THAY THẾ TAILWIND) --- */
*, *::before, *::after {
    box-sizing: border-box; /* Quan trọng để giữ kích thước chuẩn */
}

/* Class thay thế cho "text-center" của Tailwind */
.text-center {
    text-align: center !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000; /* Nền đen */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #fff;
    padding-top: 45px; /* Tạo khoảng trống cho thanh header cố định */
}

/* --- BẮT ĐẦU CSS THANH BAR --- */
.sp-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
}

.left-group {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Nút Back */
.sp-back-to-k14 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #007f74;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s;
    cursor: pointer;
}
.sp-back-to-k14:hover {
    background-color: #00665d;
}

/* Logo Soha */
.sp-mag-logo {
    margin-left: 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sp-mag-logo img {
    height: 24px;
    width: auto;
    display: block;
}

/* Nhóm Giữa */
.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.center-logo img {
    height: 26px;
    width: auto;
    display: block;
}

/* Nhóm Phải */
.right-group {
    display: flex;
    align-items: center;
    padding-right: 15px;
}

/* Nút Chia sẻ */
.fb-custom-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.fb-custom-btn:hover {
    opacity: 1;
    text-decoration: underline;
}
.fb-custom-btn i {
    font-size: 15px;
}

/* Responsive cho thanh bar */
@media (max-width: 600px) {
    .center-logo {
        display: none;
    }
}
/* --- KẾT THÚC CSS THANH BAR --- */

/* --- CẤU TRÚC SCROLLYTELLING --- */
.scrolly-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
}

.step {
    height: 100vh; /* Full màn hình */
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end; /* Text nằm dưới đáy */
    justify-content: center;
    overflow: hidden;
    
    /* LOẠI BỎ VIỀN ĐEN TUYỆT ĐỐI */
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    /* Kỹ thuật lề âm để các ảnh chồng khít lên nhau 1px, che lấp khe hở */
    margin-top: -1px;
    /* Box shadow cùng màu đen để trám các lỗi render pixel nhỏ (nếu có) */
    box-shadow: 0 -2px 0 0 #000; 
    z-index: 1;
    
    /* Cấu hình ảnh nền Desktop */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax trên Desktop */
    background-repeat: no-repeat;
    
    transition: background-image 1s ease-in-out;
}

/* LỚP PHỦ GRADIENT (Hòa quyện) */
.step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; 
    /* Gradient từ đen đặc (đáy) -> trong suốt */
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Lớp phủ đỉnh để hòa quyện với step trước */
.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- HIỆU ỨNG TEXT --- */
.step-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    margin-bottom: 5vh;
    text-align: left;
    
    opacity: 0;
    transform: translateY(50px);
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step.active .step-content {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- TYPOGRAPHY --- */
.step h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    letter-spacing: -1px;
    font-family: 'Inter', sans-serif;
    text-transform: none;
}

.step p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    margin-bottom: 1rem;
}

.step p strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.3;
}

.text-highlight {
    background: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,1);
}

/* --- FOOTER --- */
.footer-box {
    position: relative;
    z-index: 20;
    width: 100%; 
    margin: 0;
    padding: 1.5rem 1rem;
    background-color: rgba(0, 30, 100, 0.2); 
    backdrop-filter: blur(10px); 
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: -2px; /* Kéo lên để dính liền với step cuối */
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem; 
}

.footer-info p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info strong {
    display: inline;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.footer-info a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* --- CẤU HÌNH ẢNH --- */
#step-1 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/6bc2e8e7-fbb4-4021-82f6-bc2236e8ab6f-1765939495006178346788.png'); align-items: center; }
#step-1 .step-content { padding-bottom: 0; margin-bottom: 0; text-align: center; }

#step-2 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/image001-1765621533-9538-1765621676-1-17659395527191621446203.webp'); }
#step-3 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_euegqmxbnq-1765939743.jpg'); }
#step-4 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_rfeoapdxxn-1765939703.jpg'); }
#step-5 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_fakwzlmsmx-1765939764.jpg'); }
#step-6 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_qvjntjxhrd-1765939724.jpg'); }
#step-7 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/edit-7408113c-3ebc-442a-a4a6-b77ed0c12adb-17659406605162140948556.png'); }
#step-8 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/image003-1765621547-2265-1765621676-1765940885083816503047.webp'); }
#step-9 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_apherogyjl-1765941630.jpg'); }
#step-10 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_kuwhujcjbv-1765941091.jpg'); }
#step-11 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/apce-1764648527-3283-1764648978-1-17659408859961167390169.webp'); }

/* --- TÙY BIẾN MOBILE (QUAN TRỌNG) --- */
@media (max-width: 768px) {
    body { padding-top: 45px; } /* Đẩy nội dung xuống */
    
    .step { 
        /* Tắt fixed trên mobile để mượt hơn và tránh lỗi hiển thị */
        background-attachment: scroll;
        
        /* Đảm bảo chiều cao luôn full màn hình thiết bị */
        height: 100vh; 
        
        /* TÙY CHỈNH HIỂN THỊ ẢNH MOBILE:
           - cover: Lấp đầy màn hình (có thể bị cắt cạnh)
           - center center: Luôn lấy trung tâm ảnh (thường là chủ thể chính)
        */
        background-size: cover;
        background-position: center center;
    }
    
    .step-content { 
        padding: 1.5rem; 
        margin-bottom: 8vh; /* Đẩy text lên cao hơn chút để không che mất phần đáy ảnh quá nhiều */
    }
    
    .step h2 { font-size: 2.2rem; }
    .step p strong { font-size: 1.3rem; }
    .step p { font-size: 1.1rem; }
    .footer-info { flex-direction: column; gap: 0.5rem; }
}