/* =========================================
   1. CẤU HÌNH CƠ BẢN (RESET & BASE)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.6;
    /* Sửa lỗi cuộn trang */
    overflow-x: hidden;
    min-height: 100vh;
    overflow-x: hidden;
    /* Giấu thanh cuộn ngang thừa */
}

h1,
h2,
h3,
h4,
.clb-title-new,
.footer-title,
.nav-link {
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   2. HEADER & MENU
   ========================================= */
.site-header {
    background-color: #103e15;
    width: 100%;
    height: 70px;
    border-bottom: 3px solid #fdd835;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.header-logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.header-img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    border: 2px solid #fdd835;
    margin-right: 10px;
    background: #fff;
}

.header-brand {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Menu Desktop */
.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #e8f5e9;
    font-weight: bold;
    font-size: 15px;
    margin: 0 15px;
    padding-bottom: 5px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fdd835;
    border-bottom: 2px solid #fdd835;
}

/* Nút Hotline Desktop & Mobile Elements */
.desktop-hotline .btn-hotline {
    background-color: #fdd835;
    color: #103e15;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.btn-hotline-mobile,
.menu-toggle {
    display: none;
}

/* =========================================
   3. SLIDER HÌNH ẢNH
   ========================================= */
/* --- Slider Container --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    /* Chiều cao slider */
    overflow: hidden;
    background: #000;
}

/* --- Các Slide --- */
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Ẩn mặc định */
    transition: opacity 1s ease-in-out;
    /* Hiệu ứng mờ dần 1 giây */
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    /* Hiện slide đang chọn */
    z-index: 2;
}

/* --- Hiệu ứng Ken Burns (Zoom chậm) --- */
.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s linear;
    /* Thời gian zoom khớp với thời gian chuyển slide */
}

/* Khi slide active thì bắt đầu zoom lên 1 chút */
.slide-item.active .slide-img {
    transform: scale(1.15);
}

/* --- Lớp phủ tối (Overlay) để nổi chữ --- */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

/* --- Nội dung chữ --- */
.slide-content {
    position: absolute;
    bottom: 100px;
    /* Canh lề dưới */
    left: 10%;
    /* Canh lề trái */
    color: #fff;
    z-index: 3;
    max-width: 600px;
    transform: translateY(20px);
    transition: all 1s ease-out;
    opacity: 0;
}

/* Hiệu ứng chữ trồi lên khi slide hiện */
.slide-item.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fdd835;
    /* Vàng */
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-desc {
    font-size: 18px;
    margin-bottom: 25px;
}

.btn-slider {
    padding: 12px 30px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-slider:hover {
    background: #fdd835;
    color: #103e15;
}

/* --- Nút điều hướng (Dots) --- */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #fdd835;
    transform: scale(1.2);
}

/* --- Mũi tên Next/Prev --- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: 0.3s;
}

.nav-arrow:hover {
    background: #fdd835;
    color: black;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slider-container {
        height: 400px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-content {
        bottom: 60px;
        left: 5%;
        width: 90%;
    }
}

/* =========================================
   4. NỘI DUNG CHÍNH (INFO BOX) - PHẦN QUAN TRỌNG
   ========================================= */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    /* Quan trọng: Cho phép rớt dòng */
    gap: 30px;
    justify-content: space-between;
}

.column {
    flex: 1;
    min-width: 300px;
    /* Đảm bảo cột không bị bóp méo */
}

.info-box {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #4CAF50;
    margin-top: 25px;
    margin-bottom: 30px;
    /* Khoảng cách dưới */
}

