/* style.css */

/* 1. Reset CSS cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif; /* Phông chữ Montserrat sạch sẽ, hiện đại */
    color: #333;
    background-color: #f9f9f9; /* Nền trang nhẹ để tương phản với header */
    overflow-x: hidden; /* Ngăn chặn cuộn ngang cho slider */
}

a {
    text-decoration: none;
    color: inherit;
}

/* 2. PHẦN HEADER */
.header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); /* Bóng nhẹ */
    position: sticky; /* Giữ header ở trên cùng khi cuộn */
    top: 0;
    z-index: 100; /* Đảm bảo nó luôn ở trên banner */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800; /* Đậm */
}

.logo-3 {
    color: #60A561; /* Màu xanh lá cây chủ đạo */
}

.logo-game {
    color: #000000;
}

/* Main Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px; /* Khoảng cách giữa các link */
}

.main-nav a {
    color: #777; /* Màu xám */
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #60A561; /* Màu xanh lá cây khi hover hoặc active */
}

/* Dòng gạch chân cho link active */
.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -2px; /* Đặt dưới một chút */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #60A561;
    border-radius: 2px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-selector {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    color: #777;
    border-radius: 25px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s;
}

.lang-selector:hover {
    background-color: #F9F9F9;
    border-color: #D0D0D0;
}

.lang-selector .fa-globe {
    font-size: 16px;
}

.btn-login {
    background-color: #3D663A; /* Màu xanh lá sẫm hơn một chút */
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-login:hover {
    background-color: #31532F; /* Sẫm hơn khi hover */
}

.btn-login:active {
    transform: scale(0.98); /* Hiệu ứng nhấn */
}

/* 3. PHẦN BANNER GIỚI THIỆU (SLIDER) */
.banner-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 7; /* Giữ tỷ lệ khung hình rộng */
}

.slider-container {
    display: flex;
    width: 100%; /* Đủ cho 3 slide (100% x 3) */
    height: 100%;
    transition: transform 0.8s ease-in-out; /* Hiệu ứng chuyển động mượt mà */
}

.slide {
    /*  flex: 0 0 100%; Mỗi slide chiếm 100% chiều rộng banner */
	 flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mini Logo ở góc */
.game-mini-logo {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 10;
}

/* Dots điều hướng */
.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active,
.dot:hover {
    background-color: #FFFFFF;
}

.dot.active {
    transform: scale(1.1); /* Phóng to nhẹ cho dot active */
}

/* 4. RESPONSIVE */
@media (max-width: 992px) {
    .header-container {
        padding: 10px;
    }
    .main-nav ul {
        gap: 20px;
        font-size: 14px;
    }
    .logo {
        font-size: 24px;
    }
    .banner-slider {
        aspect-ratio: 16 / 8; /* Tỷ lệ vuông hơn một chút trên màn hình nhỏ hơn */
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column; /* Xếp chồng trên mobile */
        gap: 10px;
        text-align: center;
    }
    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap; /* Cho phép menu xuống dòng */
        justify-content: center;
    }
    .header-actions {
        margin-top: 10px;
    }
    .banner-slider {
        aspect-ratio: 16 / 9; /* Tỷ lệ vuông hơn trên mobile */
    }
    .game-mini-logo {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}
/* 5. PHẦN SẢN PHẨM & DỊCH VỤ */
.services {
    background-color: #1c252e; /* Màu nền xanh đen đậm như ảnh mẫu */
    padding: 80px 0;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Chia 3 cột đều nhau */
    gap: 30px; /* Khoảng cách giữa các card */
}

/* Service Card */
.service-card {
    background-color: #ffffff;
    border-radius: 20px; /* Bo góc lớn theo style hiện đại */
    overflow: hidden; /* Để ảnh không chờm ra khỏi khung bo góc */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px); /* Hiệu ứng bay lên khi hover */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-image {
    width: 100%;
    aspect-ratio: 16 / 10; /* Giữ tỷ lệ ảnh chuẩn */
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ảnh luôn lấp đầy khung mà không bị méo */
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1); /* Zoom nhẹ ảnh khi hover card */
}

