/* style/slot-games.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-background: #0a0a0a;
    --light-background: #f8f8f8;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --button-login-color: #EA7C07;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--dark-background); /* Body background is dark */
}

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

/* Sections */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, rgba(38, 169, 224, 0.9), rgba(10, 10, 10, 0.9));
    color: var(--text-on-dark);
    text-align: center;
    overflow: hidden;
}

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

.page-slot-games__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

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

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

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-slot-games__introduction-section,
.page-slot-games__game-types-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
    background-color: var(--light-background);
    color: var(--text-on-light);
    padding: 60px 0;
}

.page-slot-games__why-choose-w88,
.page-slot-games__how-to-play-section,
.page-slot-games__responsible-gambling-section,
.page-slot-games__cta-section {
    background-color: var(--dark-background);
    color: var(--text-on-dark);
    padding: 60px 0;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-slot-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-slot-games__keyword {
    font-weight: bold;
    color: var(--primary-color);
}

/* Buttons */
.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: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

/* Cards and Grids */
.page-slot-games__card {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    box-sizing: border-box;
}

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

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

.page-slot-games__feature-title,
.page-slot-games__promo-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-slot-games__feature-description,
.page-slot-games__promo-description {
    font-size: 1em;
    color: var(--text-on-light);
}

.page-slot-games__image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-slot-games__grid-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__image-full-width {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 40px;
    min-width: 200px;
    min-height: 200px;
}

/* Lists */
.page-slot-games__game-list,
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-slot-games__game-types-section .page-slot-games__list-item {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

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

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

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

.page-slot-games__promo-card .page-slot-games__btn-primary {
    margin-top: 20px;
    width: 100%;
}

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

.page-slot-games__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.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: var(--secondary-color);
    color: var(--text-on-light);
    border-bottom: 1px solid #eee;
}

.page-slot-games__faq-question:hover {
    background-color: #f0f0f0;
}

.page-slot-games__faq-title {
    margin: 0;
    color: var(--text-on-light);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: var(--primary-color);
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-slot-games__faq-answer p {
    margin-bottom: 0;
    color: var(--text-on-light);
}

/* Links within text */
.page-slot-games a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-slot-games a:hover {
    text-decoration: underline;
}

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    }

    .page-slot-games__main-title {
        font-size: 2.5em;
    }

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-slot-games__paragraph,
    .page-slot-games__list-description {
        font-size: 0.95em;
    }

    .page-slot-games__image-text-grid {
        grid-template-columns: 1fr;
    }

    .page-slot-games__features-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
    }

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

    /* Mobile image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Ensure containers do not overflow */
    .page-slot-games__container,
    .page-slot-games__hero-content,
    .page-slot-games__image-text-grid,
    .page-slot-games__features-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__cta-buttons,
    .page-slot-games__promo-card,
    .page-slot-games__feature-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-slot-games__hero-section .page-slot-games__hero-content {
        padding-left: 0;
        padding-right: 0;
    }

    /* Content area images CSS size lower bound enforcement */
    /* All img elements within .page-slot-games should respect min-width 200px (desktop) */
    /* On mobile, max-width: 100% takes precedence to prevent overflow */
    .page-slot-games__container img,
    .page-slot-games__grid-image,
    .page-slot-games__image-full-width,
    .page-slot-games__promo-image {
        min-width: unset; /* Reset min-width for mobile to allow proper scaling */
        min-height: unset; /* Reset min-height for mobile */
    }
}