/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for the page content */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-casino__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow from child elements */
}

.page-casino__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
}

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

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Light text for readability on dark background */
}

.page-casino__text-block--light {
    color: #ffffff; /* Explicitly white for dark sections */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Header offset is on .page-casino, not here */
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

.page-casino__hero-description {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-casino__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-casino__btn-primary {
    background-color: #26A9E0; /* Brand main color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-casino__btn-primary:hover {
    background-color: #1e87b7; /* Slightly darker for hover */
    border-color: #1e87b7;
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #26A9E0;
    color: #ffffff;
    border: 1px solid #26A9E0;
}

.page-casino__btn-small:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

/* Why Choose Section */
.page-casino__why-choose {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

.page-casino__why-choose .page-casino__section-title {
    color: #26A9E0;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
}

.page-casino__feature-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__feature-description {
    color: #cccccc;
    font-size: 1em;
}

/* Games Overview Section */
.page-casino__games-overview {
    background-color: #0d0d0d; /* Darker background */
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-casino__game-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-casino__game-card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-card-title a:hover {
    color: #ffffff;
}

.page-casino__game-card-description {
    color: #cccccc;
    font-size: 0.95em;
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 15px;
}

/* Live Casino & Slot Games Sections */
.page-casino__live-casino,
.page-casino__slot-games {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-casino__slot-games {
    background-color: #0d0d0d; /* Darker background */
}

.page-casino__image-full-width {
    width: 100%;
    max-width: 1000px; /* Max width for content images */
    height: auto;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* Promotions Section */
.page-casino__promotions {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-casino__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-casino__list li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 4px solid #26A9E0;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1.05em;
}

/* Security & Fairness Section */
.page-casino__security-fairness {
    background-color: #0d0d0d;
    color: #ffffff;
}

/* Getting Started Section */
.page-casino__getting-started {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.page-casino__list-ordered {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
    counter-reset: step-counter;
}

.page-casino__list-ordered li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 20px;
    border-left: 4px solid #26A9E0;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1.1em;
    position: relative;
    padding-left: 60px;
}

.page-casino__list-ordered li::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter) ":";
    position: absolute;
    left: 20px;
    top: 20px;
    font-weight: bold;
    color: #26A9E0;
}

/* Mobile Gaming Section */
.page-casino__mobile-gaming {
    background-color: #0d0d0d;
    color: #ffffff;
}

/* Video Section */
.page-casino__video-section {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding-top: 60px; /* Override the main padding-top for this section */
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px auto;
    border-radius: 10px;
}

.page-casino__video,
.page-casino__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    cursor: pointer;
    display: block; /* Ensure video takes full space for link */
}

.page-casino__video-link {
    display: block;
}

.page-casino__video-link video {
    border-radius: 10px;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-casino__faq-heading {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-casino__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding to match question */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    font-size: 1.0em;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px; /* Top, right, bottom, left padding */
}

.page-casino__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some spacing if multiple paragraphs */
    color: #cccccc; /* Ensure text color is light on dark background */
}