/* style/slot-games.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-dark: #0D0E12;
    --card-bg: #17191F;
    --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); /* Default text color for the page */
    background-color: var(--bg-dark); /* Page background */
}

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

.page-slot-games__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 243, 230, 0.8);
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__game-btn,
.page-slot-games__btn-small {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

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

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    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);
    box-shadow: 0 4px 10px rgba(255, 165, 58, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background: rgba(255, 165, 58, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 165, 58, 0.4);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Adjust as needed */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.page-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-slot-games__hero-title {
    font-size: clamp(2.5em, 4vw, 3.8em);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
}

.page-slot-games__hero-description {
    font-size: clamp(1em, 1.5vw, 1.3em);
    color: rgba(255, 243, 230, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-slot-games__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 80px 0;
}

.page-slot-games__introduction-section .page-slot-games__section-description {
    margin-bottom: 30px;
}

.page-slot-games__content-image {
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

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

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

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

.page-slot-games__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-tile img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    aspect-ratio: 1/1; /* Enforce square aspect ratio */
}

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

.page-slot-games__game-provider {
    font-size: 0.95em;
    color: rgba(255, 243, 230, 0.7);
    margin-bottom: 20px;
}

.page-slot-games__game-btn {
    margin-top: auto;
    padding: 10px 20px;
    font-size: 0.9em;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 6px;
}

.page-slot-games__game-btn:hover {
    transform: translateY(-1px);
}

.page-slot-games__view-all-games {
    text-align: center;
    margin-top: 60px;
}

/* Benefits Section */
.page-slot-games__benefits-section {
    padding: 80px 0;
}

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

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

.page-slot-games__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-slot-games__benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 0 8px var(--glow-color));
}

.page-slot-games__benefit-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__benefit-description {
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 243, 230, 0.8);
}

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

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

.page-slot-games__step-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 700;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
    z-index: 1;
}

.page-slot-games__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__step-description {
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 243, 230, 0.8);
    margin-bottom: 25px;
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 6px;
    margin-top: auto;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
}

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

.page-slot-games__promotion-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-slot-games__promotion-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__promotion-description {
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 243, 230, 0.8);
}

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

.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(--bg-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item[open] {
    background-color: rgba(255, 140, 26, 0.1);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

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

.page-slot-games__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-slot-games__faq-toggle {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-left: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 243, 230, 0.7);
}

/* Responsible Gambling Section */
.page-slot-games__responsible-gambling-section {
    padding: 80px 0;
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--card-bg);
}

.page-slot-games__cta-final-section .page-slot-games__section-description {
    margin-bottom: 40px;
}

.page-slot-games__cta-final-section .page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Copyright */
.page-slot-games__copyright {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    color: rgba(255, 243, 230, 0.6);
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

/* Dark background class for contrast safety */
.page-slot-games__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__container {
        padding: 0 25px;
    }

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

    .page-slot-games__hero-title {
        font-size: clamp(2em, 3.5vw, 3em);
    }

    .page-slot-games__hero-description {
        font-size: clamp(0.9em, 1.3vw, 1.1em);
    }

    .page-slot-games__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .page-slot-games__benefits-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promotion-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-slot-games__faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Ensure hero image is not cropped */
    }

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

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

    /* Hero Section Mobile */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-slot-games__hero-image-wrapper {
        max-height: 300px; /* Adjust for mobile */
    }

    .page-slot-games__hero-image {
        object-fit: contain !important; /* Force contain for mobile hero */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

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

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

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

    /* Buttons Mobile */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__game-btn,
    .page-slot-games__btn-small,
    .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;
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }

    /* Games Grid Mobile */
    .page-slot-games__game-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
        gap: 15px;
    }

    .page-slot-games__game-tile {
        padding: 15px;
    }

    .page-slot-games__game-tile img {
        height: auto; /* Adjust height for mobile */
        aspect-ratio: 1/1 !important;
        object-fit: cover;
    }

    .page-slot-games__game-title {
        font-size: 1.2em;
    }

    .page-slot-games__game-provider {
        font-size: 0.85em;
    }

    /* Benefits Grid Mobile */
    .page-slot-games__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__benefit-card {
        padding: 25px;
    }

    .page-slot-games__benefit-icon {
        width: 50px;
        height: 50px;
    }

    .page-slot-games__benefit-title {
        font-size: 1.4em;
    }

    /* How to Play Steps Mobile */
    .page-slot-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__step-card {
        padding: 25px;
    }

    .page-slot-games__step-number {
        font-size: 2em;
        width: 60px;
        height: 60px;
        top: -10px;
        left: -10px;
    }

    .page-slot-games__step-title {
        font-size: 1.3em;
    }

    /* Promotions List Mobile */
    .page-slot-games__promotion-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__promotion-item {
        padding: 25px;
    }

    .page-slot-games__promotion-title {
        font-size: 1.4em;
    }

    /* FAQ Section Mobile */
    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-slot-games__faq-toggle {
        font-size: 1.5em;
    }

    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Other content sections */
    .page-slot-games__introduction-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__benefits-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__responsible-gambling-section,
    .page-slot-games__cta-final-section {
        padding: 40px 0;
    }

    .page-slot-games__copyright {
        padding: 20px 15px;
        font-size: 0.85em;
    }
}