:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --page-bg: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Main text color for the page */
    background-color: var(--page-bg); /* Page background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-bg);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-slot-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

.page-slot-games__description {
    font-size: 1.15em;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-small,
.page-slot-games__text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
    text-align: center;
}

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

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--page-bg);
    transform: translateY(-3px);
}

/* --- General Section Styles --- */
.page-slot-games__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

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

/* --- About Section --- */
.page-slot-games__about-section {
    background-color: var(--page-bg);
    padding: 80px 0;
}

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

.page-slot-games__text-block {
    flex: 1;
    min-width: 300px;
    color: var(--text-main);
}

.page-slot-games__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-slot-games__text-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.page-slot-games__text-link:hover {
    color: var(--glow-color);
}

.page-slot-games__image-block {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Popular Games Section --- */
.page-slot-games__popular-games-section {
    background-color: var(--page-bg);
    padding: 80px 0;
}

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

.page-slot-games__game-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-slot-games__game-description {
    font-size: 0.95em;
    color: var(--text-main);
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1; /* Make description take available space */
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    margin: 0 auto;
    display: block;
    max-width: 80%;
}

.page-slot-games__btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 140, 26, 0.6);
}

/* --- Features Section --- */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: var(--deep-orange); /* Using deep orange for contrast */
    color: #ffffff; /* White text for deep orange background */
    text-align: center;
}

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

.page-slot-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on deep orange */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__feature-description {
    font-size: 1em;
    color: #ffffff;
}

/* --- How to Play Section --- */
.page-slot-games__how-to-play-section {
    background-color: var(--page-bg);
    padding: 80px 0;
}

.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    counter-reset: step-counter;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-left: 60px;
}

.page-slot-games__step-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
}

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

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

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

/* --- Promotions Section --- */
.page-slot-games__promotions-section {
    padding: 80px 0;
    background-color: #1a1c24; /* A slightly lighter dark background for this section */
    color: var(--text-main);
}

.page-slot-games__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap; /* Allow content to wrap */
    align-items: center;
}

.page-slot-games__promo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    flex: 1 1 40%; /* Take 40% width on larger screens */
    min-width: 300px; /* Minimum width for image */
}

.page-slot-games__promo-content {
    flex: 1 1 50%; /* Take 50% width on larger screens */
    padding: 30px;
    box-sizing: border-box;
}

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

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

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

.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #22252e; /* Slightly lighter on hover */
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: "−";
}

.page-slot-games__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
}

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

/* --- Final CTA Section --- */
.page-slot-games__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Use primary color for strong CTA */
    color: #ffffff;
    text-align: center;
}

.page-slot-games__cta-section .page-slot-games__section-title {
    color: #ffffff; /* White title on primary background */
    text-shadow: none;
}

.page-slot-games__cta-section .page-slot-games__description {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-slot-games__cta-section .page-slot-games__btn-primary {
    background: #ffffff; /* White button on primary background */
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__cta-section .page-slot-games__btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__cta-section .page-slot-games__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-image-wrapper {
        max-width: 90%;
    }
    .page-slot-games__promo-card {
        flex-direction: column;
    }
    .page-slot-games__promo-image,
    .page-slot-games__promo-content {
        flex: 1 1 100%;
    }
    .page-slot-games__promo-image {
        height: auto; /* Allow image to adjust height */
    }
    .page-slot-games__promo-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    /* The container itself now gets padding, elements inside can inherit or override */
    .page-slot-games__container {
        padding: 0;
    }

    .page-slot-games__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
    .page-slot-games__hero-image-wrapper {
        margin-bottom: 20px;
        border-radius: 10px;
        padding-left: 0 !important; /* Image wrapper should not have internal padding */
        padding-right: 0 !important;
    }
    .page-slot-games__hero-content {
        padding: 0 15px; /* Content inside hero needs padding */
    }
    .page-slot-games__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-slot-games__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-small,
    .page-slot-games__text-link {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center single buttons */
    }

    .page-slot-games__section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .page-slot-games__section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-slot-games__about-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__features-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        padding: 50px 0;
    }

    .page-slot-games__content-grid {
        gap: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__text-block,
    .page-slot-games__image-block {
        min-width: unset; /* Allow to shrink */
        flex-basis: 100%; /* Full width on mobile */
        padding-left: 0 !important; /* Image block itself should not have internal padding */
        padding-right: 0 !important;
    }

    .page-slot-games__games-grid {
        grid-template-columns: 1fr; /* Single column for games */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__game-thumbnail {
        height: 180px;
    }

    .page-slot-games__features-grid {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__steps-list {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__step-item {
        padding-left: 50px;
    }
    .page-slot-games__step-item::before {
        left: 15px;
        top: 25px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .page-slot-games__promo-card {
        border-radius: 12px 12px 0 0;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-slot-games__promo-image {
        border-radius: 12px 12px 0 0;
    }
    .page-slot-games__promo-content {
        padding: 20px;
    }

    .page-slot-games__faq-list {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-slot-games__faq-answer {
        padding: 15px;
    }

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

    .page-slot-games video { /* No video on this page, but keep for robustness */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* General content containers, cards, buttons etc. */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__faq-item,
    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container,
    .page-slot-games__video-section, /* No video on this page, but keep for robustness */
    .page-slot-games__video-container, /* No video on this page, but keep for robustness */
    .page-slot-games__video-wrapper { /* No video on this page, but keep for robustness */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Hide overflow to prevent horizontal scroll */
    }

    /* Apply padding to sections that contain content, if not handled by inner containers */
    .page-slot-games__about-section .page-slot-games__container,
    .page-slot-games__popular-games-section .page-slot-games__container,
    .page-slot-games__features-section .page-slot-games__container,
    .page-slot-games__how-to-play-section .page-slot-games__container,
    .page-slot-games__promotions-section .page-slot-games__container,
    .page-slot-games__faq-section .page-slot-games__container,
    .page-slot-games__cta-section .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure hero section padding is correct */
    .page-slot-games__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.4em;
    }
    .page-slot-games__promo-title {
        font-size: 1.3em;
    }
}