/* style/casino.css */

/* Biến CSS cho màu sắc */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f5f5f5; /* Giả định từ shared.css body background */
    --border-color: #e0e0e0;
}

/* Đảm bảo khoảng cách từ header */
.page-casino {
    padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header cố định che khuất */
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Các phần chung */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-casino__sub-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-casino__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.page-casino__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-casino__list li {
    margin-bottom: 8px;
    font-size: 16px;
}

.page-casino__image-wrapper {
    text-align: center;
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%; /* Đảm bảo hình ảnh chiếm toàn bộ chiều rộng của wrapper */
    /* Không sử dụng filter để thay đổi màu ảnh */
}

.page-casino a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino a:hover {
    color: #005f2e; /* Màu đậm hơn của primary-color */
    text-decoration: underline;
}

/* Màu nền và chữ cho các section */
.page-casino__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__sub-title,
.page-casino__dark-bg .page-casino__highlight {
    color: var(--text-light);
}

.page-casino__dark-bg a {
    color: var(--button-register-login-text); /* Màu vàng cho link trên nền xanh đậm */
}

.page-casino__dark-bg a:hover {
    color: var(--secondary-color);
}

.page-casino__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 60px 0;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #333333 100%); /* Nền gradient cho hero */
}

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

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-height: 675px; /* Giới hạn chiều cao cho hero image */
    overflow: hidden;
}

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

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

.page-casino__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-casino__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-login-bg); /* Màu đỏ */
    color: var(--button-register-login-text); /* Màu vàng */
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-casino__cta-button:hover {
    background: #a30606; /* Màu đỏ đậm hơn */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 0;
}

.page-casino__faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__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-casino__faq-item.active .page-casino__faq-answer {
    max-height: 2000px !important; /* Đảm bảo đủ lớn để chứa nội dung */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

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

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

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

.page-casino__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-casino__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-casino__faq-item.active .page-casino__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Hoặc sử dụng '−' */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-casino {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-casino__container {
        padding: 15px;
    }

    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-casino__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-casino__text-block {
        font-size: 16px;
    }
}