/* style/ban-ca-bi-quyet-san-thuong.css */

/* Variables and base styles */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg: #FFFFFF;
    --page-bg: #F5F7FA;
    --text-main: #333333;
    --border-color: #E0E0E0;
    --header-offset: 120px; /* Default, will be overridden by shared.css if present */
}

.page-ban-ca-bi-quyet-san-thuong {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for light body background */
    background-color: var(--page-bg);
}

/* Hero Section */
.page-ban-ca-bi-quyet-san-thuong__hero-section {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff; /* White text for dark background */
    padding: 60px 20px;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
}

.page-ban-ca-bi-quyet-san-thuong__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ban-ca-bi-quyet-san-thuong__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, no fixed huge size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca-bi-quyet-san-thuong__intro-text {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ban-ca-bi-quyet-san-thuong__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for buttons group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-ban-ca-bi-quyet-san-thuong__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    flex-grow: 1; /* Allow buttons to grow */
    min-width: 180px; /* Minimum width for buttons */
}

.page-ban-ca-bi-quyet-san-thuong__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-ban-ca-bi-quyet-san-thuong__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca-bi-quyet-san-thuong__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-ban-ca-bi-quyet-san-thuong__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Content Area */
.page-ban-ca-bi-quyet-san-thuong__content-area {
    padding: 40px 0;
    background-color: var(--page-bg);
    color: var(--text-main);
}

.page-ban-ca-bi-quyet-san-thuong__article-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-ban-ca-bi-quyet-san-thuong__section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page-ban-ca-bi-quyet-san-thuong__article-wrap p {
    margin-bottom: 1em;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-ban-ca-bi-quyet-san-thuong__figure {
    margin: 30px 0;
    text-align: center;
}

.page-ban-ca-bi-quyet-san-thuong__figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-ban-ca-bi-quyet-san-thuong__figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Info Cards */
.page-ban-ca-bi-quyet-san-thuong__info-card,
.page-ban-ca-bi-quyet-san-thuong__warning-card,
.page-ban-ca-bi-quyet-san-thuong__promo-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.page-ban-ca-bi-quyet-san-thuong__card-title,
.page-ban-ca-bi-quyet-san-thuong__promo-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-ban-ca-bi-quyet-san-thuong__warning-card {
    background-color: #fff3cd; /* Light warning yellow */
    border-color: #ffeeba;
    color: #856404; /* Darker text for warning */
}
.page-ban-ca-bi-quyet-san-thuong__warning-card .page-ban-ca-bi-quyet-san-thuong__card-title {
    color: #856404;
}
.page-ban-ca-bi-quyet-san-thuong__warning-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}
.page-ban-ca-bi-quyet-san-thuong__warning-card li {
    margin-bottom: 0.5em;
}

/* Step List (Tutorial) */
.page-ban-ca-bi-quyet-san-thuong__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-ban-ca-bi-quyet-san-thuong__step-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca-bi-quyet-san-thuong__step-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Promo List */
.page-ban-ca-bi-quyet-san-thuong__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-ban-ca-bi-quyet-san-thuong__promo-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca-bi-quyet-san-thuong__promo-item-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

/* FAQ Section */
.page-ban-ca-bi-quyet-san-thuong__faq-list {
    margin-top: 30px;
}

.page-ban-ca-bi-quyet-san-thuong__faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca-bi-quyet-san-thuong__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* For details/summary */
}
.page-ban-ca-bi-quyet-san-thuong__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}
.page-ban-ca-bi-quyet-san-thuong__faq-question::marker {
    display: none; /* Hide default marker */
}

.page-ban-ca-bi-quyet-san-thuong__faq-qtext {
    flex-grow: 1;
}

.page-ban-ca-bi-quyet-san-thuong__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-ban-ca-bi-quyet-san-thuong__faq-item[open] .page-ban-ca-bi-quyet-san-thuong__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate + */
}

.page-ban-ca-bi-quyet-san-thuong__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: #555;
    background-color: #f9f9f9;
}

/* General list styles */
.page-ban-ca-bi-quyet-san-thuong ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1em;
}

.page-ban-ca-bi-quyet-san-thuong ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 1em;
}

.page-ban-ca-bi-quyet-san-thuong li {
    margin-bottom: 0.5em;
}

