/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-text-color: #FFFF00;
    --body-bg: #1a1a1a;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
    background-color: var(--body-bg);
}

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

.page-slot-games__dark-bg {
    background-color: var(--body-bg);
    color: var(--text-color-dark-bg);
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

/* Hero Section */
.page-slot-games__hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.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.2; /* Subtle overlay for text readability */
}

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

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

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

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

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background-color: var(--button-register);
    color: var(--button-text-color);
    border: 2px solid var(--button-register);
}

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--button-register), 10%);
    border-color: darken(var(--button-register), 10%);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--button-text-color);
    border: 2px solid var(--button-login);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--button-login);
    color: var(--text-color-dark-bg);
}

/* Video Section */
.page-slot-games__video-section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-slot-games__video-caption {
    margin-top: 20px;
    font-style: italic;
    color: var(--text-color-light-bg);
}

/* General Content Sections */
.page-slot-games__content-area,
.page-slot-games__game-types,
.page-slot-games__how-to-play,
.page-slot-games__benefits,
.page-slot-games__faq-section,
.page-slot-games__cta-final {
    padding: 60px 0;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color-dark-bg); /* Default for dark background */
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: var(--text-color-light-bg);
}

.page-slot-games__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-slot-games__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-slot-games__list li {
    margin-bottom: 10px;
}

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

.page-slot-games__card {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-slot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-slot-games__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* How to Play Steps */
.page-slot-games__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 40px 0;
}

.page-slot-games__steps-list li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-slot-games__steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.3em;
}

/* Benefits Grid */
.page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-slot-games__feature-item {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-icon {
    width: 100%;
    height: auto; /* Adjust height based on content */
    max-width: 300px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-slot-games__feature-description {
    font-size: 1em;
    line-height: 1.7;
}

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

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter for contrast */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark-bg);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Even lighter */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-slot-games__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__faq-item details > summary {
    list-style: none;
}

.page-slot-games__faq-item details > summary::-webkit-details-marker {
    display: none;
}

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

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

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

    .page-slot-games__hero-section {
        padding: 60px 20px;
        min-height: 500px;
    }

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
    }

    .page-slot-games__hero-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;
        font-size: 1em;
    }

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

    .page-slot-games__sub-title {
        font-size: 1.5em;
    }

    .page-slot-games__text-block,
    .page-slot-games__list,
    .page-slot-games__steps-list li,
    .page-slot-games__card-text,
    .page-slot-games__feature-description,
    .page-slot-games__faq-answer {
        font-size: 0.95em;
    }

    .page-slot-games__card-image,
    .page-slot-games__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
    }
    
    .page-slot-games__cards-grid,
    .page-slot-games__features-grid {
        grid-template-columns: 1fr;
    }

    .page-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile video section */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__video-wrapper {
        margin: 20px auto;
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        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__container,
    .page-slot-games__content-area,
    .page-slot-games__game-types,
    .page-slot-games__how-to-play,
    .page-slot-games__benefits,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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