/* style/casino.css */

/* Base Styles for the page-casino scope */
.page-casino {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f4f4f4 */
    background-color: #f4f4f4;
}

/* Container for consistent spacing */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #8B0000; /* Dark red for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-casino__section-title--light {
    color: #FFD700; /* Gold for titles on dark backgrounds */
}

.page-casino__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__section-description--light {
    color: #f0f0f0;
}

.page-casino__center-text {
    text-align: center;
}

/* Call to Action Buttons */
.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-casino__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #8B0000; /* Dark red secondary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-casino__btn-primary:hover {
    background: #6a0000; /* Darker red on hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: #FFD700; /* Gold text for secondary button */
    border: 2px solid #FFD700;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-casino__btn-secondary:hover {
    background: #FFD700;
    color: #8B0000; /* Dark red text on gold hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Image base styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* 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;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Blend of brand colors */
}

.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;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff;
}

.page-casino__hero-title {
    font-size: 48px;
    color: #FFD700; /* Gold title on dark background */
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* Intro Section */
.page-casino__intro-section {
    padding: 80px 0;
    background-color: #f4f4f4; /* Light background */
    color: #333333;
}

.page-casino__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-casino__intro-content p {
    margin-bottom: 20px;
    font-size: 17px;
}

.page-casino__intro-image img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #8B0000; /* Dark red background */
    color: #f0f0f0;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-casino__game-title {
    font-size: 24px;
    color: #FFD700; /* Gold title */
    margin-bottom: 15px;
}

.page-casino__game-description {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-casino__games-image {
    margin-top: 40px;
    margin-bottom: 40px;
}
.page-casino__games-image img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #f4f4f4; /* Light background */
    color: #333333;
}

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

.page-casino__promo-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-casino__promo-title {
    font-size: 22px;
    color: #8B0000; /* Dark red title */
    margin-bottom: 15px;
}

.page-casino__promo-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-casino__promotions-image {
    margin-top: 40px;
    margin-bottom: 40px;
}
.page-casino__promotions-image img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.page-casino__security-section {
    padding: 80px 0;
    background-color: #8B0000; /* Dark red background */
    color: #f0f0f0;
}

.page-casino__security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-casino__security-content p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #cccccc;
}

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

.page-casino__security-features li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #f0f0f0;
    font-size: 16px;
}

.page-casino__security-image img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* How to Play Section */
.page-casino__how-to-play-section {
    padding: 80px 0;
    background-color: #f4f4f4; /* Light background */
    color: #333333;
}

.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-casino__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-casino__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #FFD700; /* Gold number background */
    color: #8B0000; /* Dark red number text */
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-casino__step-title {
    font-size: 24px;
    color: #8B0000; /* Dark red title */
    margin-bottom: 15px;
}

.page-casino__step-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #f4f4f4; /* Light background */
    color: #333333;
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-casino__faq-item.active .page-casino__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 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    border-top: 1px solid #e0e0e0;
}

/* Câu hỏi kiểu */
.page-casino__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-casino__faq-item.active .page-casino__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

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

/* Tiêu đề câu hỏi kiểu */
.page-casino__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
    color: #333333;
}

/* Biểu tượng chuyển đổi */
.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; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    color: #8B0000; /* Màu đỏ đậm khi hoạt động */
    transform: rotate(180deg);
}

/* Final CTA Section */
.page-casino__cta-final-section {
    padding: 80px 0;
    background-color: #8B0000; /* Dark red background */
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-casino__intro-grid,
    .page-casino__security-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__intro-image,
    .page-casino__security-image {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__hero-title {
        font-size: 40px;
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-casino__hero-image img {
        border-radius: 4px;
    }
    
    .page-casino__hero-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .page-casino__hero-description {
        font-size: 16px;
    }
    
    .page-casino__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-casino__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-casino__section-title {
        font-size: 28px;
        padding-top: 30px;
    }
    
    .page-casino__section-description {
        font-size: 16px;
    }

    /* Mobile image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__intro-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__how-to-play-section,
    .page-casino__faq-section,
    .page-casino__cta-final-section,
    .page-casino__games-grid,
    .page-casino__promotions-grid,
    .page-casino__steps-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-casino__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-casino__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-casino__faq-answer {
        padding: 0 15px;
    }
    
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }
}