/* style/ban-ca.css */
.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #F5F7FA; /* Light background */
}

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

.page-ban-ca__section-title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    color: #E53935; /* Brand primary color for titles */
    margin-bottom: 40px;
    line-height: 1.2;
    padding-top: 20px;
}

.page-ban-ca__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #E53935;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-ban-ca__section-description,
.page-ban-ca__text-block,
.page-ban-ca__list-item {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

.page-ban-ca__highlight {
    color: #E53935;
    font-weight: bold;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-small,
.page-ban-ca__inline-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.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: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-ban-ca__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-ban-ca__inline-link {
    color: #E53935;
    text-decoration: underline;
    padding: 0;
    background: none;
    border: none;
    font-weight: normal;
}
.page-ban-ca__inline-link:hover {
    color: #FF5A4F;
    text-decoration: none;
}

/* Images */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* HERO Section */
.page-ban-ca__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    background-color: #F5F7FA; /* Ensure a background color for contrast */
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for desktop to maintain aspect ratio, will be auto on mobile */
    object-fit: cover;
}

.page-ban-ca__hero-content {
    text-align: center;
    padding: 40px 15px;
    max-width: 900px;
    box-sizing: border-box;
}

.page-ban-ca__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    color: #E53935;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__hero-description {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
}

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

/* Game Types Section */
.page-ban-ca__game-types-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

.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: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E0E0E0;
}

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

.page-ban-ca__game-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-ban-ca__game-title {
    font-size: 1.5em;
    color: #E53935;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ban-ca__game-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 15px;
}

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

.page-ban-ca__guide-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-ban-ca__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-ban-ca__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
    padding: 60px 0;
    background-color: #E53935; /* Dark background for this section */
    color: #ffffff; /* White text for dark background */
}

.page-ban-ca__promotions-section .page-ban-ca__section-title {
    color: #ffffff; /* White title on dark background */
}

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

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

.page-ban-ca__promo-card {
    background: #ffffff; /* White background for cards within dark section */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
    border: 1px solid #E0E0E0;
}

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

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

.page-ban-ca__promo-title {
    font-size: 1.4em;
    color: #E53935;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ban-ca__promo-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Features Section */
.page-ban-ca__features-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

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

.page-ban-ca__feature-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 30px;
    border: 1px solid #E0E0E0;
}

.page-ban-ca__feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    object-fit: contain; /* Icons should be contained */
}

.page-ban-ca__feature-title {
    font-size: 1.3em;
    color: #E53935;
    margin-bottom: 10px;
}

.page-ban-ca__feature-description {
    font-size: 1em;
    color: #555555;
}

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

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

.page-ban-ca__faq-item {
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-ban-ca__faq-item[open] > .page-ban-ca__faq-question {
    background-color: #f0f0f0;
    color: #E53935;
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #E53935;
    margin-left: 15px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    content: "−";
}

.page-ban-ca__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.1em;
    color: #555555;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
    padding: 60px 0;
    background-color: #E53935; /* Dark background */
    color: #ffffff; /* White text */
    text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__section-title {
    color: #ffffff;
    margin-bottom: 30px;
}

.page-ban-ca__conclusion-section .page-ban-ca__text-block {
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.2em;
}

.page-ban-ca__cta-final {
    margin-top: 30px;
}

/* ==========================================================================
   Mobile Responsive Styles (max-width: 768px) - MUST BE COMPLETE
   ========================================================================== */
@media (max-width: 768px) {
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-ban-ca__section-title {
        font-size: 2.2em;
        margin-bottom: 25px;
        padding-top: 15px;
    }

    .page-ban-ca__sub-title {
        font-size: 1.5em;
        margin-top: 25px;
    }

    .page-ban-ca__text-block,
    .page-ban-ca__list-item {
        font-size: 1em;
        margin-bottom: 15px;
    }

    /* HERO Section Mobile */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 30px;
    }

    .page-ban-ca__hero-image {
        height: 300px;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-ban-ca__hero-content {
        padding: 20px 10px;
    }

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

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

    .page-ban-ca__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-small,
    .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;
    }
}