.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
    font-size: 16px;
}

/* Fixed header offset - applied to the hero section */
.page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop and mobile controlled by shared var */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #017439; /* Brand main color */
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.page-slot-games__hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.page-slot-games__hero-image-wrapper {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    max-width: 500px;
}

.page-slot-games__hero-image {
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%; /* Ensure image fills its wrapper */
    height: auto;
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
    color: #ffffff;
}

.page-slot-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__dark-bg .page-slot-games__paragraph {
    color: #f0f0f0;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login buttons */
    border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
    background-color: #e02a2a;
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-slot-games__btn-play {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
}

.page-slot-games__btn-play:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

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

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

/* Feature Grid */
.page-slot-games__about-nổ-hũ {
    padding: 60px 0;
}

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

.page-slot-games__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__light-bg .page-slot-games__feature-item {
    background-color: #ffffff;
    color: #333333;
}

.page-slot-games__feature-icon {
    width: 200px; /* Minimum size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-slot-games__feature-text {
    color: #555555;
}

/* Game Grid */
.page-slot-games__popular-games {
    padding: 60px 0;
}

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

.page-slot-games__game-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__dark-bg .page-slot-games__game-card {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-slot-games__game-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__game-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #ffffff;
}
.page-slot-games__game-title a {
    color: #ffffff;
    text-decoration: none;
}
.page-slot-games__game-title a:hover {
    color: #FFFF00;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* How to Play Steps */
.page-slot-games__how-to-play {
    padding: 60px 0;
}

.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__step-item {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-left: 5px solid #017439;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__step-text {
    color: #555555;
}
.page-slot-games__step-text a {
    color: #017439;
    text-decoration: underline;
}
.page-slot-games__step-text a:hover {
    color: #005a2e;
}

/* Promotions */
.page-slot-games__promotions {
    padding: 60px 0;
}

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

.page-slot-games__promo-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__dark-bg .page-slot-games__promo-card {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-slot-games__promo-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #ffffff;
}
.page-slot-games__promo-title a {
    color: #ffffff;
    text-decoration: none;
}
.page-slot-games__promo-title a:hover {
    color: #FFFF00;
}

.page-slot-games__promo-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* Safety Section */
.page-slot-games__safety {
    padding: 60px 0;
}

.page-slot-games__safety-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__safety-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-slot-games__safety-heading {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__safety-text {
    color: #555555;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

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

.page-slot-games__faq-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__dark-bg .page-slot-games__faq-item {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #2a2a2a;
}

.page-slot-games__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
}

.page-slot-games__faq-answer p {
    margin-top: 0;
    margin-bottom: 20px;
    color: inherit;
    text-align: left;
}
.page-slot-games__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}
.page-slot-games__faq-answer a:hover {
    color: #C30808;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus to X / Minus */
}

/* CTA Section */
.page-slot-games__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-slot-games__cta-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }
    .page-slot-games__hero-content-wrapper {
        flex-direction: column;
    }
    .page-slot-games__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
        text-align: center;
        max-width: 100%;
    }
    .page-slot-games__hero-buttons {
        justify-content: center;
    }
    .page-slot-games__hero-image-wrapper {
        margin-left: 0;
        max-width: 80%;
    }
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 15px;
    }
    .page-slot-games__hero-section {
        min-height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 30px;
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
        padding-top: 30px;
        margin-bottom: 30px;
    }
    .page-slot-games__paragraph {
        font-size: 0.95em;
    }
    .page-slot-games__hero-content {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__hero-image, .page-slot-games__feature-icon, .page-slot-games__game-image, .page-slot-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* All image containers, content sections, and card elements */
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__feature-item,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__container,
    .page-slot-games__about-nổ-hũ,
    .page-slot-games__popular-games,
    .page-slot-games__how-to-play,
    .page-slot-games__promotions,
    .page-slot-games__safety,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Buttons responsiveness */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play,
    .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;
        padding-right: 15px;
    }
    .page-slot-games__hero-buttons,
    .page-slot-games__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Video responsiveness (if any) */
    .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;
    }

    /* FAQ items */
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 20px;
    }
}