:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --background-color: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --header-offset: 122px; /* Placeholder, assuming shared.css defines it for body */
}

/* Base styles for the main content area */
.page-slot-games {
    background-color: var(--background-color);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* H2 font size with clamp */
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-slot-games__section-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

.page-slot-games a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games a:hover {
    color: var(--primary-color);
}

.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-slot-games__hero-content {
    padding: 40px 20px;
    text-align: center;
    background-color: rgba(10, 10, 10, 0.8); /* Semi-transparent overlay for text */
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -1px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__hero-cta,
.page-slot-games__intro-cta,
.page-slot-games__step-cta,
.page-slot-games__promo-cta,
.page-slot-games__view-all-cta,
.page-slot-games__view-all-faq-cta {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--background-color); /* Text color for buttons */
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 44px; /* Touch target size */
    box-sizing: border-box;
}

.page-slot-games__hero-cta:hover,
.page-slot-games__intro-cta:hover,
.page-slot-games__step-cta:hover,
.page-slot-games__promo-cta:hover,
.page-slot-games__view-all-cta:hover,
.page-slot-games__view-all-faq-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-slot-games__introduction-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Slightly different background for section */
    margin-bottom: 40px;
}

.page-slot-games__intro-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-slot-games__intro-text {
    flex: 1;
}

.page-slot-games__intro-image-wrapper {
    flex: 1;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__intro-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.page-slot-games__feature-list li::before {
    content: '✅'; /* Vietnamese checkmark */
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.page-slot-games__game-categories {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-slot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Min 250px for game tiles */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-slot-games__game-tile {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    border: 1px solid var(--border-color);
}

.page-slot-games__game-tile:hover {
    transform: scale(1.05);
}

.page-slot-games__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__view-all-cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.page-slot-games__how-to-play {
    padding: 60px 0;
    background-color: var(--card-bg);
    margin-bottom: 40px;
}

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

.page-slot-games__step-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-slot-games__step-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.page-slot-games__promotions-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-slot-games__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border-color);
}

.page-slot-games__promo-image {
    flex: 1;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__promo-content {
    flex: 1;
    padding: 30px;
}

.page-slot-games__promo-title {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-slot-games__promo-description {
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-slot-games__faq-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.page-slot-games__faq-image-wrapper {
    flex: 1;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__faq-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__faq-list {
    flex: 2;
}

.page-slot-games__faq-item {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    cursor: pointer; /* For JS toggle */
}

.page-slot-games__faq-question {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 0;
    position: relative;
    padding-right: 30px;
}

.page-slot-games__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.is-active .page-slot-games__faq-question::after {
    content: '-';
}

.page-slot-games__faq-answer {
    color: var(--text-main);
    margin-top: 15px;
    display: none; /* Hidden by default */
    font-size: 1rem;
}

.page-slot-games__faq-item.is-active .page-slot-games__faq-answer {
    display: block;
}

.page-slot-games__view-all-faq-cta {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
}

/* --- Responsive Design --- */
@media (max-width: 849px) {
    .page-slot-games__hero-section {
        display: flex;
        flex-direction: column;
    }

    .page-slot-games__hero-image {
        order: 1; /* Image first */
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .page-slot-games__hero-content {
        order: 2; /* Content second */
        padding: 30px 15px;
        background-color: var(--background-color); /* Solid background on mobile */
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

    .page-slot-games__hero-cta {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .page-slot-games__intro-grid {
        flex-direction: column;
    }

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

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

    .page-slot-games__promo-image {
        order: 1;
    }

    .page-slot-games__promo-content {
        order: 2;
    }

    .page-slot-games__faq-grid {
        flex-direction: column;
    }

    .page-slot-games__faq-image-wrapper {
        order: 1;
    }

    .page-slot-games__faq-list {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 15px;
    }

    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }

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

    .page-slot-games__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjusted for smaller screens */
        gap: 15px;
    }
    
    .page-slot-games__game-tile,
    .page-slot-games__game-tile img,
    .page-slot-games__intro-image,
    .page-slot-games__promo-image,
    .page-slot-games__faq-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px; /* Ensure images are not too small */
    }

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

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

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

@media (max-width: 549px) {
    .page-slot-games__game-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on very small screens */
    }
}

/* Ensure color contrast for text */
.page-slot-games p,
.page-slot-games li,
.page-slot-games__faq-answer {
    color: var(--text-main); /* Ensure text is visible on dark backgrounds */
}

.page-slot-games h1, .page-slot-games h2, .page-slot-games h3 {
    color: var(--secondary-color); /* Ensure headings are visible */
}

/* Specific contrast checks for buttons */
.page-slot-games__hero-cta,
.page-slot-games__intro-cta,
.page-slot-games__step-cta,
.page-slot-games__promo-cta,
.page-slot-games__view-all-cta,
.page-slot-games__view-all-faq-cta {
    color: var(--background-color); /* Dark text on light gradient button */
}

/* Content area image size enforcement */
.page-slot-games img {
    min-width: 200px;
    min-height: 200px;
}
.page-slot-games__game-tile img {
    min-width: 200px; /* Ensure these are also at least 200x200 */
    min-height: 200px;
}
.page-slot-games__intro-image {
    min-width: 200px;
    min-height: 200px;
}
.page-slot-games__promo-image {
    min-width: 200px;
    min-height: 200px;
}
.page-slot-games__faq-image {
    min-width: 200px;
    min-height: 200px;
}