/* style/slot-games.css */

/* General page styling based on body background and text color */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #333333); /* Default text color */
    background-color: var(--page-bg, #F5F7FA); /* Default page background */
    line-height: 1.6;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #E53935; /* Brand color for hero background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper is full width */
    overflow: hidden;
    box-sizing: border-box;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height on desktop */
}

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

.page-slot-games__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 2.5rem; /* Default for desktop, adjust in media query if needed */
}

.page-slot-games__description {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Common button styles */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    min-width: 180px;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-slot-games__btn-play {
    background: #FF5A4F;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
}

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


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

.page-slot-games__section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--text-main, #333333);
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
}

.page-slot-games__intro-section,
.page-slot-games__features-section,
.page-slot-games__promotions-section,
.page-slot-games__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--page-bg, #F5F7FA); /* Light background for these sections */
    color: var(--text-main, #333333);
}

.page-slot-games__dark-bg {
    background-color: #E53935; /* Brand color for dark sections */
    color: #ffffff;
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__description {
    color: #ffffff;
}

.page-slot-games__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* Games Showcase Section */
.page-slot-games__games-showcase {
    padding: 60px 0;
}

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

.page-slot-games__game-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    color: var(--text-main, #333333);
    border: 1px solid var(--border-color, #E0E0E0);
}

.page-slot-games__dark-bg .page-slot-games__game-card {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

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

.page-slot-games__game-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__game-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-slot-games__dark-bg .page-slot-games__game-title a {
    color: #ffffff;
}
.page-slot-games__dark-bg .page-slot-games__game-title a:hover {
    color: #FF5A4F;
}

.page-slot-games__game-desc {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-slot-games__dark-bg .page-slot-games__game-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* Features Section */
.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: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color, #E0E0E0);
}

.page-slot-games__feature-icon {
    width: 80px; /* Display size, requested larger for generation */
    height: 80px; /* Display size */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-slot-games__feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #E53935;
}

.page-slot-games__feature-desc {
    font-size: 0.95rem;
    color: #666666;
}

/* Guide Section */
.page-slot-games__guide-section {
    padding: 60px 0;
}

.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    gap: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__guide-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid #FF5A4F;
}

.page-slot-games__guide-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    text-align: justify;
}

.page-slot-games__guide-item a {
    color: #FF5A4F;
    text-decoration: underline;
}

.page-slot-games__guide-item a:hover {
    color: #ffffff;
}

.page-slot-games__guide-step-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

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

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

.page-slot-games__promo-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-main, #333333);
    border: 1px solid var(--border-color, #E0E0E0);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-slot-games__promo-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0 15px;
    color: #E53935;
}

.page-slot-games__promo-desc {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-slot-games__promo-card .page-slot-games__btn-primary,
.page-slot-games__promo-card .page-slot-games__btn-secondary {
    margin: 0 auto 20px auto;
    width: calc(100% - 30px);
}

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


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

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

.page-slot-games__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-slot-games__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Change + to x visually */
}

.page-slot-games__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Bottom CTA Section */
.page-slot-games__cta-bottom-section {
    text-align: center;
    padding: 80px 0;
}

.page-slot-games__cta-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 2.2rem;
    }
    .page-slot-games__section-title {
        font-size: 1.8rem;
    }
}

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

    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }

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

    .page-slot-games__main-title {
        font-size: 1.8rem !important; /* clamp could be used here */
        margin-bottom: 15px;
    }

    .page-slot-games__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }
    .page-slot-games__cta-buttons a {
        width: 100%;
    }

    .page-slot-games__section-title {
        font-size: 1.6rem;
        margin-top: 40px;
        margin-bottom: 25px;
    }

    .page-slot-games__intro-section,
    .page-slot-games__games-showcase,
    .page-slot-games__features-section,
    .page-slot-games__guide-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom-section {
        padding: 40px 0;
    }

    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__game-grid,
    .page-slot-games__features-grid,
    .page-slot-games__promo-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-slot-games__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__promo-card,
    .page-slot-games__faq-item {
        margin-left: 0;
        margin-right: 0;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .page-slot-games__cta-button,
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .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;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
    }
    .page-slot-games__view-all-promos .page-slot-games__btn-primary {
        width: calc(100% - 30px);
    }
}