:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --text-dark: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --header-offset: 122px; /* Default, will be overridden by shared.css body padding-top */
}

/* Base styles for the page content */
.page-doi-tac-dai-ly {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color, adjust based on body bg */
    background-color: var(--page-bg); /* Page background color */
    line-height: 1.6;
}

/* Ensure images are responsive by default */
.page-doi-tac-dai-ly img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below image */
}

/* --- HERO Section --- */
.page-doi-tac-dai-ly__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    overflow: hidden;
}

.page-doi-tac-dai-ly__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for desktop, will be auto on mobile */
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-doi-tac-dai-ly__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    width: 90%;
    z-index: 10;
}

.page-doi-tac-dai-ly__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-doi-tac-dai-ly__subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-doi-tac-dai-ly__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-doi-tac-dai-ly__btn-primary,
.page-doi-tac-dai-ly__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-doi-tac-dai-ly__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
}

.page-doi-tac-dai-ly__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-doi-tac-dai-ly__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-doi-tac-dai-ly__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* --- General Content Sections --- */
.page-doi-tac-dai-ly__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-doi-tac-dai-ly__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-doi-tac-dai-ly__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main);
}

.page-doi-tac-dai-ly__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-doi-tac-dai-ly__text-block a:hover {
    text-decoration: underline;
}

/* --- About Program Section --- */
.page-doi-tac-dai-ly__about-program {
    background-color: var(--card-bg); /* Light background */
    padding: 60px 0;
}

.page-doi-tac-dai-ly__about-program .page-doi-tac-dai-ly__content-image {
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- Benefits Section --- */
.page-doi-tac-dai-ly__benefits-section {
    background-color: var(--page-bg);
    padding: 60px 0;
}

.page-doi-tac-dai-ly__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-doi-tac-dai-ly__benefit-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-doi-tac-dai-ly__benefit-card:hover {
    transform: translateY(-5px);
}

.page-doi-tac-dai-ly__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-doi-tac-dai-ly__benefit-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.page-doi-tac-dai-ly__benefits-section .page-doi-tac-dai-ly__content-image {
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- How to Join Section --- */
.page-doi-tac-dai-ly__how-to-join {
    background-color: var(--card-bg);
    padding: 60px 0;
}

.page-doi-tac-dai-ly__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-doi-tac-dai-ly__step-card {
    background-color: #f8faff; /* Lighter background for steps */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-doi-tac-dai-ly__step-number {
    width: 60px;
    height: 60px;
    background: var(--btn-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.page-doi-tac-dai-ly__step-card .page-doi-tac-dai-ly__card-title {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.page-doi-tac-dai-ly__step-card p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
}

.page-doi-tac-dai-ly__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

.page-doi-tac-dai-ly__how-to-join .page-doi-tac-dai-ly__content-image {
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- FAQ Section --- */
.page-doi-tac-dai-ly__faq-section {
    background-color: var(--page-bg);
    padding: 60px 0;
}

.page-doi-tac-dai-ly__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-doi-tac-dai-ly__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-doi-tac-dai-ly__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    color: var(--text-dark);
}

.page-doi-tac-dai-ly__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Chrome/Safari marker */
}

.page-doi-tac-dai-ly__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-doi-tac-dai-ly__faq-item[open] .page-doi-tac-dai-ly__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-doi-tac-dai-ly__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.page-doi-tac-dai-ly__faq-answer p:last-child {
    margin-bottom: 0;
}

/* --- Contact CTA Section --- */
.page-doi-tac-dai-ly__contact-cta {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-doi-tac-dai-ly__contact-cta .page-doi-tac-dai-ly__section-title {
    color: #ffffff;
}

.page-doi-tac-dai-ly__contact-cta .page-doi-tac-dai-ly__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-doi-tac-dai-ly__contact-cta .page-doi-tac-dai-ly__btn-secondary {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.page-doi-tac-dai-ly__contact-cta .page-doi-tac-dai-ly__btn-secondary:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-doi-tac-dai-ly__hero-image {
        height: 500px;
    }

    .page-doi-tac-dai-ly__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-doi-tac-dai-ly__subtitle {
        font-size: 1.1rem;
    }

    .page-doi-tac-dai-ly__section-title {
        font-size: 2rem;
    }

    .page-doi-tac-dai-ly__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-doi-tac-dai-ly__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General styles for mobile */
    .page-doi-tac-dai-ly {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO Section */
    .page-doi-tac-dai-ly__hero-section {
        padding-top: 10px; /* Still small top padding */
        padding-bottom: 30px;
    }

    .page-doi-tac-dai-ly__hero-image {
        height: 400px; /* Adjust height for mobile */
    }

    .page-doi-tac-dai-ly__hero-content {
        max-width: 95%;
        width: 100%; /* Ensure full width for content */
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-doi-tac-dai-ly__main-title {
        font-size: 2.2rem; /* Specific font size for mobile */
        margin-bottom: 15px;
    }

    .page-doi-tac-dai-ly__subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-doi-tac-dai-ly__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons */
    .page-doi-tac-dai-ly__btn-primary,
    .page-doi-tac-dai-ly__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Container and Sections */
    .page-doi-tac-dai-ly__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-doi-tac-dai-ly__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-doi-tac-dai-ly__text-block {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    /* Images and Image Containers */
    .page-doi-tac-dai-ly img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important; /* Ensure padding/border is included */
    }
    .page-doi-tac-dai-ly__about-program .page-doi-tac-dai-ly__content-image,
    .page-doi-tac-dai-ly__benefits-section .page-doi-tac-dai-ly__content-image,
    .page-doi-tac-dai-ly__how-to-join .page-doi-tac-dai-ly__content-image {
        padding: 0 15px; /* Add padding to images in content sections */
        box-sizing: border-box !important;
    }

    /* Benefits Grid */
    .page-doi-tac-dai-ly__benefits-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-doi-tac-dai-ly__benefit-card {
        padding: 20px;
    }

    /* Steps Grid */
    .page-doi-tac-dai-ly__steps-grid {
        grid-template-columns: 1fr; /* Stack steps vertically */
        gap: 20px;
    }

    .page-doi-tac-dai-ly__step-card {
        padding: 20px;
    }

    /* FAQ Section */
    .page-doi-tac-dai-ly__faq-list {
        margin-top: 30px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-doi-tac-dai-ly__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-doi-tac-dai-ly__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Contact CTA */
    .page-doi-tac-dai-ly__contact-cta {
        padding: 40px 15px;
    }

    .page-doi-tac-dai-ly__contact-cta .page-doi-tac-dai-ly__text-block {
        margin-bottom: 20px;
    }
}