/* style/ban-ca.css */
.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Ensure consistent background */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #FFF6D6;
}

.page-ban-ca__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E;
}

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

.page-ban-ca__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

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

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

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-view-promo {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    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: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.6);
}

.page-ban-ca__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E;
    border: 2px solid #3A2A12;
}

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

.page-ban-ca__btn-play,
.page-ban-ca__btn-view-promo {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border: none;
    font-size: 0.95rem;
    padding: 10px 20px;
    margin-top: 15px;
}

.page-ban-ca__btn-play:hover,
.page-ban-ca__btn-view-promo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Dark Section */
.page-ban-ca__dark-section {
    background-color: #0A0A0A;
    color: #FFF6D6;
    padding: 60px 0;
}

/* Intro Section */
.page-ban-ca__intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #F2C14E;
}

.page-ban-ca__intro-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #FFF6D6;
}

.page-ban-ca__intro-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.page-ban-ca__feature-item {
    flex: 1 1 30%;
    min-width: 280px;
    text-align: center;
    background-color: #111111;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
}

.page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #F2C14E;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-ban-ca__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD36B;
}

.page-ban-ca__feature-text {
    font-size: 1rem;
    color: #FFF6D6;
}

/* Game Tabs Section */
.page-ban-ca__game-tabs-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #F2C14E;
}

.page-ban-ca__tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #3A2A12;
    gap: 10px;
    flex-wrap: wrap;
}

.page-ban-ca__tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFF6D6;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.page-ban-ca__tab-button:hover {
    color: #FFD36B;
}

.page-ban-ca__tab-button.is-active {
    color: #F2C14E;
    border-bottom-color: #F2C14E;
}

.page-ban-ca__game-panel {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.page-ban-ca__game-panel.is-active {
    display: flex;
}

.page-ban-ca__game-card {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.page-ban-ca__game-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-ban-ca__game-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD36B;
    padding: 0 15px;
}

.page-ban-ca__game-description {
    font-size: 0.95rem;
    color: #FFF6D6;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Guide Section */
.page-ban-ca__guide-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E;
}

.page-ban-ca__guide-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.page-ban-ca__guide-step-item {
    flex: 1 1 300px;
    max-width: 380px;
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.page-ban-ca__guide-step-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 25px;
}

.page-ban-ca__guide-step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD36B;
    padding: 0 15px;
}

.page-ban-ca__guide-step-description {
    font-size: 0.95rem;
    color: #FFF6D6;
    padding: 0 15px;
}

/* Promo Section */
.page-ban-ca__promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E;
}

.page-ban-ca__promo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.page-ban-ca__promo-card {
    flex: 1 1 300px;
    max-width: 400px;
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.page-ban-ca__promo-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-ban-ca__promo-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFD36B;
    padding: 0 15px;
}

.page-ban-ca__promo-description {
    font-size: 0.95rem;
    color: #FFF6D6;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* FAQ Section */
.page-ban-ca__faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E;
}

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

.page-ban-ca__faq-item {
    background-color: #111111;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2C14E;
    cursor: pointer;
    list-style: none;
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: #FFD36B;
    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 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #FFF6D6;
}

/* CTA Section */
.page-ban-ca__cta-content {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-ban-ca__cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2C14E;
}

.page-ban-ca__cta-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #FFF6D6;
}

/* General images responsiveness */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-ban-ca__intro-title,
    .page-ban-ca__game-tabs-title,
    .page-ban-ca__guide-title,
    .page-ban-ca__promo-title,
    .page-ban-ca__faq-title,
    .page-ban-ca__cta-title {
        font-size: 2.2rem;
    }
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
    }
    .page-ban-ca__hero-cta-buttons {
        justify-content: center;
    }
    .page-ban-ca__feature-item,
    .page-ban-ca__game-card,
    .page-ban-ca__guide-step-item,
    .page-ban-ca__promo-card {
        max-width: 45%;
        flex-basis: 45%;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-ban-ca__content-area {
        padding: 30px 15px;
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        max-width: 100%;
    }
    .page-ban-ca__hero-description {
        font-size: 1rem;
    }
    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

    /* Module 1 (Intro/Feature Section) */
    .page-ban-ca__intro-title,
    .page-ban-ca__game-tabs-title,
    .page-ban-ca__guide-title,
    .page-ban-ca__promo-title,
    .page-ban-ca__faq-title,
    .page-ban-ca__cta-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .page-ban-ca__intro-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-ban-ca__intro-features {
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__feature-item {
        max-width: 100%;
        flex-basis: 100%;
        padding: 25px;
    }
    .page-ban-ca__icon-box-media {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
        border-width: 2px;
    }
    .page-ban-ca__feature-title {
        font-size: 1.3rem;
    }
    .page-ban-ca__feature-text {
        font-size: 0.9rem;
    }

    /* Game Tabs Section */
    .page-ban-ca__tab-nav {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin-bottom: 30px;
    }
    .page-ban-ca__tab-button {
        width: 100%;
        max-width: 250px;
        padding: 12px 15px;
        font-size: 1rem;
    }
    .page-ban-ca__game-panel {
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__game-card {
        max-width: 100%;
        flex-basis: 100%;
        padding-bottom: 15px;
    }
    .page-ban-ca__game-name {
        font-size: 1.2rem;
    }
    .page-ban-ca__game-description {
        font-size: 0.9rem;
    }
    .page-ban-ca__btn-play {
        width: calc(100% - 30px) !important;
        margin-left: 15px;
        margin-right: 15px;
        padding: 10px 15px;
    }

    /* Guide Section */
    .page-ban-ca__guide-steps {
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__guide-step-item {
        max-width: 100%;
        flex-basis: 100%;
        padding-bottom: 20px;
    }
    .page-ban-ca__guide-step-image {
        height: 200px;
        margin-bottom: 20px;
    }
    .page-ban-ca__guide-step-title {
        font-size: 1.2rem;
    }
    .page-ban-ca__guide-step-description {
        font-size: 0.9rem;
    }

    /* Promo Section */
    .page-ban-ca__promo-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__promo-card {
        max-width: 100%;
        flex-basis: 100%;
        padding-bottom: 15px;
    }
    .page-ban-ca__promo-image {
        height: 200px;
    }
    .page-ban-ca__promo-name {
        font-size: 1.2rem;
    }
    .page-ban-ca__promo-description {
        font-size: 0.9rem;
    }
    .page-ban-ca__btn-view-promo {
        width: calc(100% - 30px) !important;
        margin-left: 15px;
        margin-right: 15px;
        padding: 10px 15px;
    }

    /* FAQ Section */
    .page-ban-ca__faq-list {
        padding: 0 15px;
        max-width: 100%;
    }
    .page-ban-ca__faq-item {
        margin-bottom: 10px;
    }
    .page-ban-ca__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-ban-ca__faq-toggle {
        font-size: 1.3rem;
    }
    .page-ban-ca__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }

    /* CTA Section */
    .page-ban-ca__cta-content {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-ban-ca__cta-title {
        font-size: 1.8rem;
    }
    .page-ban-ca__cta-description {
        font-size: 0.95rem;
        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;
    }

    /* Universal image and container rules for mobile */
    .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;
    }
    /* Specific override for circular images to maintain aspect ratio */
    .page-ban-ca__icon-box-media img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}