/* style/ban-ca.css */
.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* 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: 36px;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

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

.page-ban-ca__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__text-block--light {
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Main color */
    border: 2px solid #2F6BFF; /* Main color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
    background: #e0eaff; /* Light blue on hover */
    color: #2F6BFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__btn-large {
    padding: 15px 35px;
    font-size: 18px;
}

.page-ban-ca__btn-small {
    padding: 8px 18px;
    font-size: 14px;
}

/* HERO Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, body handles main offset */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Background */
}

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

.page-ban-ca__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
    color: #1F2D3D; /* Text Main */
}

.page-ban-ca__main-title {
    font-size: clamp(32px, 4vw, 48px); /* Responsive font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
}

.page-ban-ca__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #1F2D3D; /* Text Main */
}

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

.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: 15px;
    box-shadow: 0 10px 30px rgba(47, 107, 255, 0.2);
    display: block; /* Ensure no extra space below image */
}

/* Intro Section */
.page-ban-ca__intro-section {
    background-color: #F4F7FB; /* Background */
    padding: 60px 0;
}

/* Features Section (Module 1 equivalent) */
.page-ban-ca__features-section {
    background-color: #ffffff; /* Card BG */
    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 {
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
    width: 240px;
    height: 240px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #D6E2FF; /* Border color for background */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px #D6E2FF; /* Glow */
}

.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: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2F6BFF; /* Main color */
}

.page-ban-ca__feature-description {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

/* Games Section */
.page-ban-ca__games-section {
    background-color: #2F6BFF; /* Main color - Dark background */
    padding: 60px 0;
    color: #ffffff;
}

.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: #ffffff; /* Card BG */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-ban-ca__game-title {
    font-size: 22px;
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-ban-ca__game-description {
    font-size: 15px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

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

/* Guide Section */
.page-ban-ca__guide-section {
    background-color: #F4F7FB; /* Background */
    padding: 60px 0;
}

.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: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.page-ban-ca__guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #2F6BFF; /* Main color */
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-ban-ca__guide-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2F6BFF; /* Main color */
}

.page-ban-ca__guide-description {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
}

/* Tips Section */
.page-ban-ca__tips-section {
    background-color: #ffffff; /* Card BG */
    padding: 60px 0;
}

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

.page-ban-ca__tip-item {
    background: #ffffff; /* Card BG */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-ban-ca__tip-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-ban-ca__tip-title {
    font-size: 22px;
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-ban-ca__tip-description {
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1;
}

/* Promo Section */
.page-ban-ca__promo-section {
    background-color: #6FA3FF; /* Accent color - Medium background */
    padding: 60px 0;
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
}

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

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

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

.page-ban-ca__faq-item {
    background: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    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-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-ban-ca__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    margin-left: 15px;
    line-height: 1;
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #1F2D3D; /* Text Main */
    line-height: 1.6;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-ban-ca__container {
        padding: 30px 20px;
    }

    .page-ban-ca__section-title {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .page-ban-ca__main-title {
        font-size: clamp(28px, 4vw, 42px);
    }

    .page-ban-ca__hero-description {
        font-size: 16px;
    }

    .page-ban-ca__feature-title,
    .page-ban-ca__game-title,
    .page-ban-ca__guide-title,
    .page-ban-ca__tip-title {
        font-size: 20px;
    }

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

@media (max-width: 768px) {
    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles main offset */
        padding-bottom: 40px;
    }

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

    .page-ban-ca__hero-content {
        text-align: center;
    }

    .page-ban-ca__main-title {
        font-size: clamp(28px, 8vw, 38px) !important; /* Ensure it fits on mobile */
        margin-bottom: 15px;
    }

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

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .page-ban-ca__btn-primary,
    .page-ban-ca__btn-secondary,
    .page-ban-ca__btn-large,
    .page-ban-ca__btn-small,
    .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__hero-image {
        order: -1; /* Image appears above content on mobile */
    }

    /* General containers and padding */
    .page-ban-ca__container {
        padding: 25px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-ban-ca__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-ban-ca__text-block {
        font-size: 15px;
    }

    /* Module 1: Features Section */
    .page-ban-ca__features-section {
        padding: 40px 0;
    }

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

    .page-ban-ca__feature-item {
        padding: 25px;
    }

    .page-ban-ca__icon-box-media {
        width: 150px; /* Smaller square for mobile */
        height: 150px;
        margin-bottom: 15px;
        box-shadow: 0 0 0 5px #D6E2FF;
    }

    .page-ban-ca__feature-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

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

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

    .page-ban-ca__game-card {
        padding-bottom: 15px;
    }

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

    .page-ban-ca__game-title {
        font-size: 20px;
    }

    .page-ban-ca__game-description {
        font-size: 14px;
    }

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

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

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

    .page-ban-ca__guide-step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 15px;
    }

    .page-ban-ca__guide-title {
        font-size: 20px;
    }

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

    .page-ban-ca__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-ban-ca__tip-image {
        height: 200px;
        margin-bottom: 15px;
    }

    .page-ban-ca__tip-title {
        font-size: 20px;
    }

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

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

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

    .page-ban-ca__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }

    .page-ban-ca__faq-toggle {
        font-size: 20px;
    }

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

    /* Ensure all images are responsive */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Specific override for icon-box-media img to maintain aspect ratio for circular images */
    .page-ban-ca__icon-box-media img {
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Button containers responsive */
    .page-ban-ca__cta-buttons,
    .page-ban-ca__button-group,
    .page-ban-ca__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-ban-ca__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}