/* style/ban-ca.css */
.page-ban-ca {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #333333); /* Default text color */
    background-color: var(--background-color, #F5F7FA); /* Default background */
    line-height: 1.6;
}

/* Base container styling */
.page-ban-ca__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Section Titles */
.page-ban-ca__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main, #333333);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-ban-ca__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
    border-radius: 2px;
}

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

.page-ban-ca__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main, #333333);
}

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

/* Text Blocks */
.page-ban-ca__text-block {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.page-ban-ca__text-block p {
    margin-bottom: 15px;
}

.page-ban-ca__text-block ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.page-ban-ca__text-block li {
    margin-bottom: 8px;
}

.page-ban-ca__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main, #333333);
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%;
}

.page-ban-ca__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-ban-ca__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-ban-ca__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Image styling */
.page-ban-ca img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
    border-radius: 8px;
}

/* Hero Section */
.page-ban-ca__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    overflow: hidden;
}

.page-ban-ca__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first, will change for desktop */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 40px;
}

.page-ban-ca__hero-text-block {
    text-align: center;
    color: #ffffff;
    flex: 1;
}

.page-ban-ca__main-title {
    font-size: clamp(30px, 4.5vw, 56px); /* Responsive font size */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-ban-ca__hero-description {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-ban-ca__hero-image img {
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Lobbies Section */
.page-ban-ca__lobbies-section {
    padding: 60px 0;
    background-color: var(--primary-color, #E53935); /* Main Brand Color */
    color: #ffffff;
}

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

.page-ban-ca__lobby-card {
    background-color: var(--card-bg, #FFFFFF); /* Card BG */
    color: var(--text-main, #333333);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__lobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__lobby-card img {
    margin-bottom: 20px;
    border-radius: 8px;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-ban-ca__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main, #333333);
}

.page-ban-ca__card-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-ban-ca__step-card {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ban-ca__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-ban-ca__step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main, #333333);
}

.page-ban-ca__step-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main, #333333);
}

.page-ban-ca__step-card img {
    margin-top: 20px;
    border: 1px solid var(--border-color, #E0E0E0);
}

.page-ban-ca__additional-info {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color, #E0E0E0);
}

/* Strategy Section */
.page-ban-ca__strategy-section {
    padding: 60px 0;
    background-color: var(--primary-color, #E53935);
    color: #ffffff;
}

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

.page-ban-ca__strategy-text {
    flex: 2;
    color: #ffffff;
}

.page-ban-ca__strategy-text ul {
    list-style: none; /* Remove default list style */
    padding-left: 0;
}

.page-ban-ca__strategy-text li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
}

.page-ban-ca__strategy-text li::before {
    content: '✓'; /* Custom checkmark */
    position: absolute;
    left: 0;
    color: #FFD700; /* Gold color for checkmark */
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

.page-ban-ca__strategy-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.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-color: var(--card-bg, #FFFFFF);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-ban-ca__promo-card img {
    margin-bottom: 20px;
    border-radius: 8px;
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

.page-ban-ca__promo-note {
    text-align: center;
    margin-top: 40px;
    font-size: 15px;
    color: var(--text-main, #333333);
}

.page-ban-ca__promo-note a {
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
}

.page-ban-ca__promo-note a:hover {
    text-decoration: underline;
}

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

.page-ban-ca__faq-list {
    margin-top: 40px;
}

details.page-ban-ca__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #E0E0E0);
    overflow: hidden;
    background: var(--card-bg, #FFFFFF);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main, #333333);
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
    background: #f8f8f8;
}
.page-ban-ca__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}
.page-ban-ca__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #E53935;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    line-height: 1;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
    padding: 0 25px 20px;
    background: #fdfdfd;
    border-radius: 0 0 10px 10px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main, #333333);
}

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

.page-ban-ca__faq-cta {
    margin-top: 50px;
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
    padding: 60px 0;
    background-color: var(--primary-color, #E53935);
    color: #ffffff;
    text-align: center;
}

.page-ban-ca__conclusion-text {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #ffffff;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-ban-ca__hero-content-wrapper {
        flex-direction: row; /* Desktop: row layout */
        text-align: left;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-text-block {
        text-align: left;
    }
    .page-ban-ca__cta-buttons {
        justify-content: flex-start;
    }
    .page-ban-ca__strategy-content {
        flex-direction: row;
    }
    .page-ban-ca__strategy-image {
        order: 2; /* Image on right */
    }
    .page-ban-ca__strategy-text {
        order: 1; /* Text on left */
    }
}

@media (max-width: 1024px) {
    .page-ban-ca__container {
        padding: 20px;
    }
    .page-ban-ca__section-title {
        font-size: 32px;
    }
    .page-ban-ca__hero-image img {
        height: auto; /* Allow image to scale down */
    }
}

@media (max-width: 768px) {
    .page-ban-ca__container,
    .page-ban-ca__hero-content-wrapper,
    .page-ban-ca__lobbies-grid,
    .page-ban-ca__guide-steps,
    .page-ban-ca__strategy-content,
    .page-ban-ca__promo-cards,
    .page-ban-ca__faq-list,
    .page-ban-ca__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* HERO 主图区域 */
    .page-ban-ca__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .page-ban-ca__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        height: auto !important;
    }
    .page-ban-ca__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-ban-ca__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-ban-ca__hero-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    /* Section Titles */
    .page-ban-ca__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
}