:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --main-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-ban-ca {
    background-color: var(--main-bg);
    color: var(--text-main); /* Ensure light text on dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* General container for content sections */
.page-ban-ca__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-ban-ca__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image-above-text for hero */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-ban-ca__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative; /* Ensure content is in normal flow */
    z-index: 1; /* Ensure content is above any background elements if present */
}

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-ban-ca__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

/* General Button Styles */
.page-ban-ca__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-ban-ca__btn--primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text on dark button */
    border: none;
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-ban-ca__btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-ban-ca__btn--secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-ban-ca__btn--secondary:hover {
    background: var(--secondary-color);
    color: var(--main-bg);
}

.page-ban-ca__btn--small {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 20px;
}

.page-ban-ca__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Section Titles */
.page-ban-ca__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-ban-ca__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-ban-ca__text-block {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* Intro Section */
.page-ban-ca__intro-section {
    padding: 60px 0;
}

/* Game List Section */
.page-ban-ca__game-list-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Use card background for this section */
}

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

.page-ban-ca__game-card {
    background-color: var(--main-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-ban-ca__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-ban-ca__game-card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ban-ca__game-card-description {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Guide Section */
.page-ban-ca__guide-section {
    padding: 60px 0;
}

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

.page-ban-ca__guide-step {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-ban-ca__guide-step-title {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-ban-ca__guide-step p {
    color: var(--text-main);
    font-size: 1rem;
}

/* Tips Section */
.page-ban-ca__tips-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-ban-ca__tips-item {
    background-color: var(--main-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-ban-ca__tips-item-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-ban-ca__tips-item p {
    color: var(--text-main);
    font-size: 1rem;
}

/* Promo Section */
.page-ban-ca__promo-section {
    padding: 60px 0;
}

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

.page-ban-ca__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-ban-ca__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-ban-ca__promo-card-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ban-ca__promo-card-description {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Transaction Section */
.page-ban-ca__transaction-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

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

.page-ban-ca__transaction-step {
    background-color: var(--main-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-ban-ca__transaction-step-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-ban-ca__transaction-step p {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.page-ban-ca__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: var(--main-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-ban-ca__faq-qtext {
    flex-grow: 1;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--card-bg);
}

.page-ban-ca__faq-answer p {
    margin-bottom: 0;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General image responsiveness */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default object-fit for all images */
}

/* Ensure details marker is hidden for custom toggle */
.page-ban-ca__faq-item summary::-webkit-details-marker,
.page-ban-ca__faq-item summary::marker {
    display: none;
    content: "";
}

.page-ban-ca__faq-item summary {
    list-style: none; /* Hide default marker for Firefox */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-section {
        padding-bottom: 30px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-ban-ca__description {
        font-size: 1.1rem;
    }
    .page-ban-ca__section-title {
        font-size: 2rem;
    }
    .page-ban-ca__game-card-image,
    .page-ban-ca__promo-card-image {
        height: 200px; /* Adjust height for tablet */
    }
}

@media (max-width: 768px) {
    /* General content padding */
    .page-ban-ca__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 20px;
    }
    .page-ban-ca__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-ban-ca__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-ban-ca__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Section Titles */
    .page-ban-ca__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Text blocks */
    .page-ban-ca__text-block {
        font-size: 0.95rem;
    }

    /* Card/Grid sections */
    .page-ban-ca__game-grid,
    .page-ban-ca__guide-steps,
    .page-ban-ca__tips-list,
    .page-ban-ca__promo-grid,
    .page-ban-ca__transaction-steps {
        grid-template-columns: 1fr; /* Single column layout for most grids */
        gap: 20px;
    }

    .page-ban-ca__game-card-image {
        height: 200px; /* Maintain height on mobile */
    }
    .page-ban-ca__promo-card-image {
        height: 180px; /* Adjust height for promo on mobile */
    }

    .page-ban-ca__game-card,
    .page-ban-ca__guide-step,
    .page-ban-ca__tips-item,
    .page-ban-ca__promo-card,
    .page-ban-ca__transaction-step,
    .page-ban-ca__faq-item {
        margin-left: 0;
        margin-right: 0;
    }

    /* General Image Responsiveness (Mandatory) */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    /* All containers that might hold images or buttons */
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__hero-section,
    .page-ban-ca__intro-section,
    .page-ban-ca__game-list-section,
    .page-ban-ca__guide-section,
    .page-ban-ca__tips-section,
    .page-ban-ca__promo-section,
    .page-ban-ca__transaction-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__conclusion-section,
    .page-ban-ca__game-grid,
    .page-ban-ca__guide-steps,
    .page-ban-ca__tips-list,
    .page-ban-ca__promo-grid,
    .page-ban-ca__transaction-steps,
    .page-ban-ca__cta-buttons,
    .page-ban-ca__game-card,
    .page-ban-ca__promo-card,
    .page-ban-ca__guide-step,
    .page-ban-ca__tips-item,
    .page-ban-ca__transaction-step {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent content overflow */
    }

    /* FAQ specific mobile styles */
    .page-ban-ca__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-ban-ca__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95rem;
    }
}