/* style/ban-ca.css */

/* Custom Colors */
:root {
    --page-ban-ca-primary: #2F6BFF;
    --page-ban-ca-secondary: #6FA3FF;
    --page-ban-ca-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-ban-ca-card-bg: #FFFFFF;
    --page-ban-ca-background: #F4F7FB;
    --page-ban-ca-text-main: #1F2D3D;
    --page-ban-ca-text-dark: #000000;
    --page-ban-ca-border: #D6E2FF;
    --page-ban-ca-glow: #A5C4FF;
    --page-ban-ca-text-light: #ffffff;
}

.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--page-ban-ca-text-main);
    background-color: var(--page-ban-ca-background); /* Assuming shared.css sets body bg, this is for internal sections */
}

.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; /* Aligns with common header offset */
    padding-bottom: 60px;
    background-color: var(--page-ban-ca-background);
}

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

.page-ban-ca__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
    order: 1; /* Image first in DOM, but visually can be controlled by flex-direction/order */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    order: 2;
    text-align: left;
    color: var(--page-ban-ca-text-main);
}

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

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

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-ban-ca__btn-primary {
    background: var(--page-ban-ca-button-gradient);
    color: var(--page-ban-ca-text-light);
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

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

.page-ban-ca__btn-secondary {
    background-color: var(--page-ban-ca-card-bg);
    color: var(--page-ban-ca-primary);
    border: 2px solid var(--page-ban-ca-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__btn-secondary:hover {
    background-color: var(--page-ban-ca-primary);
    color: var(--page-ban-ca-text-light);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

/* General Content Sections */
.page-ban-ca__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: var(--page-ban-ca-primary);
    margin-bottom: 30px;
    text-align: center;
}

.page-ban-ca__section-title--light {
    color: var(--page-ban-ca-text-light);
}

.page-ban-ca__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__text-block--light {
    color: var(--page-ban-ca-text-light);
}

.page-ban-ca__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

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

.page-ban-ca__unordered-list,
.page-ban-ca__ordered-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-ban-ca__unordered-list li,
.page-ban-ca__ordered-list li {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__unordered-list li strong,
.page-ban-ca__ordered-list li strong {
    color: var(--page-ban-ca-primary);
}

/* Game Cards Section */
.page-ban-ca__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ban-ca__game-card {
    background-color: var(--page-ban-ca-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.page-ban-ca__game-card-media {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-ban-ca__game-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-ban-ca__game-card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: var(--page-ban-ca-primary);
}

.page-ban-ca__game-card-title a {
    color: var(--page-ban-ca-primary);
    text-decoration: none;
}

.page-ban-ca__game-card-title a:hover {
    text-decoration: underline;
}

.page-ban-ca__game-card-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 20px 20px;
    color: var(--page-ban-ca-text-main);
}

/* FAQ Section */
.page-ban-ca__faq-list {
    margin-top: 30px;
}

.page-ban-ca__faq-item {
    background-color: var(--page-ban-ca-card-bg);
    border: 1px solid var(--page-ban-ca-border);
    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;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--page-ban-ca-text-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-ban-ca-primary);
}

.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: 1em;
    line-height: 1.6;
    color: var(--page-ban-ca-text-main);
}

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

/* Bottom CTA Section */
.page-ban-ca__call-to-action-bottom {
    background: var(--page-ban-ca-button-gradient);
    padding: 60px 0;
    text-align: center;
    color: var(--page-ban-ca-text-light);
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1170px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__call-to-action-bottom .page-ban-ca__section-title {
    margin-bottom: 20px;
}

.page-ban-ca__call-to-action-bottom .page-ban-ca__text-block {
    margin-bottom: 30px;
    font-size: 1.1em;
}

.page-ban-ca__btn-primary--large {
    padding: 16px 40px;
    font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-ban-ca__hero-image {
        order: 1;
    }

    .page-ban-ca__hero-content {
        order: 2;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .page-ban-ca__container,
    .page-ban-ca__hero-container,
    .page-ban-ca__call-to-action-bottom {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-ban-ca__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }

    .page-ban-ca__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-ban-ca__description {
        font-size: 1em;
        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;
    }

    .page-ban-ca__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 20px;
    }

    .page-ban-ca__text-block,
    .page-ban-ca__unordered-list li,
    .page-ban-ca__ordered-list li,
    .page-ban-ca__game-card-description,
    .page-ban-ca__faq-answer p {
        font-size: 0.95em;
        line-height: 1.6;
    }

    .page-ban-ca__content-image,
    .page-ban-ca__hero-side-image,
    .page-ban-ca__game-card-media img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-ban-ca__game-card-media {
        height: 180px; /* Adjust height for mobile card images */
    }

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

    .page-ban-ca__game-card-title {
        font-size: 1.2em;
    }

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

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

    .page-ban-ca__call-to-action-bottom {
        margin: 30px auto !important;
        padding: 40px 15px !important;
    }

    .page-ban-ca__btn-primary--large {
        padding: 14px 30px;
        font-size: 1.1em;
    }
}