:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #26A9E0; /* Using primary color for dark sections */
    --button-login: #EA7C07;
    --border-color: #e0e0e0;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light body background */
    line-height: 1.6;
    padding-bottom: 50px; /* Space above footer */
}

/* 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 */
    background-color: var(--bg-light); /* Background for the section itself */
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 200px;
    min-height: 200px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-slot-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-slot-games__description {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    min-width: 180px; /* Minimum width for buttons */
    text-align: center;
}

.page-slot-games__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-slot-games__cta-button--primary:hover {
    background: #1e87b3; /* Darker primary color */
    border-color: #1e87b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games__cta-button--secondary {
    background: var(--button-login); /* Using login color for secondary CTA */
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

.page-slot-games__cta-button--secondary:hover {
    background: #bb6106; /* Darker login color */
    border-color: #bb6106;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Default light background */
    color: var(--text-dark);
}

.page-slot-games__dark-section {
    background-color: var(--bg-dark); /* Using primary color as dark background */
    color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: var(--text-light);
}

.page-slot-games__dark-section .page-slot-games__card-title {
    color: var(--text-light);
}

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

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

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-slot-games__introduction-section p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
}

/* Card Grid Styling */
.page-slot-games__game-type-grid,
.page-slot-games__feature-grid,
.page-slot-games__promotion-grid,
.page-slot-games__security-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

.page-slot-games__game-type-card,
.page-slot-games__feature-card,
.page-slot-games__promotion-card,
.page-slot-games__security-support-card,
.page-slot-games__step-card {
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark); /* Default for light cards */
    border: 1px solid var(--border-color);
}

.page-slot-games__dark-section .page-slot-games__game-type-card,
.page-slot-games__dark-section .page-slot-games__step-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-slot-games__game-type-card:hover,
.page-slot-games__feature-card:hover,
.page-slot-games__promotion-card:hover,
.page-slot-games__security-support-card:hover,
.page-slot-games__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-type-card img,
.page-slot-games__feature-card img,
.page-slot-games__promotion-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    border-radius: 5px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-slot-games__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-slot-games__dark-section .page-slot-games__card-title {
    color: var(--text-light);
}

.page-slot-games__step-card .page-slot-games__card-title {
    color: var(--button-login); /* Use login color for step titles */
}

.page-slot-games__responsible-gaming-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    color: var(--text-light);
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: var(--bg-light);
}

.page-slot-games__faq-list {
    margin-top: 30px;
}

details.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
    background: #f5f5f5;
}
.page-slot-games__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}
.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 20px 20px;
    background: var(--bg-light);
    border-radius: 0 0 8px 8px;
    color: var(--text-dark);
}
details.page-slot-games__faq-item .page-slot-games__faq-answer p {
    margin: 0;
    font-size: 1rem;
}

/* Call to Action Section */
.page-slot-games__call-to-action-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-dark); /* Use primary color as background */
    color: var(--text-light);
}

.page-slot-games__call-to-action-section .page-slot-games__section-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-slot-games__call-to-action-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-slot-games__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .page-slot-games__hero-section {
        padding: 50px 15px;
        padding-top: 10px !important;
    }
    .page-slot-games__section {
        padding: 50px 15px;
    }
    .page-slot-games__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-slot-games__game-type-grid,
    .page-slot-games__feature-grid,
    .page-slot-games__promotion-grid,
    .page-slot-games__security-support-grid,
    .page-slot-games__step-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-image img {
        border-radius: 4px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-slot-games__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-slot-games__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-slot-games__section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-slot-games__game-type-grid,
    .page-slot-games__feature-grid,
    .page-slot-games__promotion-grid,
    .page-slot-games__security-support-grid,
    .page-slot-games__step-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-slot-games__game-type-card img,
    .page-slot-games__feature-card img,
    .page-slot-games__promotion-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-slot-games__game-type-card,
    .page-slot-games__feature-card,
    .page-slot-games__promotion-card,
    .page-slot-games__security-support-card,
    .page-slot-games__step-card {
        padding: 20px;
    }
    .page-slot-games__card-title {
        font-size: 1.2rem;
    }
    .page-slot-games__introduction-section p {
        font-size: 0.95rem;
    }
    
    details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
    .page-slot-games__faq-qtext {
        font-size: 15px;
        width: calc(100% - 40px); /* Adjust width for toggle icon */
    }
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

    .page-slot-games__call-to-action-section {
        padding: 60px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__call-to-action-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-slot-games__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
}

.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure no filter is applied to images */
.page-slot-games img {
    filter: none; /* Explicitly remove any potential filter */
}

/* Content area images CSS dimensions lower bound (by scope, not class name) */
.page-slot-games__game-type-card img,
.page-slot-games__feature-card img,
.page-slot-games__promotion-card img {
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__cta-button a,
.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;
}

.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__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;
        padding-right: 15px;
    }
    .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;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-slot-games__cta-buttons {
        display: flex;
        flex-direction: column; 
    }
}