/* style/ban-ca.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --background-color-page: #F4F7FB;
    --text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

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

.page-ban-ca__container {
    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-top */
    padding-bottom: 60px;
    background-color: var(--background-color-page);
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    color: var(--text-main-color);
    text-align: left;
}

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

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

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

.page-ban-ca__hero-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(47, 107, 255, 0.2);
    display: block;
}

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

/* Buttons */
.page-ban-ca__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-ban-ca__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}

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

.page-ban-ca__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.2);
}

.page-ban-ca__btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-ban-ca__btn-sm:hover {
    opacity: 0.9;
}

/* General Section Styling */
.page-ban-ca__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--custom-color-1776249996415);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

.page-ban-ca__light-bg {
    background-color: var(--background-color-page);
}

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

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__section-description,
.page-ban-ca__dark-bg .page-ban-ca__guide-title,
.page-ban-ca__dark-bg .page-ban-ca__guide-text {
    color: #ffffff;
}

.page-ban-ca__image {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-ban-ca__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    padding-top: 20px;
}

.page-ban-ca__content-text {
    flex: 1;
    line-height: 1.7;
    font-size: 1.05rem;
}

.page-ban-ca__content-text p {
    margin-bottom: 20px;
    color: var(--text-main-color);
}

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

.page-ban-ca__content-image {
    flex: 1;
    text-align: center;
}

.page-ban-ca__content-image .page-ban-ca__image {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Game List Section */
.page-ban-ca__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

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

.page-ban-ca__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-ban-ca__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ban-ca__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 20px;
    padding: 0 15px;
}

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

.page-ban-ca__guide-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-icon .page-ban-ca__image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 0; /* Not round for these icons */
}

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

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

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

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

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

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

.page-ban-ca__advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__advantage-icon .page-ban-ca__image {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Ensure icons are white on colored background */
}

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

.page-ban-ca__advantage-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main-color);
}

/* FAQ Section */
.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(--card-bg-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    border-bottom: none;
}

.page-ban-ca__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-ban-ca__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary-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 25px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main-color);
}

.page-ban-ca__faq-answer p {
    margin: 0;
}

/* Highlight style for keywords */
.page-ban-ca .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-ban-ca__section-title {
        font-size: 2rem;
    }
    .page-ban-ca__guide-icon {
        width: 80px;
        height: 80px;
    }
    .page-ban-ca__advantage-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .page-ban-ca__container,
    .page-ban-ca__hero-container {
        padding: 20px 15px;
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        flex-direction: column;
        gap: 30px;
    }
    .page-ban-ca__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-ban-ca__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        max-width: 100%;
    }
    .page-ban-ca__hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
        order: -1; /* Image appears above text on mobile */
    }
    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-ban-ca__btn,
    .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 !important;
        padding-right: 15px !important;
    }
    .page-ban-ca__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Introduction Section */
    .page-ban-ca__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-ban-ca__content-image {
        order: -1;
    }
    .page-ban-ca__section-title {
        font-size: 1.8rem;
    }
    .page-ban-ca__section-description {
        font-size: 0.95rem;
    }

    /* Game List Section */
    .page-ban-ca__game-list {
        grid-template-columns: 1fr;
    }
    .page-ban-ca__card-image {
        height: 180px;
    }
    .page-ban-ca__card-title {
        font-size: 1.3rem;
    }

    /* Guide Section */
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-ban-ca__guide-icon {
        width: 60px;
        height: 60px;
    }
    .page-ban-ca__guide-title {
        font-size: 1.2rem;
    }

    /* Why Choose Section */
    .page-ban-ca__advantages-grid {
        grid-template-columns: 1fr;
    }
    .page-ban-ca__advantage-icon {
        width: 60px;
        height: 60px;
    }
    .page-ban-ca__advantage-title {
        font-size: 1.1rem;
    }

    /* FAQ Section */
    .page-ban-ca__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }

    /* General Image Responsiveness */
    .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;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}