/* Base styles for .page-ban-ca */
.page-ban-ca {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main */
    background-color: #B71C1C; /* Background color from custom palette */
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header-offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-ban-ca__hero-image-container {
    width: 100%;
    max-height: 675px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

.page-ban-ca__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px;
    min-height: 200px;
}

.page-ban-ca__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 20px;
    padding: 0 20px;
}

.page-ban-ca__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size with clamp */
    font-weight: bold;
    color: #FFD86A; /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__hero-description {
    font-size: 1.15rem;
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-ban-ca__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
    color: #ffffff; /* Button text always white */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* General Section Styling */
.page-ban-ca__section {
    padding: 60px 0;
    background-color: #B71C1C; /* Consistent background */
}

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

.page-ban-ca__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD86A; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #FFF5E1;
}

.page-ban-ca__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
    object-fit: cover;
}

/* Feature List */
.page-ban-ca__feature-list,
.page-ban-ca__strategy-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.page-ban-ca__feature-item,
.page-ban-ca__strategy-item {
    background-color: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #FFF5E1;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure equal height */
}

.page-ban-ca__feature-title,
.page-ban-ca__strategy-title {
    font-size: 1.5rem;
    color: #FFD86A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ban-ca__feature-description,
.page-ban-ca__strategy-description {
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

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

.page-ban-ca__card {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #FFF5E1;
}

.page-ban-ca__card-image {
    width: 100%;
    height: 200px; /* Fixed height for cards */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-ban-ca__card-title {
    font-size: 1.4rem;
    color: #FFD86A;
    padding: 15px 20px 10px;
    font-weight: bold;
}

.page-ban-ca__card-description {
    font-size: 1rem;
    padding: 0 20px 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.page-ban-ca__card .page-ban-ca__btn-primary,
.page-ban-ca__card .page-ban-ca__btn-secondary {
    margin: 0 20px 20px;
    width: auto;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 1rem;
}

/* Dark background for promo cards */
.page-ban-ca__dark-bg {
  background-color: #7A0E0E; /* Deep Red */
  color: #ffffff; /* Forced white text for better contrast */
}
.page-ban-ca__dark-bg .page-ban-ca__card-title {
    color: #FFCC66; /* Glow for titles on dark background */
}
.page-ban-ca__dark-bg .page-ban-ca__btn-secondary {
    background: #FFD86A;
    color: #C91F17;
    border-color: #C91F17;
}


/* How-to-play Steps */
.page-ban-ca__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-ban-ca__step-item {
    background-color: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #FFF5E1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-ban-ca__step-title {
    font-size: 1.6rem;
    color: #FFD86A;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-ban-ca__step-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-ban-ca__step-item .page-ban-ca__btn-primary,
.page-ban-ca__step-item .page-ban-ca__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    width: auto;
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 1rem;
}

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

.page-ban-ca__faq-item {
    background-color: #D32F2F; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD86A; /* Gold color for questions */
    cursor: pointer;
    background-color: #C91F17; /* Main color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* Hide default marker */
}
.page-ban-ca__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}
.page-ban-ca__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}


.page-ban-ca__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFF5E1;
}

.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;
    background-color: #B71C1C; /* Background color */
    font-size: 1.05rem;
    color: #FFF5E1;
}
.page-ban-ca__faq-answer p {
    margin-bottom: 10px;
}
.page-ban-ca__faq-answer .page-ban-ca__btn-secondary {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 0.95rem;
}


/* Conclusion Section */
.page-ban-ca__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-ban-ca__hero-description {
        font-size: 1.05rem;
    }
    .page-ban-ca__section-title {
        font-size: 2.2rem;
    }
    .page-ban-ca__feature-list,
    .page-ban-ca__strategy-list,
    .page-ban-ca__game-cards,
    .page-ban-ca__promo-cards,
    .page-ban-ca__step-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-ban-ca__card-image {
        height: 180px;
    }
}


@media (max-width: 768px) {
    /* General Mobile Adjustments */
    .page-ban-ca {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-ban-ca__container {
        padding: 0 15px;
    }
    .page-ban-ca__section {
        padding: 40px 0;
    }
    .page-ban-ca__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-ban-ca__text-block {
        font-size: 1rem;
    }

    /* HERO Section */
    .page-ban-ca__hero-section {
        padding-top: 10px; /* Consistent small padding */
        padding-bottom: 30px;
    }
    .page-ban-ca__hero-content {
        margin-top: 15px;
        padding: 0 15px;
    }
    .page-ban-ca__main-title {
        font-size: 2.2rem; /* Specific mobile font size */
    }
    .page-ban-ca__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* CTA Buttons (Mobile) */
    .page-ban-ca__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !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: 12px 20px !important; /* Adjust padding for mobile */
        font-size: 1rem !important;
    }

    /* Images (Mobile) */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
    }
    /* Content containers for images */
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__container,
    .page-ban-ca__hero-image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-ban-ca__container */
    }

    /* Feature/Strategy Lists (Mobile) */
    .page-ban-ca__feature-list,
    .page-ban-ca__strategy-list,
    .page-ban-ca__step-list {
        grid-template-columns: 1fr; /* Single column for lists */
        gap: 20px;
    }
    .page-ban-ca__feature-item,
    .page-ban-ca__strategy-item,
    .page-ban-ca__step-item {
        padding: 20px;
    }
    .page-ban-ca__feature-title,
    .page-ban-ca__strategy-title,
    .page-ban-ca__step-title {
        font-size: 1.3rem;
    }

    /* Game/Promo Cards (Mobile) */
    .page-ban-ca__game-cards,
    .page-ban-ca__promo-cards {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }
    .page-ban-ca__card {
        width: 100%;
    }
    .page-ban-ca__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }
    .page-ban-ca__card-title {
        font-size: 1.2rem;
    }
    .page-ban-ca__card .page-ban-ca__btn-primary,
    .page-ban-ca__card .page-ban-ca__btn-secondary {
        width: calc(100% - 40px); /* Fill card width minus padding */
        margin-left: 20px;
        margin-right: 20px;
    }

    /* FAQ Section (Mobile) */
    .page-ban-ca__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-ban-ca__faq-answer {
        padding: 15px 20px;
        font-size: 1rem;
    }
}