/* 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 from shared.css */
}

.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    height: 700px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden;
}

.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.6), rgba(0,0,0,0.8));
    z-index: 2;
}

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

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

.page-slot-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: #f8f8f8;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-slot-games__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red for contrast */
    border: 2px solid #FFD700;
}

.page-slot-games__btn-primary:hover {
    background-color: #e6c200;
    color: #6a0000;
    transform: translateY(-3px);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold */
    border: 2px solid #FFD700;
}

.page-slot-games__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
    transform: translateY(-3px);
}

/* About Nổ Hũ Section */
.page-slot-games__about-nổ hũ {
    background-color: #1a1a1a; /* Dark background for content */
    color: #f0f0f0;
}

/* Video Section */
.page-slot-games__video-section {
    background-color: #0d0d0d;
    padding-top: var(--header-offset, 120px); /* Ensures video section starts below header */
}

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

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure video takes up full space */
    cursor: pointer;
}

.page-slot-games__video-cta {
    margin-top: 30px;
}

/* Why Choose Section (Dark background) */
.page-slot-games__dark-bg {
    background-color: #8B0000; /* Auxiliary dark red */
    color: #ffffff;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
    color: #FFD700; /* Gold title on dark red */
}

.page-slot-games__dark-bg .page-slot-games__text-block {
    color: #f0f0f0;
}

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

.page-slot-games__feature-card {
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent dark background */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.5);
}

.page-slot-games__feature-icon {
    width: 100%; /* Ensure image takes full width of card */
    max-width: 400px; /* Max width for images */
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

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

.page-slot-games__feature-description {
    color: #f0f0f0;
    font-size: 1em;
    flex-grow: 1; /* Allows description to take available space */
}

/* How to Play Section */
.page-slot-games__how-to-play {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-left: 5px solid #FFD700;
    display: flex;
    flex-direction: column;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-slot-games__step-item p {
    color: #e0e0e0;
    font-size: 1em;
}

.page-slot-games__step-item a {
    color: #FFD700;
    text-decoration: underline;
}

.page-slot-games__step-item a:hover {
    color: #e6c200;
}

/* Promotions Section */
.page-slot-games__promotions {
    background-color: #8B0000;
    color: #ffffff;
}

.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-slot-games__promo-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    border-left: 4px solid #FFD700;
}

.page-slot-games__promo-item strong {
    color: #FFD700;
}

/* Tips Section */
.page-slot-games__tips {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__tip-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-left: 5px solid #8B0000;
    height: 100%;
}

.page-slot-games__tip-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-slot-games__tip-item p {
    color: #e0e0e0;
    font-size: 1em;
}

/* FAQ Section */
.page-slot-games__faq {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

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

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

.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: #e0e0e0;
    font-size: 1em;
}

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

.page-slot-games__faq-answer p {
    margin-bottom: 10px;
}

/* Call to Action Section */
.page-slot-games__cta-section {
    background-color: #8B0000;
    color: #ffffff;
    padding-bottom: 80px;
}

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

/* Image specific styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

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

@media (max-width: 768px) {
    /* Mobile General */
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-slot-games__container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    /* Hero Section */
    .page-slot-games__hero-section {
        height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .page-slot-games__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-slot-games__hero-cta-buttons,
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding for buttons */
    }

    /* Buttons */
    .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;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Image containers */
    .page-slot-games__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Maintain minimum size */
    }

    /* Video Section */
    .page-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-slot-games__video-wrapper {
        margin: 20px auto;
        border-radius: 5px;
        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;
        box-sizing: border-box !important;
    }

    /* Content sections for mobile */
    .page-slot-games__section,
    .page-slot-games__feature-card,
    .page-slot-games__step-item,
    .page-slot-games__promo-item,
    .page-slot-games__tip-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__faq-question,
    .page-slot-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px 15px;
    }
}