/* style/slot-games.css */

/* General page styling */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #f8f9fa; /* Light background for the main content area */
}

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

.page-slot-games__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-slot-games__section-title {
    font-size: 36px;
    color: #007bff; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-slot-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

/* HERO Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #0d0d0d; /* Dark background for hero */
    color: #ffffff; /* Light text for dark background */
    overflow: hidden;
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-slot-games__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 900;
    color: #ffc107; /* Auxiliary color for hero title */
}

.page-slot-games__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

/* CTA Buttons */
.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Crucial for max-width 100% on mobile */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.page-slot-games__btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
    background: #ffc107;
    color: #000000; /* Dark text for light background */
    border-color: #ffc107;
}

.page-slot-games__btn-secondary:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-slot-games__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333; /* Dark text for light background */
}

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

.page-slot-games__card-title {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__card-image {
    width: 100%; /* Ensure images take full width of card */
    max-width: 400px; /* Example max-width, ensure it's >= 200px */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-slot-games__card-text {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

/* Popular Games Section (Dark background) */
.page-slot-games__dark-section {
    background-color: #007bff; /* Primary color as dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: #ffc107; /* Auxiliary color for title on dark background */
}

.page-slot-games__dark-section .page-slot-games__text-block {
    color: #f0f0f0;
}

.page-slot-games__game-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark blue */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__game-image {
    width: 100%;
    max-width: 300px; /* Example max-width, ensure it's >= 200px */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-slot-games__game-title {
    font-size: 22px;
    color: #ffc107;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__game-description {
    font-size: 15px;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
}

.page-slot-games__btn-play {
    display: inline-block;
    padding: 10px 25px;
    background: #ffc107;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box; /* Crucial for max-width 100% on mobile */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-play:hover {
    background: #e0a800;
}

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

.page-slot-games__list-item {
    background: #ffffff;
    border-left: 5px solid #007bff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-slot-games__list-title {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 10px;
}

.page-slot-games__list-item p {
    font-size: 16px;
    color: #555555;
}

.page-slot-games__list-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

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

.page-slot-games__buttons-wrapper {
    text-align: center;
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

/* Promotions Section */
.page-slot-games__promotions-banner {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: none; /* Ensure no filter is applied */
}

.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-slot-games__promo-list .page-slot-games__list-item {
    border-left: 5px solid #ffc107; /* Auxiliary color for promo list */
}

.page-slot-games__promo-list .page-slot-games__list-title {
    color: #ffc107;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 30px;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Use !important and sufficiently large value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-slot-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333; /* Dark text for light background */
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

/* Final CTA Section */
.page-slot-games__cta-final-section {
    background-color: #007bff; /* Primary color for final CTA */
    color: #ffffff;
    text-align: center;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
    color: #ffc107;
}

.page-slot-games__cta-final-section .page-slot-games__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 40px;
    }
    .page-slot-games__section-title {
        font-size: 30px;
    }
    .page-slot-games__hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for main content area */
    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-title {
        font-size: 32px;
    }

    .page-slot-games__hero-description {
        font-size: 16px;
    }

    .page-slot-games__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add margin for stacked buttons */
    }

    .page-slot-games__hero-buttons,
    .page-slot-games__buttons-wrapper {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px; /* Reduce gap */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-slot-games__section {
        padding: 40px 0;
    }

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

    .page-slot-games__text-block {
        font-size: 16px;
    }

    .page-slot-games__card {
        padding: 20px;
    }

    .page-slot-games__card-title {
        font-size: 20px;
    }

    .page-slot-games__list-title {
        font-size: 18px;
    }

    /* Images responsiveness for content area */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Specific container for images to prevent overflow */
    .page-slot-games__card-image,
    .page-slot-games__game-image,
    .page-slot-games__promotions-banner {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-slot-games__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 28px;
    }
    .page-slot-games__section-title {
        font-size: 22px;
    }
    .page-slot-games__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}