.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Main text color for dark background */
    background-color: #140C0C; /* Page background */
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 60px;
    background-color: #140C0C;
}

.page-ban-ca__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px 15px;
}

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.page-ban-ca__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F3C54D; /* Gold color for main title */
}

.page-ban-ca__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF1E8;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button itself respects max-width */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #140C0C; /* Dark text for light button */
    border: none;
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
    background: #2A1212; /* Card BG as secondary button background */
    color: #FFF1E8; /* Main text color */
    border: 2px solid #6A1E1E; /* Border color */
}

.page-ban-ca__btn-secondary:hover {
    background: #C61F1F; /* Main color on hover */
    border-color: #C61F1F;
    color: #FFF1E8;
    transform: translateY(-2px);
}

.page-ban-ca__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-ban-ca__hero-game-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
}

/* General Content Sections */
.page-ban-ca__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 15px;
    box-sizing: border-box;
}

.page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F3C54D; /* Gold color for section titles */
}

.page-ban-ca__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #FFF1E8;
}

.page-ban-ca__text-block strong {
    color: #FFB04A; /* Highlight keywords */
}

.page-ban-ca__image-block {
    text-align: center;
    margin: 30px 0;
}

.page-ban-ca__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
    background-color: #1F0D0D; /* Slightly different dark background */
    padding: 60px 0;
}

.page-ban-ca__ordered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-ban-ca__list-item {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__list-title {
    font-size: 1.5rem;
    color: #FFB04A; /* Gold/Orange for list titles */
    margin-top: 0;
    margin-bottom: 10px;
}

.page-ban-ca__list-description {
    font-size: 1rem;
    color: #FFF1E8;
}

.page-ban-ca__list-description a {
    color: #FFB04A;
    text-decoration: underline;
}

.page-ban-ca__list-description a:hover {
    color: #F3C54D;
}

.page-ban-ca__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

/* Tips Section */
.page-ban-ca__tips-section {
    padding: 60px 0;
    background-color: #0D0808; /* Even darker background */
}

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

.page-ban-ca__tip-card {
    background-color: #2A1212; /* Card BG */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-ban-ca__card-title {
    font-size: 1.4rem;
    color: #F3C54D; /* Gold for card titles */
    margin-top: 0;
    margin-bottom: 10px;
}

.page-ban-ca__card-description {
    font-size: 0.95rem;
    color: #FFF1E8;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
    padding: 60px 0;
    background-color: #1F0D0D;
}

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

.page-ban-ca__feature-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__feature-title {
    font-size: 1.5rem;
    color: #FFB04A;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-ban-ca__feature-description {
    font-size: 1rem;
    color: #FFF1E8;
}

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

.page-ban-ca__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-ban-ca__faq-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-ban-ca__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F3C54D;
    background-color: #2A1212;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease;
}

.page-ban-ca__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-ban-ca__faq-item summary:hover {
    background-color: #1F0D0D; /* Darker on hover */
}

.page-ban-ca__faq-item[open] summary {
    border-bottom-color: #6A1E1E; /* Show border when open */
    background-color: #1F0D0D;
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFB04A;
    margin-left: 15px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #FFF1E8;
    background-color: #1F0D0D; /* Slightly different background for answer */
}

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

.page-ban-ca__faq-answer a {
    color: #FFB04A;
    text-decoration: underline;
}

/* Universal image styling */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensuring contrast for links in dark background */
.page-ban-ca a {
    color: #FFB04A; /* Gold/Orange for links */
    text-decoration: none;
}
.page-ban-ca a:hover {
    text-decoration: underline;
    color: #F3C54D;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-ban-ca__hero-content {
        text-align: center;
    }

    .page-ban-ca__cta-buttons {
        justify-content: center;
    }

    .page-ban-ca__feature-list,
    .page-ban-ca__grid-layout {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO Section - No background-image, small top padding */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-ban-ca__hero-container {
        padding: 15px;
        gap: 20px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-ban-ca__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Buttons and Button Containers */
    .page-ban-ca__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* General Content Sections */
    .page-ban-ca__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-ban-ca__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-ban-ca__text-block,
    .page-ban-ca__list-description,
    .page-ban-ca__card-description,
    .page-ban-ca__feature-description,
    .page-ban-ca__faq-answer {
        font-size: 0.95rem;
    }

    /* Images */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* How to Play Section */
    .page-ban-ca__how-to-play-section,
    .page-ban-ca__tips-section,
    .page-ban-ca__why-choose-section,
    .page-ban-ca__faq-section {
        padding: 40px 0;
    }

    .page-ban-ca__list-item,
    .page-ban-ca__tip-card,
    .page-ban-ca__feature-item,
    .page-ban-ca__faq-item {
        padding: 20px;
    }

    .page-ban-ca__list-title,
    .page-ban-ca__card-title,
    .page-ban-ca__feature-title {
        font-size: 1.3rem;
    }

    /* FAQ */
    .page-ban-ca__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-ban-ca__faq-toggle {
        font-size: 1.3rem;
    }

    .page-ban-ca__faq-answer {
        padding: 0 20px 15px;
    }
}