:root {
    --color-primary: #C91F17;
    --color-secondary: #E53935;
    --color-button-gradient-start: #FFD86A;
    --color-button-gradient-end: #E6B800;
    --color-card-bg: #D32F2F;
    --color-background-section: #B71C1C;
    --color-text-main: #FFF5E1;
    --color-border: #F2B544;
    --color-glow: #FFCC66;
    --color-gold: #F4D34D;
    --color-deep-red: #7A0E0E;
    --color-dark-text: #333333; /* For light backgrounds if any */
    --color-light-text: #ffffff; /* For dark backgrounds */
}

.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page content */
    background-color: var(--color-background-section); /* Section background */
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-background-section);
}

.page-ban-ca__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ban-ca__hero-content {
    flex: 1;
    min-width: 300px;
    color: var(--color-text-main);
}

.page-ban-ca__main-title {
    font-size: 3.2em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-gold); /* Using gold for title for emphasis */
}

.page-ban-ca__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-ban-ca__cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

.page-ban-ca__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-deep-red); /* Dark text for gold button */
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-deep-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-ban-ca__content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-ban-ca__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-gold);
}

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

/* Intro Section - Module 1 */
.page-ban-ca__intro-section {
    background-color: var(--color-deep-red); /* Using deep red for contrast */
    padding: 60px 0;
}

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

.page-ban-ca__feature-item {
    text-align: center;
    background-color: var(--color-card-bg); /* Card BG for features */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--color-text-main);
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-border); /* Gold border for circular images */
    box-shadow: 0 0 15px rgba(255, 204, 102, 0.5); /* Gold glow */
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image itself is circular */
}

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

.page-ban-ca__feature-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Game Overview Section */
.page-ban-ca__game-overview-section {
    background-color: var(--color-background-section);
    padding: 60px 0;
}

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

.page-ban-ca__game-card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-ban-ca__game-card:hover {
    transform: translateY(-5px);
}

.page-ban-ca__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for game images */
    object-fit: cover;
    display: block;
}

.page-ban-ca__game-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--color-gold);
}

.page-ban-ca__game-card-text {
    font-size: 1em;
    line-height: 1.6;
    margin: 0 20px 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-ban-ca__game-card-btn {
    display: block;
    margin: 0 20px 20px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-deep-red);
    border: 2px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-ban-ca__game-card-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-ban-ca__view-all-games {
    text-align: center;
    margin-top: 50px;
}

/* Guide Section */
.page-ban-ca__guide-section {
    background-color: var(--color-deep-red);
    padding: 60px 0;
}

.page-ban-ca__guide-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-ban-ca__guide-content {
    flex: 1;
    min-width: 300px;
    color: var(--color-text-main);
}

.page-ban-ca__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-ban-ca__guide-list li {
    background-color: var(--color-card-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.05em;
    line-height: 1.6;
    color: var(--color-text-main);
    border-left: 5px solid var(--color-gold);
}

.page-ban-ca__guide-list li strong {
    color: var(--color-gold);
}

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

.page-ban-ca__guide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    overflow: hidden;
    max-width: 800px;
    margin: 40px auto 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 30px;
    color: var(--color-text-main);
}

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

.page-ban-ca__promo-card-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-gold);
}

.page-ban-ca__promo-card-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 20px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    background-color: var(--color-deep-red);
    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(--color-card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-ban-ca__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-gold);
    position: relative;
}

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

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

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an 'X' or minus */
}

.page-ban-ca__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-main);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: 2.8em;
    }
    .page-ban-ca__section-title {
        font-size: 2.2em;
    }
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        min-width: unset;
        width: 100%;
    }
    .page-ban-ca__cta-group {
        justify-content: center;
    }
    .page-ban-ca__guide-layout {
        flex-direction: column;
        align-items: center;
    }
    .page-ban-ca__guide-content,
    .page-ban-ca__guide-image {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* General Mobile adjustments */
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-ban-ca__content-container {
        padding: 40px 15px;
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding as body handles header offset */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-ban-ca__main-title {
        font-size: 2.2em; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }
    .page-ban-ca__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-ban-ca__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .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__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Intro Section - Module 1 (Features) */
    .page-ban-ca__intro-section {
        padding: 40px 0;
    }
    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-ban-ca__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr; /* Single column for features */
        gap: 20px;
    }
    .page-ban-ca__feature-item {
        padding: 25px;
    }
    .page-ban-ca__icon-box-media {
        width: 160px; /* Smaller circular image for mobile */
        height: 160px;
        margin-bottom: 20px;
    }
    .page-ban-ca__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Ensure it remains circular */
    }
    .page-ban-ca__feature-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    /* Game Overview Section */
    .page-ban-ca__game-overview-section {
        padding: 40px 0;
    }
    .page-ban-ca__game-cards-grid {
        grid-template-columns: 1fr; /* Single column for game cards */
        gap: 20px;
    }
    .page-ban-ca__game-card img {
         /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure responsiveness */
    }
    .page-ban-ca__game-card-title {
        font-size: 1.2em;
        margin: 15px 15px 8px;
    }
    .page-ban-ca__game-card-text {
        font-size: 0.95em;
        margin: 0 15px 15px;
    }
    .page-ban-ca__game-card-btn {
        margin: 0 15px 15px;
        padding: 10px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-ban-ca__view-all-games {
        margin-top: 30px;
    }

    /* Guide Section */
    .page-ban-ca__guide-section {
        padding: 40px 0;
    }
    .page-ban-ca__guide-layout {
        flex-direction: column; /* Stack guide content and image */
        gap: 20px;
    }
    .page-ban-ca__guide-content {
        order: 2; /* Content after image on mobile */
    }
    .page-ban-ca__guide-image {
        order: 1; /* Image first on mobile */
    }
    .page-ban-ca__guide-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__guide-list li {
        padding: 15px;
        font-size: 0.95em;
    }

    /* Promo Section */
    .page-ban-ca__promo-section {
        padding: 40px 0;
    }
    .page-ban-ca__promo-card {
        padding-bottom: 20px;
    }
    .page-ban-ca__promo-card img {
        height: 200px; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__promo-card-title {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    .page-ban-ca__promo-card-text {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    .page-ban-ca__promo-card .page-ban-ca__btn-primary {
        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;
        margin: 0 15px; /* Adjust margin for full width button */
    }

    /* FAQ Section */
    .page-ban-ca__faq-section {
        padding: 40px 0;
    }
    .page-ban-ca__faq-list {
        margin-top: 30px;
        padding: 0 15px;
    }
    .page-ban-ca__faq-item {
        margin-bottom: 10px;
    }
    .page-ban-ca__faq-item summary {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-ban-ca__faq-toggle {
        font-size: 1.2em;
    }
    .page-ban-ca__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95em;
    }

    /* All image and container responsive adjustments */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__content-container,
    .page-ban-ca__hero-container,
    .page-ban-ca__features-grid,
    .page-ban-ca__game-cards-grid,
    .page-ban-ca__guide-layout,
    .page-ban-ca__promo-card,
    .page-ban-ca__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}