:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-dark: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* style/slot-games.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    padding-bottom: 60px; /* Thêm padding dưới để tránh footer đè lên nội dung */
}

.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    box-sizing: border-box;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Giới hạn chiều cao hình ảnh chính */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-slot-games__hero-title {
    color: var(--gold-color);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2.2rem, 4vw, 3.8rem); /* Responsive font size for H1 */
}

.page-slot-games__hero-description {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.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;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff; /* Forced white for contrast on gradient */
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    margin-left: 20px;
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff; /* Forced white for contrast */
    transform: translateY(-2px);
}

.page-slot-games__section {
    padding: 60px 0;
    border-top: 1px solid var(--divider-color);
}

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

.page-slot-games__section-title {
    color: var(--gold-color);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-slot-games__cards-grid,
.page-slot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__card,
.page-slot-games__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__card-image,
.page-slot-games__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__card-title,
.page-slot-games__promo-title {
    color: var(--gold-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.page-slot-games__card-text,
.page-slot-games__promo-text {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-grow: 1;
}

.page-slot-games__how-to-play .page-slot-games__btn-secondary,
.page-slot-games__strategies .page-slot-games__btn-secondary,
.page-slot-games__why-choose-us .page-slot-games__btn-secondary,
.page-slot-games__promotions .page-slot-games__btn-primary {
    margin-top: 40px;
    margin-left: 0;
}

.page-slot-games__steps-list,
.page-slot-games__tips-list,
.page-slot-games__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.page-slot-games__step-item,
.page-slot-games__tip-item,
.page-slot-games__advantage-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

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

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

.page-slot-games__tip-item strong,
.page-slot-games__advantage-item strong {
    color: var(--gold-color);
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom-color: var(--border-color);
}

.page-slot-games__faq-question:hover {
    background-color: var(--primary-color);
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--text-main);
}

.page-slot-games__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

/* --- Responsive Design --- */

/* All images base responsive style */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* All video base responsive style */
.page-slot-games video,
.page-slot-games__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* All video container base responsive style */
.page-slot-games__video-section,
.page-slot-games__video-container,
.page-slot-games__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* All button base responsive style */
.page-slot-games__cta-button,
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Button container base responsive style */
.page-slot-games__cta-buttons,
.page-slot-games__button-group,
.page-slot-games__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-slot-games__hero-content {
        margin-top: 20px;
    }

    .page-slot-games__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust H1 for mobile */
    }

    .page-slot-games__hero-description {
        font-size: 1rem;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__hero-content .page-slot-games__btn-primary,
    .page-slot-games__hero-content .page-slot-games__btn-secondary {
        margin-left: 0 !important;
    }

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

    .page-slot-games__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-slot-games__section-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

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

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

    .page-slot-games__card-image,
    .page-slot-games__promo-image {
        height: auto; /* Allow auto height for mobile images */
        min-height: 200px; /* Ensure min size */
    }

    .page-slot-games__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-slot-games__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__promo-card,
    .page-slot-games__step-item,
    .page-slot-games__tip-item,
    .page-slot-games__advantage-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games__hero-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

    /* Mobile video responsiveness */
    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-slot-games__video-section {
        padding-top: 10px !important;
    }
    
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsiveness */
    .page-slot-games__cta-button,
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-slot-games__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}