/* style/slot-games.css */

/* Base styles for the page content, considering dark body background */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: transparent; /* Body background from shared.css */
}

/* Sections with dark background (like hero, intro, popular games, final cta) */
.page-slot-games__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for sections to stand out from #121212 body */
    color: #ffffff;
    padding: 60px 0;
}

/* Sections with light background (like why choose, how to play, promotions, faq) */
.page-slot-games__light-bg {
    background-color: #ffffff; /* White background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-slot-games__text-dark {
    color: #333333; /* Explicitly dark text for light sections */
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Adjust padding-top to ensure content is not hidden by header */
    padding-top: var(--header-offset, 120px); /* Use CSS variable for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

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

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

/* General Section Titles */
.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    color: #26A9E0; /* Brand color for titles */
}

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

/* 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;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-slot-games__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

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

.page-slot-games__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color for text */
    border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1e87bb;
    border-color: #1e87bb;
}

.page-slot-games__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-slot-games__inline-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-slot-games__inline-link:hover {
    color: #1e87bb;
}

/* Feature Cards & Game Cards */
.page-slot-games__features-grid,
.page-slot-games__game-grid,
.page-slot-games__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark sections */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Default text for cards on dark background */
}

/* Override card colors for light sections */
.page-slot-games__light-bg .page-slot-games__card {
    background-color: #f8f8f8; /* Light background for cards in light sections */
    color: #333333; /* Dark text for cards in light sections */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

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

/* Ensure text color for card titles in light sections is dark */
.page-slot-games__light-bg .page-slot-games__card-title {
    color: #333333;
}

.page-slot-games__card-text {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: justify;
}

/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list,
.page-slot-games__promo-list {
    list-style-position: inside;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li,
.page-slot-games__promo-list li {
    margin-bottom: 10px;
    text-align: justify;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for items on dark background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff; /* Default text for FAQ items */
}

/* Override FAQ item colors for light sections */
.page-slot-games__light-bg .page-slot-games__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly darker background for question on dark sections */
    transition: background-color 0.3s ease;
}

/* Override FAQ question background for light sections */
.page-slot-games__light-bg .page-slot-games__faq-question {
    background-color: #e8e8e8;
}

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

.page-slot-games__light-bg .page-slot-games__faq-question:hover {
    background-color: #dcdcdc;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    font-size: 1.1em;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content, !important for override */
    padding: 15px 25px;
}

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

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

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

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

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

@media (max-width: 768px) {
    /* Ensure content padding and overflow for mobile */
    .page-slot-games__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-direction: column;
        text-align: center;
    }
}