/* style/ban-ca.css */

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

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

.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: var(--color-deep-navy);
    color: var(--color-text-main);
    position: relative;
    overflow: hidden;
}

.page-ban-ca__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-ban-ca__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-ban-ca__btn-primary {
    background: var(--btn-gradient);
    color: var(--color-text-main);
    border: 2px solid var(--color-glow);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.6);
}

.page-ban-ca__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(79, 168, 255, 0.8);
}

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

.page-ban-ca__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    color: var(--color-gold);
}

.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: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__intro-section,
.page-ban-ca__tips-section,
.page-ban-ca__cta-section {
    background-color: var(--color-text-main); /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-ban-ca__gameplay-section,
.page-ban-ca__faq-section {
    background-color: var(--color-deep-navy);
    color: var(--color-text-main);
    padding: 60px 0;
}

.page-ban-ca__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-ban-ca__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-ban-ca__intro-section .page-ban-ca__section-title,
.page-ban-ca__tips-section .page-ban-ca__section-title,
.page-ban-ca__cta-section .page-ban-ca__section-title {
    color: var(--color-primary);
}

.page-ban-ca__gameplay-section .page-ban-ca__section-title,
.page-ban-ca__faq-section .page-ban-ca__section-title {
    color: var(--color-gold);
}

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

.page-ban-ca__intro-section .page-ban-ca__section-description,
.page-ban-ca__tips-section .page-ban-ca__section-description,
.page-ban-ca__cta-section .page-ban-ca__section-description {
    color: #555555;
}

.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% - 20px);
    max-width: 350px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border: 3px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

.page-ban-ca__feature-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666666;
}

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

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

.page-ban-ca__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-ban-ca__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-ban-ca__step-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.page-ban-ca__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
}

.page-ban-ca__tips-list li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #444444;
}

.page-ban-ca__list-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.page-ban-ca__tips-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px auto 0;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.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(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-ban-ca__faq-item[open] {
    background-color: #1a3a6b; /* Slightly lighter when open */
    border-color: var(--color-gold);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

.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.5rem;
    font-weight: bold;
    color: var(--color-gold);
    margin-left: 15px;
}

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

.page-ban-ca__cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.page-ban-ca__cta-text-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-ban-ca__cta-text-content .page-ban-ca__section-title {
    text-align: left;
    color: var(--color-primary);
}

.page-ban-ca__cta-text-content .page-ban-ca__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: #555555;
}

.page-ban-ca__cta-buttons-bottom {
    flex: 1 1 auto;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 300px;
}

/* Ensure general image responsiveness for all images */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(2.2rem, 3.5vw, 3rem);
    }

    .page-ban-ca__hero-description {
        font-size: 1rem;
    }

    .page-ban-ca__section-title {
        font-size: 2.2rem;
    }

    .page-ban-ca__feature-item {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .page-ban-ca__icon-box-media {
        width: 160px;
        height: 160px;
    }

    .page-ban-ca__guide-steps {
        gap: 20px;
    }

    .page-ban-ca__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .page-ban-ca__faq-answer {
        padding: 0 20px 18px;
    }

    .page-ban-ca__cta-flex {
        flex-direction: column;
        text-align: center;
    }

    .page-ban-ca__cta-text-content {
        text-align: center;
    }

    .page-ban-ca__cta-text-content .page-ban-ca__section-title,
    .page-ban-ca__cta-text-content .page-ban-ca__section-description {
        text-align: center;
    }

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

@media (max-width: 768px) {
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming shared.css handles body padding-top */
        padding-bottom: 40px;
    }

    .page-ban-ca__hero-container {
        flex-direction: column-reverse; /* Text above image */
        padding: 20px 15px;
        gap: 20px;
    }

    .page-ban-ca__hero-content {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    .page-ban-ca__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-ban-ca__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

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

    .page-ban-ca__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-ban-ca__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__intro-section,
    .page-ban-ca__gameplay-section,
    .page-ban-ca__tips-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__cta-section {
        padding: 40px 0;
    }

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

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

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

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

    .page-ban-ca__feature-item {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 25px 15px;
    }

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

    .page-ban-ca__icon-box-media img {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Keep height 100% to maintain circle shape */
        object-fit: cover !important;
    }

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

    .page-ban-ca__feature-text {
        font-size: 0.95rem;
    }

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

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

    .page-ban-ca__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-ban-ca__step-title {
        font-size: 1.4rem;
    }

    .page-ban-ca__tips-list {
        margin: 30px auto;
    }

    .page-ban-ca__tips-list li {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .page-ban-ca__list-icon {
        font-size: 1.3rem;
        margin-right: 10px;
    }

    .page-ban-ca__tips-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

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

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

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

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

    .page-ban-ca__cta-text-content {
        text-align: center;
    }

    .page-ban-ca__cta-text-content .page-ban-ca__section-title {
        text-align: center;
    }

    .page-ban-ca__cta-text-content .page-ban-ca__section-description {
        text-align: center;
    }

    .page-ban-ca__cta-buttons-bottom {
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-ban-ca img:not(.page-ban-ca__icon-box-media img) {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}