.box-header {
    background-color: #43A047;
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.box-content {
    margin-top: 10px;
}

.box-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.box-content li {
    margin-bottom: 8px;
}

.highlight-red {
    color: #d32f2f;
    font-weight: bold;
}

.highlight-blue {
    color: #0277BD;
    font-weight: bold;
}

.phone-number {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #d32f2f;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

/* =========================================
   5. MẠNG XÃ HỘI (3 CỘT)
   ========================================= */
/* Layout chung 3 cột */
.social-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Thẻ Card */
.social-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 650px;
    /* Tăng chiều cao để chứa nút Follow bên dưới */
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

/* Header màu sắc */
.social-header {
    padding: 15px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-tiktok {
    background: #000;
}

.header-facebook {
    background: #1877f2;
}

.header-youtube {
    background: #ff0000;
}

/* Style cho trình phát giả TikTok */
.tiktok-fake-player {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Ảnh nền video (Phóng to nhẹ khi di chuột) */
.tiktok-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Đảm bảo ảnh lấp đầy khung */
    transition: transform 0.5s ease;
    opacity: 0.8;
    /* Làm tối nhẹ để nút Play nổi bật */
}

.tiktok-fake-player:hover .tiktok-thumb {
    transform: scale(1.05);
    opacity: 0.6;
}

/* Nút Play ở giữa */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    backdrop-filter: blur(5px);
    /* Hiệu ứng mờ kính sang trọng */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.tiktok-fake-player:hover .play-icon {
    background: #fe2c55;
    /* Màu đỏ TikTok khi hover */
    border-color: #fe2c55;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Logo góc */
.tiktok-logo-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.8;
}

/* Phần chứa nội dung nhúng (Quan trọng: Chiếm hết khoảng trống) */
.embed-body {
    flex: 1;
    /* Tự động giãn nở */
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
}

/* Riêng Facebook cần xử lý để full chiều rộng */
.facebook-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    /* Cho phép cuộn nếu dài */
}

.fb-page,
.fb-page span,
.fb-page iframe {
    width: 100% !important;
    /* Ép facebook bung full */
}

/* Lớp dự phòng Facebook (Hiện khi lỗi) */
.fb-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #eee;
    z-index: 0;
}

.btn-fallback {
    padding: 10px 20px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* Footer chứa nút Follow */
.social-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-follow {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-follow:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.tiktok-btn {
    background: #000;
}

.fb-btn {
    background: #1877f2;
}

.yt-btn {
    background: #ff0000;
}

/* Mobile */
@media (max-width: 992px) {
    .social-section {
        flex-direction: column;
        height: auto;
    }

    .social-card {
        width: 100%;
        height: 600px;
        margin-bottom: 30px;
    }
}

/* =========================================
   6. FOOTER
   ========================================= */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Chặn thanh cuộn ngang */
    width: 100%;
}

.site-footer {
    /* Ép buộc bung full màn hình bất chấp thẻ cha */
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;

    /* Màu sắc và căn chỉnh */
    background-color: #103e15;
    color: #ffffff;
    border-top: 4px solid #fdd835;
    padding-top: 50px;
    padding-bottom: 20px;
    margin-top: 60px;
    /* Cách xa nội dung bên trên */

    /* Đảm bảo không bị ảnh hưởng bởi flexbox của cha */
    flex-shrink: 0;
    display: block !important;
    box-sizing: border-box;
}

/* Container nội dung bên trong Footer */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* Cột Footer */
.footer-col {
    flex: 1;
    min-width: 280px;
}

/* --- Các thành phần con trong Footer --- */
.footer-brand-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fdd835;
    background: #fff;
    margin-right: 15px;
    object-fit: cover;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: bold;
    color: #fdd835;
    text-transform: uppercase;
}

.footer-slogan {
    font-style: italic;
    color: #a5d6a7;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 4px solid #fdd835;
    padding-left: 10px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 15px;
}

.icon-gold {
    color: #fdd835;
    font-size: 18px;
    margin-right: 10px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: #fdd835;
    color: #103e15;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #fff;
    transform: scale(1.1);
}

.loc-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.footer-map {
    width: 100%;
    height: 200px;
    border: 2px solid #fdd835;
    border-radius: 8px;
    overflow: hidden;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #ccc;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .site-footer {
        padding-bottom: 80px;
    }

    /* Chừa chỗ cho nút nổi bên dưới */
}

