/* General styles for the ban-ca-chien-thuat page */
.page-ban-ca-chien-thuat {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

.page-ban-ca-chien-thuat__section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-ban-ca-chien-thuat__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-ban-ca-chien-thuat__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--deep-navy); /* Ensure section has a background */
    overflow: hidden; /* Prevent content overflow */
}

.page-ban-ca-chien-thuat__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-ban-ca-chien-thuat__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 20px 0;
}

.page-ban-ca-chien-thuat__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size clamp */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold); /* Use gold for main title */
}

.page-ban-ca-chien-thuat__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: var(--text-main);
}

.page-ban-ca-chien-thuat__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.page-ban-ca-chien-thuat__btn-primary,
.page-ban-ca-chien-thuat__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-ban-ca-chien-thuat__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca-chien-thuat__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-ban-ca-chien-thuat__btn-secondary {
    background: var(--card-bg); /* Use card background for secondary button */
    color: var(--text-main);
    border: 2px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca-chien-thuat__btn-secondary:hover {
    background: var(--border);
    color: var(--text-main);
    transform: translateY(-2px);
}

.page-ban-ca-chien-thuat__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-ban-ca-chien-thuat__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-ban-ca-chien-thuat__intro-section {
    padding: 60px 0;
}

.page-ban-ca-chien-thuat__dark-section {
    background-color: var(--deep-navy);
    color: var(--text-main);
}

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

.page-ban-ca-chien-thuat__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-ban-ca-chien-thuat__icon-box-media {
    width: 180px; /* Smaller square size for feature icons */
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    flex-shrink: 0; /* Prevent shrinking */
}

.page-ban-ca-chien-thuat__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.page-ban-ca-chien-thuat__feature-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold);
}

.page-ban-ca-chien-thuat__feature-text {
    font-size: 1em;
    color: var(--text-secondary);
}

/* Strategy Section */
.page-ban-ca-chien-thuat__strategy-section {
    padding: 60px 0;
}

.page-ban-ca-chien-thuat__light-bg {
    background-color: #f8f9fa; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-ban-ca-chien-thuat__text-contrast-fix {
    color: #333333; /* Ensure dark text on light background */
}

.page-ban-ca-chien-thuat__strategy-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.page-ban-ca-chien-thuat__strategy-item:last-child {
    margin-bottom: 0;
}

.page-ban-ca-chien-thuat__strategy-item--reverse {
    flex-direction: row-reverse;
}

.page-ban-ca-chien-thuat__strategy-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-ban-ca-chien-thuat__strategy-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color, #113B7A); /* Default to primary color if not overridden */
}

.page-ban-ca-chien-thuat__strategy-text {
    font-size: 1.05em;
    margin-bottom: 20px;
}

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

.page-ban-ca-chien-thuat__strategy-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca-chien-thuat__small-btn {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
}

/* Tips Section */
.page-ban-ca-chien-thuat__tips-section {
    padding: 60px 0;
}

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

.page-ban-ca-chien-thuat__tip-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-ban-ca-chien-thuat__tip-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold);
}

.page-ban-ca-chien-thuat__tip-text {
    font-size: 1em;
    color: var(--text-secondary);
}

.page-ban-ca-chien-thuat__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-ban-ca-chien-thuat__faq-section {
    padding: 60px 0;
}

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

.page-ban-ca-chien-thuat__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text for light background */
}

.page-ban-ca-chien-thuat__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    background-color: #f0f4f8; /* Light blue background for question */
    color: var(--primary-color, #113B7A);
    list-style: none; /* Hide default marker for details */
}

.page-ban-ca-chien-thuat__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-ban-ca-chien-thuat__faq-qtext {
    flex-grow: 1;
}

.page-ban-ca-chien-thuat__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color, #113B7A);
}

.page-ban-ca-chien-thuat__faq-item[open] .page-ban-ca-chien-thuat__faq-question {
    background-color: #e0e6ec; /* Slightly darker when open */
}

