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

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default to light text for overall dark theme */
    background-color: var(--bg-color-main); /* Overall background for the page */
}

/* Base styles for sections */
.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__games-showcase,
.page-slot-games__how-to-play-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__final-cta {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure no overflow */
}

/* Background colors based on design */
.page-slot-games__dark-bg {
    background-color: var(--bg-color-main);
    color: var(--text-main);
}

.page-slot-games__light-bg {
    background-color: var(--card-bg); /* Using card-bg for lighter sections as per design */
    color: var(--text-main); /* Still light text, but contrast with card-bg is good */
}

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

/* Hero Section */
.page-slot-games__hero-section {
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color-main); /* Ensure background for the whole section */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    position: relative;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for aesthetic reasons */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-slot-games__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 40px; /* Explicit margin to separate from image, no overlap */
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-slot-games__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%; /* For mobile button responsiveness */
    max-width: 500px; /* Limit width on larger screens */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

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

/* Section Titles */
.page-slot-games__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main);
}

.page-slot-games__text-secondary {
    color: var(--text-secondary);
}

/* Features Grid */
.page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-slot-games__feature-item {
    background-color: var(--bg-color-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%; /* Responsive image */
    height: auto; /* Responsive image */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__feature-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.page-slot-games__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Responsive image */
    height: auto; /* Responsive image */
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-slot-games__game-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: 600;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0 15px;
    flex-grow: 1; /* Push button to bottom */
}

.page-slot-games__game-card .page-slot-games__btn-primary {
    margin: 20px 15px;
    width: calc(100% - 30px); /* Adjust button width within card */
}

.page-slot-games__more-games-cta {
    text-align: center;
    margin-top: 40px;
}

/* How to Play Section */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: var(--bg-color-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__step-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
}

/* Tips Section */
.page-slot-games__tip-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-slot-games__tip-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-slot-games__tip-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__tip-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__tip-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.page-slot-games__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.page-slot-games__promo-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__promo-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.page-slot-games__more-promo-cta {
    text-align: center;
    margin-top: 40px;
}

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

.page-slot-games__faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Illustration on left, FAQ list on right */
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.page-slot-games__faq-illustration {
    text-align: center;
}

.page-slot-games__faq-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    overflow: hidden; /* For smooth transition */
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--bg-color-main); /* Darker background for question summary */
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    background-color: var(--deep-green-color); /* Even darker when open */
    color: var(--gold-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

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

.page-slot-games__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Final CTA Section */
.page-slot-games__final-cta {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: 30px; /* Adjust margin for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }

    .page-slot-games__hero-content {
        margin-top: 20px; /* Further adjust margin */
        padding: 15px;
    }

    .page-slot-games__main-title {
        font-size: 2.2em;
        margin-bottom: 10px;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 90%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-slot-games__faq-grid {
        grid-template-columns: 1fr; /* Stack illustration and FAQ list */
        gap: 30px;
    }

    .page-slot-games__faq-illustration {
        order: -1; /* Place illustration above FAQ list on mobile */
    }

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

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

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

    .page-slot-games__hero-image-wrapper,
    .page-slot-games__feature-item,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__faq-illustration,
    .page-slot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-content {
        margin-top: 15px; /* Further adjust margin */
    }

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

    .page-slot-games__section-title {
        font-size: 1.6em;
    }
}