/* style/slot-games.css */

/* --- General Page Styles --- */
.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 */
}

.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: #ffffff; /* Light text for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter text */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Backgrounds & Text Colors for Contrast --- */
.page-slot-games__dark-bg {
    background-color: #017439; /* Main brand color for dark sections */
    color: #ffffff;
    padding: 80px 0;
}

.page-slot-games__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-slot-games__light-bg .page-slot-games__section-description {
    color: #555555; /* Darker text for descriptions on light background */
}

/* --- Card Styles --- */
.page-slot-games__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure uniform height in grids */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #ffffff;
}

.page-slot-games__light-bg .page-slot-games__card {
    background-color: #f8f8f8; /* Light background for cards on light sections */
    color: #333333;
    box-shadow: 0 2px 10px 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);
}

/* --- Button Styles --- */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    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%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

/* Specific styling for secondary button on light background */
.page-slot-games__light-bg .page-slot-games__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

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

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    text-align: center;
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-slot-games__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- About Section (Features Grid) --- */
.page-slot-games__about-section {
    padding-bottom: 60px;
}

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

.page-slot-games__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-slot-games__feature-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow text to grow and align bottoms */
}

/* --- Games Showcase Section --- */
.page-slot-games__games-showcase {
    padding-bottom: 60px;
}

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

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

.page-slot-games__game-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-slot-games__game-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* --- Guide Section --- */
.page-slot-games__guide-section {
    padding-bottom: 60px;
}

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

.page-slot-games__step-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-slot-games__step-number {
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

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

.page-slot-games__step-text a {
    color: #C30808; /* Use promo link color */
    text-decoration: underline;
    font-weight: bold;
}

.page-slot-games__guide-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Promotions Section --- */
.page-slot-games__promotions-section {
    padding-bottom: 60px;
}

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

.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0; /* Remove padding from card itself, content will have it */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-slot-games__promo-card .page-slot-games__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
}

.page-slot-games__promo-card .page-slot-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
    padding: 0 20px;
}

.page-slot-games__promo-card .page-slot-games__promo-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.page-slot-games__promotions-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Tips Section --- */
.page-slot-games__tips-section {
    padding-bottom: 60px;
}

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

.page-slot-games__tip-item {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
}

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

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

.page-slot-games__tips-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
    padding-bottom: 60px;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question:hover {
    background-color: #005a2e; /* Slightly darker on hover */
}

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

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    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; /* Ensure it expands sufficiently */
    padding: 20px !important; /* Apply padding when active */
}

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

.page-slot-games__faq-answer a {
    color: #FFFF00; /* Link color within FAQ answer */
    text-decoration: underline;
}

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

.page-slot-games__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-slot-games__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }
    .page-slot-games__hero-title {
        font-size: 2.5em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: calc(100% - 40px); /* Adjust for padding on small screens */
        margin: 5px 0;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containing elements for images */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__features-grid,
    .page-slot-games__game-categories,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__tips-grid,
    .page-slot-games__faq-list,
    .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-slot-games__promo-card .page-slot-games__btn-secondary {
        width: calc(100% - 30px); /* Adjust for 15px padding on promo card */
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }

    .page-slot-games__cta-title {
        font-size: 2em;
    }
    .page-slot-games__cta-description {
        font-size: 1em;
    }
}