/* =========================================
   1. KHAI BÁO BIẾN MÀU SẮC (COLOR SYSTEM)
========================================= */
:root {
    /* Primary Colors (Màu chủ đạo) */
    --primary-bg: #0F0F0F;       /* Đen Vực Thẳm - Nền chính */
    --primary-dark: #1A1A1A;     /* Đen Nhạt - Nền menu */
    --primary-gold: #D4AF37;     /* Vàng Vinh Quang - Text nhấn, viền, icon */
    
    /* Accent Colors (Màu điểm nhấn đối kháng) */
    --accent-red: #C41E3A;       /* Đỏ Nhiệt Huyết */
    --accent-blue: #0047AB;      /* Xanh Trí Tuệ */
    
    /* Neutral Colors (Màu trung tính) */
    --text-light: #FFFFFF;
    --text-muted: #CCCCCC;

    /* HỆ THỐNG PHÔNG CHỮ (TYPOGRAPHY SYSTEM) */
    --font-headline: 'Russo One', sans-serif;
    --font-subhead: 'Anton', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* =========================================
   2. RESET CSS & TYPOGRAPHY
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body); /* Đã đổi thành biến CSS */
}

body {
    background-color: var(--primary-bg);
    color: var(--text-light);
    overflow-x: hidden; /* Tránh thanh cuộn ngang rác giao diện */
}

/* =========================================
   3. THANH ĐIỀU HƯỚNG (NAVBAR)
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(15, 15, 15, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-gold);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
}

/* Trạng thái 1: Lướt xuống -> Kéo thanh menu lên trên để ẩn đi */
.navbar.navbar--hidden {
    transform: translateY(-100%);
}

/* Trạng thái 2: Lướt ngược lên -> Hiện lại với nền trong suốt + hiệu ứng kính mờ (Glassmorphism) */
.navbar.navbar--transparent {
    background-color: rgba(15, 15, 15, 0.6); /* Giảm độ đặc xuống 60% */
    backdrop-filter: blur(12px); /* Làm mờ nội dung phía sau dải menu */
    -webkit-backdrop-filter: blur(12px); /* Hỗ trợ trình duyệt Safari */
    transform: translateY(0); /* Trả về vị trí ban đầu */
}

/* Trạng thái 3: Về lại điểm đầu trang -> Đặc lại như cũ */
.navbar.navbar--solid {
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(0);
}

.logo a {
    display: flex; /* Căn giữa logo dọc/ngang nếu cần */
    align-items: center;
    text-decoration: none; /* Bỏ gạch chân thẻ <a> mặc định */
}

.logo img {
    /* LỆNH QUAN TRỌNG: Thiết lập chiều cao tối đa */
    /* Chiều cao Navbar chúng ta đang có là khoảng 80-90px (padding+content), 
       set max-height khoảng 50-60px là vừa đẹp, giữ lại khoảng trống padding */
    max-height: 55px; 
    
    width: auto; /* Chiều rộng tự động co giãn theo tỷ lệ ảnh */
    display: block; /* Tránh các khoảng trắng rác của thẻ img */
    transition: transform 0.3s ease; /* Hiệu ứng nhẹ khi hover */
}

/* Hiệu ứng hover cho logo (Tùy chọn) */
.logo img:hover {
    transform: scale(1.05); /* Phóng to nhẹ logo khi rê chuột vào */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-family: var(--font-body); /* Áp dụng Anton */
    letter-spacing: 1.5px;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

/* --- MENU CẤP 1 --- */
.dropdown-menu {
    display: block; 
    visibility: hidden; /* Ẩn menu nhưng giữ nguyên cấu trúc */
    opacity: 0;         /* Độ trong suốt = 0 (tàng hình) */
    transform: translateY(15px); /* Đẩy menu xuống 15px để tạo đà trượt */
    transition: visibility 0.3s, opacity 0.3s ease, transform 0.3s ease; /* Thời gian chuyển động mượt mà 0.3 giây */

    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-dark);
    list-style: none;
    min-width: 250px; 
    border-top: 3px solid var(--primary-gold);
    padding: 10px 0;
    font-family: var(--font-body) !important; /* Áp dụng Anton */
    letter-spacing: 1.5px;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    white-space: nowrap; 
    text-transform: none; 
    font-family: var(--font-body) !important; /* Áp dụng Anton */
    letter-spacing: 1.5px;
}

.dropdown-menu a .arrow {
    font-size: 18px; 
    transition: transform 0.3s ease; 
}

.sub-dropdown:hover > a .arrow {
    transform: rotate(90deg);
}

