:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Assuming this is the body background from shared.css */
}

/* Base styles for the page-ban-ca scope */
.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, contrasting with deep-navy body */
    background-color: var(--deep-navy); /* Ensure consistency if body background is not fully propagated */
}

.page-ban-ca__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-ban-ca__section-title {
    font-size: 3em;
    font-weight: 700;
    color: var(--gold-color); /* Use gold for titles for accent */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
    background-color: var(--deep-navy);
    padding-top: 10px; /* Specific padding-top, not var(--header-offset) */
    padding-bottom: 60px;
    color: var(--text-main);
}

.page-ban-ca__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
}

.page-ban-ca__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-ban-ca__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Clamp for H1 font size */
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__description {
    font-size: 1.15em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

.page-ban-ca__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-ban-ca__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-ban-ca__intro-section {
    background-color: var(--deep-navy);
    padding: 60px 0;
}

.page-ban-ca__feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-ban-ca__feature-item {
    flex: 1 1 calc(33.333% - 40px);
    min-width: 280px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
    width: 200px; /* Explicitly set width and height to make it circular */
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-color);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Glow effect */
}

.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.6em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-ban-ca__feature-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Game Types Section */
.page-ban-ca__game-types-section {
    padding: 60px 0;
    background-color: var(--deep-navy); /* Ensure dark background */
}

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

.page-ban-ca__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-ban-ca__game-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-ban-ca__game-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-ban-ca__game-card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.page-ban-ca__game-card-text {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
    align-self: flex-start;
}

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

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

.page-ban-ca__guide-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-ban-ca__guide-step-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

.page-ban-ca__promo-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    align-items: center;
}

.page-ban-ca__promo-image {
    flex: 1 1 50%;
    min-width: 300px;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-ban-ca__promo-content {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 30px;
    color: var(--text-main);
}

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

.page-ban-ca__promo-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

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

.page-ban-ca__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

/* Final CTA Section */
.page-ban-ca__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-navy);
}

.page-ban-ca__final-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-ban-ca__final-cta-content .page-ban-ca__section-title {
    color: var(--gold-color);
}

.page-ban-ca__final-cta-content .page-ban-ca__section-description {
    margin-bottom: 40px;
}

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

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

    .page-ban-ca__main-title {
        text-align: center;
    }

    .page-ban-ca__description {
        text-align: center;
    }

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

    .page-ban-ca__promo-card {
        flex-direction: column;
    }

    .page-ban-ca__promo-image {
        width: 100%;
        height: auto;
    }

    .page-ban-ca__promo-content {
        text-align: center;
        padding: 20px;
    }

    .page-ban-ca__promo-content .page-ban-ca__btn-primary {
        align-self: center;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Specific padding-top, not var(--header-offset) */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-ban-ca__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-ban-ca__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .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; /* Ensure padding for text wrap */
        padding-right: 15px;
    }

    /* Intro Section - Module 1 Three-column circular images */
    .page-ban-ca__intro-section,
    .page-ban-ca__game-types-section,
    .page-ban-ca__guide-section,
    .page-ban-ca__promotions-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__final-cta-section {
        padding: 40px 0;
    }
    .page-ban-ca__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-ban-ca__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-ban-ca__feature-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__feature-item {
        padding: 20px;
    }
    .page-ban-ca__icon-box-media {
        width: 150px; /* Adjust size for mobile but keep circular */
        height: 150px;
        margin-bottom: 15px;
    }
    .page-ban-ca__feature-title {
        font-size: 1.4em;
    }

    /* Game Types Section */
    .page-ban-ca__game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__game-card-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-ban-ca__game-card-content {
        padding: 20px;
    }
    .page-ban-ca__btn-small {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Guide Section */
    .page-ban-ca__guide-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__guide-item {
        padding: 20px;
    }
    .page-ban-ca__guide-step-title {
        font-size: 1.2em;
    }

    /* Promotions Section */
    .page-ban-ca__promo-card {
        flex-direction: column;
    }
    .page-ban-ca__promo-image {
        width: 100%;
        height: auto;
    }
    .page-ban-ca__promo-content {
        padding: 20px;
        text-align: center;
    }
    .page-ban-ca__promo-title {
        font-size: 1.5em;
    }
    .page-ban-ca__promo-text {
        font-size: 0.95em;
    }
    .page-ban-ca__promo-content .page-ban-ca__btn-primary {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* FAQ Section */
    .page-ban-ca__faq-item {
        margin-bottom: 10px;
    }
    .page-ban-ca__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Final CTA Section */
    .page-ban-ca__final-cta-section {
        padding: 50px 0;
    }
    .page-ban-ca__final-cta-content .page-ban-ca__section-title {
        font-size: 2em;
    }
    .page-ban-ca__final-cta-content .page-ban-ca__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-ban-ca__final-cta-content .page-ban-ca__cta-buttons {
        padding: 0 15px;
    }

    /* General image and container responsiveness for mobile */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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;
    }
    /* Exception for circular images, maintain aspect ratio */
    .page-ban-ca__icon-box-media img {
        height: 100% !important; /* Override auto height for circular images */
        object-fit: cover !important;
    }
}