/* style/ban-ca.css */
:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --bg-color: #0D0E12;
    --card-bg-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-color); /* Assuming body background is dark */
}

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

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

.page-ban-ca__hero-section .page-ban-ca__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

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

.page-ban-ca__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 600px;
}

.page-ban-ca__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

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

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

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
    color: var(--text-main-color);
    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);
}

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

.page-ban-ca__btn-secondary:hover {
    background-color: rgba(255, 140, 26, 0.1);
    transform: translateY(-2px);
}

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

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

.page-ban-ca__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-ban-ca__features-section {
    background-color: var(--card-bg-color);
    padding: 60px 0;
}

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

.page-ban-ca__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
    aspect-ratio: 1/1;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--glow-color);
    box-shadow: 0 0 15px rgba(255, 176, 77, 0.6);
}

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

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

.page-ban-ca__how-to-play-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

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

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

.page-ban-ca__guide-text p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

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

.page-ban-ca__guide-list li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-main-color);
}

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

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

.page-ban-ca__guide-cta {
    margin-top: 20px;
}

.page-ban-ca__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg-color);
}

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

.page-ban-ca__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    color: var(--text-main-color);
}

.page-ban-ca__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-ban-ca__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

.page-ban-ca__faq-answer p {
    margin-top: 10px;
}

.page-ban-ca__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

    .page-ban-ca__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-ban-ca__hero-section .page-ban-ca__container {
        flex-direction: column;
        gap: 30px;
    }

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

    .page-ban-ca__main-title {
        font-size: 2em;
        text-align: center;
        margin-bottom: 15px;
    }

    .page-ban-ca__hero-description {
        font-size: 1em;
        text-align: center;
        margin-bottom: 25px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    /* Features Section */
    .page-ban-ca__features-section {
        padding: 40px 0;
    }

    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 30px;
    }

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

    .page-ban-ca__feature-item {
        padding: 25px;
    }

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

    .page-ban-ca__feature-title {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    /* How-to-Play Section */
    .page-ban-ca__how-to-play-section {
        padding: 40px 0;
    }

    .page-ban-ca__guide-content {
        flex-direction: column;
        gap: 30px;
    }

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

    .page-ban-ca__guide-text p,
    .page-ban-ca__guide-list li {
        font-size: 0.95em;
    }

    .page-ban-ca__guide-cta {
        max-width: 100% !important;
        width: 100% !important;
        text-align: center;
        margin: 20px auto 0;
    }

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

    .page-ban-ca__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

    .page-ban-ca__faq-toggle {
        font-size: 1.3em;
    }

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

    /* General Image Responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure containers for images/buttons are responsive */
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__cta-buttons,
    .page-ban-ca__button-group,
    .page-ban-ca__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Specific override for circular images to maintain aspect ratio */
    .page-ban-ca__icon-box-media img {
        height: 100% !important; /* Override auto to fill circle */
        object-fit: cover !important;
    }
}