/* style/slot-games.css */

/* Base Styles for .page-slot-games */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Inherited from shared.css body, but explicitly set for clarity */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #ffffff; /* White for dark backgrounds */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

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

.page-slot-games__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__link:hover {
    text-decoration: underline;
}

/* Color Contrast Enforcement */
.page-slot-games__dark-bg {
    background-color: #1a1a1a; /* Body background from shared.css */
    color: #ffffff; /* Light text for dark background */
}

.page-slot-games__light-bg {
    background-color: #f8f8f8; /* Light background for contrast sections */
    color: #333333; /* Dark text for light background */
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__section-description {
    color: #333333;
}

/* Hero Section */
.page-slot-games__hero-section {
    padding: 100px 20px;
    text-align: center;
    background-image: url('[GALLERY:hero_main:1920x1080:vt999 đăng nhập,nổ hũ,hero,jackpot,vibrant,green]'); /* Placeholder for hero background */
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a decent height */
}

.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-section .page-slot-games__container {
    position: relative;
    z-index: 2;
}

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

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap 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;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-align: center; /* Center text for responsive buttons */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
}

.page-slot-games__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
    background-color: #005a2d;
    transform: translateY(-2px);
}

.page-slot-games__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Content Sections */
.page-slot-games__intro-section,
.page-slot-games__features-section,
.page-slot-games__guide-section,
.page-slot-games__strategy-section,
.page-slot-games__promotions-section,
.page-slot-games__video-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
    padding: 80px 0;
}

.page-slot-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-slot-games__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-slot-games__text-block {
    flex: 1;
    font-size: 1.1em;
}

.page-slot-games__text-block p {
    margin-bottom: 15px;
}

.page-slot-games__sub-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for sub-titles on light background */
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Image styles */
.page-slot-games__image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Grid Layouts */
.page-slot-games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cards */
.page-slot-games__card {
    background-color: #2a2a2a; /* Dark background for cards on dark sections */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for dark cards */
}

.page-slot-games__light-bg .page-slot-games__card {
    background-color: #ffffff; /* Light background for cards on light sections */
    color: #333333; /* Dark text for light cards */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-slot-games__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistent card image sizing */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
}

.page-slot-games__light-bg .page-slot-games__card .page-slot-games__card-title {
    color: #017439; /* Brand color for card titles on light cards */
}

.page-slot-games__card-text {
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-slot-games__card--strategy .page-slot-games__card-title {
    color: #ffffff; /* White title on dark strategy cards */
}

/* Promotions Section Specific */
.page-slot-games__grid--promotions .page-slot-games__card {
    padding: 0; /* Remove padding for full image card */
    text-align: left;
    overflow: hidden;
}

.page-slot-games__grid--promotions .page-slot-games__card-image {
    width: 100%;
    height: 220px; /* Adjust height for promotion images */
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.page-slot-games__card--promotion .page-slot-games__card-title {
    padding: 20px 20px 10px;
    color: #017439; /* Brand color for promo titles */
    margin-bottom: 0;
}

.page-slot-games__card--promotion .page-slot-games__card-text {
    padding: 0 20px 20px;
    color: #333333; /* Dark text on light promo card */
    margin-bottom: 0;
}

.page-slot-games__card--promotion .page-slot-games__btn-primary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
}

/* Video Section */
.page-slot-games__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

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

.page-slot-games__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #017439; /* Brand color for FAQ question background */
    color: #ffffff; /* White text for question */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #005a2d;
}

.page-slot-games__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-slot-games__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus to X for active */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333; /* Dark text for answer on light background */
}

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

/* CTA Section */
.page-slot-games__cta-section {
    text-align: center;
    padding: 100px 20px;
    background-color: #017439; /* Brand color background */
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__hero-description {
        font-size: 1.2em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__content-wrapper {
        flex-direction: column;
    }
    .page-slot-games__image {
        max-width: 80%;
    }
    .page-slot-games__content-wrapper--reversed {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 80px 20px;
        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: 1em;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Content sections padding adjustment */
    .page-slot-games__intro-section .page-slot-games__container,
    .page-slot-games__features-section .page-slot-games__container,
    .page-slot-games__guide-section .page-slot-games__container,
    .page-slot-games__strategy-section .page-slot-games__container,
    .page-slot-games__promotions-section .page-slot-games__container,
    .page-slot-games__video-section .page-slot-games__container,
    .page-slot-games__faq-section .page-slot-games__container,
    .page-slot-games__cta-section .page-slot-games__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-slot-games__content-wrapper {
        gap: 30px;
    }
    .page-slot-games__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__text-block {
        font-size: 1em;
    }
    .page-slot-games__sub-title {
        font-size: 1.5em;
    }
    .page-slot-games__grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__card-image {
        height: auto; /* Allow height to adjust on mobile */
    }
    .page-slot-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-slot-games__faq-title {
        font-size: 1.1em;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-slot-games__hero-section {
        min-height: 400px;
    }
}

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