/* style/slot-games.css */

/* General styles for the slot games page */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Assuming light body background */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Primary brand color gradient */
    color: #ffffff; /* White text for hero section */
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Apply border-radius to the image itself */
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-slot-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login/CTA color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button adapts to mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__cta-button:hover {
    background: #d66f06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-slot-games__section {
    padding: 60px 0;
    background-color: var(--background-color, #FFFFFF);
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-slot-games__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #26A9E0;
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.page-slot-games__image-wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.page-slot-games__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

/* Card Styles */
.page-slot-games__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-slot-games__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 15px;
}

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

/* Specific Section Styles */
.page-slot-games__intro-section {
    background-color: #f9f9f9;
}

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

.page-slot-games__promotions-section {
    background: #26A9E0; /* Primary brand color for dark section */
    color: #ffffff;
}

.page-slot-games__promotions-section .page-slot-games__section-title,
.page-slot-games__promotions-section .page-slot-games__paragraph {
    color: #ffffff;
}

.page-slot-games__promotions-section .page-slot-games__section-title::after {
    background: #ffffff;
}

.page-slot-games__promotion-list,
.page-slot-games__guide-list,
.page-slot-games__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__list-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items on dark background */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-slot-games__promotions-section .page-slot-games__list-item {
    background: rgba(255, 255, 255, 0.1);
}
.page-slot-games__promotions-section .page-slot-games__list-title {
    color: #ffffff;
}
.page-slot-games__promotions-section .page-slot-games__list-item p {
    color: #f0f0f0;
}

.page-slot-games__list-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}
.page-slot-games__guide-section .page-slot-games__list-title,
.page-slot-games__security-section .page-slot-games__list-title {
    color: #26A9E0;
}

.page-slot-games__guide-list {
    counter-reset: guide-step;
}

.page-slot-games__guide-list .page-slot-games__list-item {
    position: relative;
    padding-left: 50px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.page-slot-games__guide-list .page-slot-games__list-item::before {
    counter-increment: guide-step;
    content: "Bước " counter(guide-step);
    position: absolute;
    left: 15px;
    top: 20px;
    font-weight: bold;
    color: #26A9E0;
    font-size: 1.1em;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-slot-games__button-group {
    text-align: center;
    margin-top: 40px;
}

.page-slot-games__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary:hover {
    background: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games__dark-section {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title::after {
    background: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__paragraph {
    color: #f0f0f0;
}

.page-slot-games__light-bg {
    background-color: #f9f9f9;
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: #f0f0f0;
}

.page-slot-games__faq-list {
    margin-top: 30px;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-slot-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
    background: #eeeeee;
}

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none;
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    color: #333;
    transform: rotate(180deg); /* Rotate for minus sign */
}

/* Call to Action Section */
.page-slot-games__call-to-action-section {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-slot-games__call-to-action-section .page-slot-games__section-title {
    color: #ffffff;
}
.page-slot-games__call-to-action-section .page-slot-games__section-title::after {
    background: #ffffff;
}
.page-slot-games__call-to-action-section .page-slot-games__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__hero-description {
        font-size: 1.15em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__paragraph {
        font-size: 1em;
    }
    .page-slot-games__list-title {
        font-size: 1.2em;
    }
    .page-slot-games__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__hero-title {
        font-size: 2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .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: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__paragraph {
        font-size: 0.95em;
    }
    .page-slot-games__game-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__card {
        padding: 20px;
    }
    .page-slot-games__list-item {
        padding: 15px;
    }
    .page-slot-games__guide-list .page-slot-games__list-item {
        padding-left: 45px;
    }
    .page-slot-games__guide-list .page-slot-games__list-item::before {
        font-size: 1em;
        left: 10px;
        top: 15px;
    }
    .page-slot-games__btn-primary {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image adaptation */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* FAQ mobile */
    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-slot-games__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }
}

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