.page-doi-tac-dai-ly {
    font-family: Arial, sans-serif;
    color: #333333;
    background-color: #F5F7FA;
}

.page-doi-tac-dai-ly__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 40px;
    background-color: #F5F7FA;
}

.page-doi-tac-dai-ly__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 24px;
}

.page-doi-tac-dai-ly__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333;
}

.page-doi-tac-dai-ly__main-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #E53935;
}

.page-doi-tac-dai-ly__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 24px;
}

.page-doi-tac-dai-ly__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-doi-tac-dai-ly__btn-primary,
.page-doi-tac-dai-ly__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-doi-tac-dai-ly__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

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

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

.page-doi-tac-dai-ly__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
}

.page-doi-tac-dai-ly__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-doi-tac-dai-ly__main-visual {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-doi-tac-dai-ly__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
}

.page-doi-tac-dai-ly__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 30px;
}

.page-doi-tac-dai-ly__text-block {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-doi-tac-dai-ly__why-join-section {
    background-color: #F5F7FA;
    padding: 60px 0;
}

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

.page-doi-tac-dai-ly__feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
    border: 1px solid #E0E0E0;
}

.page-doi-tac-dai-ly__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 600px; /* Ensure width/height attributes are respected */
    height: 400px;
    object-fit: cover;
}

.page-doi-tac-dai-ly__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 10px;
}

.page-doi-tac-dai-ly__how-to-join-section {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    padding: 60px 0;
}

.page-doi-tac-dai-ly__how-to-join-section .page-doi-tac-dai-ly__section-title {
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-doi-tac-dai-ly__step-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    display: block;
}

.page-doi-tac-dai-ly__how-to-join-section .page-doi-tac-dai-ly__card-title {
    color: #ffffff;
}

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

.page-doi-tac-dai-ly__faq-section {
    background-color: #F5F7FA;
    padding: 60px 0;
}

.page-doi-tac-dai-ly__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-doi-tac-dai-ly__faq-item {
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-doi-tac-dai-ly__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    list-style: none; /* Hide default marker for details */
}

.page-doi-tac-dai-ly__faq-question::-webkit-details-marker {
    display: none;
}

.page-doi-tac-dai-ly__faq-qtext {
    flex-grow: 1;
    color: #333333;
}

.page-doi-tac-dai-ly__faq-toggle {
    font-size: 1.5em;
    font-weight: 600;
    margin-left: 15px;
    color: #E53935;
}

.page-doi-tac-dai-ly__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
    /* For details, content is naturally hidden/shown */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-doi-tac-dai-ly__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-doi-tac-dai-ly__hero-content,
    .page-doi-tac-dai-ly__hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-doi-tac-dai-ly__cta-buttons {
        justify-content: center;
    }
    .page-doi-tac-dai-ly__features-grid,
    .page-doi-tac-dai-ly__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-doi-tac-dai-ly__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }
    .page-doi-tac-dai-ly__hero-container {
        padding: 20px 15px !important;
    }
    .page-doi-tac-dai-ly__main-title {
        font-size: 2em !important;
    }
    .page-doi-tac-dai-ly__description {
        font-size: 0.95em !important;
    }
    .page-doi-tac-dai-ly__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-doi-tac-dai-ly__btn-primary,
    .page-doi-tac-dai-ly__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 0.9em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-doi-tac-dai-ly__section-title {
        font-size: 1.8em !important;
        margin-bottom: 20px !important;
    }
    .page-doi-tac-dai-ly__text-block {
        font-size: 0.9em !important;
        padding: 0 10px;
    }
    .page-doi-tac-dai-ly__why-join-section,
    .page-doi-tac-dai-ly__how-to-join-section,
    .page-doi-tac-dai-ly__faq-section {
        padding: 40px 0 !important;
    }
    .page-doi-tac-dai-ly__content-area {
        padding: 20px 15px !important;
    }
    .page-doi-tac-dai-ly__features-grid,
    .page-doi-tac-dai-ly__steps-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-doi-tac-dai-ly__feature-card,
    .page-doi-tac-dai-ly__step-card {
        padding: 20px !important;
    }
    .page-doi-tac-dai-ly__feature-card img {
        width: 100% !important;
        height: auto !important; /* Allow height to adjust */
        object-fit: contain !important; /* Ensure image fits */
    }
    .page-doi-tac-dai-ly__main-visual {
        width: 100% !important;
        height: auto !important;
    }
    .page-doi-tac-dai-ly img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-doi-tac-dai-ly__faq-question {
        font-size: 1em !important;
        padding: 15px 20px !important;
    }
    .page-doi-tac-dai-ly__faq-answer {
        padding: 0 20px 15px !important;
    }
}