.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #F5F7FA); /* Ensure body background is respected */
}

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

.page-ban-ca__section {
    padding: 40px 0;
    text-align: center;
}

.page-ban-ca__dark-bg {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand color gradient */
    color: #ffffff; /* White text for dark background */
}

.page-ban-ca__light-bg {
    background-color: #F5F7FA; /* Default light background */
    color: #333333; /* Dark text for light background */
}

.page-ban-ca__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for hero image */
    object-fit: cover;
    display: block;
}

.page-ban-ca__hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -150px; /* Adjust to layer content over image bottom */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text */
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 5vw, 3rem); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-ban-ca__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #E53935; /* Brand color for titles */
}

.page-ban-ca__section-title--white {
    color: #ffffff;
}

.page-ban-ca__section-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__section-description--white {
    color: #f0f0f0;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-ban-ca__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-ban-ca__btn-secondary:hover {
    background: #f0f0f0;
    color: #E53935;
    transform: translateY(-2px);
}

.page-ban-ca__btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: #E53935;
    border: 2px solid #E53935;
    background: transparent;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-outline:hover {
    background: #E53935;
    color: #ffffff;
}

.page-ban-ca__about-game .page-ban-ca__text-block {
    text-align: left;
}

.page-ban-ca__about-game p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333333;
}

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

.page-ban-ca__feature-card,
.page-ban-ca__game-card,
.page-ban-ca__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    color: #333333;
}

.page-ban-ca__feature-image,
.page-ban-ca__game-image,
.page-ban-ca__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-ban-ca__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #E53935;
}

.page-ban-ca__game-card p,
.page-ban-ca__promo-card p,
.page-ban-ca__feature-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-outline,
.page-ban-ca__promo-card .page-ban-ca__btn-outline {
    margin-top: auto; /* Push button to bottom */
}

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

.page-ban-ca__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-ban-ca__step-icon {
    font-size: 2.5rem;
    font-weight: bold;
    color: #E53935;
    margin-bottom: 15px;
}

.page-ban-ca__tip-list {
    text-align: left;
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.page-ban-ca__tip-list li {
    background: #ffffff;
    padding: 15px 20px;
    border-left: 4px solid #E53935;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    color: #333333;
}

.page-ban-ca__tip-list li strong {
    color: #E53935;
}

.page-ban-ca__last-updated {
    margin-top: 40px;
    font-style: italic;
    font-size: 0.9rem;
    color: #f0f0f0;
}

.page-ban-ca__faq-list {
    text-align: left;
    margin-top: 40px;
}

.page-ban-ca__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: #E53935;
    list-style: none; /* For details/summary */
}

.page-ban-ca__faq-question::-webkit-details-marker {
    display: none;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    color: #E53935;
    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: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

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

.page-ban-ca__cta-final-section .page-ban-ca__cta-content {
    max-width: 800px;
}

/* --- Responsive Styles --- */

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

.page-ban-ca__container,
.page-ban-ca__section,
.page-ban-ca__card,
.page-ban-ca__box,
.page-ban-ca__cta-buttons {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 1024px) {
    .page-ban-ca__hero-content {
        margin-top: -100px;
        padding: 25px 15px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }

    .page-ban-ca__section-title {
        font-size: 2rem;
    }

    .page-ban-ca__feature-image,
    .page-ban-ca__game-image,
    .page-ban-ca__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-ban-ca__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-ban-ca__hero-image {
        max-height: 400px;
        object-position: center bottom; /* Adjust for mobile view */
    }

    .page-ban-ca__hero-content {
        margin-top: -80px; /* Adjust for smaller screens */
        padding: 20px 15px;
        max-width: calc(100% - 30px);
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
        margin-bottom: 10px;
    }

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

    /* General sections and titles */
    .page-ban-ca__section {
        padding: 30px 0;
    }

    .page-ban-ca__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

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

    /* Buttons */
    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-outline,
    .page-ban-ca a[class*="button"],
    .page-ban-ca a[class*="btn"] {
        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;
    }

    /* Grids (features, games, promos, steps) */
    .page-ban-ca__features-grid,
    .page-ban-ca__game-list,
    .page-ban-ca__promo-grid,
    .page-ban-ca__step-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-ban-ca__feature-card,
    .page-ban-ca__game-card,
    .page-ban-ca__promo-card,
    .page-ban-ca__step-card {
        padding: 20px;
    }

    .page-ban-ca__feature-image,
    .page-ban-ca__game-image,
    .page-ban-ca__promo-image {
        height: 200px !important; /* Ensure minimum size */
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-ban-ca__card-title {
        font-size: 1.2rem;
    }

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

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

    /* Long text / gold border area (general text blocks) */
    .page-ban-ca__about-game .page-ban-ca__text-block,
    .page-ban-ca__tips-section .page-ban-ca__text-block {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
    }

    .page-ban-ca__tip-list li {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    /* Ensure all images and containers are responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}