/* style/ban-ca.css */

/* Variables */
:root {
    --cm88-primary-color: #FF8C1A;
    --cm88-secondary-color: #FFA53A;
    --cm88-card-bg: #17191F;
    --cm88-body-bg: #0D0E12;
    --cm88-text-main: #FFF3E6;
    --cm88-border-color: #A84F0C;
    --cm88-glow-color: #FFB04D;
    --cm88-deep-orange: #D96800;
    --cm88-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-ban-ca {
    background-color: var(--cm88-body-bg);
    color: var(--cm88-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* --- Buttons --- */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Default for desktop */
}

.page-ban-ca__btn-primary {
    background: var(--cm88-button-gradient);
    color: var(--cm88-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-ban-ca__btn-secondary:hover {
    background: var(--cm88-secondary-color);
    color: var(--cm88-body-bg);
    transform: translateY(-2px);
}

.page-ban-ca__btn-inline {
    margin-top: 20px;
}

/* --- Hero Section --- */
.page-ban-ca__hero-section {
    padding-top: 10px; /* As per fixed header rule */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--cm88-body-bg);
}

.page-ban-ca__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 60px 15px;
    flex-wrap: wrap;
}

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    text-align: left;
}

.page-ban-ca__hero-title {
    font-size: 3.5em;
    color: var(--cm88-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-ban-ca__hero-description {
    font-size: 1.2em;
    color: var(--cm88-text-main);
    margin-bottom: 30px;
}

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

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

.page-ban-ca__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 140, 26, 0.3);
    display: block;
}

/* --- Intro Section (Module 1 - Features) --- */
.page-ban-ca__intro-section {
    padding: 60px 0;
    background-color: var(--cm88-body-bg);
    text-align: center;
}

.page-ban-ca__intro-title {
    font-size: 2.8em;
    color: var(--cm88-text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-ban-ca__intro-text {
    font-size: 1.1em;
    color: var(--cm88-text-main);
    max-width: 800px;
    margin: 0 auto 50px;
}

.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 {
    background-color: var(--cm88-card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 140, 26, 0.3);
}

.page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--cm88-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--cm88-glow-color);
}

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

.page-ban-ca__feature-heading {
    font-size: 1.8em;
    color: var(--cm88-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-ban-ca__feature-description {
    font-size: 1em;
    color: var(--cm88-text-main);
}

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

.page-ban-ca__flex-reverse {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap-reverse;
}

.page-ban-ca__content-text {
    flex: 1 1 50%;
    text-align: left;
}

.page-ban-ca__about-title {
    font-size: 2.5em;
    color: var(--cm88-text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-ban-ca__about-description {
    font-size: 1.1em;
    color: var(--cm88-text-main);
    margin-bottom: 15px;
}

.page-ban-ca__about-image {
    flex: 1 1 40%;
    text-align: center;
}

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

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

.page-ban-ca__tips-title {
    font-size: 2.8em;
    color: var(--cm88-text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-ban-ca__tips-intro {
    font-size: 1.1em;
    color: var(--cm88-text-main);
    max-width: 800px;
    margin: 0 auto 50px;
}

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

.page-ban-ca__tip-item {
    background-color: var(--cm88-body-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-ban-ca__tip-heading {
    font-size: 1.6em;
    color: var(--cm88-primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ban-ca__tip-description {
    font-size: 1em;
    color: var(--cm88-text-main);
}

.page-ban-ca__tips-image {
    margin-top: 40px;
}

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

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

.page-ban-ca__faq-main-title {
    font-size: 2.8em;
    color: var(--cm88-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-ban-ca__faq-item {
    background-color: var(--cm88-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.page-ban-ca__faq-item[open] {
    background-color: var(--cm88-body-bg);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.2);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--cm88-primary-color);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.3s ease;
}

.page-ban-ca__faq-question:hover {
    color: var(--cm88-secondary-color);
}

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

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--cm88-secondary-color);
}

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

/* --- Final CTA Section --- */
.page-ban-ca__cta-final-section {
    padding: 80px 0;
    background: var(--cm88-button-gradient);
    text-align: center;
    color: var(--cm88-text-main);
}

.page-ban-ca__cta-final-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--cm88-text-main);
}

.page-ban-ca__cta-final-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__btn-lg {
    padding: 15px 35px;
    font-size: 20px;
}

/* --- General image styling for content areas --- */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-ban-ca__hero-title {
        font-size: 3em;
    }
    .page-ban-ca__intro-title,
    .page-ban-ca__tips-title,
    .page-ban-ca__faq-main-title,
    .page-ban-ca__cta-final-title {
        font-size: 2.5em;
    }
    .page-ban-ca__about-title {
        font-size: 2.2em;
    }
    .page-ban-ca__hero-container {
        flex-direction: column-reverse;
        padding: 40px 15px;
    }
    .page-ban-ca__hero-content {
        text-align: center;
        flex: 1 1 100%;
    }
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }
    .page-ban-ca__cta-buttons {
        justify-content: center;
    }
    .page-ban-ca__flex-reverse {
        flex-direction: column-reverse;
    }
    .page-ban-ca__content-text,
    .page-ban-ca__about-image {
        flex: 1 1 100%;
    }
    .page-ban-ca__about-image {
        margin-bottom: 30px;
    }
    .page-ban-ca__btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    /* General page content padding */
    .page-ban-ca__container {
        padding: 0 15px;
    }

    /* 1. HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-ban-ca__hero-title {
        font-size: 2.2em;
        max-width: 100%;
        word-wrap: break-word;
    }
    .page-ban-ca__hero-description {
        font-size: 1em;
    }
    .page-ban-ca__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;
        margin-left: 0 !important;
    }
    .page-ban-ca__hero-image {
        margin-bottom: 20px;
    }

    /* 2. Module 1 - Intro Section (Features with circular images) */
    .page-ban-ca__intro-section {
        padding: 40px 0;
    }
    .page-ban-ca__intro-title {
        font-size: 2em;
    }
    .page-ban-ca__intro-text {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__icon-box-media {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    .page-ban-ca__feature-heading {
        font-size: 1.5em;
    }
    .page-ban-ca__feature-description {
        font-size: 0.9em;
    }

    /* 3. About Section */
    .page-ban-ca__about-section {
        padding: 40px 0;
    }
    .page-ban-ca__about-title {
        font-size: 2em;
    }
    .page-ban-ca__about-description {
        font-size: 0.95em;
    }
    .page-ban-ca__about-image {
        margin-bottom: 20px;
    }
    .page-ban-ca__btn-inline {
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }

    /* 4. Tips Section */
    .page-ban-ca__tips-section {
        padding: 40px 0;
    }
    .page-ban-ca__tips-title {
        font-size: 2em;
    }
    .page-ban-ca__tips-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-ban-ca__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__tip-heading {
        font-size: 1.4em;
    }
    .page-ban-ca__tip-description {
        font-size: 0.9em;
    }
    .page-ban-ca__tips-image {
        margin-top: 20px;
    }

    /* 5. FAQ Section */
    .page-ban-ca__faq-section {
        padding: 40px 0;
    }
    .page-ban-ca__faq-main-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-ban-ca__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-ban-ca__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px;
    }
    .page-ban-ca__faq-toggle {
        font-size: 1.2em;
    }

    /* 6. Final CTA Section */
    .page-ban-ca__cta-final-section {
        padding: 60px 0;
    }
    .page-ban-ca__cta-final-title {
        font-size: 2.2em;
    }
    .page-ban-ca__cta-final-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-ban-ca__btn-lg {
        padding: 12px 25px;
        font-size: 18px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 7. General image and container styles for mobile */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-ban-ca__container,
    .page-ban-ca__hero-container,
    .page-ban-ca__features-grid,
    .page-ban-ca__tips-grid,
    .page-ban-ca__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure no horizontal overflow */
    .page-ban-ca {
        overflow-x: hidden;
    }
}

/* Ensure no filter on images */
.page-ban-ca img {
    filter: none !important;
}