/* 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 backgrounds */
    line-height: 1.6;
    background-color: #F5F7FA; /* Custom background color */
}

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

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

.page-ban-ca__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
}

.page-ban-ca__dark-section {
    background: #E53935; /* Main brand color */
    color: #ffffff;
    padding: 60px 0;
}
.page-ban-ca__dark-section .page-ban-ca__section-title {
    color: #ffffff;
}
.page-ban-ca__dark-section .page-ban-ca__text-block {
    color: #ffffff;
}

.page-ban-ca__light-bg {
    background: #ffffff; /* Card background */
    color: #333333;
}

/* Buttons */
.page-ban-ca__cta-button,
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca a[class*="button"],
.page-ban-ca a[class*="btn"] {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    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: #f0f0f0;
    transform: translateY(-2px);
}

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

/* HERO Section */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Adhering to the 10px top padding rule */
    padding-bottom: 60px;
    background-color: #F5F7FA; /* Light background for hero */
}

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

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

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

.page-ban-ca__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-ban-ca__hero-image {
    flex: 1 1 40%;
    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 (with feature icons) */
.page-ban-ca__intro-section {
    padding: 60px 0;
}

.page-ban-ca__intro-section .page-ban-ca__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark section */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__icon-box-media {
    width: 200px; /* Fixed size for square */
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FF5A4F; /* Auxiliary color border */
    box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.3);
}

.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: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff; /* Text color for dark section */
}

.page-ban-ca__feature-description {
    font-size: 0.95em;
    color: #f0f0f0; /* Slightly lighter text for dark section */
}

/* Game Types Section */
.page-ban-ca__game-types-section {
    padding: 60px 0;
    background-color: #F5F7FA;
}

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

.page-ban-ca__game-card {
    background: #ffffff; /* Card background */
    border: 1px solid #E0E0E0; /* Border color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.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.4em;
    font-weight: 700;
    margin: 20px 15px 10px;
    color: #E53935;
}
.page-ban-ca__game-card-title a {
    color: #E53935;
    text-decoration: none;
}
.page-ban-ca__game-card-title a:hover {
    text-decoration: underline;
}

.page-ban-ca__game-card-description {
    font-size: 0.95em;
    color: #333333;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

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

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

.page-ban-ca__guide-section .page-ban-ca__section-title {
    color: #E53935;
}

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

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

.page-ban-ca__guide-list {
    list-style: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
    color: #333333;
}

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

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

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

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

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

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

.page-ban-ca__promo-section .page-ban-ca__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

.page-ban-ca__promo-card {
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    background: #ffffff; /* Card background */
    color: #333333;
    transition: transform 0.3s ease;
}
.page-ban-ca__promo-card:hover {
    transform: translateY(-5px);
}

.page-ban-ca__promo-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #E53935;
}

.page-ban-ca__promo-description {
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-ban-ca__view-all-promo-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

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

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

.page-ban-ca__faq-item {
    background: #ffffff; /* Card background */
    border: 1px solid #E0E0E0; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #333333;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    color: #E53935;
    background: #fdfdfd;
    border-bottom: 1px solid #E0E0E0;
}
.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
    border-bottom: none;
}
.page-ban-ca__faq-question::marker,
.page-ban-ca__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FF5A4F;
    transition: transform 0.3s ease;
}

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

.page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
}

/* Final CTA Section */
.page-ban-ca__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-ban-ca__final-cta-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-ban-ca__hero-container,
    .page-ban-ca__guide-content {
        flex-direction: column;
        text-align: center;
    }

    .page-ban-ca__hero-content,
    .page-ban-ca__guide-text {
        text-align: center;
        flex: none;
        width: 100%;
    }

    .page-ban-ca__hero-cta-buttons,
    .page-ban-ca__final-cta-buttons {
        justify-content: center;
    }

    .page-ban-ca__hero-image,
    .page-ban-ca__guide-image {
        flex: none;
        width: 100%;
    }

    .page-ban-ca__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Enforce 10px top padding */
        padding-bottom: 40px !important;
    }
    .page-ban-ca__hero-container {
        padding: 20px 15px !important;
        gap: 20px !important;
    }
    .page-ban-ca__hero-title {
        font-size: clamp(2em, 8vw, 2.5em) !important;
    }
    .page-ban-ca__hero-description {
        font-size: 1em !important;
    }
    .page-ban-ca__hero-cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .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 !important;
        padding-right: 15px !important;
    }
    .page-ban-ca__hero-image {
        padding: 0 15px !important;
    }
    .page-ban-ca__hero-main-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Intro Section */
    .page-ban-ca__intro-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__intro-section .page-ban-ca__container {
        padding: 0 15px !important;
    }
    .page-ban-ca__features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-ban-ca__icon-box-media {
        width: 150px !important; /* Ensure square for mobile */
        height: 150px !important;
        border-width: 3px !important;
        box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.2) !important;
    }
    .page-ban-ca__feature-title {
        font-size: 1.3em !important;
    }
    .page-ban-ca__feature-description {
        font-size: 0.9em !important;
    }

    /* Game Types Section */
    .page-ban-ca__game-types-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__game-types-section .page-ban-ca__container {
        padding: 0 15px !important;
    }
    .page-ban-ca__game-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-ban-ca__game-card {
        padding-bottom: 15px !important;
    }
    .page-ban-ca__game-card-img {
         /* Adjust fixed height for mobile */
    }
    .page-ban-ca__game-card-btn {
        width: calc(100% - 30px) !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    /* Guide Section */
    .page-ban-ca__guide-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__guide-section .page-ban-ca__container {
        padding: 0 15px !important;
    }
    .page-ban-ca__guide-content {
        gap: 20px !important;
    }
    .page-ban-ca__guide-text,
    .page-ban-ca__guide-image {
        padding: 0 15px !important;
    }
    .page-ban-ca__guide-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Promo Section */
    .page-ban-ca__promo-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__promo-section .page-ban-ca__container {
        padding: 0 15px !important;
    }
    .page-ban-ca__promo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-ban-ca__promo-card {
        padding: 20px !important;
    }
    .page-ban-ca__view-all-promo-btn {
        width: calc(100% - 30px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* FAQ Section */
    .page-ban-ca__faq-section {
        padding: 40px 0 !important;
    }
    .page-ban-ca__faq-section .page-ban-ca__container {
        padding: 0 15px !important;
    }
    .page-ban-ca__faq-question {
        padding: 15px 20px !important;
        font-size: 1em !important;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px !important;
        font-size: 0.95em !important;
    }

    /* Final CTA Section */
    .page-ban-ca__final-cta-section {
        padding: 50px 0 !important;
    }
    .page-ban-ca__final-cta-content {
        padding: 0 15px !important;
    }
    .page-ban-ca__final-cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* General image responsiveness */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-ban-ca__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}