/* 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, which is #0a0a0a */
}

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

.page-slot-games__main-title,
.page-slot-games__section-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__main-title {
    font-size: 3em; /* Larger for hero section */
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-top: 40px;
}

.page-slot-games__hero-description,
.page-slot-games__section-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 100px 0 60px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.page-slot-games__hero-section .page-slot-games__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for mobile */
}

.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: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-slot-games__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

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

.page-slot-games__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 1000px; /* Adjust as needed */
    text-align: center;
}

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

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

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Max width for the video player */
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 10; /* Ensure link is clickable over video */
}

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

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

/* Features Section */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for this section */
    color: #333333; /* Dark text for light background */
}

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

.page-slot-games__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text on light card */
}

.page-slot-games__feature-card:hover {
    transform: translateY(-10px);
}

.page-slot-games__feature-icon {
    width: 100%; /* Ensure large image, not icon */
    max-width: 200px; /* Example size, min 200x200 */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__card-text {
    font-size: 1em;
    color: #555555;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-slot-games__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text on dark card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__game-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__game-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__game-card .page-slot-games__card-title {
    color: #FFFF00; /* Custom color for game titles */
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-slot-games__game-card .page-slot-games__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-slot-games__game-card .page-slot-games__card-title a:hover {
    text-decoration: underline;
}

.page-slot-games__game-card .page-slot-games__card-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-slot-games__step-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__step-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-slot-games__step-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-slot-games__promotions-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(0, 0, 0, 0.2); /* Dark overlay on brand color */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-10px);
    background-color: rgba(0, 0, 0, 0.3);
}

.page-slot-games__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__promo-card .page-slot-games__card-title {
    color: #FFFF00; /* Custom color for promo titles */
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-slot-games__promo-card .page-slot-games__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-slot-games__promo-card .page-slot-games__card-title a:hover {
    text-decoration: underline;
}

.page-slot-games__promo-card .page-slot-games__card-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: #f8f8f8;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    color: #333333;
}

.page-slot-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
    color: #017439; /* Brand primary color for question */
}

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

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

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

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

/* Text contrast fixes for light background sections */
.page-slot-games__text-contrast-fix {
    color: #333333; /* For titles on light backgrounds */
}

/* Image optimization - ensure no filter is used */
.page-slot-games img {
    filter: none !important; /* Explicitly ensure no filter */
}

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

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }

    .page-slot-games__main-title {
        font-size: 2em;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }

    .page-slot-games__hero-section {
        padding: 80px 0 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-slot-games__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;
    }

    .page-slot-games__video-section,
    .page-slot-games__features-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        padding: 50px 0;
    }

    .page-slot-games__video-wrapper {
        margin: 30px auto;
        max-width: 100% !important;
        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 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__features-grid,
    .page-slot-games__games-grid,
    .page-slot-games__step-list,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__step-item,
    .page-slot-games__promo-card,
    .page-slot-games__faq-item {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promo-image,
.page-slot-games__hero-image {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures image covers area without distortion */
}

/* Mobile specific overrides for images to prevent overflow */
@media (max-width: 768px) {
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__features-grid,
    .page-slot-games__games-grid,
    .page-slot-games__promotions-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}