/* style/slot-games.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-slot-games {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Base container for content sections */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, not header-offset */
    overflow: hidden; /* Ensure no overflow from image */
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

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

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F2C14E; /* Gold color for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__description {
    font-size: 1.15rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    font-size: 1.1rem;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6; /* Main text color */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: #57E38D; /* Glow color for secondary button text */
    border: 2px solid #57E38D; /* Glow color for border */
    box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-slot-games__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

/* Section Titles */
.page-slot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #F2C14E; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Text Blocks */
.page-slot-games__text-block {
    font-size: 1.05rem;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    text-align: justify;
}

/* Image content */
.page-slot-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Feature Cards */
.page-slot-games__features-section {
    background-color: #0A4B2C; /* Deep Green for dark section */
    padding: 80px 20px;
}

.page-slot-games__dark-section {
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Light text for dark section */
}

.page-slot-games__feature-grid,
.page-slot-games__game-grid,
.page-slot-games__promo-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__game-card,
.page-slot-games__promo-card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #F2C14E; /* Gold color */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-slot-games__card-text {
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.5;
    flex-grow: 1;
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* How-to-play List */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-slot-games__list-item {
    background-color: #11271B; /* Card BG */
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 5px solid #2AD16F; /* Highlight with button gradient color */
}

.page-slot-games__list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F2C14E; /* Gold color */
    margin-bottom: 10px;
}

.page-slot-games__list-item p {
    color: #F2FFF6; /* Main text color */
}

.page-slot-games__list-item a {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
}
.page-slot-games__list-item a:hover {
    color: #2AD16F;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 20px;
    background-color: #08160F; /* Background color */
}

.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Main text color */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

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

.page-slot-games__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2); /* Border color with opacity */
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.6;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    background-color: rgba(46, 122, 78, 0.3); /* Slightly darker when open */
}

/* CTA Section */
.page-slot-games__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #0A4B2C; /* Deep Green */
}

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

/* Responsive styles */
@media (max-width: 768px) {
    .page-slot-games {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding, not header-offset */
    }

    .page-slot-games__hero-content {
        padding: 30px 15px;
        margin-top: 15px;
    }

    .page-slot-games__main-title {
        font-size: 2rem; /* Adjust for mobile */
        margin-bottom: 15px;
    }

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-slot-games__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-top: 30px;
    }

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

    .page-slot-games__image-content,
    .page-slot-games__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size on mobile */
        min-height: 200px !important; /* Ensure minimum size on mobile */
    }

    .page-slot-games__feature-grid,
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

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

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

    .page-slot-games__card-text {
        font-size: 0.95rem;
    }

    .page-slot-games__list-item {
        padding: 20px;
    }

    .page-slot-games__list-title {
        font-size: 1.15rem;
    }

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

    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Ensure all containing elements have max-width: 100% and padding */
    .page-slot-games__section,
    .page-slot-games__container,
    .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific section paddings for mobile */
    .page-slot-games__about-section,
    .page-slot-games__features-section,
    .page-slot-games__game-types-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__responsible-gaming-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}