/* Bottom CTA buttons */
.page-ban-ca-bi-quyet-san-thuong__cta-buttons--bottom,
.page-ban-ca-bi-quyet-san-thuong__cta-buttons--final {
    margin-top: 40px;
    margin-bottom: 20px;
    max-width: 700px;
}

/* Responsive Styles */
/* @media (max-width: 1024px) for tablet */
@media (max-width: 1024px) {
    .page-ban-ca-bi-quyet-san-thuong__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-ban-ca-bi-quyet-san-thuong__intro-text {
        font-size: 1.1rem;
    }
    .page-ban-ca-bi-quyet-san-thuong__section-title {
        font-size: 1.8rem;
    }
    .page-ban-ca-bi-quyet-san-thuong__card-title,
    .page-ban-ca-bi-quyet-san-thuong__promo-title {
        font-size: 1.4rem;
    }
    .page-ban-ca-bi-quyet-san-thuong__step-title,
    .page-ban-ca-bi-quyet-san-thuong__promo-item-title {
        font-size: 1.2rem;
    }
    .page-ban-ca-bi-quyet-san-thuong__faq-question {
        font-size: 1.05rem;
    }
}

/* Mobile responsive styles (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. 顶区标题 + 双 CTA */
    .page-ban-ca-bi-quyet-san-thuong__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-ban-ca-bi-quyet-san-thuong__container {
        padding: 0 15px;
    }
    .page-ban-ca-bi-quyet-san-thuong__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-ban-ca-bi-quyet-san-thuong__intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-ban-ca-bi-quyet-san-thuong__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
    }
    .page-ban-ca-bi-quyet-san-thuong__btn {
        width: 100% !important; /* Full width buttons */
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 2. 单栏长文容器 */
    .page-ban-ca-bi-quyet-san-thuong__content-area {
        padding: 30px 0;
    }
    .page-ban-ca-bi-quyet-san-thuong__article-wrap {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca-bi-quyet-san-thuong__section-title {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-ban-ca-bi-quyet-san-thuong__article-wrap p {
        font-size: 0.95rem;
    }
    .page-ban-ca-bi-quyet-san-thuong__info-card,
    .page-ban-ca-bi-quyet-san-thuong__warning-card,
    .page-ban-ca-bi-quyet-san-thuong__promo-box,
    .page-ban-ca-bi-quyet-san-thuong__step-item,
    .page-ban-ca-bi-quyet-san-thuong__promo-item,
    .page-ban-ca-bi-quyet-san-thuong__faq-item {
        padding: 20px;
        margin-bottom: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca-bi-quyet-san-thuong__card-title,
    .page-ban-ca-bi-quyet-san-thuong__promo-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .page-ban-ca-bi-quyet-san-thuong__step-title,
    .page-ban-ca-bi-quyet-san-thuong__promo-item-title {
        font-size: 1.1rem;
    }

    /* 3. 通用图片与 figure */
    .page-ban-ca-bi-quyet-san-thuong img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Remove min-width for mobile */
        min-height: unset !important; /* Remove min-height for mobile */
    }
    .page-ban-ca-bi-quyet-san-thuong__figure {
        margin: 20px 0;
    }
    .page-ban-ca-bi-quyet-san-thuong__figcaption {
        font-size: 0.85rem;
    }

    /* 4. 按钮与按钮容器 (already covered in top section, applying to general buttons) */
    .page-ban-ca-bi-quyet-san-thuong__cta-buttons--bottom,
    .page-ban-ca-bi-quyet-san-thuong__cta-buttons--final {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
    }

    /* 5. 注册教程与 FAQ 区块 */
    /* Step list already handled with .page-ban-ca-bi-quyet-san-thuong__step-item */
    .page-ban-ca-bi-quyet-san-thuong__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-ban-ca-bi-quyet-san-thuong__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.9rem;
    }
    .page-ban-ca-bi-quyet-san-thuong ul,
    .page-ban-ca-bi-quyet-san-thuong ol {
        padding-left: 15px;
    }
    .page-ban-ca-bi-quyet-san-thuong {
        font-size: 16px; /* Base font size for readability */
        line-height: 1.6;
    }
}

/* Contrast fix if needed, though with explicit colors, it should be fine */
.page-ban-ca-bi-quyet-san-thuong__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}
.page-ban-ca-bi-quyet-san-thuong__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}