.dropdown:hover .dropdown-menu {
    /* XÓA display: block; THAY BẰNG: */
    visibility: visible;
    opacity: 1;           /* Rõ dần lên 100% */
    transform: translateY(0); /* Trượt ngược về vị trí gốc */
}

.dropdown-menu a:hover {
    background-color: #333333;
}

/* --- MENU CẤP 2 (NESTED DROPDOWN) --- */
.dropdown-menu li {
    position: relative; 
    margin: 0;
}

.sub-dropdown-menu {
    display: block; 
    visibility: hidden;
    opacity: 0;
    transform: translateX(15px); /* Đẩy sang phải 15px để tạo đà trượt ngang */
    transition: visibility 0.3s, opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 0;
    left: auto;  
    right: 100%; 
    background-color: var(--primary-dark);
    list-style: none;
    min-width: 180px;
    border-left: none; 
    border-right: 2px solid var(--primary-gold);
    padding: 10px 0;
    box-shadow: -5px 2px 10px rgba(0, 0, 0, 0.5); 
    font-family: var(--font-body) ; /* Áp dụng Anton */
    letter-spacing: 1.5px;
}

.sub-dropdown-menu a {
    padding: 10px 20px;
    display: block;
    text-transform: none; 
    font-size: 13px; 
}

.sub-dropdown-menu a:hover {
    background-color: #333333;
    color: var(--primary-gold);
}

.sub-dropdown:hover .sub-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0); /* Trượt ngang về vị trí gốc */
}

/* =========================================
   4. KÝ HIỆU MENU ĐIỆN THOẠI (BURGER)
========================================= */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 5px;
    transition: all 0.3s ease;
}

/* =========================================
   5. KHU VỰC HERO SECTION
========================================= */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Dùng màu chủ đạo làm gradient nền để tôn lên text */
    background: radial-gradient(circle at center, var(--primary-dark) 0%, var(--primary-bg) 100%);
    text-align: center;
    padding: 0 50px;
}

.glory-title {
    font-size: 5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-gold); 
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* --- NÚT KÊU GỌI HÀNH ĐỘNG (ỨNG DỤNG MÀU ĐỎ NHẤN) --- */
.cta-button {
    padding: 15px 40px;
    background-color: var(--primary-gold);
    color: var(--primary-bg);
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: var(--font-subhead); /* Áp dụng Anton */
    letter-spacing: 1.5px;
}

.cta-button:hover {
    /* Đổi sang màu Đỏ khi hover để tạo cảm giác máu lửa, giục giã đăng ký */
    background-color: var(--accent-red);
    color: var(--text-light);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.8); 
}

/* =========================================
   6. CONCEPT SECTION (ỨNG DỤNG MÀU ĐỐI KHÁNG ĐỎ - XANH)
========================================= */
.concept-section {
    padding: 100px 50px;
    background-color: var(--primary-bg);
    border-top: 1px solid #333; 
}

.concept-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px; 
}

.concept-text {
    flex: 1; 
}

.concept-text h2 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-subhead); /* Áp dụng Anton */
    letter-spacing: 1.5px;
}

.concept-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: justify;
}

.concept-image {
    flex: 1; 
    position: relative;
}

