/* style/ban-ca.css */

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

.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;
    color: #E53935; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-ban-ca__text-block {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

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

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

.page-ban-ca__btn-tertiary {
    background: transparent;
    color: #E53935;
    border: 1px solid #E53935;
    padding: 8px 15px;
    font-size: 14px;
}

.page-ban-ca__btn-tertiary:hover {
    background: #E53935;
    color: #ffffff;
}

/* Image styles */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none; /* Ensure no default borders */
}

/* Main Banner Section (formerly Hero) */
.page-ban-ca__main-banner {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #F5F7FA 0%, #E0E0E0 100%); /* Light gradient background */
}

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

.page-ban-ca__main-banner-content {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

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

.page-ban-ca__main-description {
    font-size: 1.15rem;
    color: #333333;
    margin-bottom: 30px;
    max-width: 600px;
}

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

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

/* Intro Section */
.page-ban-ca__intro-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #FFFFFF; /* Card BG */
    color: #333333;
}

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

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed width for desktop */
    height: 200px; /* Fixed height for desktop */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 3px solid #FF5A4F; /* Auxiliary color border */
}

.page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image is also round */
}

.page-ban-ca__feature-title {
    font-size: 24px;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-ban-ca__feature-description {
    font-size: 16px;
    color: #333333;
}

/* Game Types Section */
.page-ban-ca__game-types-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #E53935; /* Main brand color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-ban-ca__game-types-section .page-ban-ca__section-title {
    color: #ffffff;
}

.page-ban-ca__game-types-section .page-ban-ca__text-block {
    color: #f0f0f0;
}

.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: #FFFFFF; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.page-ban-ca__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    object-fit: cover;
}

.page-ban-ca__game-card .page-ban-ca__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #333333;
}

.page-ban-ca__game-card .page-ban-ca__card-title {
    font-size: 22px;
    color: #E53935;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ban-ca__game-card .page-ban-ca__card-description {
    font-size: 16px;
    color: #333333;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-ban-ca__guide-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #F5F7FA; /* Page background color */
    color: #333333;
}

.page-ban-ca__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-ban-ca__guide-item {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-ban-ca__guide-step-title {
    font-size: 24px;
    color: #E53935;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-ban-ca__guide-item p {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
}

.page-ban-ca__guide-image {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    max-width: 100%; /* Ensure images inside guide are responsive */
    height: auto;
}

/* Tips Section */
.page-ban-ca__tips-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #E53935; /* Main brand color for dark background */
    color: #ffffff; /* White text for dark background */
}

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

.page-ban-ca__tips-section .page-ban-ca__text-block {
    color: #f0f0f0;
}

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

.page-ban-ca__tip-item {
    background: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #333333;
    display: flex;
    flex-direction: column;
}

.page-ban-ca__tip-title {
    font-size: 22px;
    color: #E53935;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ban-ca__tip-item p {
    font-size: 16px;
    color: #333333;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-ban-ca__tip-image {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* Promo Section */
.page-ban-ca__promo-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #F5F7FA; /* Page background color */
    color: #333333;
}

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

.page-ban-ca__promo-card {
    background: #FFFFFF; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.page-ban-ca__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for promo card images */
    object-fit: cover;
}

.page-ban-ca__promo-card .page-ban-ca__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #333333;
}

.page-ban-ca__promo-card .page-ban-ca__card-title {
    font-size: 22px;
    color: #E53935;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-ban-ca__promo-card .page-ban-ca__card-description {
    font-size: 16px;
    color: #333333;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-ban-ca__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background: #E53935; /* Main brand color for dark background */
    color: #ffffff; /* White text for dark background */
}

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

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

.page-ban-ca__faq-item {
    background: #FFFFFF; /* Card BG */
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    color: #E53935;
    cursor: pointer;
    list-style: none; /* Hide 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-question .page-ban-ca__faq-toggle {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-ban-ca__container {
        padding: 30px 15px;
    }
    .page-ban-ca__main-banner-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-ban-ca__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-ban-ca__section-title {
        font-size: 30px;
    }
    .page-ban-ca__text-block {
        font-size: 17px;
    }
    .page-ban-ca__icon-box-media {
        width: 180px;
        height: 180px;
    }
    .page-ban-ca__game-card img,
    .page-ban-ca__promo-card img {
        
    }
}


@media (max-width: 768px) {
    /* General responsive adjustments */
    .page-ban-ca__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-ban-ca__text-block {
        font-size: 16px;
        margin-bottom: 25px;
        text-align: left; /* Align text left on mobile */
    }
    .page-ban-ca p,
    .page-ban-ca li {
        font-size: 16px;
        line-height: 1.6;
        color: #333333; /* Ensure text color for mobile */
    }

    /* Main Banner Section */
    .page-ban-ca__main-banner {
        padding-top: 10px !important; /* Small top padding, no var(--header-offset) */
        padding-bottom: 40px;
    }
    .page-ban-ca__main-banner-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }
    .page-ban-ca__main-banner-content {
        text-align: center; /* Center content on mobile */
    }
    .page-ban-ca__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for mobile H1 */
        margin-bottom: 15px;
    }
    .page-ban-ca__main-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .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 {
        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;
    }
    .page-ban-ca__main-banner-image {
        width: 100%;
    }

    /* Intro Section - Features Grid */
    .page-ban-ca__intro-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-ban-ca__feature-item {
        padding: 20px;
    }
    .page-ban-ca__icon-box-media {
        width: 150px !important; /* Smaller square for mobile */
        height: 150px !important;
        margin-bottom: 15px;
    }
    .page-ban-ca__feature-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-ban-ca__feature-description {
        font-size: 15px;
    }

    /* Game Types Section */
    .page-ban-ca__game-types-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-ban-ca__game-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-ban-ca__game-card img {
        
    }
    .page-ban-ca__game-card .page-ban-ca__card-title {
        font-size: 20px;
    }
    .page-ban-ca__game-card .page-ban-ca__card-description {
        font-size: 15px;
    }

    /* Guide Section */
    .page-ban-ca__guide-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-ban-ca__guide-item {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-ban-ca__guide-step-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-ban-ca__guide-item p {
        font-size: 15px;
    }
}