/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #0a0a0a;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color); /* Dark green primary color */
    color: var(--light-text-color);
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

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

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

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

.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, transform 0.2s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
    box-sizing: border-box;
}

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

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

.page-slot-games__btn-secondary {
    background-color: var(--login-button-color); /* Specific color for login */
    color: var(--register-login-font-color); /* Specific font color */
    border: 2px solid var(--login-button-color);
}

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

/* General Section Styles */
.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 80px 0;
}

.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 80px 0;
}

/* Feature Section */
.page-slot-games__features-section .page-slot-games__section-title,
.page-slot-games__features-section .page-slot-games__section-description {
    color: var(--dark-text-color);
}

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

.page-slot-games__card {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-slot-games__dark-bg .page-slot-games__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
    border: none;
}

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

.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promotion-image {
    width: 100%; /* Ensure images take full width of card */
    height: auto;
    max-width: 400px; /* Recommended max width for card images */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    min-width: 200px; /* Minimum size requirement */
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promotion-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__feature-text,
.page-slot-games__game-text,
.page-slot-games__promotion-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Guide Section */
.page-slot-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-slot-games__guide-item {
    padding: 30px;
    text-align: center;
    position: relative;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-slot-games__guide-number {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: -60px auto 20px auto;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__guide-item:nth-child(even) .page-slot-games__guide-number {
    background-color: var(--register-button-color);
}

.page-slot-games__guide-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--dark-text-color);
}

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

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

/* App Section */
.page-slot-games__app-section .page-slot-games__section-title,
.page-slot-games__app-section .page-slot-games__section-description {
    color: var(--dark-text-color);
}

.page-slot-games__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    justify-content: center;
}

.page-slot-games__app-image {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-height: 200px; /* Minimum size requirement */
    min-width: 200px; /* Minimum size requirement */
}

.page-slot-games__app-info {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    color: var(--dark-text-color);
}

.page-slot-games__app-subtitle {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--dark-text-color);
}

.page-slot-games__app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-slot-games__app-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--dark-text-color);
}

.page-slot-games__list-icon {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 10px;
    line-height: 1;
}

/* FAQ Section */
.page-slot-games__faq-section .page-slot-games__section-title,
.page-slot-games__faq-section .page-slot-games__section-description {
    color: var(--light-text-color);
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    line-height: 1.7;
}

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

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

/* Conclusion Section */
.page-slot-games__conclusion-section {
    text-align: center;
    padding: 80px 0;
}

.page-slot-games__conclusion-section .page-slot-games__section-title,
.page-slot-games__conclusion-section .page-slot-games__section-description {
    color: var(--light-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__guide-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        margin: -50px auto 15px auto;
    }
}

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

    .page-slot-games__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        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__container {
        padding: 15px;
    }

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

    .page-slot-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-slot-games__feature-grid,
    .page-slot-games__game-grid,
    .page-slot-games__promotion-grid,
    .page-slot-games__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-slot-games__feature-icon,
    .page-slot-games__game-image,
    .page-slot-games__promotion-image,
    .page-slot-games__app-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important;
        min-width: 200px !important;
    }

    .page-slot-games__app-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-slot-games__app-info {
        text-align: center;
        min-width: unset;
    }

    .page-slot-games__app-features {
        text-align: left;
        padding-left: 0;
    }
    
    .page-slot-games__app-features li {
        justify-content: center;
    }

    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-slot-games__faq-answer {
        padding: 0 20px;
    }

    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    
    /* Ensure all content containers are constrained */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__guide-item,
    .page-slot-games__app-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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