/* Base Styles & Variables */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-dark: #0A0A0A;
    --card-background: #111111;
    --text-light: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-light); /* Default text color for the page content */
    background-color: var(--background-dark); /* Ensure consistency with body background */
}

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

.page-ban-ca__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-ban-ca__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-ban-ca__description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

.page-ban-ca__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    display: flex;
    flex-direction: column;
}

.page-ban-ca__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-outline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

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

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

.page-ban-ca__btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    margin-top: auto; /* Push button to bottom of card */
}

.page-ban-ca__btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    padding-bottom: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-dark);
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-ban-ca__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 10;
    background-color: rgba(10, 10, 10, 0.8); /* Semi-transparent background for readability */
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

/* About Section */
.page-ban-ca__about-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-ban-ca__dark-section {
    background-color: var(--background-dark);
    padding: 60px 0;
}

.page-ban-ca__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-ban-ca__text-block p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

.page-ban-ca__text-block .page-ban-ca__btn-primary {
    margin-top: 20px;
}

.page-ban-ca__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

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

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

.page-ban-ca__feature-card {
    text-align: center;
}

.page-ban-ca__feature-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-ban-ca__feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

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

.page-ban-ca__step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-ban-ca__step-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-ban-ca__step-card p {
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

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

.page-ban-ca__tip-card {
    text-align: center;
}

.page-ban-ca__tip-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-ban-ca__tip-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

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

.page-ban-ca__promotion-card {
    text-align: center;
}

.page-ban-ca__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__promotion-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-ban-ca__promotion-card p {
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

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

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--primary-color);
    font-weight: bold;
    list-style: none; /* For <summary> tag */
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    color: var(--text-light);
    line-height: 1.7;
}

/* Final CTA Section */
.page-ban-ca__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__final-cta-section .page-ban-ca__section-title {
    margin-bottom: 20px;
}

.page-ban-ca__final-cta-section .page-ban-ca__description {
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__container {
        padding: 20px;
    }

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

    .page-ban-ca__description {
        font-size: 1em;
    }

    .page-ban-ca__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 3.5vw, 2.8em);
    }

    .page-ban-ca__content-grid {
        grid-template-columns: 1fr;
    }

    .page-ban-ca__image-block {
        order: -1; /* Image first on smaller screens */
        margin-bottom: 30px;
    }

    .page-ban-ca__features-grid,
    .page-ban-ca__guide-steps,
    .page-ban-ca__tips-grid,
    .page-ban-ca__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-ban-ca__feature-icon,
    .page-ban-ca__promotion-image {
        height: 180px;
    }
}

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

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

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

    .page-ban-ca__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 15px;
    }

    .page-ban-ca__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 25px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .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;
    }

    .page-ban-ca__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .page-ban-ca__image-block img,
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-ban-ca__features-grid,
    .page-ban-ca__guide-steps,
    .page-ban-ca__tips-grid,
    .page-ban-ca__promotions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-ban-ca__feature-card,
    .page-ban-ca__step-card,
    .page-ban-ca__tip-card,
    .page-ban-ca__promotion-card {
        padding: 20px;
    }

    .page-ban-ca__feature-icon,
    .page-ban-ca__promotion-image {
        height: 200px; /* Maintain minimum display size */
    }

    .page-ban-ca__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

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

    .page-ban-ca__final-cta-section {
        padding: 60px 0;
    }

    /* Ensure content containers are responsive */
    .page-ban-ca__about-section .page-ban-ca__container,
    .page-ban-ca__features-section .page-ban-ca__container,
    .page-ban-ca__guide-section .page-ban-ca__container,
    .page-ban-ca__tips-section .page-ban-ca__container,
    .page-ban-ca__promotions-section .page-ban-ca__container,
    .page-ban-ca__faq-section .page-ban-ca__container,
    .page-ban-ca__final-cta-section .page-ban-ca__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* No module 3-6 specific styles for non-homepage. */
/* The following are general styles for elements that might appear in a non-homepage context, adapted from the homepage checklist. */
/* Placeholder for game/sport/coop rows - Not used on ban-ca page */
.page-ban-ca__row-games, .page-ban-ca__row-sport, .page-ban-ca__row-coop {
    display: none; /* These sections are forbidden on non-homepage */
}

/* Placeholder for slider/track - Not used on ban-ca page */
.page-ban-ca__slider-wrapper, .page-ban-ca__slider-track, .page-ban-ca__game-slide {
    display: none; /* These sections are forbidden on non-homepage */
}

/* Placeholder for banners-top-wrapper - Not used on ban-ca page */
.page-ban-ca__banners-top-wrapper, .page-ban-ca__banner-item img {
    display: none; /* These sections are forbidden on non-homepage */
}

/* Placeholder for blog masonry/slider - Using blog-like cards in promotions section */
.page-ban-ca__blog-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.page-ban-ca__blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-ban-ca__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

.page-ban-ca__blog-slide {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

@media (max-width: 768px) {
    .page-ban-ca__blog-masonry {
        grid-template-columns: 1fr;
    }
    .page-ban-ca__blog-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}