:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-text: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #017439;
    --border-color: #e0e0e0;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--text-color-dark); /* Assuming body background is light */
    line-height: 1.6;
}

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

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

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

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

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

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__hero-description,
.page-slot-games__dark-bg .page-slot-games__section-description {
    color: var(--text-color-light);
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

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

.page-slot-games__btn-primary:hover {
    background-color: #a30707;
    border-color: #a30707;
}

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

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

.page-slot-games__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.page-slot-games__btn-small:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-slot-games__cta-center {
    text-align: center;
}

/* Images */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Logo Carousel Section */
.page-slot-games__logo-carousel-section {
    padding: 10px 0 30px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.page-slot-games__logo-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.page-slot-games__logo-item {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-slot-games__logo-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Hero Section */
.page-slot-games__hero-section {
    padding-top: 0; /* Rely on body padding-top */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

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

.page-slot-games__hero-content {
    width: 100%;
    padding: 50px 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-slot-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-color-light);
}

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

.page-slot-games__game-card {
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-slot-games__game-card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__game-card-text {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

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

/* Baccarat Integration Section */
.page-slot-games__baccarat-integration-section .page-slot-games__container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-slot-games__baccarat-integration-section .page-slot-games__content-block {
    flex: 1;
    padding-right: 20px;
}

.page-slot-games__baccarat-integration-section .page-slot-games__image-block {
    flex: 1;
}

.page-slot-games__baccarat-integration-section .page-slot-games__section-title,
.page-slot-games__baccarat-integration-section .page-slot-games__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-slot-games__feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-slot-games__feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-slot-games__dark-bg .page-slot-games__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--register-login-text);
}

.page-slot-games__light-bg .page-slot-games__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Promotions Section */
.page-slot-games__promo-card {
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    align-items: center;
}

.page-slot-games__promo-image {
    width: 50%;
    height: auto;
    object-fit: cover;
}

.page-slot-games__promo-content {
    width: 50%;
    padding: 30px;
    box-sizing: border-box;
}

.page-slot-games__promo-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

/* How to Play Section */
.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--register-login-text);
    color: var(--primary-color);
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

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

/* Security & Support Section */
.page-slot-games__security-support-section .page-slot-games__container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-slot-games__security-support-section .page-slot-games__content-block {
    flex: 1;
    padding-left: 20px;
}

.page-slot-games__security-support-section .page-slot-games__image-block {
    flex: 1;
    text-align: center;
}

.page-slot-games__security-support-section .page-slot-games__section-title,
.page-slot-games__security-support-section .page-slot-games__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* 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: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color-light);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

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

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

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

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

.page-slot-games__faq-answer a {
    color: var(--register-login-text);
    text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Conclusion Section */
.page-slot-games__conclusion-section .page-slot-games__section-description {
    margin-bottom: 30px;
}

/* Media Queries for Responsive Design */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-slot-games__section-title {
        font-size: 2em;
    }

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

    .page-slot-games__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-slot-games__hero-description {
        font-size: 1.1em;
    }

    .page-slot-games__baccarat-integration-section .page-slot-games__container,
    .page-slot-games__security-support-section .page-slot-games__container {
        flex-direction: column;
        text-align: center;
    }

    .page-slot-games__baccarat-integration-section .page-slot-games__content-block,
    .page-slot-games__security-support-section .page-slot-games__content-block {
        padding-right: 0;
        padding-left: 0;
    }

    .page-slot-games__promo-card {
        flex-direction: column;
    }

    .page-slot-games__promo-image,
    .page-slot-games__promo-content {
        width: 100%;
    }

    .page-slot-games__promo-content {
        padding: 20px;
    }

    .page-slot-games__promo-title {
        font-size: 1.8em;
    }

    .page-slot-games__feature-list li {
        font-size: 1em;
    }

    .page-slot-games__security-support-section .page-slot-games__image-block {
        order: -1; /* Image appears before text on smaller screens */
    }
}

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

    /* LOGO Carousel Area */
    .page-slot-games__logo-carousel-section {
        padding: 10px 15px 20px;
    }

    .page-slot-games__logo-carousel {
        gap: 15px;
    }

    .page-slot-games__logo-item {
        width: 80px !important; /* Fixed 80px, prohibit 100% */
        height: 80px !important;
        max-width: 80px !important;
        box-sizing: border-box;
    }

    /* HERO Main Image Area */
    .page-slot-games__hero-section {
        padding-top: 0 !important; /* Ensure no double padding from body */
    }

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

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

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

    /* Games Display Area */
    .page-slot-games__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__game-card-image {
        height: 180px;
    }

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

    /* General Images and Containers */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    /* Exclude logo-item from general image rules */
    .page-slot-games__logo-item img {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
    }

    .page-slot-games__section,
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__step-card,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Add horizontal padding to main content containers to prevent edge-to-edge content */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons and Button Containers */
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-small,
    .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;
    }

    /* Other Content Modules */
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    .page-slot-games__promo-title {
        font-size: 1.5em;
    }

    .page-slot-games__promo-text {
        font-size: 0.95em;
    }

    .page-slot-games__step-card {
        padding: 20px;
    }

    .page-slot-games__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .page-slot-games__step-title {
        font-size: 1.4em;
    }

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

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

    /* Flexbox direction for image/text blocks on mobile */
    .page-slot-games__flex-reverse-mobile .page-slot-games__container {
        flex-direction: column-reverse;
    }
    .page-slot-games__flex-normal-mobile .page-slot-games__container {
        flex-direction: column;
    }
}