/* style/slot-games.css */

/* --- Base Styles --- */
.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 handled by shared.css */
    padding-top: 0; /* Handled by shared.css body padding, or by hero section below if shared doesn't provide */
}

/* Ensure the first content section (hero or video) respects header offset if shared.css doesn't set body padding-top */
.page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply offset here if not on body */
}

/* --- Container and Section Styles --- */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color */
    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: #26A9E0;
    border-radius: 2px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #f0f0f0; /* Slightly off-white for readability on dark bg */
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d0d0d; /* Darker background for hero */
    min-height: 600px;
    overflow: hidden;
    padding: 60px 20px;
    box-sizing: border-box;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    z-index: 1;
    padding-right: 40px;
    box-sizing: border-box;
}

.page-slot-games__main-title {
    font-size: 3.5em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-slot-games__btn-primary:hover {
    background-color: #1e87b8;
    border-color: #1e87b8;
    transform: translateY(-3px);
}

.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;
    transform: translateY(-3px);
}

.page-slot-games__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Introduction Section --- */
.page-slot-games__introduction-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

/* --- Features Section --- */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-slot-games__feature-card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 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 15px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-image {
    width: 100%;
    height: auto;
    max-height: 200px; /* Limit image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

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

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for video */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
}

.page-slot-games__video-link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

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

.page-slot-games__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
    opacity: 0.8;
}

.page-slot-games__play-icon {
    font-size: 4em;
    color: #26A9E0;
    border: 3px solid #26A9E0;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.page-slot-games__overlay-text {
    font-size: 1.2em;
    font-weight: bold;
}

/* --- How To Play Section --- */
.page-slot-games__how-to-play-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

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

/* --- Promotions Section --- */
.page-slot-games__promotions-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-slot-games__promotion-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-slot-games__promotion-card h3,
.page-slot-games__promotion-card p,
.page-slot-games__promotion-card a {
    padding: 0 25px;
}

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

.page-slot-games__promotion-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-slot-games__promotion-card .page-slot-games__btn-secondary {
    margin: 0 25px 25px;
    align-self: flex-start;
}


/* --- FAQ Section --- */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-slot-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-question h3 {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    color: #ffffff;
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.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; /* Sufficient height for content */
    padding: 15px 25px 25px; /* Adjust padding for expanded state */
}

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

/* --- Final CTA Section --- */
.page-slot-games__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: #1a1a1a;
}

.page-slot-games__btn-large {
    font-size: 1.3em;
    padding: 18px 40px;
    margin-top: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__main-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) {
    /* --- General Mobile Styles --- */
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__container {
        padding: 15px;
        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__text-block {
        font-size: 0.95em;
    }

    /* --- Hero Section Mobile --- */
    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        min-height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset is applied */
    }

    .page-slot-games__hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

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

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .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__hero-image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-slot-games__hero-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }

    /* --- Images Responsive (Global for content images) --- */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        width: 100% !important; /* Ensure content images fill their container */
        box-sizing: border-box !important;
    }

    /* All containing elements for images and content */
    .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__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;
    }
    
    /* Remove specific padding for cards/items that get padding from parent container */
    .page-slot-games__feature-card,
    .page-slot-games__promotion-card,
    .page-slot-games__step-item,
    .page-slot-games__faq-item {
        padding-left: 20px; /* Internal padding */
        padding-right: 20px; /* Internal padding */
    }
    .page-slot-games__promotion-card h3,
    .page-slot-games__promotion-card p,
    .page-slot-games__promotion-card a {
        padding-left: 0;
        padding-right: 0;
    }
    .page-slot-games__promotion-card .page-slot-games__btn-secondary {
        margin-left: 0;
        margin-right: 0;
    }
    .page-slot-games__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .page-slot-games__faq-question {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* --- Video Responsive --- */
    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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;
        overflow: hidden !important;
    }
    .page-slot-games__video-wrapper {
        padding-left: 0 !important; /* Remove container padding if it's already on parent */
        padding-right: 0 !important; /* Remove container padding if it's already on parent */
    }

    /* --- Features Grid Mobile --- */
    .page-slot-games__features-grid,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
    }

    /* --- FAQ Section Mobile --- */
    .page-slot-games__faq-question h3 {
        font-size: 1.1em;
    }
    .page-slot-games__faq-answer p {
        font-size: 0.9em;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding-top: 10px;
        padding-bottom: 15px;
    }
}

/* Specific color contrast classes for dark backgrounds */
.page-slot-games__dark-section {
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff; /* Light text */
}

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

/* Ensure no filter is applied to images */
.page-slot-games img {
    filter: none !important;
}

/* Content area image size check (min 200px) */
.page-slot-games__hero-image,
.page-slot-games__feature-image,
.page-slot-games__promotion-image,
.page-slot-games__video {
    min-width: 200px;
    min-height: 200px;
}
.page-slot-games__hero-image {
    width: 1200px; /* HTML width attribute for CLS */
    height: 675px; /* HTML height attribute for CLS */
    max-width: 100%;
    height: auto;
}
.page-slot-games__feature-image,
.page-slot-games__promotion-image {
    width: 400px; /* HTML width attribute for CLS */
    height: 300px; /* HTML height attribute for CLS */
    max-width: 100%;
    height: auto;
}
.page-slot-games__video {
    width: 800px; /* HTML width attribute for CLS */
    height: 450px; /* HTML height attribute for CLS */
    max-width: 100%;
    height: auto;
}

/* Ensure that any img under .page-slot-games has min-width/height not smaller than 200px in mobile */
@media (max-width: 768px) {
    .page-slot-games img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}