/* style/ban-ca.css */

/* General styles for the page-ban-ca scope */
.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--accent-color); /* Assumed light for default text, but specific sections will override */
}

.page-ban-ca__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Section Titles */
.page-ban-ca__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-ban-ca__section-title--light {
    color: #FFFFFF; /* White for dark backgrounds */
}

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

.page-ban-ca__section-description--light {
    color: #f0f0f0; /* Light grey for dark backgrounds */
}

/* Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container fills width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.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: #1e87b6;
    border-color: #1e87b6;
}

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

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

/* Image common styles */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section (Main visual for this non-homepage page) */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding as shared.css handles body padding */
    padding-bottom: 60px;
    background-color: #f8f8f8; /* Light background for this section */
}

.page-ban-ca__hero-section .page-ban-ca__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

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

.page-ban-ca__main-title {
    font-size: 3.2em;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__description {
    font-size: 1.2em;
    color: #444444;
    margin-bottom: 30px;
}

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

.page-ban-ca__main-visual {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Intro Features Section */
.page-ban-ca__intro-features-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Explicitly white for light-bg */
}

.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;
    padding: 20px;
    border-radius: 10px;
    background-color: #f0f8ff; /* Light blue tint */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__icon-box-media {
    width: 180px; /* Reduced from 400px to fit better with text */
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #26A9E0; /* Background for the icon box */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-ban-ca__feature-text {
    color: #555555;
}

/* Popular Games Section */
.page-ban-ca__popular-games-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF;
}

.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: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

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

.page-ban-ca__game-card-content {
    padding: 20px;
    color: #333333; /* Dark text on white card background */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__game-card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-ban-ca__game-card-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

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

/* Tips & Strategy Section */
.page-ban-ca__tips-strategy-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-ban-ca__tips-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
}

.page-ban-ca__tips-text {
    flex: 1 1 55%;
    min-width: 300px;
}

.page-ban-ca__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.page-ban-ca__tips-subtitle {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 8px;
}

.page-ban-ca__tips-item p {
    color: #555555;
    margin-bottom: 0;
}

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

.page-ban-ca__strategy-visual {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-ban-ca__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-ban-ca__faq-item {
    background-color: #f0f8ff; /* Light blue tint */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-ban-ca__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

.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;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

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

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

/* CTA Bottom Section */
.page-ban-ca__cta-bottom-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color dark background */
    color: #FFFFFF;
    text-align: center;
}

.page-ban-ca__cta-content {
    max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: 2.8em;
    }
    .page-ban-ca__section-title {
        font-size: 2.2em;
    }
    .page-ban-ca__hero-section .page-ban-ca__container {
        gap: 30px;
    }
    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
        text-align: center;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary {
        width: 80%; /* Make buttons wider */
    }
    .page-ban-ca__icon-box-media {
        width: 150px;
        height: 150px;
    }
}


@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-ban-ca__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding as shared.css handles body padding */
        padding-bottom: 40px;
    }
    .page-ban-ca__main-title {
        font-size: 2.2em !important;
        text-align: center;
    }
    .page-ban-ca__description {
        font-size: 1em !important;
        text-align: center;
    }
    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100% !important;
        text-align: center !important;
    }
    .page-ban-ca__main-visual {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons and Button Containers */
    .page-ban-ca__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .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;
    }

    /* Section Titles and Descriptions */
    .page-ban-ca__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }
    .page-ban-ca__section-description {
        font-size: 0.9em !important;
        margin-bottom: 30px;
    }

    /* Intro Features Section (Module 1 three-column round images) */
    .page-ban-ca__intro-features-section {
        padding: 40px 0;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }
    .page-ban-ca__icon-box-media {
        width: 120px !important; /* Smaller square */
        height: 120px !important;
        margin-bottom: 15px;
    }
    .page-ban-ca__icon-box-media img {
        max-width: 100% !important; /* Ensure images inside are responsive */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .page-ban-ca__feature-title {
        font-size: 1.3em !important;
    }
    .page-ban-ca__feature-text {
        font-size: 0.9em !important;
    }

    /* Popular Games Section (Game Cards) */
    .page-ban-ca__popular-games-section {
        padding: 40px 0;
    }
    .page-ban-ca__game-cards-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }
    .page-ban-ca__game-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 180px !important; /* Adjust fixed height */
    }
    .page-ban-ca__game-card-title {
        font-size: 1.2em !important;
    }
    .page-ban-ca__game-card-text {
        font-size: 0.85em !important;
    }

    /* Tips & Strategy Section */
    .page-ban-ca__tips-strategy-section {
        padding: 40px 0;
    }
    .page-ban-ca__tips-content {
        flex-direction: column !important; /* Stack vertically */
        gap: 20px !important;
    }
    .page-ban-ca__tips-text,
    .page-ban-ca__tips-image {
        flex: 1 1 100% !important;
        min-width: unset !important;
    }
    .page-ban-ca__tips-item {
        padding: 15px !important;
        margin-bottom: 10px !important;
    }
    .page-ban-ca__tips-subtitle {
        font-size: 1.1em !important;
    }
    .page-ban-ca__tips-item p {
        font-size: 0.9em !important;
    }
    .page-ban-ca__strategy-visual {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section */
    .page-ban-ca__faq-section {
        padding: 40px 0;
    }
    .page-ban-ca__faq-list {
        margin-top: 20px;
    }
    .page-ban-ca__faq-item summary {
        padding: 15px !important;
        font-size: 1em !important;
    }
    .page-ban-ca__faq-toggle {
        font-size: 1.2em !important;
    }
    .page-ban-ca__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 0.9em !important;
    }

    /* CTA Bottom Section */
    .page-ban-ca__cta-bottom-section {
        padding: 40px 0;
    }
    .page-ban-ca__cta-content {
        padding-left: 0;
        padding-right: 0;
    }
    .page-ban-ca__cta-buttons {
        padding-left: 0;
        padding-right: 0;
    }
    /* Ensure all images within .page-ban-ca are responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Ensure all containers for images and buttons are responsive */
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__hero-section .page-ban-ca__container,
    .page-ban-ca__intro-features-section .page-ban-ca__container,
    .page-ban-ca__popular-games-section .page-ban-ca__container,
    .page-ban-ca__tips-strategy-section .page-ban-ca__container,
    .page-ban-ca__faq-section .page-ban-ca__container,
    .page-ban-ca__cta-bottom-section .page-ban-ca__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}