/* style/slot-games.css */

/* Base styles for the page */
.page-slot-games {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for clarity, matching body default */
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF; /* White text for dark background image */
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

.page-slot-games__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for main title, high contrast */
}

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

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

/* General Button Styles */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Red for Register/Login */
    color: #FFFF00; /* Yellow for text */
    border: 2px solid #C30808;
}

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text for secondary on dark hero */
    border: 2px solid #FFFFFF;
}

.page-slot-games__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
}

/* Specific button styles for dark-bg sections */
.page-slot-games__dark-bg .page-slot-games__btn-secondary {
    background-color: #C30808; /* Red for buttons on dark background */
    color: #FFFF00; /* Yellow for text */
    border-color: #C30808;
}
.page-slot-games__dark-bg .page-slot-games__btn-secondary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-slot-games__btn-center {
    display: block;
    margin: 40px auto;
    max-width: 300px;
}

/* Video Section */
.page-slot-games__video-section {
    background-color: #f8f8f8;
    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: 1000px; /* Max width for video */
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicate clickable */
}

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

.page-slot-games__video-description {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.1em;
    color: #555555;
}

/* Game Types Grid */
.page-slot-games__game-types-grid,
.page-slot-games__advantages-grid,
.page-slot-games__steps-grid,
.page-slot-games__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    color: #333333; /* Default text color for cards */
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    padding: 0 15px;
    font-weight: bold;
}

.page-slot-games__card p {
    font-size: 1em;
    line-height: 1.5;
    padding: 0 15px;
    flex-grow: 1; /* Make paragraphs take available space */
}

/* Advantages Section */
.page-slot-games__advantage-item {
    text-align: center;
    padding: 20px;
    background-color: #f0fdf6; /* Light green background */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-slot-games__advantage-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__advantage-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Steps Grid */
.page-slot-games__step-item {
    text-align: center;
    padding: 20px;
    border: 1px dashed #017439;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__step-image {
    width: 100%;
    max-width: 150px; /* Smaller images for steps */
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

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

.page-slot-games__step-item .page-slot-games__btn-primary {
    margin-top: 20px;
    align-self: center;
    width: fit-content;
    max-width: 100%;
}

/* Promotions Grid */
.page-slot-games__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-slot-games__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF; /* White text for dark background */
}

.page-slot-games__dark-bg .page-slot-games__card-title {
    color: #FFFF00; /* Yellow for titles on dark cards */
}

.page-slot-games__promotion-cta {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #555555;
}

.page-slot-games__promotion-cta a {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-slot-games__promotion-cta a:hover {
    color: #004d2b;
}

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

.page-slot-games__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

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

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

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

.page-slot-games__faq-answer {
    padding: 20px 25px;
    background-color: #FFFFFF;
    color: #333333;
    border-top: 1px solid #e0e0e0;
}

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

.page-slot-games__faq-answer .page-slot-games__btn-primary {
    margin-top: 20px;
    max-width: 200px;
    font-size: 1em;
    padding: 10px 20px;
}

/* CTA Section */
.page-slot-games__cta-section {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
}

.page-slot-games__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for CTA title */
}

.page-slot-games__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFFFFF;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 450px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__hero-buttons,
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }
    .page-slot-games__advantage-image {
        max-width: 180px;
    }
    .page-slot-games__step-image {
        max-width: 120px;
    }

    /* Video responsiveness */
    .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-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin: 20px auto;
    }
    .page-slot-games__video-section {
        padding: 40px 0;
    }

    .page-slot-games__game-types-grid,
    .page-slot-games__advantages-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__card,
    .page-slot-games__advantage-item,
    .page-slot-games__step-item {
        padding: 15px;
    }

    .page-slot-games__card-title {
        font-size: 1.3em;
    }
    .page-slot-games__advantage-title,
    .page-slot-games__step-title {
        font-size: 1.2em;
    }

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

    .page-slot-games__cta-title {
        font-size: 2em;
    }
    .page-slot-games__cta-description {
        font-size: 1em;
    }
    .page-slot-games__cta-section {
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__hero-description {
        font-size: 0.9em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
}