/* style/ban-ca.css */
.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Matches body default background */
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
    background-color: #f5faff; /* Light blue tint for hero background */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #1e1765; /* Darker text for contrast on light hero background */
}

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
}

.page-ban-ca__lead-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ban-ca__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-ban-ca__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-ban-ca__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-ban-ca__btn-secondary:hover {
    background-color: #e0f2f7;
}

.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.1);
}

/* General Section Styling */
.page-ban-ca__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
}

.page-ban-ca__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

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

/* Intro Section (Module 1) */
.page-ban-ca__intro-section {
    padding: 60px 0;
}

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

.page-ban-ca__feature-item {
    text-align: center;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px; /* Fixed size for circular image */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #26A9E0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the circle */
    border-radius: 50%; /* Important for circular shape */
    display: block;
}

.page-ban-ca__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

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

/* Games Showcase Section */
.page-ban-ca__games-showcase {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text for dark background */
}

.page-ban-ca__games-showcase .page-ban-ca__section-title,
.page-ban-ca__games-showcase .page-ban-ca__section-description {
    color: #FFFFFF;
}

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

.page-ban-ca__game-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

.page-ban-ca__game-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

.page-ban-ca__game-link {
    text-decoration: none;
    color: inherit;
}

.page-ban-ca__game-link:hover {
    text-decoration: underline;
}

.page-ban-ca__game-description {
    font-size: 0.95rem;
    color: #666666;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__btn-play {
    background-color: #EA7C07; /* Login button color for play */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
    margin: 0 15px;
    width: calc(100% - 30px); /* Adjust width for padding */
}

.page-ban-ca__btn-play:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

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

/* Guide Section */
.page-ban-ca__guide-section {
    padding: 60px 0;
}

.page-ban-ca__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-ban-ca__guide-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #26A9E0;
}

.page-ban-ca__guide-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-ban-ca__guide-step-text {
    font-size: 1rem;
    color: #666666;
}

.page-ban-ca__guide-step-text a {
    color: #26A9E0;
    text-decoration: none;
}

.page-ban-ca__guide-step-text a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    padding: 60px 0;
    background-color: #f5faff; /* Light blue tint */
}

.page-ban-ca__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__faq-item {
    background-color: #FFFFFF;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #FFFFFF;
    list-style: none; /* For details/summary */
    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.5rem;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    background-color: #e0f2f7; /* Light background when open */
    color: #26A9E0;
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #555555;
}

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

.page-ban-ca__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
}

.page-ban-ca__faq-answer a:hover {
    text-decoration: underline;
}

/* Final CTA Section */
.page-ban-ca__cta-final {
    padding: 60px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
}

.page-ban-ca__cta-final .page-ban-ca__section-title,
.page-ban-ca__cta-final .page-ban-ca__section-description {
    color: #FFFFFF;
}

.page-ban-ca__cta-final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

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

    .page-ban-ca__hero-content {
        order: 2; /* Content below image on smaller screens */
        flex: 1 1 100%;
    }

    .page-ban-ca__hero-image {
        order: 1; /* Image above content on smaller screens */
        margin-bottom: 30px;
        flex: 1 1 100%;
    }

    .page-ban-ca__main-title {
        font-size: 2.8rem;
    }

    .page-ban-ca__lead-text {
        font-size: 1.05rem;
    }

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

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

    .page-ban-ca__features-grid,
    .page-ban-ca__game-list,
    .page-ban-ca__guide-list {
        grid-template-columns: 1fr;
    }

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

    .page-ban-ca__game-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding and font size adjustments */
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-ban-ca__hero-container,
    .page-ban-ca__container,
    .page-ban-ca__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important; /* Ensure main containers have padding */
        padding-right: 15px !important;
    }

    .page-ban-ca__main-title {
        font-size: 2rem; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-ban-ca__lead-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%; /* Ensure button container takes full width */
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-play {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-ban-ca__hero-image {
        margin-bottom: 20px;
    }

    /* Section titles and descriptions */
    .page-ban-ca__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

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

    /* Module 1: Intro Section (Features Grid) */
    .page-ban-ca__intro-section {
        padding: 40px 0;
    }

    .page-ban-ca__features-grid {
        gap: 20px;
    }

    .page-ban-ca__icon-box-media {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }
    
    .page-ban-ca__icon-box-media img {
        max-width: 100% !important; /* Ensure images in circular boxes are responsive */
        height: 100% !important; /* Keep height 100% to fill circle */
        object-fit: cover !important; /* Maintain cover for circular */
    }

    .page-ban-ca__feature-title {
        font-size: 1.3rem;
    }

    /* Games Showcase Section */
    .page-ban-ca__games-showcase {
        padding: 40px 0;
    }

    .page-ban-ca__game-list {
        gap: 20px;
    }

    .page-ban-ca__game-image {
        height: 160px; /* Smaller image height for mobile cards */
    }

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

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

    .page-ban-ca__guide-list {
        gap: 15px;
    }

    .page-ban-ca__guide-item {
        padding: 20px;
    }

    .page-ban-ca__guide-step-title {
        font-size: 1.2rem;
    }

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

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

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

    /* Final CTA Section */
    .page-ban-ca__cta-final {
        padding: 40px 0;
    }

    .page-ban-ca__cta-final-content {
        gap: 15px;
    }

    /* Universal image responsiveness for content area */
    .page-ban-ca img:not(.page-ban-ca__icon-box-media img) { /* Exclude circular images */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Specific card-like elements */
    .page-ban-ca__feature-item,
    .page-ban-ca__game-card,
    .page-ban-ca__guide-item,
    .page-ban-ca__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Ensure no filter is used on images */
.page-ban-ca img {
    filter: none !important;
}

/* Color contrast enforcement */
.page-ban-ca__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-ban-ca__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-ban-ca__game-card .page-ban-ca__game-title a,
.page-ban-ca__guide-step-text a,
.page-ban-ca__faq-answer a {
    color: #26A9E0; /* Ensure links are brand color on light background */
}

/* Ensure text on dark background is white */
.page-ban-ca__games-showcase h2,
.page-ban-ca__games-showcase p,
.page-ban-ca__cta-final h2,
.page-ban-ca__cta-final p {
    color: #FFFFFF;
}