.page-ban-ca-chien-thuat__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555; /* Slightly darker grey for answer text */
    background-color: #ffffff;
}

.page-ban-ca-chien-thuat__faq-answer p {
    margin: 0;
}

/* Blog CTA Section */
.page-ban-ca-chien-thuat__blog-cta-section {
    padding: 60px 0;
    text-align: center;
}

/* General image styling */
.page-ban-ca-chien-thuat img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ban-ca-chien-thuat__hero-container {
        gap: 30px;
    }

    .page-ban-ca-chien-thuat__hero-content,
    .page-ban-ca-chien-thuat__hero-image {
        flex: 1 1 100%;
        text-align: center;
    }

    .page-ban-ca-chien-thuat__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }

    .page-ban-ca-chien-thuat__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    }

    .page-ban-ca-chien-thuat__features-grid,
    .page-ban-ca-chien-thuat__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-ban-ca-chien-thuat__strategy-item {
        flex-direction: column;
    }
    .page-ban-ca-chien-thuat__strategy-item--reverse {
        flex-direction: column; /* Reverse no longer applies visually */
    }
    .page-ban-ca-chien-thuat__strategy-content,
    .page-ban-ca-chien-thuat__strategy-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-ban-ca-chien-thuat__container,
    .page-ban-ca-chien-thuat__hero-container {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-ban-ca-chien-thuat__hero-section {
        padding-top: 10px !important; /* Fixed header offset handled by body, small top padding here */
        padding-bottom: 20px !important;
    }

    .page-ban-ca-chien-thuat__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        text-align: center;
    }

    .page-ban-ca-chien-thuat__hero-description {
        font-size: 1em !important;
        text-align: center;
    }

    /* Buttons and Button Containers */
    .page-ban-ca-chien-thuat__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-ban-ca-chien-thuat__btn-primary,
    .page-ban-ca-chien-thuat__btn-secondary,
    .page-ban-ca-chien-thuat__small-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;
    }
    .page-ban-ca-chien-thuat__cta-center {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Module 1 (Intro Section) - Circular Images */
    .page-ban-ca-chien-thuat__icon-box-media {
        width: 120px !important; /* Keep square aspect ratio */
        height: 120px !important;
        border-width: 2px !important;
    }
    .page-ban-ca-chien-thuat__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .page-ban-ca-chien-thuat__features-grid {
        grid-template-columns: 1fr !important; /* Single column */
    }
    .page-ban-ca-chien-thuat__feature-item {
        padding: 20px !important;
    }

    /* Strategy Section */
    .page-ban-ca-chien-thuat__strategy-item {
        margin-bottom: 40px !important;
    }
    .page-ban-ca-chien-thuat__strategy-title {
        font-size: 1.5em !important;
    }
    .page-ban-ca-chien-thuat__strategy-text {
        font-size: 0.95em !important;
    }

    /* Tips Section */
    .page-ban-ca-chien-thuat__tips-grid {
        grid-template-columns: 1fr !important; /* Single column */
    }
    .page-ban-ca-chien-thuat__tip-card {
        padding: 20px !important;
    }
    .page-ban-ca-chien-thuat__tip-title {
        font-size: 1.2em !important;
    }

    /* FAQ Section */
    .page-ban-ca-chien-thuat__faq-question {
        padding: 15px 20px !important;
        font-size: 1em !important;
    }
    .page-ban-ca-chien-thuat__faq-toggle {
        font-size: 1.2em !important;
    }
    .page-ban-ca-chien-thuat__faq-answer {
        padding: 10px 20px 15px !important;
        font-size: 0.9em !important;
    }

    /* General Images */
    .page-ban-ca-chien-thuat img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* All content sections padding */
    .page-ban-ca-chien-thuat__intro-section,
    .page-ban-ca-chien-thuat__strategy-section,
    .page-ban-ca-chien-thuat__tips-section,
    .page-ban-ca-chien-thuat__faq-section,
    .page-ban-ca-chien-thuat__blog-cta-section {
        padding: 30px 0 !important;
    }
}