/* Content bên trong Card */
.service-content {
    padding: 35px 25px;
    text-align: center;
    color: #1c252e;
    flex-grow: 1; /* Đảm bảo các box content luôn cao bằng nhau */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    font-weight: 400;
}

/* 6. RESPONSIVE CHO PHẦN SERVICES */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet hiện 2 cột */
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr; /* Mobile hiện 1 cột */
    }
    .section-title {
        font-size: 28px;
    }
    .services {
        padding: 50px 0;
    }
}
/* 7. PHẦN THƯƠNG HIỆU ĐỐI TÁC */
.partners {
    background-color: #ffffff; /* Nền trắng sạch sẽ */
    padding: 80px 0;
}

.partners-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title-dark {
    color: #334155; /* Màu xám xanh đậm chuyên nghiệp */
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #64748b; /* Màu xám nhạt cho text phụ */
    font-size: 16px;
    font-weight: 400;
}

.partners-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Tự động xuống dòng trên màn hình nhỏ */
    gap: 20px;
}

/* Partner Item (Card chứa Logo) */
.partner-item {
    background-color: #ffffff;
    width: 180px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px; /* Bo góc lớn theo ảnh mẫu */
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); /* Đổ bóng nhẹ và mịn */
    border: 1px solid #f1f5f9; /* Viền siêu mỏng để tách khối */
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #60A561; /* Hiện viền màu thương hiệu khi hover */
}

.partner-item img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain; /* Đảm bảo logo không bị méo */
    filter: grayscale(20%); /* Làm nhạt màu một chút cho tinh tế */
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%); /* Hiện màu đầy đủ khi hover */
}

