/* style/ban-ca.css */

/* General Styles */
.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
}

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

.page-ban-ca__section-title {
    font-size: clamp(28px, 4vw, 38px); /* H1 font size rule */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #E53935; /* Main color for titles */
}

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

.page-ban-ca__section-description {
    font-size: clamp(16px, 2vw, 18px);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Images */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Buttons */
.page-ban-ca__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

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

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

.page-ban-ca__cta-button--secondary {
    background: #ffffff;
    color: #E53935; /* Main color */
    border: 2px solid #E53935; /* Main color border */
}

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

/* Hero Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding as shared.css handles body padding */
    padding-bottom: 60px;
    background-color: #F5F7FA; /* Background */
}

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

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

.page-ban-ca__hero-title {
    font-size: clamp(36px, 5vw, 48px); /* H1 font size rule */
    font-weight: 800;
    margin-bottom: 20px;
    color: #E53935; /* Main color */
    line-height: 1.2;
}

.page-ban-ca__hero-description {
    font-size: clamp(18px, 2.5vw, 20px);
    margin-bottom: 30px;
    color: #333333; /* Text Main */
}

.page-ban-ca__hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.page-ban-ca__hero-main-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Intro Section (Module 1) */
.page-ban-ca__intro-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

.page-ban-ca__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-ban-ca__feature-item {
    background: #ffffff; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px 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: 200px; /* Square size for feature icons */
    height: 200px; /* Square size for feature icons */
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FF5A4F; /* Auxiliary color */
    box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.2);
}

.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: 700;
    margin-bottom: 15px;
    color: #E53935; /* Main color */
}

.page-ban-ca__feature-text {
    font-size: 16px;
    color: #333333; /* Text Main */
}

/* Game Showcase Section */
.page-ban-ca__game-showcase {
    padding: 60px 0;
    background-color: #E53935; /* Main color for dark background */
}

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

.page-ban-ca__game-card {
    background: #ffffff; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
}

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

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

.page-ban-ca__game-card-desc {
    font-size: 15px;
    color: #333333; /* Text Main */
    margin-bottom: 20px;
    padding: 0 15px;
}

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

.page-ban-ca__guide-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

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

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

.page-ban-ca__guide-main-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #333333; /* Text Main */
}

.page-ban-ca__guide-list li {
    margin-bottom: 10px;
    font-size: 17px;
}

.page-ban-ca__guide-list strong {
    color: #E53935; /* Main color */
}

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

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

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

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #333333; /* Text Main */
    cursor: pointer;
    background-color: #f9f9f9;
    user-select: none;
    list-style: none; /* Hide default marker for <summary> */
}

.page-ban-ca__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> in webkit */
}

.page-ban-ca__faq-qtext {
    flex-grow: 1;
    color: #E53935; /* Main color */
}

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

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

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

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

/* Call to Action Section */
.page-ban-ca__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #FF5A4F; /* Auxiliary color for a vibrant CTA */
    color: #ffffff;
}

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

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

.page-ban-ca__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-ban-ca__hero-container {
        padding: 30px 16px;
        gap: 30px;
    }
    .page-ban-ca__hero-content,
    .page-ban-ca__hero-image {
        flex: 1 1 100%;
    }
    .page-ban-ca__hero-title {
        text-align: center;
    }
    .page-ban-ca__hero-description {
        text-align: center;
    }
    .page-ban-ca__hero-ctas {
        justify-content: center;
    }
    .page-ban-ca__guide-layout {
        flex-direction: column;
    }
    .page-ban-ca__guide-content,
    .page-ban-ca__guide-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-ban-ca__content-area {
        padding: 20px 15px;
    }
    .page-ban-ca__section-title {
        font-size: clamp(24px, 6vw, 32px);
    }
    .page-ban-ca__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* HERO Section Mobile */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }
    .page-ban-ca__hero-title {
        font-size: clamp(30px, 7vw, 38px);
        text-align: center;
    }
    .page-ban-ca__hero-description {
        font-size: 16px;
        text-align: center;
    }
    .page-ban-ca__hero-ctas {
        flex-direction: column;
        gap: 10px;
    }
    .page-ban-ca__hero-main-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons Mobile */
    .page-ban-ca__cta-button {
        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__hero-ctas,
    .page-ban-ca__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Ensure buttons stack */
        gap: 10px;
    }

    /* Intro Section Mobile (Module 1) */
    .page-ban-ca__intro-section {
        padding: 40px 0;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr;
    }
    .page-ban-ca__icon-box-media {
        width: 150px; /* Adjust square size for mobile */
        height: 150px; /* Adjust square size for mobile */
        border: 3px solid #FF5A4F;
        box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.2);
    }
    .page-ban-ca__feature-title {
        font-size: 20px;
    }

    /* Game Showcase Section Mobile */
    .page-ban-ca__game-showcase {
        padding: 40px 0;
    }
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr;
    }
    .page-ban-ca__game-card-img {
        
    }

    /* Guide Section Mobile */
    .page-ban-ca__guide-section {
        padding: 40px 0;
    }
    .page-ban-ca__guide-layout {
        flex-direction: column;
        gap: 20px;
    }
    .page-ban-ca__guide-main-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__guide-list {
        padding-left: 20px;
    }
    .page-ban-ca__guide-list li {
        font-size: 15px;
    }

    /* FAQ Section Mobile */
    .page-ban-ca__faq-section {
        padding: 40px 0;
    }
    .page-ban-ca__faq-question {
        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;
    }

    /* Call to Action Section Mobile */
    .page-ban-ca__cta-section {
        padding: 40px 0;
    }

    /* General Image Mobile Fix */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__hero-section,
    .page-ban-ca__intro-section,
    .page-ban-ca__game-showcase,
    .page-ban-ca__guide-section,
    .page-ban-ca__faq-section,
    .page-ban-ca__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}