/* =========================================
   7. NÚT TIỆN ÍCH (ZALO, TOP, LIVE)
   ========================================= */
/* Nút Zalo/Hotline bên PHẢI */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.btn-float {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    border: 2px solid #fff;
}

.btn-float:hover {
    transform: scale(1.05);
}

.float-zalo {
    background: #0068ff;
}

.float-call {
    background: #d32f2f;
    animation: pulse 2s infinite;
}

/* Nút Live bên TRÁI */
.floating-live {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.btn-live-float {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
    border: 2px solid #fff;
}

.dot-blink {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* giaidau.html */

/* --- Style cho Khung (Card) Giải Đấu --- */
/* --- Style Tiêu Đề Sự Kiện --- */
.event-header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.event-header h2 {
    color: #d32f2f;
    /* Màu đỏ nổi bật */
    font-size: 22px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
    display: inline-block;
    border-bottom: 3px solid #fdd835;
    /* Gạch chân màu vàng */
    padding-bottom: 5px;
}

/* --- Style Khung Card (Giữ nguyên các phần khác, chỉ sửa phần ảnh) --- */
.tournament-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    font-family: Arial, sans-serif;
}

.tournament-card:hover {
    transform: translateY(-5px);
}

/* --- SỬA LỖI ẢNH Ở ĐÂY --- */
.tournament-card .card-image {
    position: relative;
    width: 100%;
    height: auto;
    /* QUAN TRỌNG: Để chiều cao tự động */
    display: block;
    background-color: #eee;
    /* Màu nền chờ khi ảnh chưa load */
}

.tournament-card .card-image img {
    width: 100%;
    height: auto;
    /* QUAN TRỌNG: Giữ nguyên tỷ lệ gốc của ảnh */
    display: block;
    /* Loại bỏ khoảng trắng thừa dưới chân ảnh */
    object-fit: contain;
    /* Đảm bảo ảnh nằm gọn trong khung */
}

/* Nhãn trạng thái (Giữ nguyên) */
.tournament-card .badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #00c853;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Nội dung bên dưới (Giữ nguyên) */
.tournament-card .card-content {
    padding: 15px 20px 20px;
}

.tournament-card .card-title {
    font-size: 18px;
    /* Tăng nhẹ cỡ chữ tên giải cho rõ */
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tournament-card .info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.tournament-card .info-list li {
    display: flex;
    align-items: start;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.tournament-card .info-list li span.icon {
    margin-right: 10px;
    min-width: 20px;
}

.tournament-card .btn-register {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: #2e7d32;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.tournament-card .btn-register:hover {
    background-color: #1b5e20;
}

/* Kết quả giải đấu */
/* --- Style cho Section Kết Quả --- */
.results-container {
    max-width: 800px;
    /* Rộng hơn card giải đấu một chút để chứa nhiều thông tin */
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* --- Card Kết Quả (Style tương tự card giải đấu nhưng rộng hơn) --- */
.result-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    margin-bottom: 30px;
}

/* Tiêu đề của giải đấu bên trong Card */
.result-header-title {
    background-color: #f5f5f5;
    /* Nền xám nhẹ phân biệt tiêu đề */
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.result-header-title h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.result-header-title h3::before {
    content: '♟';
    /* Icon quân cờ trang trí */
    margin-right: 10px;
    font-size: 24px;
    color: #d32f2f;
}

/* --- STYLE THANH CÔNG CỤ KẾT QUẢ --- */
.result-action-bar {
    padding: 20px;
    background-color: #f8f9fa;
    /* Màu nền xám nhẹ tách biệt với bảng */
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    /* Căn giữa các nút */
    align-items: center;
    gap: 15px;
    /* Khoảng cách giữa các nút */
    flex-wrap: wrap;
    /* Cho phép rớt dòng trên điện thoại */
}

/* Style chung cho nút bấm */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    /* Bo tròn kiểu viên thuốc */
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    /* Giữ chữ trên 1 dòng */
}

.btn-action .icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Hiệu ứng chung khi hover: Nổi lên nhẹ */
.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* --- MÀU SẮC TỪNG LOẠI NÚT --- */

/* 1. Nút Bản đồ (Màu trắng/xám) */
.btn-map {
    background-color: #ffffff;
    color: #555;
    border: 1px solid #ddd;
}

.btn-map:hover {
    background-color: #f1f1f1;
    color: #333;
}

/* 2. Nút Phụ (Bảng U10 - Màu Vàng thương hiệu) */
.btn-sub {
    background-color: #fff3cd;
    /* Vàng nhạt */
    color: #856404;
    border: 1px solid #ffeeba;
}

.btn-sub:hover {
    background-color: #fdd835;
    /* Vàng đậm */
    color: #000;
    border-color: #fdd835;
}

/* 3. Nút Chính (Chess Results - Màu Xanh đậm thương hiệu) */
.btn-primary {
    background-color: #103e15;
    /* Xanh Ông Hùng */
    color: #ffffff;
    border: 1px solid #103e15;
    padding: 10px 25px;
    /* Nút chính to hơn chút */
}

.btn-primary:hover {
    background-color: #0d3312;
    opacity: 0.9;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
    .result-action-bar {
        flex-direction: column;
        /* Xếp dọc trên điện thoại */
        gap: 10px;
    }

    .btn-action {
        width: 100%;
        /* Nút rộng full màn hình cho dễ bấm */
        padding: 12px;
        /* Nút cao hơn chút */
        font-size: 15px;
    }
}

/* 1. Dòng hướng dẫn chỉ hiện trên mobile */
.mobile-hint {
    display: none;
    /* Ẩn trên máy tính */
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 8px;
    font-style: italic;
    background: #fff3cd;
    /* Màu vàng nhạt chú ý */
    padding: 5px;
    border-radius: 4px;
}

/* 2. Container bao quanh Iframe */
.live-frame-container {
    width: 100%;
    height: 400px;
    /* Chiều cao cố định của cửa sổ xem */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    /* Bo tròn góc */
    background-color: #fff;
    position: relative;
    /* Để xử lý loading nếu cần */
}

/* 3. Bản thân cái Iframe */
.live-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* --- Tối ưu hiển thị trên Mobile --- */
@media (max-width: 768px) {

    /* Hiện hướng dẫn vuốt tay */
    .mobile-hint {
        display: block;
    }

    /* Tăng chiều cao trên mobile để xem được nhiều hơn chút */
    .live-frame-container {
        height: 500px;
    }
}

/* footer giaidau.html */
/* --- Footer Styles --- */
.site-footer {
    background-color: #1b5e20;
    /* Màu xanh lá đậm sang trọng */
    color: #ffffff;
    padding: 50px 0 0 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

/* --- Cột Footer --- */
.footer-col {
    flex: 1;
    min-width: 250px;
    /* Đảm bảo không bị co quá nhỏ trên mobile */
    margin-bottom: 30px;
}

/* Cột 1: Logo và Giới thiệu */
.footer-logo-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    margin-right: 15px;
    background-color: white;
    /* Nền trắng cho logo nổi bật */
}

.footer-brand-name {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fdd835;
    /* Màu vàng nổi bật trên nền xanh */
    margin: 0;
}

.footer-slogan {
    font-style: italic;
    color: #a5d6a7;
    /* Màu xanh nhạt */
    margin-bottom: 15px;
    display: block;
}

/* Cột 2 & 3: Tiêu đề và List */
.footer-heading {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #2e7d32;
    /* Gạch chân tiêu đề */
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e8f5e9;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fdd835;
    /* Hover chuyển màu vàng */
    padding-left: 5px;
    /* Hiệu ứng dịch chuyển nhẹ */
}

/* Thông tin liên hệ */
.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 10px;
    font-size: 18px;
    color: #fdd835;
}

/* --- Dòng bản quyền dưới cùng --- */
.footer-bottom {
    background-color: #103e15;
    /* Màu đậm hơn nữa */
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-size: 13px;
    color: #a5d6a7;
    border-top: 1px solid #2e7d32;
}

/* Responsive: Trên điện thoại xếp chồng lên nhau */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }

    .footer-heading {
        width: 100%;
        border-bottom: 1px solid #2e7d32;
    }
}


