/* style/slot-games.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Inherited from body, but explicitly set for safety */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

.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: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    padding-top: 40px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Links within text blocks */
.page-slot-games__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-slot-games__text-block a:hover {
    color: #5bc0de;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Fallback background */
}

.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: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* White for strong contrast */
}

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

.page-slot-games__hero-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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

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

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

.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;
}

/* Sections with specific background colors */
.page-slot-games__dark-bg {
    background-color: #1a1a1a; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 60px 0;
}

.page-slot-games__light-bg {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for contrast */
    padding: 60px 0;
}

/* Special text color for light background sections */
.page-slot-games__text-contrast-fix {
    color: #333333; /* Ensure dark text on light background */
}

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

.page-slot-games__feature-card,
.page-slot-games__promotion-card {
    background-color: #2a2a2a; /* Slightly lighter dark background for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-slot-games__card-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
}

.page-slot-games__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    min-width: 200px; /* Min size for images */
    min-height: 200px;
}

/* Video Section */
.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: 40px auto;
    border-radius: 10px;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it's treated as a block element */
    cursor: pointer; /* Indicate clickable */
}

/* Guide List */
.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__list-item {
    background-color: #f8f8f8; /* Light background for list items */
    color: #333333; /* Dark text for contrast */
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.1em;
}

.page-slot-games__list-item strong {
    color: #26A9E0;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.page-slot-games__list-item a {
    color: #007bff; /* Standard link color */
    text-decoration: underline;
}

/* Safety Section */
.page-slot-games__safety-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__safety-list .page-slot-games__list-item {
    background-color: #f8f8f8; /* Light background for list items */
    color: #333333; /* Dark text for contrast */
    border-left-color: #EA7C07; /* Different accent color */
}

.page-slot-games__safety-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__faq-item {
    background-color: #2a2a2a; /* Card background color */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff; /* Light text */
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #26A9E0; /* Brand color for question background */
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-question:hover {
    background-color: #1f8ec4;
}

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
}

.page-slot-games__faq-answer {
    padding: 20px;
    background-color: #3a3a3a; /* Slightly darker background for answer */
    color: #f0f0f0;
    font-size: 1em;
}

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

.page-slot-games__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-slot-games__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

/* CTA Section */
.page-slot-games__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color background for CTA */
    color: #ffffff;
}

.page-slot-games__cta-section .page-slot-games__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

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

.page-slot-games__cta-section .page-slot-games__cta-buttons {
    margin-top: 30px;
}

/* Ensure all images adhere to minimum size and responsiveness */
.page-slot-games img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

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

@media (max-width: 768px) {
    .page-slot-games {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-slot-games__hero-section {
        height: 500px;
    }

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

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

    .page-slot-games__hero-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__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-slot-games__dark-bg,
    .page-slot-games__light-bg,
    .page-slot-games__cta-section {
        padding: 40px 0;
    }

    .page-slot-games__container {
        padding: 0 15px; /* Add padding to prevent content from touching edges */
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-slot-games__card-image,
    .page-slot-games__safety-image,
    .page-slot-games__faq-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Video responsiveness */
    .page-slot-games__video-wrapper {
        margin: 30px auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all content containers are constrained */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__feature-card,
    .page-slot-games__promotion-card,
    .page-slot-games__cta-buttons,
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for the video section's padding-top to ensure it's correct on mobile */
    .page-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}