/* style/slot-games.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Mặc định màu chữ cho nền tối */
    background-color: var(--background-color, #08160F); /* Màu nền trang */
}

/* Biến màu tùy chỉnh cho trang này */
.page-slot-games {
    --page-background-color: #08160F;
    --page-card-bg-color: #11271B;
    --page-text-main-color: #F2FFF6;
    --page-text-secondary-color: #A7D9B8;
    --page-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-border-color: #2E7A4E;
    --page-glow-color: #57E38D;
    --page-gold-color: #F2C14E;
    --page-divider-color: #1E3A2A;
    --page-deep-green-color: #0A4B2C;
    --page-light-section-bg: #f5f5f5; /* Sử dụng màu xám nhạt làm nền sáng vì không có màu sáng cụ thể trong bảng màu tùy chỉnh */
    --page-light-section-text: #333333; /* Màu chữ tối an toàn cho nền sáng */
}

/* Kiểu cơ bản cho các phần */
.page-slot-games__section {
    padding: 60px 20px;
    text-align: center;
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Phần Hero */
.page-slot-games__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* Đệm trên nhỏ, body xử lý offset header */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--page-background-color);
    color: var(--page-text-main-color);
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Ảnh nền mờ ảo */
    filter: none; /* Đảm bảo không có bộ lọc màu */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: var(--page-text-main-color);
    padding: 20px;
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Sử dụng clamp cho H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-text-main-color);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Màu phát sáng */
}

.page-slot-games__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-text-secondary-color);
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Cho nút phản hồi */
    white-space: normal; /* Cho phép xuống dòng văn bản */
    word-wrap: break-word; /* Cho phép xuống dòng văn bản */
}

.page-slot-games__btn-primary {
    background: var(--page-btn-gradient);
    color: var(--page-text-main-color);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--page-glow-color);
    border: 2px solid var(--page-glow-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--page-glow-color);
    color: var(--page-background-color);
    transform: translateY(-3px);
}

/* Kiểu chung cho các phần */
.page-slot-games__dark-bg {
    background-color: var(--page-background-color);
    color: var(--page-text-main-color);
}

.page-slot-games__light-bg {
    background-color: var(--page-light-section-bg);
    color: var(--page-light-section-text);
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    color: inherit; /* Kế thừa từ phần để đảm bảo độ tương phản */
}

.page-slot-games__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit;
}

.page-slot-games__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    filter: none; /* Đảm bảo không có bộ lọc màu */
}

/* Phần Tại Sao Nên Chọn */
.page-slot-games__features-grid,
.page-slot-games__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__card {
    background-color: var(--page-card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid var(--page-border-color);
    color: var(--page-text-main-color);
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--page-glow-color);
}

.page-slot-games__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-text-secondary-color);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Chiều cao cố định để nhất quán trong thẻ */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    filter: none; /* Đảm bảo không có bộ lọc màu */
}

/* Phần Hướng Dẫn Chơi */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: var(--page-card-bg-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
    border-left: 5px solid var(--page-glow-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: var(--page-glow-color);
    margin-bottom: 10px;
}

.page-slot-games__step-text {
    color: var(--page-text-secondary-color);
    font-size: 1em;
}

.page-slot-games__step-text a {
    color: var(--page-glow-color);
    text-decoration: none;
}

.page-slot-games__step-text a:hover {
    text-decoration: underline;
}

/* Phần Câu Hỏi Thường Gặp */
.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: var(--page-card-bg-color);
    border: 1px solid var(--page-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: left;
    overflow: hidden;
    color: var(--page-text-main-color);
}

.page-slot-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-text-main-color);
    background-color: var(--page-deep-green-color);
    border-bottom: 1px solid var(--page-divider-color);
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-slot-games__faq-item summary::marker {
    display: none;
}

.page-slot-games__faq-question {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--page-text-main-color);
}

.page-slot-games__faq-qtext {
    color: var(--page-text-main-color);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-glow-color);
}

.page-slot-games__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-text-secondary-color);
}

.page-slot-games__faq-answer p {
    margin-bottom: 10px;
}

.page-slot-games__faq-answer a {
    color: var(--page-glow-color);
    text-decoration: none;
}

.page-slot-games__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__hero-section {
        padding-top: 10px !important; /* body đã xử lý offset header */
        padding-bottom: 40px;
    }

    .page-slot-games__hero-content {
        padding: 15px;
    }

    .page-slot-games__main-title {
        font-size: 2em;
    }

    .page-slot-games__description {
        font-size: 1em;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 auto; /* Căn giữa các nút khi xếp chồng */
    }

    .page-slot-games__section {
        padding: 40px 0;
    }

    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ngăn chặn cuộn ngang */
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__text-block {
        font-size: 0.95em;
    }

    .page-slot-games__image-content,
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-slot-games__card-image {
        height: auto !important; /* Cho phép hình ảnh thẻ tự động điều chỉnh chiều cao */
    }

    .page-slot-games__features-grid,
    .page-slot-games__types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__card {
        padding: 20px;
    }

    .page-slot-games__card-title {
        font-size: 1.3em;
    }

    .page-slot-games__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-slot-games__faq-answer {
        padding: 15px 20px;
    }
    
    /* Đảm bảo tất cả các phần tử chứa hình ảnh/video/nút được định kích thước chính xác */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__cta-buttons,
    .page-slot-games__features-grid,
    .page-slot-games__types-grid,
    .page-slot-games__steps-list,
    .page-slot-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ngăn chặn cuộn ngang */
    }
}

/* Đảm bảo không sử dụng bộ lọc trên hình ảnh */
.page-slot-games img {
    filter: none;
}