/* style/slot-games.css */

/* Global page styles for .page-slot-games scope */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Assuming body default is white */
}

/* 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;
    /* Assuming shared.css sets padding-top on body, so hero can start with 0 or a small margin */
    padding-top: 0;
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* 淡蓝色配色方案 */
    color: #FFFFFF; /* White text on primary color gradient */
}

.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;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF; /* Ensure text is white on the blue background */
}

.page-slot-games__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FFFFFF; /* White text for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF; /* White text for description */
}

/* General Section Styles */
.page-slot-games__section {
    padding: 80px 20px;
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Primary color for titles on light backgrounds */
}

.page-slot-games__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    line-height: 1.8;
    color: #333333;
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Color Schemes */
.page-slot-games__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-slot-games__dark-bg .page-slot-games__text-block {
    color: #F0F0F0; /* Slightly off-white for better readability on dark */
}

.page-slot-games__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

/* Buttons */
.page-slot-games__cta-button,
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

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

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

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

.page-slot-games__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: calc(100% - 40px); /* Adjust for padding on small screens */
}

.page-slot-games__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Image styling for content sections */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    /* Ensure content images are not tiny */
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__image-center {
    margin: 30px auto;
    display: block;
    max-width: 800px; /* Example max-width for content images */
    width: 100%;
    height: auto;
}

/* Grid Layouts */
.page-slot-games__grid,
.page-slot-games__promo-grid,
.page-slot-games__feature-grid,
.page-slot-games__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Card Styles */
.page-slot-games__card {
    background: #FFFFFF;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
    line-height: 1.3;
}

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

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

.page-slot-games__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows text to take available space */
}

/* Bonus Guide Steps */
.page-slot-games__bonus-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-slot-games__step-item {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-slot-games__step-icon {
    width: 60px;
    height: 60px;
    background: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

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

.page-slot-games__step-description {
    color: #555555;
    font-size: 0.95em;
}

/* Feature Grid (Security & Support) */
.page-slot-games__feature-item {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__feature-item img {
    width: 250px; /* Adjusted to meet min size requirement */
    height: 200px; /* Adjusted to meet min size requirement */
    object-fit: cover; /* Use cover for better visual, assuming images are illustrative */
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* Blog Post Date */
.page-slot-games__blog-date {
    font-size: 0.85em;
    color: #888888;
    margin-top: 10px;
    display: block;
}

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: #FFFFFF; /* White background for FAQ items */
    box-shadow: 0 2px 10px 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;
    padding: 0 15px;
    opacity: 0;
    background: #f9f9f9;
    color: #555555;
    font-size: 1em;
}

.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;
    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;
    color: #333333;
}

.page-slot-games__faq-item.active .page-slot-games__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
    background-color: #E6F7FF; /* Lighter shade of primary color */
}

.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: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #26A9E0; /* Primary color for FAQ questions */
}

.page-slot-games__faq-item.active .page-slot-games__faq-question h3 {
    color: #1e87c0;
}

.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: #26A9E0;
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '-' */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__text-block {
        font-size: 1em;
    }
    .page-slot-games__cta-button,
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-slot-games__card-title {
        font-size: 1.2em;
    }
    .page-slot-games__card img {
        
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__section {
        padding: 40px 15px;
    }
    .page-slot-games__section-title {
        font-size: 1.6em;
    }
    .page-slot-games__text-block {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Allow smaller images in mobile */
        min-height: unset;
    }
    .page-slot-games__feature-item img { /* Specific override for feature images */
        width: 100% !important;
        height: auto !important;
        max-height: 200px; /* Cap height to prevent overly tall images */
        object-fit: contain; /* Ensure content is fully visible */
    }
    .page-slot-games__card img {
        height: auto !important;
         /* Max height for card images on mobile */
    }

    /* Container padding for mobile */
    .page-slot-games__container,
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__bonus-steps,
    .page-slot-games__promo-grid,
    .page-slot-games__feature-grid,
    .page-slot-games__blog-grid,
    .page-slot-games__faq-list,
    .page-slot-games__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button 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;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }
    .page-slot-games__button-group {
        flex-direction: column; /* Stack buttons in a column */
        gap: 10px; /* Space between stacked buttons */
    }
    .page-slot-games__btn-center {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* FAQ Mobile */
    .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;
    }
}