/* 8. RESPONSIVE CHO PHẦN PARTNERS */
@media (max-width: 768px) {
    .partners {
        padding: 50px 0;
    }
    
    .partner-item {
        width: calc(50% - 20px); /* 2 cột trên mobile */
        height: 100px;
    }
    
    .section-title-dark {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .partner-item {
        width: 100%; /* 1 cột trên mobile siêu nhỏ */
    }
}
/* 9. PHẦN FOOTER */
.footer {
    background-color: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid #eee;
    color: #666;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

/* Logo column */
.footer-logo-col {
    max-width: 250px;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
}

/* Contact column */
.footer-contact-col .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    margin-bottom: 5px;
}

.address-detail {
    color: #333;
    margin-bottom: 20px;
}

.contact-group {
    margin-bottom: 20px;
}

.contact-links strong {
    color: #000;
}

/* Legal column */
.health-warning {
    color: #888;
    margin-bottom: 25px;
}

.legal-info p {
    margin-bottom: 15px;
    color: #888;
}

/* Footer Bottom */
.footer-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-nav {
    font-size: 13px;
    margin-bottom: 10px;
    color: #999;
}

.footer-nav a {
    color: #999;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #3AA61B;
}

.copyright {
    font-size: 13px;
}

.brand-orange {
    color: #3AA61B;
    font-weight: 700;
}

/* Social & Back to top */
.social-links {
    display: flex;
    gap: 20px;
    font-size: 18px;
    color: #333;
}

.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 100px;
    width: 45px;
    height: 45px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.back-to-top:hover {
    background-color: #f36f21;
    transform: translateY(-5px);
}

/* 10. RESPONSIVE CHO FOOTER */
@media (max-width: 992px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    .footer-logo-col {
        max-width: 100%;
        text-align: center;
    }
    .footer-logo-img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-bottom-right {
        order: -1;
    }
}
/* 11. PHẦN GIỚI THIỆU GAME MỚI */
.new-games {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.section-title-left {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.game-intro-card {
    position: relative;
    width: 100%;
    background: linear-gradient(to right, rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.7)), 
                url('images/game-bg-vohiep.jpg'); /* Ảnh nền mờ phía sau */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden; /* Cần thiết để cắt ribbon và bo góc */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.game-card-content {
    display: flex;
    padding: 30px;
    align-items: center;
    gap: 40px;
}

/* Thumbnail Game */
.game-thumbnail {
    position: relative;
    flex: 0 0 240px;
    height: 240px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-mini-corner {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
}

/* Info Detail */
.game-info-detail {
    color: #ffffff;
    max-width: 600px;
}

.game-info-detail h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Actions Buttons */
.game-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background-color: #ffffff;
    color: #4CAF50; /* Màu xanh lá đặc trưng */
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 600;
}

.action-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

.action-btn span {
    color: #888;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: #f0f0f0;
}

/* Ribbon "Sắp phát hành" */
.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    z-index: 5;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background-color: #FFC107; /* Màu vàng cam của ribbon */
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    text-transform: uppercase;
    text-align: center;
    right: -50px;
    top: 30px;
    transform: rotate(45deg);
}

/* 12. RESPONSIVE */
@media (max-width: 992px) {
    .game-card-content {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }
    .game-thumbnail {
        flex: 0 0 200px;
        width: 200px;
        height: 200px;
    }
    .game-actions {
        justify-content: center;
    }
}
/* 13. PHẦN ĐỊA CHỈ TRỤ SỞ */
.office-address {
    background-color: #f5f5f5; /* Màu nền xám nhạt như ảnh mẫu */
    padding: 80px 0;
}

.address-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Cột thông tin văn bản */
.address-info {
    flex: 1;
    text-align: center;
}

.address-title {
    font-size: 38px;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    margin-bottom: 20px;
}

.address-divider {
    width: 60px;
    height: 4px;
    background-color: #ff5722; /* Màu gạch chân cam đỏ */
    margin: 0 auto 30px;
    border-radius: 2px;
}

.address-text {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto;
}

/* Cột bản đồ */
.address-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 0; /* Khử khoảng trắng thừa dưới iframe */
}

.address-map iframe {
    display: block;
}

/* 14. RESPONSIVE CHO ĐỊA CHỈ */
@media (max-width: 992px) {
    .address-wrapper {
        flex-direction: column; /* Xếp chồng trên Tablet/Mobile */
        gap: 40px;
    }
    
    .address-title {
        font-size: 28px;
    }
    
    .address-info {
        order: 1; /* Chữ hiện trước */
    }
    
    .address-map {
        order: 2; /* Bản đồ hiện sau */
        width: 100%;
    }
    
    .address-map iframe {
        height: 350px; /* Giảm chiều cao trên mobile */
    }
}
/* 15. PHẦN ĐIỀU KHOẢN DỊCH VỤ */
.policy-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.policy-container {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px;
    max-height: 500px; /* Giới hạn chiều cao */
    overflow-y: auto; /* Tạo thanh cuộn dọc */
}

/* Tùy chỉnh thanh cuộn cho đẹp hơn */
.policy-container::-webkit-scrollbar {
    width: 6px;
}
.policy-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.policy-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.policy-container::-webkit-scrollbar-thumb:hover {
    background: #60A561;
}

.policy-item {
    margin-bottom: 25px;
}

.policy-item h3 {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin-bottom: 12px;
    border-left: 4px solid #60A561; /* Nhấn mạnh đầu mục */
    padding-left: 15px;
    text-transform: uppercase;
}

.policy-item p, .policy-item li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.policy-item ul {
    padding-left: 20px;
    list-style-type: disc;
}

.sub-policy {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.sub-policy h4 {
    font-size: 15px;
    color: #444;
    margin: 15px 0 5px;
}

.policy-item.highlight {
    background-color: #fff3e0; /* Màu nền nổi bật cho phần xóa dữ liệu */
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #ff9800;
}

.policy-item.highlight h3 {
    border-left-color: #ff9800;
    color: #e65100;
}

/* 16. RESPONSIVE */
@media (max-width: 768px) {
    .policy-container {
        padding: 20px;
        max-height: 400px;
    }
    .policy-item h3 {
        font-size: 16px;
    }
}