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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding for fixed header */
    padding-bottom: 60px;
    background-color: #f5f5f5; /* Light background for contrast */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333; /* Ensure text color for light background */
}

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    color: #017439; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full 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 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-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;
}

.page-ban-ca__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-ban-ca__btn-secondary {
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.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: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__content-area--center {
    text-align: center;
}

.page-ban-ca__section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
    text-align: center;
}

.page-ban-ca__section-title--light {
    color: #ffffff;
}

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

.page-ban-ca__section-description--light {
    color: #f0f0f0;
}

/* Intro Section */
.page-ban-ca__intro-section {
    background-color: #ffffff;
}

.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: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Specific size for feature images */
    height: 200px; /* Maintain square aspect ratio */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.1); /* Subtle ring effect */
}

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

.page-ban-ca__feature-title {
    font-size: 1.35rem;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

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

/* Game List Section */
.page-ban-ca__game-list-section {
    background-color: #017439; /* Dark background */
}

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

.page-ban-ca__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 25px;
}

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

.page-ban-ca__game-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-ban-ca__game-card-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
}

.page-ban-ca__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Guide Section */
.page-ban-ca__guide-section {
    background-color: #ffffff;
}

.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: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.page-ban-ca__guide-step-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

/* Tips Section */
.page-ban-ca__tips-section {
    background-color: #017439; /* Dark background */
}

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

.page-ban-ca__tip-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 25px;
}

.page-ban-ca__tip-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-ban-ca__tip-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-ban-ca__tip-card-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Promo Section */
.page-ban-ca__promo-section {
    background-color: #f5f5f5;
}

.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 700px;
    text-align: left;
}

.page-ban-ca__promo-item {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-ban-ca__promo-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    background-color: #017439; /* Dark background */
}

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

.page-ban-ca__faq-item {
    background-color: #ffffff;
    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: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0f8f0; /* Light green tint for question */
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Remove default marker for details summary */
}

.page-ban-ca__faq-question::-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.5rem;
    margin-left: 15px;
    color: #017439;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-ban-ca__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

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

/* Final CTA Section */
.page-ban-ca__final-cta-section {
    background-color: #f5f5f5;
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
    }
    .page-ban-ca__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* HERO Section - Mobile */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Enforce small top padding */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        padding: 20px 15px; /* Adjust padding for mobile */
    }
    .page-ban-ca__main-title {
        font-size: 2rem; /* Smaller font size on mobile */
        text-align: center;
    }
    .page-ban-ca__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px; /* Add padding to container */
        padding-right: 15px;
    }
    .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;
    }

    /* General Content Area - Mobile */
    .page-ban-ca__content-area {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    /* Intro Section - Mobile */
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-ban-ca__icon-box-media {
        width: 180px; /* Slightly smaller for mobile */
        height: 180px;
    }
    .page-ban-ca__feature-title {
        font-size: 1.2rem;
    }

    /* Game List Section - Mobile */
    .page-ban-ca__game-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__game-card-image {
        height: 180px; /* Adjust image height for mobile cards */
    }
    .page-ban-ca__game-card-title {
        font-size: 1.25rem;
    }
    .page-ban-ca__game-card-text {
        font-size: 0.95rem;
    }

    /* Guide Section - Mobile */
    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__guide-step-title {
        font-size: 1.2rem;
    }
    .page-ban-ca__guide-step-text {
        font-size: 0.95rem;
    }

    /* Tips Section - Mobile */
    .page-ban-ca__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-ban-ca__tip-card-image {
        height: 180px; /* Adjust image height for mobile cards */
    }
    .page-ban-ca__tip-card-title {
        font-size: 1.25rem;
    }
    .page-ban-ca__tip-card-text {
        font-size: 0.95rem;
    }

    /* Promo Section - Mobile */
    .page-ban-ca__promo-list {
        margin: 30px auto;
    }
    .page-ban-ca__promo-item {
        font-size: 1rem;
    }

    /* FAQ Section - Mobile */
    .page-ban-ca__faq-question {
        padding: 15px 20px;
        font-size: 1.05rem;
    }
    .page-ban-ca__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

    /* Universal Image Adaptation for Mobile */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    /* Exception for circular images */
    .page-ban-ca__icon-box-media img {
        height: 100% !important; /* Override auto to maintain circularity */
        object-fit: cover !important;
    }
}