/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    background-color: #f0f8ff; /* Light blue tint */
}

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

.page-slot-games__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: #333333;
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #26A9E0; /* Primary color for title */
}

.page-slot-games__description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-slot-games__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87b6;
    border-color: #1e87b6;
}

.page-slot-games__btn-play {
    background-color: #EA7C07; /* Login color for play buttons */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    padding: 8px 15px;
    font-size: 0.9em;
}

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

/* General Section Styles */
.page-slot-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: #26A9E0; /* Primary color for section titles */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

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

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

/* Background Color Handling */
.page-slot-games__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF; /* White text for dark background */
}

.page-slot-games__dark-bg .page-slot-games__section-title {
    color: #FFFFFF; /* White title for dark background */
}

.page-slot-games__light-bg {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding-bottom: 60px;
}

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

.page-slot-games__game-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.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;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Why Choose Us Section */
.page-slot-games__why-choose-us-section {
    padding-bottom: 60px;
}

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

.page-slot-games__feature-item {
    text-align: center;
    padding: 25px;
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__feature-icon {
    width: 100%;
    max-width: 250px; /* Adjust size for feature icons */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

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

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding-bottom: 60px;
}

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

.page-slot-games__step-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-slot-games__step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

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

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    background-color: #e0f2f7; /* Lighter primary for summary */
    border-bottom: 1px solid #d0e8ee;
}

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-slot-games__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #FFFFFF;
}

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

/* Final CTA Section */
.page-slot-games__cta-final-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

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

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

/* Universal image responsiveness */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-section {
        padding-bottom: 30px;
    }
    .page-slot-games__hero-content {
        padding: 15px;
    }
    .page-slot-games__main-title {
        font-size: 2.8em;
    }
    .page-slot-games__description {
        font-size: 1.1em;
    }
    .page-slot-games__cta-buttons {
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .page-slot-games__section-title {
        font-size: 2.2em;
        padding-top: 30px;
    }
    .page-slot-games__container {
        padding: 15px;
    }
    .page-slot-games__games-grid,
    .page-slot-games__features-grid,
    .page-slot-games__steps-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 20px !important;
    }
    .page-slot-games__hero-content {
        padding: 10px !important;
    }
    .page-slot-games__main-title {
        font-size: 2em !important; /* Smaller font for mobile H1 */
        margin-bottom: 10px !important;
    }
    .page-slot-games__description {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 按钮与按钮容器 */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 1em !important;
    }
    .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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__container,
    .page-slot-games__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__step-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 产品展示图区域 (Games Grid) */
    .page-slot-games__games-grid {
        grid-template-columns: 1fr !important; /* Single column for games */
        gap: 20px !important;
    }
    .page-slot-games__game-image {
        height: auto !important; /* Auto height for mobile images */
        max-height: 250px !important; /* Limit max height */
    }

    /* 其他内容模块 */
    .page-slot-games__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
        padding-top: 20px !important;
    }
    .page-slot-games__text-block {
        font-size: 1em !important;
    }
    .page-slot-games__features-grid,
    .page-slot-games__steps-grid {
        grid-template-columns: 1fr !important; /* Single column for features/steps */
        gap: 20px !important;
    }
    .page-slot-games__faq-list {
        margin-top: 20px !important;
    }
    .page-slot-games__faq-question {
        font-size: 1em !important;
        padding: 15px 20px !important;
    }
    .page-slot-games__faq-answer {
        padding: 10px 20px !important;
        font-size: 0.95em !important;
    }
    .page-slot-games__cta-final-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}