/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Section specific styles */
.page-slot-games__hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 150px 20px 100px; /* Adjusted padding-top for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    overflow: hidden; /* Ensure background image doesn't overflow */
}

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

.page-slot-games__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Added for mobile responsiveness */
}

/* General section styling */
.page-slot-games__about-nổ-hũ,
.page-slot-games__why-b52,
.page-slot-games__popular-games,
.page-slot-games__download-guide,
.page-slot-games__strategies,
.page-slot-games__promotions,
.page-slot-games__security,
.page-slot-games__faq-section,
.page-slot-games__final-cta {
    padding: 80px 0;
}

/* Color contrast based on body background #000000 (dark) */
.page-slot-games__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-slot-games__dark-bg {
    background-color: #000000; /* Use black as body is black, or a darker variant of brand color */
    color: #ffffff;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit from section for contrast */
}

.page-slot-games__subsection-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

/* 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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-slot-games__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Feature list */
.page-slot-games__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-slot-games__feature-item p {
    color: #f0f0f0;
}

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

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

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

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

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

.page-slot-games__game-title {
    font-size: 1.4em;
    margin: 15px 10px 10px;
}

.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;
    padding: 0 15px 20px;
    color: #555555;
}

/* Step by step guide */
.page-slot-games__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-slot-games__step-item p {
    color: #f0f0f0;
}

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

/* Strategy list */
.page-slot-games__strategy-list,
.page-slot-games__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__strategy-item,
.page-slot-games__security-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-slot-games__strategy-item p,
.page-slot-games__security-item p {
    color: #555555;
}

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

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

.page-slot-games__security-item a:hover {
    text-decoration: underline;
}

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

.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

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

.page-slot-games__promo-title {
    font-size: 1.4em;
    margin: 15px 10px 10px;
    color: #26A9E0;
}

.page-slot-games__promo-description {
    font-size: 0.95em;
    padding: 0 15px 20px;
    color: #f0f0f0;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question h3 {
    margin: 0;
    color: inherit;
}

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 25px 20px;
}

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

/* Images in content areas */
.page-slot-games__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

/* Ensure content images are not too small by CSS */
.page-slot-games img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider) {
    min-width: 200px;
    min-height: 200px;
}

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

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

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

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

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

    .page-slot-games__about-nổ-hũ,
    .page-slot-games__why-b52,
    .page-slot-games__popular-games,
    .page-slot-games__download-guide,
    .page-slot-games__strategies,
    .page-slot-games__promotions,
    .page-slot-games__security,
    .page-slot-games__faq-section,
    .page-slot-games__final-cta {
        padding: 60px 0;
    }

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

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

    .page-slot-games__feature-item,
    .page-slot-games__step-item,
    .page-slot-games__strategy-item,
    .page-slot-games__security-item,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__faq-item {
        margin-left: 0;
        margin-right: 0;
    }

    .page-slot-games__game-image,
    .page-slot-games__promo-image {
        height: auto; /* Allow height to adjust */
    }

    /* Images and containers in mobile */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__step-by-step,
    .page-slot-games__feature-list,
    .page-slot-games__strategy-list,
    .page-slot-games__security-list,
    .page-slot-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-slot-games__video-section { /* If video existed */
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-slot-games img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider) {
        min-width: unset;
        min-height: unset;
    }
}