/* style/choi-co-trach-nhiem.css */

/* Base styles for the page */
.page-choi-co-trach-nhiem {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Explicitly set for clarity, though shared.css defines body background */
}

/* Color contrast classes */
.page-choi-co-trach-nhiem__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-choi-co-trach-nhiem__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-choi-co-trach-nhiem__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 40px; /* Rely on body for header offset, use small top padding */
    overflow: hidden;
}

.page-choi-co-trach-nhiem__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 20px; /* Space between image and content */
}

.page-choi-co-trach-nhiem__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-choi-co-trach-nhiem__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff; /* White text for dark hero background */
}

.page-choi-co-trach-nhiem__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for description */
}

.page-choi-co-trach-nhiem__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Content Sections */
.page-choi-co-trach-nhiem__content-section {
    padding: 40px 0;
}

.page-choi-co-trach-nhiem__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-choi-co-trach-nhiem__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
}

.page-choi-co-trach-nhiem__section-title--white {
    color: #ffffff;
}

.page-choi-co-trach-nhiem__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 15px;
}

.page-choi-co-trach-nhiem__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-choi-co-trach-nhiem__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-choi-co-trach-nhiem__list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-choi-co-trach-nhiem__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Buttons */
.page-choi-co-trach-nhiem__btn-primary,
.page-choi-co-trach-nhiem__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-choi-co-trach-nhiem__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-choi-co-trach-nhiem__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff;
}

.page-choi-co-trach-nhiem__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-choi-co-trach-nhiem__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-choi-co-trach-nhiem__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Text links */
.page-choi-co-trach-nhiem__text-link {
    color: #017439;
    text-decoration: underline;
    font-weight: 600;
}

.page-choi-co-trach-nhiem__text-link:hover {
    color: #005f2c;
}

/* FAQ Section */
.page-choi-co-trach-nhiem__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background for FAQ */
    color: #ffffff;
}

.page-choi-co-trach-nhiem__faq-list {
    margin-top: 30px;
}

.page-choi-co-trach-nhiem__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-choi-co-trach-nhiem__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: rgba(255, 255, 255, 0.05); /* Slightly darker for summary */
    transition: background-color 0.3s ease;
    color: #ffffff;
    list-style: none; /* Hide default marker */
}

.page-choi-co-trach-nhiem__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-choi-co-trach-nhiem__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-choi-co-trach-nhiem__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-choi-co-trach-nhiem__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow for the toggle icon */
}

.page-choi-co-trach-nhiem__faq-item[open] .page-choi-co-trach-nhiem__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-choi-co-trach-nhiem__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-choi-co-trach-nhiem__hero-content {
        max-width: 700px;
    }

    .page-choi-co-trach-nhiem__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.5em);
    }

    .page-choi-co-trach-nhiem__container {
        padding: 0 15px;
    }

    .page-choi-co-trach-nhiem__section-title {
        font-size: 2em;
    }

    .page-choi-co-trach-nhiem__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    /* General mobile typography and spacing */
    .page-choi-co-trach-nhiem {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-choi-co-trach-nhiem__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 30px;
    }

    .page-choi-co-trach-nhiem__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-choi-co-trach-nhiem__hero-content {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-choi-co-trach-nhiem__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
        margin-bottom: 15px;
    }

    .page-choi-co-trach-nhiem__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-choi-co-trach-nhiem__hero-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Content Sections */
    .page-choi-co-trach-nhiem__content-section {
        padding: 30px 0;
    }

    .page-choi-co-trach-nhiem__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-choi-co-trach-nhiem__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-choi-co-trach-nhiem__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .page-choi-co-trach-nhiem__text-block,
    .page-choi-co-trach-nhiem__list li {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-choi-co-trach-nhiem img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important; /* Ensure padding/border don't cause overflow */
    }

    /* Buttons responsiveness */
    .page-choi-co-trach-nhiem__btn-primary,
    .page-choi-co-trach-nhiem__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-choi-co-trach-nhiem__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section */
    .page-choi-co-trach-nhiem__faq-section {
        padding: 40px 0;
    }

    .page-choi-co-trach-nhiem__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-choi-co-trach-nhiem__faq-answer {
        padding: 0 20px 15px;
    }
}