/* style/slot-games.css */

/* --- General Page Styling --- */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is from shared.css */
}

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

.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-slot-games__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

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

.page-slot-games__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF; /* White for strong contrast on dark overlay */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* --- Buttons --- */
.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;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.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: #1e8dc7;
    border-color: #1e8dc7;
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1e8dc7;
    border-color: #1e8dc7;
    transform: translateY(-2px);
}

.page-slot-games__small-btn {
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
}

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

/* --- Feature Grid (Why Choose) --- */
.page-slot-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__feature-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-slot-games__feature-icon {
    width: 200px; /* Minimum size 200x200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-slot-games__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- How to Play Section --- */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    text-align: left;
}

.page-slot-games__step-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #26A9E0;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #ffffff;
}

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

/* --- Popular Games Section --- */
.page-slot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

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

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 200px; /* Example fixed height for thumbnails, adjust as needed */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.page-slot-games__promo-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #EA7C07; /* Orange for promotions */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: #ffffff;
}

.page-slot-games__promo-title {
    font-size: 1.6em;
    color: #EA7C07;
    margin-bottom: 10px;
}

.page-slot-games__promo-description {
    color: #f0f0f0;
}

/* --- Tips & Strategies Section --- */
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    text-align: left;
}

.page-slot-games__tip-item {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    color: #ffffff;
}

.page-slot-games__tip-item:last-child {
    border-bottom: none;
}

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

/* --- FAQ Section --- */
.page-slot-games__faq-list {
    margin-top: 50px;
    text-align: left;
}

.page-slot-games__faq-item {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-slot-games__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

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

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

.page-slot-games__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Call to Action Section --- */
.page-slot-games__call-to-action {
    background: linear-gradient(45deg, #26A9E0, #1e8dc7);
    color: #ffffff;
    padding: 80px 0;
}

.page-slot-games__cta-content {
    max-width: 800px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
    }

    .page-slot-games__section {
        padding: 40px 0;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
    }

    .page-slot-games__section-description {
        font-size: 0.95em;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__feature-grid,
    .page-slot-games__game-grid {
        grid-template-columns: 1fr;
    }

    .page-slot-games__container {
        padding: 0 15px; /* Add horizontal padding for mobile content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__promo-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;
        padding-right: 15px;
    }

    .page-slot-games__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
    }

    .page-slot-games__feature-icon,
    .page-slot-games__game-thumbnail {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    
    /* Ensure content sections also adapt */
    .page-slot-games__section,
    .page-slot-games__intro-nổ-hũ,
    .page-slot-games__why-choose,
    .page-slot-games__how-to-play,
    .page-slot-games__popular-games,
    .page-slot-games__promotions,
    .page-slot-games__tips-strategies,
    .page-slot-games__faq,
    .page-slot-games__call-to-action {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Container handles padding */
        padding-right: 0;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }

    .page-slot-games__section-title {
        font-size: 1.5em;
    }
}

/* Ensure no CSS filter on images */
.page-slot-games img {
    filter: none;
}