/* style/ban-ca.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color-light: #F5F7FA;
    --border-color: #E0E0E0;
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color-light);
}

.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, shared.css handles body padding */
    padding-bottom: 40px;
    background-color: var(--background-color-light);
}

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

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

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

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

.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;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.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: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    flex-grow: 1;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

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

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

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

/* Section Titles & Descriptions */
.page-ban-ca__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

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

.page-ban-ca__feature-item {
    text-align: center;
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 0 8px rgba(var(--secondary-color), 0.2);
}

.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;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-ban-ca__feature-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main-color);
}

/* Gameplay Guide Section */
.page-ban-ca__gameplay-guide {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.page-ban-ca__gameplay-guide .page-ban-ca__section-title,
.page-ban-ca__gameplay-guide .page-ban-ca__section-description {
    color: #ffffff;
}

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

.page-ban-ca__guide-content {
    flex: 1 1 50%;
    min-width: 300px;
}

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

.page-ban-ca__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-ban-ca__guide-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-ban-ca__guide-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
}

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

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

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

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

.page-ban-ca__tip-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-ban-ca__tip-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-ban-ca__tip-card .page-ban-ca__tip-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-ban-ca__tip-card .page-ban-ca__tip-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main-color);
    padding: 0 15px 25px;
}

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

.page-ban-ca__promo-section .page-ban-ca__section-title,
.page-ban-ca__promo-section .page-ban-ca__section-description {
    color: #ffffff;
}

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

.page-ban-ca__promo-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-ban-ca__promo-card .page-ban-ca__promo-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-ban-ca__promo-card .page-ban-ca__promo-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main-color);
    padding: 0 15px 20px;
}

.page-ban-ca__promo-card .page-ban-ca__btn-primary {
    margin-bottom: 20px;
    display: block; /* Ensure button takes full width in card */
    width: calc(100% - 30px); /* Adjust for padding */
    margin-left: 15px;
    margin-right: 15px;
}

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

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

.page-ban-ca__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-ban-ca__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--card-bg-color);
    position: relative;
    list-style: none;
}

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

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

.page-ban-ca__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
    color: var(--primary-color);
}

.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--secondary-color);
    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 20px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main-color);
    animation: fadein 0.3s ease-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Bottom Section */
.page-ban-ca__cta-bottom-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__section-title,
.page-ban-ca__cta-bottom-section .page-ban-ca__section-description {
    color: #ffffff;
}

.page-ban-ca__cta-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-ban-ca__cta-bottom-section .page-ban-ca__cta-buttons {
    justify-content: center;
    width: 100%; /* Ensure buttons are centered */
    max-width: 500px;
    margin-top: 20px;
}

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

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

    .page-ban-ca__content-area {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }

    .page-ban-ca__hero-container {
        flex-direction: column;
        padding: 20px 15px !important;
        gap: 20px;
    }

    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-ban-ca__hero-title {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }

    .page-ban-ca__hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        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;
    }

    /* Section Titles & Descriptions */
    .page-ban-ca__section-title {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }

    .page-ban-ca__section-description {
        font-size: 1rem !important;
        margin-bottom: 30px;
    }

    /* Intro Section */
    .page-ban-ca__intro-section {
        padding: 40px 0 !important;
    }

    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__icon-box-media {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 15px;
    }

    .page-ban-ca__feature-title {
        font-size: 1.2rem !important;
    }

    /* Gameplay Guide Section */
    .page-ban-ca__gameplay-guide {
        padding: 40px 0 !important;
    }

    .page-ban-ca__guide-grid {
        flex-direction: column;
        gap: 20px;
    }

    .page-ban-ca__guide-content,
    .page-ban-ca__guide-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-ban-ca__guide-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .page-ban-ca__guide-step-title {
        font-size: 1.1rem !important;
    }

    .page-ban-ca__guide-text {
        font-size: 0.95rem !important;
    }

    /* Tips Section */
    .page-ban-ca__tips-section {
        padding: 40px 0 !important;
    }

    .page-ban-ca__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__tip-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    .page-ban-ca__tip-card .page-ban-ca__tip-title {
        font-size: 1.2rem !important;
    }

    .page-ban-ca__tip-card .page-ban-ca__tip-text {
        font-size: 0.95rem !important;
    }

    /* Promotions Section */
    .page-ban-ca__promo-section {
        padding: 40px 0 !important;
    }

    .page-ban-ca__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__promo-image {
        height: 160px; /* Adjust height for mobile promo cards */
    }

    .page-ban-ca__promo-card .page-ban-ca__promo-title {
        font-size: 1.2rem !important;
    }

    .page-ban-ca__promo-card .page-ban-ca__promo-text {
        font-size: 0.95rem !important;
    }

    /* FAQ Section */
    .page-ban-ca__faq-section {
        padding: 40px 0 !important;
    }

    .page-ban-ca__faq-list {
        margin-top: 20px;
    }

    .page-ban-ca__faq-question {
        padding: 15px !important;
        font-size: 1rem !important;
    }

    .page-ban-ca__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 0.95rem !important;
    }

    /* CTA Bottom Section */
    .page-ban-ca__cta-bottom-section {
        padding: 40px 0 !important;
    }

    .page-ban-ca__cta-bottom-section .page-ban-ca__cta-buttons {
        max-width: 100% !important;
    }

    /* Universal image handling for mobile */
    .page-ban-ca img:not(.page-ban-ca__icon-box-media img) {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__dark-section {
        background-color: var(--primary-color);
        color: #ffffff;
    }

    .page-ban-ca__light-section {
        background-color: var(--background-color-light);
        color: var(--text-main-color);
    }
}