/* style/ban-ca.css */

/* General styles for the page-ban-ca scope */
.page-ban-ca {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

.page-ban-ca__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-ban-ca__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #F8F8F8; /* Light background for hero */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #333333;
}

.page-ban-ca__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 800;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-ban-ca__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555555;
}

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

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

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

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

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

.page-ban-ca__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2d;
}

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

.page-ban-ca__hero-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below img */
}

/* Intro Section (Module 1 - Features Grid) */
.page-ban-ca__intro-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light 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: #F9F9F9;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
    transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
    width: 240px;
    height: 240px;
    aspect-ratio: 1/1; /* Ensure perfect square */
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #017439; /* Brand color border */
    box-shadow: 0 0 0 5px rgba(1, 116, 57, 0.2);
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the square/circle without distortion */
    border-radius: 50%; /* Ensure image is also circular */
    display: block;
}

.page-ban-ca__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #017439;
    margin-bottom: 15px;
}

.page-ban-ca__feature-text {
    font-size: 1em;
    line-height: 1.6;
    color: #666666;
}

/* Guide Section */
.page-ban-ca__guide-section {
    padding: 60px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF; /* White text for dark background */
}

.page-ban-ca__guide-section .page-ban-ca__section-title,
.page-ban-ca__guide-section .page-ban-ca__section-description {
    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-step-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-step-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-ban-ca__guide-step-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFFF00; /* Yellow for step titles */
    margin-bottom: 15px;
}

.page-ban-ca__guide-step-text {
    font-size: 1em;
    line-height: 1.6;
    color: #E0E0E0;
}

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

/* Popular Games Section */
.page-ban-ca__popular-games-section {
    padding: 60px 0;
    background-color: #F8F8F8; /* Light background */
}

.page-ban-ca__game-list {
    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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-ban-ca__game-card:hover {
    transform: translateY(-5px);
}

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

.page-ban-ca__game-card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #017439;
    margin: 20px 15px 10px;
}

.page-ban-ca__game-card-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666666;
    padding: 0 15px 20px;
}

.page-ban-ca__game-card-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 20px;
    padding: 10px 15px;
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login text color */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-ban-ca__game-card-btn:hover {
    background-color: #a30606;
}

/* Promo Section */
.page-ban-ca__promo-section {
    padding: 60px 0;
    background-color: #017439; /* Dark brand color background */
    color: #FFFFFF;
}

.page-ban-ca__promo-section .page-ban-ca__section-title,
.page-ban-ca__promo-section .page-ban-ca__section-description {
    color: #FFFFFF;
}

.page-ban-ca__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-ban-ca__promo-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__promo-item-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFFF00; /* Yellow for promo titles */
    margin-bottom: 10px;
}

.page-ban-ca__promo-item-text {
    font-size: 1em;
    line-height: 1.6;
    color: #E0E0E0;
}

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

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

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

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #EBF7EE; /* Lighter shade of brand color */
    border-bottom: 1px solid rgba(1, 116, 57, 0.1);
    list-style: none; /* Hide default marker for details */
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-ban-ca__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #E0E0E0;
}

/* Universal image styling */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-ban-ca__container,
    .page-ban-ca__hero-container,
    .page-ban-ca__features-grid,
    .page-ban-ca__guide-steps,
    .page-ban-ca__game-list,
    .page-ban-ca__promo-list,
    .page-ban-ca__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-ban-ca__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 30px;
    }

    .page-ban-ca__hero-content {
        order: 2; /* Content below image */
        text-align: center;
    }

    .page-ban-ca__hero-image {
        order: 1; /* Image above content */
    }

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

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

    .page-ban-ca__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        flex-wrap: wrap !important;
    }

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

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

    .page-ban-ca__features-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-ban-ca__icon-box-media {
        width: 180px; /* Smaller square for mobile */
        height: 180px;
        border-width: 3px;
    }

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

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

    .page-ban-ca__guide-steps {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

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

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

    .page-ban-ca__guide-cta {
        margin-top: 30px;
    }

    /* Popular Games Section */
    .page-ban-ca__popular-games-section {
        padding: 40px 0;
    }

    .page-ban-ca__game-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-ban-ca__game-card-img {
         /* Slightly smaller fixed height */
    }

    .page-ban-ca__game-card-title {
        font-size: 1.2em;
        margin: 15px 10px 8px;
    }

    .page-ban-ca__game-card-text {
        font-size: 0.9em;
        padding: 0 10px 15px;
    }

    .page-ban-ca__game-card-btn {
        width: calc(100% - 20px);
        margin: 0 10px 15px;
    }

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

    .page-ban-ca__promo-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 25px;
    }

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

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

    .page-ban-ca__promo-cta {
        margin-top: 30px;
    }

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

    .page-ban-ca__faq-list {
        margin-top: 25px;
    }

    .page-ban-ca__faq-item {
        margin-bottom: 10px;
    }

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

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

    /* Universal image and container mobile adaptation */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}