/* style/slot-games.css */

/* Base styles for the slot games page */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

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

/* Color contrast classes */
.page-slot-games__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text on dark background */
}

.page-slot-games__light-bg {
    background-color: #ffffff; /* Auxiliary brand color / default white */
    color: #333333; /* Dark text on light background */
}

/* Hero Section */
.page-slot-games__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 1;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* White text on dark hero background */
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for description */
}

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-view-promo {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-slot-games__btn-primary {
    background-color: #EA7C07; /* Login color for primary action, high contrast */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-slot-games__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

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

.page-slot-games__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-slot-games__hero-image-wrapper {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slot-games__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* General Section Styles */
.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles on light background */
}

.page-slot-games__section-title--white {
    color: #ffffff; /* White color for titles on dark background */
}

.page-slot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__section-description--white {
    color: #f0f0f0;
}

/* About Section (Features Grid) */
.page-slot-games__about-section {
    padding: 80px 0;
}

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

.page-slot-games__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: #333333;
    transition: transform 0.3s ease;
}

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

.page-slot-games__feature-icon {
    width: 400px; /* Display area width */
    height: 300px; /* Display area height */
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-slot-games__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Popular Games Section */
.page-slot-games__popular-games {
    padding: 80px 0;
}

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

.page-slot-games__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-slot-games__game-image {
    width: 600px; /* Display area width */
    height: 400px; /* Display area height */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
}

.page-slot-games__game-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

.page-slot-games__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-slot-games__game-title a:hover {
    text-decoration: underline;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px;
}

.page-slot-games__btn-play {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.page-slot-games__btn-play:hover {
    background-color: #1e87bb;
    border-color: #1e87bb;
}

.page-slot-games__cta-more {
    text-align: center;
}

/* How to Play Section */
.page-slot-games__how-to-play {
    padding: 80px 0;
}

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

.page-slot-games__step-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
    background-color: rgba(38, 169, 224, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333333;
}

.page-slot-games__step-text {
    font-size: 1em;
    color: #555555;
}

.page-slot-games__step-text a {
    color: #26A9E0;
    text-decoration: none;
}

.page-slot-games__step-text a:hover {
    text-decoration: underline;
}

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

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

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

.page-slot-games__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-slot-games__promo-image {
    width: 800px; /* Display area width */
    height: 450px; /* Display area height */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

.page-slot-games__promo-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-slot-games__promo-title a:hover {
    text-decoration: underline;
}

.page-slot-games__promo-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px;
}

.page-slot-games__btn-view-promo {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.page-slot-games__btn-view-promo:hover {
    background-color: #1e87bb;
    border-color: #1e87bb;
}

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

.page-slot-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-slot-games__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f5f5f5;
    color: #333333;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #eeeeee;
}

.page-slot-games__faq-heading {
    margin: 0;
    font-size: 1.1em;
    color: #26A9E0; /* Brand color for FAQ questions */
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

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

.page-slot-games__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-slot-games__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-slot-games__cta-section {
    padding: 60px 0;
    text-align: center;
}

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

/* Copyright */
.page-slot-games__copyright {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
    color: #777777;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

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

    .page-slot-games__hero-section {
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
    }

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

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

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

    .page-slot-games__hero-buttons {
        justify-content: center;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play,
    .page-slot-games__btn-view-promo {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .page-slot-games__hero-image-wrapper {
        max-width: 100%;
        margin-top: 30px;
        padding: 0 20px;
    }

    .page-slot-games__hero-image,
    .page-slot-games__feature-icon,
    .page-slot-games__game-image,
    .page-slot-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

    .page-slot-games__section-description {
        margin-bottom: 30px;
        padding: 0 15px;
    }

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

    .page-slot-games__feature-item,
    .page-slot-games__game-card,
    .page-slot-games__step-item,
    .page-slot-games__promo-card,
    .page-slot-games__cta-more {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__faq-item {
        margin: 0 15px 15px 15px;
    }
    .page-slot-games__faq-question {
        padding: 15px;
    }
    .page-slot-games__faq-heading {
        font-size: 1em;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px;
    }
}

/* Ensure no image filter */
.page-slot-games img {
    filter: none;
}