/* style/ban-ca.css */

/* Custom properties for colors */
:root {
    --color-primary: #FF8C1A;
    --color-secondary: #FFA53A;
    --color-card-bg: #17191F;
    --color-background: #0D0E12;
    --color-text-main: #FFF3E6;
    --color-border: #A84F0C;
    --color-glow: #FFB04D;
    --color-deep-orange: #D96800;
}

.page-ban-ca {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Ensure light text on dark body background */
    background-color: var(--color-background); /* Body background from shared.css, but ensure consistency */
    line-height: 1.6;
    padding-bottom: 50px; /* General padding for main content */
}

/* Fixed Header Spacing: Shared.css handles body padding-top. This section does NOT need it. */
.page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.page-ban-ca__hero-image-wrapper {
    width: 100%;
    height: 675px; /* Fixed height for desktop, will adjust for mobile */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content below */
}

.page-ban-ca__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-ban-ca__hero-content {
    text-align: center;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-ban-ca__main-title {
    font-size: 3.2em; /* Use relative units for H1 but not too big */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
    text-shadow: 0 0 10px rgba(255,165,58,0.7);
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__hero-description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-ban-ca__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
    color: #ffffff;
    border: 2px solid var(--color-glow);
    box-shadow: 0 0 15px var(--color-glow);
}

.page-ban-ca__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-deep-orange) 0%, var(--color-secondary) 100%);
    box-shadow: 0 0 20px var(--color-glow);
    transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
    background-color: var(--color-card-bg); /* Dark background for secondary button */
    color: var(--color-secondary); /* Orange text */
    border: 2px solid var(--color-secondary);
}

.page-ban-ca__btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-card-bg);
    transform: translateY(-2px);
}

.page-ban-ca__content-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ban-ca__section {
    margin-bottom: 60px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(var(--color-border), 0.3); /* Use border color with opacity */
}

.page-ban-ca__section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.page-ban-ca__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(255,165,58,0.5);
}

.page-ban-ca__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

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

.page-ban-ca__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main); /* Light text on dark card background */
}

.page-ban-ca__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.page-ban-ca__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-main);
}

.page-ban-ca__ordered-list,
.page-ban-ca__unordered-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.page-ban-ca__list-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 18px 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-ban-ca__list-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.page-ban-ca__list-item p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-main);
}

.page-ban-ca__list-item a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.page-ban-ca__list-item a:hover {
    color: var(--color-glow);
}

.page-ban-ca__figure {
    margin: 40px auto;
    max-width: 680px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background-color: var(--color-card-bg);
    padding: 15px;
    box-sizing: border-box;
}

.page-ban-ca__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-ban-ca__figcaption {
    text-align: center;
    font-style: italic;
    font-size: 0.95em;
    color: var(--color-text-main);
    margin-top: 15px;
    padding: 0 10px;
}

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

/* FAQ Section */
.page-ban-ca__faq-list {
    margin-top: 30px;
}

.page-ban-ca__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-secondary);
    position: relative;
    list-style: none; /* Hide default marker */
}

.page-ban-ca__faq-question::-webkit-details-marker,
.page-ban-ca__faq-question::marker {
    display: none;
}

.page-ban-ca__faq-qtext {
    flex-grow: 1;
    color: var(--color-secondary); /* Ensure question text is orange */
}

.page-ban-ca__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--color-glow); /* Plus/minus icon color */
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate for open state */
}

.page-ban-ca__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-main);
    opacity: 0.9;
}

/* Call to Action Section */
.page-ban-ca__call-to-action {
    text-align: center;
    padding-top: 50px;
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-ban-ca__main-title {
        font-size: 2.8em;
    }
    .page-ban-ca__section-title {
        font-size: 2em;
    }
    .page-ban-ca__hero-image-wrapper {
        height: 500px;
    }
}

/* Mobile styles (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
    /* 1. Top section title + dual CTA */
    .page-ban-ca__hero-section {
        padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
        margin-bottom: 30px;
    }

    .page-ban-ca__hero-image-wrapper {
        height: 250px;
        margin-bottom: 20px;
    }

    .page-ban-ca__main-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .page-ban-ca__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .page-ban-ca__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 4. Buttons and button containers */
    .page-ban-ca__btn,
    .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-left: 15px !important;
        padding-right: 15px !important;
        font-size: 1em !important;
    }

    /* 2. Single column long text container */
    .page-ban-ca__content-wrapper,
    .page-ban-ca__section,
    .page-ban-ca__card,
    .page-ban-ca__info-cards,
    .page-ban-ca__advantage-grid,
    .page-ban-ca__faq-list,
    .page-ban-ca__article-wrap,
    .page-ban-ca__list-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }
    
    .page-ban-ca__section {
        margin-bottom: 40px;
        padding: 20px 0;
    }

    .page-ban-ca__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .page-ban-ca__text-block,
    .page-ban-ca__card-text,
    .page-ban-ca__list-item p,
    .page-ban-ca__faq-answer p {
        font-size: 0.95em;
        line-height: 1.6;
    }

    .page-ban-ca__info-cards,
    .page-ban-ca__advantage-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-ban-ca__card {
        padding: 20px;
    }

    /* 3. Generic images and figures */
    .page-ban-ca img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-ban-ca__figure {
        margin: 30px auto;
        padding: 10px;
    }

    .page-ban-ca__figcaption {
        font-size: 0.9em;
    }

    .page-ban-ca__list-item {
        padding: 15px 20px;
        margin-bottom: 10px;
    }

    .page-ban-ca__list-title {
        font-size: 1.1em;
        margin-bottom: 5px;
    }

    /* FAQ specific for mobile */
    .page-ban-ca__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-ban-ca__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* 5. Registration tutorial & FAQ blocks (generic list items and FAQ items covered) */
    /* No explicit registration tutorial block, but lists are handled */
}