.concept-image img {
    width: 100%;
    height: auto;
    border-radius: 8px; 
    /* Thay viền vàng đơn điệu bằng viền gradient Đỏ - Xanh đại diện cho 2 phe */
    border: 3px solid transparent;
    background-image: linear-gradient(var(--primary-bg), var(--primary-bg)), 
                      linear-gradient(45deg, var(--accent-red), var(--accent-blue));
    background-origin: border-box;
    background-clip: content-box, border-box;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.concept-image img:hover {
    transform: scale(1.02); 
    /* Ánh sáng tỏa ra hỗn hợp màu đối kháng khi rê chuột vào */
    box-shadow: -10px 10px 30px rgba(196, 30, 58, 0.3), 10px -10px 30px rgba(0, 71, 171, 0.3);
}

/* =========================================
   7. RESPONSIVE GIAO DIỆN ĐIỆN THOẠI
========================================= */
@media screen and (max-width: 768px) {
    /* 1. Kích hoạt nút Hamburger */
    .burger {
        display: block;
    }

    /* 2. Cấu trúc lại thanh Menu chính thành dạng trượt (Sidebar) */
    .nav-links {
        position: absolute;
        right: 0;
        top: 65px; /* Chiều cao tương đối của Navbar */
        height: 100vh;
        width: 100%;
        background-color: rgba(15, 15, 15, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        
        /* Đẩy menu ra khỏi màn hình mặc định */
        transform: translateX(100%); 
        transition: transform 0.4s ease-in;
    }

    /* Lớp nav-active sẽ được Javascript gọi để trượt menu vào */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* 3. Xử lý lại Dropdown đa cấp trên Mobile */
    /* Trên mobile, các menu con không nên bay lơ lửng (absolute) mà nên đẩy nội dung xuống (static) */
    .dropdown-menu, 
    .sub-dropdown-menu {
        position: static;
        min-width: 100%;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu a, 
    .sub-dropdown-menu a {
        justify-content: center; /* Canh giữa chữ thay vì ép sang 2 bên */
        padding: 10px;
        font-size: 14px;
        color: #CCCCCC; /* Chữ menu con nhạt màu hơn menu cha một chút */
    }

    /* Hiển thị luôn các menu con trên mobile để dễ bấm, hoặc bạn có thể giữ nguyên hiệu ứng hover/click */
    .dropdown:hover .dropdown-menu,
    .sub-dropdown:hover .sub-dropdown-menu {
        display: block;
    }

    /* 4. Hiệu ứng Animation cho nút Hamburger biến thành dấu X */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}




/* =========================================
   8. SECTION ĐỐI TÁC (SPONSORS)
========================================= */
.sponsors-section {
    padding: 80px 50px;
    background-color: var(--primary-bg); /* Nền đen */
    text-align: center;
    border-top: 1px solid #333;
}

.section-title {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.sponsors-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.sponsor-tier {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.sponsor-logo {
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; 
    border-radius: 8px;
    /* Hiệu ứng: Chuyển toàn bộ logo màu thành xám bạc/trắng đen để đồng bộ giao diện */
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Khi rê chuột vào: Khôi phục lại màu sắc gốc của brand và phát sáng nhẹ */
.sponsor-logo:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

/* --- Phân cấp kích thước logo theo độ lớn Gói tài trợ (Visual Hierarchy) --- */
.diamond-tier .sponsor-logo { 
    max-height: 200px; /* To nhất, nổi bật nhất */
}
.gold-tier .sponsor-logo { 
    max-height: 175px;  
}
.silver-tier .sponsor-logo { 
    max-height: 125px;  
}
.companion-tier .sponsor-logo { 
    max-height: 100px;  /* Nhỏ nhất, tiết kiệm không gian */
}

/* Tinh chỉnh khoảng cách giữa các hàng tài trợ để tạo sự thoáng đãng (White space) */
.sponsors-grid {
    display: flex;
    flex-direction: column;
    gap: 45px; /* Tăng khoảng cách giữa các cấp bậc tài trợ */
    align-items: center;
}

/* =========================================
   9. FOOTER (CHÂN TRANG)
========================================= */
.site-footer {
    background-color: #050505; /* Màu đen sâu hơn nền trang một chút để phân tách */
    border-top: 3px solid var(--primary-gold);
    color: var(--text-muted);
    padding: 60px 50px 20px;
    font-family: var(--font-body);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Chia làm 4 cột trên Desktop */
    grid-template-columns: 2fr 1fr 1.5fr 1fr; 
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-subhead);
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Cột 1: Brand */
.footer-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.brand-col p { line-height: 1.6; font-size: 0.95rem; }

/* Cột 2: Links */
.link-col ul { list-style: none; }
.link-col li { margin-bottom: 12px; }
.link-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.link-col a:hover {
    color: var(--primary-gold);
    padding-left: 8px; /* Hiệu ứng đẩy chữ nhẹ sang phải khi hover */
}

/* Cột 3: Contact */
.contact-col p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-col i { color: var(--primary-gold); } /* Icon màu vàng */

/* Cột 4: Social Links */
.social-links {
    display: flex;
    gap: 15px;
}
.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-radius: 50%; /* Bo tròn thành hình tròn */
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

/* Hiệu ứng màu thương hiệu thật khi hover vào icon mạng xã hội */
.social-icon.facebook:hover { background-color: #1877F2; border-color: #1877F2; transform: translateY(-5px); }
.social-icon.youtube:hover { background-color: #FF0000; border-color: #FF0000; transform: translateY(-5px); }
.social-icon.tiktok:hover { background-color: #000000; border-color: #25F4EE; color: #25F4EE; transform: translateY(-5px); }

/* Bản quyền (Bottom) */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.85rem;
}

/* RESPONSIVE CHO FOOTER & SPONSORS */
@media screen and (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; } /* Tablet: 2 cột */
}
@media screen and (max-width: 576px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; } /* Mobile: 1 cột */
    .contact-col p { justify-content: center; }
    .social-links { justify-content: center; }
}




