/* style/slot-games.css */

/* --- General Styles --- */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #F5F7FA; /* Page background color */
}

.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.5em;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #E53935; /* Fallback background for hero */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    color: #ffffff;
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.2;
    max-width: 100%;
}

.page-slot-games__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 100%;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

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

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- About Section & Feature Section --- */
.page-slot-games__about-section,
.page-slot-games__feature-section,
.page-slot-games__types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

.page-slot-games__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

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

.page-slot-games__feature-card,
.page-slot-games__type-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: #333333;
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-slot-games__center-btn {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

/* --- How to Play Section --- */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    color: #333333;
}

.page-slot-games__step-item {
    background: #FFFFFF;
    border-left: 5px solid #E53935;
    padding: 20px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-slot-games__step-description a {
    color: #FF5A4F;
    text-decoration: underline;
}

.page-slot-games__step-description a:hover {
    color: #E53935;
}

/* --- Promotions Section --- */
.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__promo-item {
    background: #FFFFFF;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    color: #E53935;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__promo-description {
    font-size: 1em;
    color: #333333;
}

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

.page-slot-games__faq-item {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #fcfcfc;
    border-bottom: 1px solid #E0E0E0;
    list-style: none; /* For <summary> */
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid #E0E0E0;
}

.page-slot-games__faq-qtext {
    color: #E53935;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #E53935;
    transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
    padding: 20px;
    font-size: 1.1em;
    color: #333333;
    line-height: 1.6;
    background-color: #FFFFFF;
}

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

/* Hide default details marker */
.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-slot-games__faq-item summary::marker {
    display: none;
}

/* --- Final CTA Section --- */
.page-slot-games__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: #E53935; /* Use brand main color */
    color: #ffffff;
}

.page-slot-games__cta-final-section .page-slot-games__section-title {
    color: #ffffff;
    margin-bottom: 30px;
}

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

.page-slot-games__cta-final-section .page-slot-games__cta-buttons {
    max-width: 600px;
}

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

.page-slot-games__cta-final-section .page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #E53935;
}

/* --- Copyright Section --- */
.page-slot-games__copyright-section {
    background-color: #333333; /* Dark footer background for contrast */
    padding: 20px 0;
    text-align: center;
}

.page-slot-games__copyright-text {
    color: #f0f0f0;
    font-size: 0.9em;
    margin: 0;
}

/* --- Responsive Design (Mobile - max-width: 768px) --- */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-slot-games__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-slot-games__intro-text {
        font-size: 1em;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 按钮与按钮容器 */
    .page-slot-games__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .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: 12px 20px; /* Adjust padding for mobile */
    }

    /* 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset !important; /* Allow images to shrink below 200px if needed for responsiveness */
        min-height: unset !important;
    }

    .page-slot-games__container,
    .page-slot-games__about-section,
    .page-slot-games__feature-section,
    .page-slot-games__types-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-slot-games__text-block {
        font-size: 1em;
    }

    /* 产品展示图区域 (Feature/Type Grid) */
    .page-slot-games__feature-grid,
    .page-slot-games__type-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px;
    }

    .page-slot-games__feature-card,
    .page-slot-games__type-card {
        padding: 20px;
    }

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

    /* 其他内容模块 (How-to, Promotions, FAQ) */
    .page-slot-games__step-item,
    .page-slot-games__promo-item,
    .page-slot-games__faq-item {
        padding: 15px 20px;
    }

    .page-slot-games__step-title,
    .page-slot-games__promo-title {
        font-size: 1.1em;
    }

    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-slot-games__cta-final-section {
        padding: 50px 0;
    }
}