:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #1a1a1a; /* Body background from shared.css */
    --border-color-light: #e0e0e0;
}

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

.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-slot-games__section-title {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* 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); /* Fixed header spacing */
    background-color: var(--bg-dark);
}

.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: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__link-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__link-button:hover {
    background: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-slot-games__intro-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-slot-games__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 50px;
}

.page-slot-games__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-slot-games__text-content {
    flex: 1.5;
}

.page-slot-games__content-heading {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-slot-games__text-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Types Section */
.page-slot-games__types-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding-bottom: 80px;
}

.page-slot-games__types-section .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__types-section .page-slot-games__section-description {
    color: #ffe0b3;
}

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

.page-slot-games__card {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

/* Benefits Section */
.page-slot-games__benefits-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.page-slot-games__benefit-item {
    padding: 30px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 12px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.page-slot-games__benefit-item:hover {
    background: rgba(255, 215, 0, 0.15);
}

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

.page-slot-games__benefit-item p {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.7;
}

/* Guide Section */
.page-slot-games__guide-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-slot-games__guide-section .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__guide-section .page-slot-games__section-description {
    color: #ffe0b3;
}

.page-slot-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-slot-games__guide-item {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--primary-color);
}

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

.page-slot-games__guide-item p {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
}

.page-slot-games__guide-image {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.page-slot-games__promotion-card {
    padding: 25px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 10px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.page-slot-games__promotion-card:hover {
    background: rgba(255, 215, 0, 0.15);
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-slot-games__faq-section .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__faq-section .page-slot-games__section-description {
    color: #ffe0b3;
}

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

/* FAQ容器样式 */
.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.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, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px !important;
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
    color: #f0f0f0;
}

/* 问题样式 */
.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--primary-color);
}

.page-slot-games__faq-question:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--primary-color);
}

.page-slot-games__faq-question:active {
    background: rgba(0, 0, 0, 0.8);
}

/* 问题标题样式 */
.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* 防止h3标签阻止点击事件 */
    color: var(--primary-color);
}

/* 切换图标 */
.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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-item.active .page-slot-games__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg); /* Thay đổi dấu + thành X khi mở */
}

/* Contact Section */
.page-slot-games__contact-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-bottom: 80px;
}

.page-slot-games__contact-info {
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-slot-games__contact-info p {
    margin-bottom: 10px;
}

/* Global Image Sizing */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 2.5em;
    }
    .page-slot-games__content-heading {
        font-size: 1.8em;
    }
    .page-slot-games__card-title {
        font-size: 1.5em;
    }
    .page-slot-games__benefit-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games__hero-title {
        font-size: 2.2em;
        line-height: 1.3;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__hero-cta-buttons, .page-slot-games__button-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .page-slot-games__section {
        padding: 40px 0;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-slot-games__image-text-block {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .page-slot-games__text-content {
        flex: none;
    }
    .page-slot-games__image-wrapper {
        width: 100%;
    }

    .page-slot-games__grid-cards, .page-slot-games__benefits-grid, .page-slot-games__guide-steps, .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__card, .page-slot-games__benefit-item, .page-slot-games__guide-item, .page-slot-games__promotion-card {
        padding: 20px;
    }

    .page-slot-games__card-image {
        height: 180px;
    }

    .page-slot-games__content-heading, .page-slot-games__card-title, .page-slot-games__benefit-title, .page-slot-games__guide-step-title {
        font-size: 1.3em;
    }
    .page-slot-games__text-content p, .page-slot-games__card-text, .page-slot-games__benefit-item p, .page-slot-games__guide-item p, .page-slot-games__contact-info p {
        font-size: 0.95em;
    }

    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-slot-games__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        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;
    }

    /* 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__image-wrapper {
        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: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__hero-cta-buttons {
        gap: 10px;
    }
}