/* =========================================
    tuvan.html: content
   ========================================= */

.faq-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

/* Phần tiêu đề trang */
.page-title-box {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    color: #103e15;
    /* Xanh thương hiệu */
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
}

/* Phần Hỏi Đáp (Accordion) */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Khoảng cách giữa các câu hỏi */
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Câu hỏi (Thanh ngang) */
.faq-question {
    background-color: #fff;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: 0.3s;
}

/* Icon dấu + */
.faq-icon {
    font-size: 20px;
    color: #103e15;
    transition: 0.3s;
}

/* Trạng thái khi đang mở */
.faq-question.active {
    background-color: #f9f9f9;
    color: #103e15;
    /* Chữ chuyển xanh */
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    /* Xoay dấu cộng thành dấu nhân */
    color: #d32f2f;
}

/* Phần Trả lời (Ẩn mặc định) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Khung kêu gọi (CTA) cuối trang */
.cta-box {
    background: linear-gradient(135deg, #103e15, #2e7d32);
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(16, 62, 21, 0.3);
}

.cta-box h3 {
    margin-top: 0;
    color: #fdd835;
}

.cta-box p {
    margin-bottom: 25px;
    color: #e8f5e9;
}

.btn-zalo-large {
    background-color: #fff;
    color: #0068ff;
    /* Màu xanh Zalo */
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-zalo-large:hover {
    background-color: #fdd835;
    /* Hover thành màu vàng */
    color: #103e15;
    transform: scale(1.05);
}


/* --- CHATBOT STYLES */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #fdd835;
    color: #103e15;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    border: 2px solid #fff;
    animation: bounce 2s infinite;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-box-container {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    height: 480px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border: 1px solid #ddd;
}

.chat-header {
    background-color: #103e15;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-avatar {
    margin-right: 10px;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f4f6f8;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    background: #fff;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.bot-msg {
    background-color: #ffffff;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-msg {
    background-color: #103e15;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.suggestion-box {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.suggestion-box span {
    background: #e8f5e9;
    color: #103e15;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    border: 1px solid #2e7d32;
}

.suggestion-box span:hover {
    background: #fdd835;
}

#chatInput {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

.send-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #103e15;
    margin-left: 10px;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-box-container {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 60vh;
    }

    .chat-toggle-btn {
        padding: 10px 20px;
        font-size: 14px;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   shop.html: Menu shop
   ========================================= */

/* --- SHOP SECTION STYLES --- */
.shop-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

/* Bộ lọc danh mục */
.shop-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: #fff;
    border: 2px solid #103e15;
    color: #103e15;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    outline: none;
}

.filter-btn:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #103e15;
    color: #fdd835;
    box-shadow: 0 5px 15px rgba(16, 62, 21, 0.3);
}

/* Lưới sản phẩm */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Thẻ sản phẩm */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #fdd835;
    transform: translateY(-5px);
}

.product-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Thông tin sản phẩm */
.product-info {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: bold;
    min-height: 40px;
    /* Giữ độ cao tiêu đề đồng đều */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 14px;
}

.price-new {
    color: #d32f2f;
    font-weight: bold;
    font-size: 18px;
}

.product-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

/* Nút mua hàng */
.btn-buy {
    display: block;
    background: #103e15;
    color: #fff;
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-buy:hover {
    background: #fdd835;
    color: #103e15;
}

/* Hiệu ứng hiển thị */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show-anim {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Mobile */
@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Mobile hiện 2 cột */
    .product-img {
        height: 160px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 14px;
    }

    .btn-buy {
        font-size: 12px;
        padding: 8px;
    }
}