/* style/ban-ca.css */

/* Custom properties for colors from the user's color scheme */
:root {
    --page-ban-ca-primary-color: #11A84E;
    --page-ban-ca-secondary-color: #22C768;
    --page-ban-ca-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-ban-ca-card-bg: #11271B;
    --page-ban-ca-background: #08160F; /* This is the body background */
    --page-ban-ca-text-main: #F2FFF6;
    --page-ban-ca-text-secondary: #A7D9B8;
    --page-ban-ca-border: #2E7A4E;
    --page-ban-ca-glow: #57E38D;
    --page-ban-ca-gold: #F2C14E;
    --page-ban-ca-divider: #1E3A2A;
    --page-ban-ca-deep-green: #0A4B2C;
}

/* Base styles for the page content, considering the dark body background */
.page-ban-ca {
    background-color: var(--page-ban-ca-background); /* Ensure consistent background */
    color: var(--page-ban-ca-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-ban-ca__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-ban-ca-text-main);
    margin-bottom: 20px;
}

.page-ban-ca__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--page-ban-ca-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-ban-ca__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--page-ban-ca-primary-color);
    margin: 15px auto 0;
}

.page-ban-ca p {
    color: var(--page-ban-ca-text-secondary);
    margin-bottom: 15px;
}

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

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

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

.page-ban-ca__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-ban-ca-text-secondary);
}

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

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

.page-ban-ca__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-link {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-ban-ca__btn-primary {
    background: var(--page-ban-ca-btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__btn-secondary:hover {
    background: var(--page-ban-ca-primary-color);
    color: #ffffff;
}

.page-ban-ca__btn-play {
    background: var(--page-ban-ca-primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-ban-ca__btn-play:hover {
    background: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__btn-link {
    color: var(--page-ban-ca-primary-color);
    text-decoration: underline;
    padding: 0;
    background: none;
    border: none;
}

.page-ban-ca__btn-link:hover {
    color: var(--page-ban-ca-secondary-color);
}

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

/* Content Area */
.page-ban-ca__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 16px;
    background-color: var(--page-ban-ca-background); /* Ensure consistent background */
    color: var(--page-ban-ca-text-secondary);
}

/* Intro Section */
.page-ban-ca__intro-section {
    background-color: var(--page-ban-ca-background);
}

.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(--page-ban-ca-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-ban-ca-border);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed width for square image */
    height: 200px; /* Fixed height for square image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--page-ban-ca-primary-color);
    box-shadow: 0 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Ensure image itself is round */
}

.page-ban-ca__feature-title {
    font-size: 1.5em;
    color: var(--page-ban-ca-text-main);
    margin-bottom: 10px;
}

.page-ban-ca__feature-description {
    font-size: 0.95em;
    color: var(--page-ban-ca-text-secondary);
}

/* Guide Section */
.page-ban-ca__guide-section {
    background-color: var(--page-ban-ca-background);
}

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

.page-ban-ca__step-item {
    background-color: var(--page-ban-ca-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-ban-ca-border);
    position: relative;
    padding-top: 70px;
}

.page-ban-ca__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--page-ban-ca-primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--page-ban-ca-deep-green);
}

.page-ban-ca__step-title {
    font-size: 1.4em;
    color: var(--page-ban-ca-text-main);
    margin-bottom: 10px;
}

.page-ban-ca__step-description {
    font-size: 0.95em;
    color: var(--page-ban-ca-text-secondary);
}

/* Game Showcase Section */
.page-ban-ca__game-showcase-section {
    background-color: var(--page-ban-ca-background);
}

.page-ban-ca__game-cards-grid {
    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: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-ban-ca-border);
    display: flex;
    flex-direction: column;
}

.page-ban-ca__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-ban-ca__game-card-title {
    font-size: 1.3em;
    color: var(--page-ban-ca-text-main);
    padding: 15px 20px 5px;
}

.page-ban-ca__game-card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-ban-ca__game-card-description {
    font-size: 0.9em;
    color: var(--page-ban-ca-text-secondary);
    padding: 0 20px 15px;
    flex-grow: 1; /* Push button to bottom */
}

.page-ban-ca__game-card .page-ban-ca__btn-play {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Promo Section */
.page-ban-ca__promo-section {
    background-color: var(--page-ban-ca-background);
}

.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-ban-ca__promo-item {
    background-color: var(--page-ban-ca-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-ban-ca-border);
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.page-ban-ca__promo-image {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-ban-ca__promo-content {
    flex-grow: 1;
}

.page-ban-ca__promo-title {
    font-size: 1.3em;
    color: var(--page-ban-ca-text-main);
    margin-bottom: 5px;
}

.page-ban-ca__promo-description {
    font-size: 0.9em;
    color: var(--page-ban-ca-text-secondary);
    margin-bottom: 10px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    background-color: var(--page-ban-ca-background);
}

.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(--page-ban-ca-card-bg);
    border: 1px solid var(--page-ban-ca-border);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* For smooth animation with max-height on .faq-answer */
}

.page-ban-ca__faq-item summary {
    list-style: none; /* Hide default marker for details tag */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--page-ban-ca-text-main);
    background-color: var(--page-ban-ca-card-bg);
    transition: background-color 0.3s ease;
}

.page-ban-ca__faq-item summary:hover {
    background-color: var(--page-ban-ca-deep-green);
}

.page-ban-ca__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-ban-ca__faq-qtext {
    flex-grow: 1;
}

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    color: var(--page-ban-ca-gold);
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--page-ban-ca-text-secondary);
    border-top: 1px solid var(--page-ban-ca-divider);
    animation: fadein 0.3s ease-in-out;
}

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

