/* style/slot-games.css */

/* Biến màu sắc */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --register-login-font-color: #FFFF00;
    --background-light: #ffffff;
    --background-dark: #017439;
}

/* Thiết lập chung cho trang Nổ Hũ */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-light); /* body đã padding-top: var(--header-offset); trang không viết lại */
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-slot-games__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    color: var(--text-color-light);
    background-color: var(--background-dark);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-slot-games__main-title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-color-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    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: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-button-color);
}

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--register-button-color), 10%);
    border-color: darken(var(--register-button-color), 10%);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Introduction Section */
.page-slot-games__introduction-section,
.page-slot-games__how-to-play-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__call-to-action-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-slot-games__why-choose-app-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-slot-games__why-choose-app-section .page-slot-games__section-title,
.page-slot-games__promotions-section .page-slot-games__section-title,
.page-slot-games__faq-section .page-slot-games__section-title {
    color: var(--text-color-light);
}

.page-slot-games__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Feature List */
.page-slot-games__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-slot-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-title {
    font-size: 1.8em;
    color: var(--text-color-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__feature-item p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* Step List */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-slot-games__step-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__step-item p {
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

/* Promotion List */
.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-slot-games__promo-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__promo-title {
    font-size: 1.8em;
    color: var(--text-color-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__promo-item p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__promo-banner {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 50px auto 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsible Gaming List */
.page-slot-games__responsibility-list {
    list-style: disc;
    padding-left: 20px;
    max-width: 800px;
    margin: 30px auto;
    color: var(--text-color-dark);
}

.page-slot-games__responsibility-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color-light);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__faq-question::marker {
    display: none;
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-slot-games__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 2.8em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-slot-games__main-title {
        font-size: 2.2em;
        line-height: 1.2;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 20px;
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__introduction-section,
    .page-slot-games__why-choose-app-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__responsible-gaming-section,
    .page-slot-games__faq-section,
    .page-slot-games__call-to-action-section {
        padding: 40px 0;
    }
    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__feature-list,
    .page-slot-games__step-list,
    .page-slot-games__promo-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-slot-games__faq-answer {
        padding: 15px;
    }
    .page-slot-games__video-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }
    .page-slot-games__video-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}

/* Contrast Fixes */
.page-slot-games__dark-bg {
  color: var(--text-color-light); /* Deep background with light text */
  background: var(--background-dark); 
}

.page-slot-games__light-bg {
  color: var(--text-color-dark); /* Light background with dark text */
  background: var(--background-light);
}

.page-slot-games__btn-primary {
  background: var(--register-button-color);
  color: var(--register-login-font-color);
  border: 2px solid var(--register-button-color);
}

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

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