/* slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color); /* Matches body background from shared.css */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__hero-image {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 1200px;
    border-radius: 8px;
}

.page-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-slot-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--register-login-font-color);
    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(--secondary-color);
}

.page-slot-games__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;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    width: auto;
}

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

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--register-color), 10%);
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 0;
}

.page-slot-games__dark-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-slot-games__light-bg {
    background-color: var(--background-color);
    color: #333333;
}

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

.page-slot-games__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: var(--register-login-font-color);
}

.page-slot-games__article-body {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__article-body p {
    margin-bottom: 1em;
}

.page-slot-games__article-body ul,
.page-slot-games__article-body ol {
    margin-bottom: 1em;
    padding-left: 25px;
}

.page-slot-games__article-body li {
    margin-bottom: 0.5em;
}

.page-slot-games__article-figure {
    margin: 30px auto;
    max-width: 100%;
    text-align: center;
}

.page-slot-games__article-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-slot-games__article-figure figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.page-slot-games__dark-section .page-slot-games__article-figure figcaption {
    color: rgba(255,255,255,0.7);
}

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

.page-slot-games__product-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-slot-games__product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

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

.page-slot-games__card-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-slot-games__card-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: calc(100% - 30px);
    width: auto;
    margin: 0 15px;
}

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

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

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
    background: #f5f5f5;
}

.page-slot-games__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(0deg);
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Final CTA Section */
.page-slot-games__cta-final {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-slot-games__text-center {
    text-align: center;
}

.page-slot-games__cta-final .page-slot-games__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }

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

    .page-slot-games__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }

    .page-slot-games__article-body {
        font-size: 1em;
    }

    .page-slot-games__products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 849px) {
    .page-slot-games__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible on smaller screens */
        aspect-ratio: unset !important;
        max-height: 500px;
    }
}

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

    .page-slot-games__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-slot-games__hero-content {
        padding: 0 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__section {
        padding: 40px 0;
    }

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

    .page-slot-games__section-title {
        font-size: clamp(1.6em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-slot-games__article-body {
        font-size: 0.95em;
        max-width: 100%;
    }

    .page-slot-games__article-figure img,
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-slot-games__products-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-slot-games__product-card {
        padding-bottom: 15px;
    }

    .page-slot-games__product-card img {
        
    }

    .page-slot-games__card-title {
        font-size: 1.3em;
    }

    .page-slot-games__card-description {
        font-size: 0.9em;
    }

    details.page-slot-games__faq-item summary.page-slot-games__faq-question {
        padding: 15px;
    }

    .page-slot-games__faq-qtext {
        font-size: 15px;
    }

    .page-slot-games__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }

    details.page-slot-games__faq-item .page-slot-games__faq-answer {
        padding: 0 15px 15px;
    }

    .page-slot-games__cta-final .page-slot-games__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}