/* Contact CTA Section */
.page-ban-ca__contact-cta-section {
    background-color: var(--page-ban-ca-background);
}

.page-ban-ca__contact-cta-section .page-ban-ca__content-area {
    background-color: var(--page-ban-ca-card-bg); /* Darker background for CTA block */
    border-radius: 10px;
    text-align: center;
    padding: 60px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-ban-ca-border);
}

.page-ban-ca__contact-cta-section .page-ban-ca__section-title {
    margin-bottom: 20px;
    color: var(--page-ban-ca-text-main);
}

.page-ban-ca__contact-cta-section .page-ban-ca__section-title::after {
    background: var(--page-ban-ca-gold); /* Gold divider for emphasis */
}

.page-ban-ca__contact-cta-section .page-ban-ca__text-secondary {
    font-size: 1.1em;
    margin-bottom: 40px;
}

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

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

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

    .page-ban-ca__hero-image {
        order: 1;
        margin-bottom: 30px;
    }

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

    .page-ban-ca__promo-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .page-ban-ca__promo-image {
        margin-bottom: 20px;
        width: 100%;
        height: auto;
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    /* Fixed Header Spacing: body handles padding-top, first section uses small padding */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
    }

    .page-ban-ca p {
        font-size: 15px;
    }

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

    /* All containers that might hold images or content */
    .page-ban-ca__content-area,
    .page-ban-ca__hero-container,
    .page-ban-ca__features-grid,
    .page-ban-ca__steps-grid,
    .page-ban-ca__game-cards-grid,
    .page-ban-ca__promo-list,
    .page-ban-ca__faq-list,
    .page-ban-ca__contact-cta-section .page-ban-ca__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }

    /* HERO Section */
    .page-ban-ca__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }

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

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

    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Buttons mobile adaptation */
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-play,
    .page-ban-ca__btn-link,
    .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__cta-buttons-bottom {
        flex-direction: column;
        gap: 15px;
    }

    /* Module 1 (Intro Section) */
    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-ban-ca__features-grid,
    .page-ban-ca__steps-grid,
    .page-ban-ca__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-ban-ca__icon-box-media {
        width: 150px;
        height: 150px;
        border-width: 2px;
        box-shadow: 0 0 0 4px rgba(17, 168, 78, 0.2);
    }

    /* Game Showcase */
    .page-ban-ca__game-card-image {
        height: 180px;
    }

    /* Promo Section */
    .page-ban-ca__promo-item {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }

    .page-ban-ca__promo-image {
        width: 100%;
        max-height: 150px;
        margin-bottom: 15px;
    }

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

    /* FAQ Section */
    .page-ban-ca__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    /* Contact CTA Section */
    .page-ban-ca__contact-cta-section .page-ban-ca__content-area {
        padding: 40px 20px;
    }

    .page-ban-ca__contact-cta-section .page-ban-ca__section-title {
        font-size: 1.8em;
    }
}