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

/* style/slot-games.css */

/* --- Base Styles --- */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color); /* Inherited from shared.css */
}

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

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

.page-slot-games__sub-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px auto;
    color: var(--text-secondary);
}

.page-slot-games__description {
    font-size: 1.15em;
    text-align: center;
    max-width: 900px;
    margin: 20px auto 40px auto;
    color: var(--text-secondary);
}

/* --- Color Theme Specifics --- */
.page-slot-games__dark-bg {
    background-color: var(--background-color); /* #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

.page-slot-games__light-bg {
    background-color: #f5f5f5; /* A light background for contrast */
    color: #333333; /* Dark text for light background */
}

/* Override text color for light-bg sections to ensure contrast */
.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__sub-description,
.page-slot-games__light-bg p,
.page-slot-games__text-contrast-fix { /* Specific class for contrast fix */
    color: #333333;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    padding: 10px 0 80px 0; /* body handles header offset, small top padding for aesthetic */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-slot-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.2em); /* Use clamp for H1 font size */
    font-weight: 800;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

/* --- Buttons --- */
.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--glow); /* #57E38D */
    border: 2px solid var(--glow);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

/* --- General Content Sections --- */
.page-slot-games__about-section,
.page-slot-games__features-section,
.page-slot-games__jackpot-section,
.page-slot-games__how-to-play-section,
.page-slot-games__mobile-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
    padding: 80px 0;
}

.page-slot-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-slot-games__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-slot-games__text-block {
    flex: 1;
    font-size: 1.05em;
    color: var(--text-main); /* #F2FFF6 */
}

.page-slot-games__text-block p {
    margin-bottom: 15px;
}

.page-slot-games__image-content {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

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

.page-slot-games__card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-main); /* #F2FFF6 */
    border: 1px solid var(--border-color); /* #2E7A4E */
}

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

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-slot-games__card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main); /* #F2FFF6 */
}

.page-slot-games__card-text {
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
}

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

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

.page-slot-games__step-card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color); /* #2E7A4E */
    position: relative;
    color: var(--text-main);
}

.page-slot-games__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glow); /* #57E38D */
    color: #08160F; /* Dark text for light background */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 900;
    border: 3px solid var(--background-color);
    box-shadow: 0 0 0 5px var(--deep-green); /* #0A4B2C */
}

.page-slot-games__step-card .page-slot-games__card-title {
    margin-top: 20px;
}

.page-slot-games__step-card .page-slot-games__card-text {
    min-height: 80px; /* Ensure consistent card height */
}

.page-slot-games__step-btn {
    margin-top: 20px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.3);
}

.page-slot-games__step-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 209, 111, 0.5);
}

/* --- Mobile Section --- */
.page-slot-games__mobile-section .page-slot-games__content-wrapper {
    align-items: flex-start;
}

.page-slot-games__cta-buttons--mobile {
    margin-top: 30px;
    justify-content: flex-start;
}

/* --- FAQ Section --- */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg); /* #11271B */
    border: 1px solid var(--border-color); /* #2E7A4E */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
    background-color: rgba(17, 39, 27, 0.8); /* Slightly darker on hover */
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--glow); /* #57E38D */
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary); /* #A7D9B8 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Sufficient height for answer content */
    transition: max-height 0.4s ease-in;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    background-color: rgba(17, 39, 27, 0.8);
}

/* --- CTA Section --- */
.page-slot-games__cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--deep-green); /* #0A4B2C */
}

.page-slot-games__cta-container {
    max-width: 800px;
}

.page-slot-games__cta-section .page-slot-games__description {
    margin-bottom: 40px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__hero-image-wrapper {
        max-height: 400px;
    }

    .page-slot-games__content-wrapper {
        flex-direction: column;
    }

    .page-slot-games__content-wrapper--reverse {
        flex-direction: column; /* Keep column for reverse on mobile */
    }

    .page-slot-games__image-content {
        max-width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 10px 0 60px 0; /* body handles header offset, small top padding */
    }

    .page-slot-games__hero-image-wrapper {
        max-height: 300px;
    }

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

    .page-slot-games__description,
    .page-slot-games__sub-description,
    .page-slot-games__text-block p,
    .page-slot-games__card-text {
        font-size: 1em;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Force full width for buttons on mobile */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__step-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; /* Add padding for text inside button */
        padding-right: 15px;
    }

    /* Image responsive for mobile */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure image containers adapt */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Specific padding for hero content on mobile */
    .page-slot-games__hero-content {
        padding: 0 15px;
    }

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

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

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

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 1.8em;
    }
    .page-slot-games__hero-image-wrapper {
        max-height: 250px;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__card-title {
        font-size: 1.3em;
    }
    .page-slot-games__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        top: -15px;
    }
}