:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --accent-red: #C30808;
    --accent-yellow: #FFFF00;
    --border-light: #e0e0e0;
}

.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--secondary-color); /* Default body background is white */
}

/* Hero Section */
.page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-doi-tac__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-doi-tac__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: var(--text-light); /* Text on primary background */
}

.page-doi-tac__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-doi-tac__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-doi-tac__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

.page-doi-tac__btn-primary {
    background-color: var(--accent-red); /* Register/Login color */
    color: var(--accent-yellow); /* Register/Login font color */
    border: 2px solid var(--accent-red);
}

.page-doi-tac__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: var(--accent-yellow);
}

.page-doi-tac__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-doi-tac__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-doi-tac__hero-image {
    flex: 1 1 40%;
    min-width: 250px;
    text-align: center;
}

.page-doi-tac__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* General Content Area */
.page-doi-tac__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-doi-tac__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-doi-tac__section-title--white {
    color: var(--text-light);
}

.page-doi-tac__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

.page-doi-tac__section-description--white {
    color: var(--text-light);
}

/* Intro Section */
.page-doi-tac__intro-section {
    background-color: var(--secondary-color); /* White background */
    color: var(--text-dark);
}

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

.page-doi-tac__feature-item {
    text-align: center;
    background-color: var(--secondary-color);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-doi-tac__icon-box-media {
    width: 200px; /* Fixed size for circular image */
    height: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-doi-tac__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image fills the circle */
    border-radius: 50%; /* Maintain circular shape */
    display: block;
}

.page-doi-tac__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-doi-tac__feature-text {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Benefits Section */
.page-doi-tac__benefits-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-doi-tac__benefit-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-doi-tac__benefit-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-doi-tac__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-doi-tac__card-text {
    font-size: 1rem;
    color: var(--text-light);
}

.page-doi-tac__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Guide Section */
.page-doi-tac__guide-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-doi-tac__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-doi-tac__guide-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-doi-tac__guide-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.page-doi-tac__guide-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-doi-tac__guide-step-text {
    font-size: 1rem;
    color: var(--text-dark);
}

/* FAQ Section */
.page-doi-tac__faq-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-doi-tac__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-doi-tac__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

.page-doi-tac__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-doi-tac__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--accent-yellow);
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
    transform: rotate(45deg);
}

.page-doi-tac__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-light);
}

.page-doi-tac__faq-answer p {
    margin-bottom: 0;
}


/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-doi-tac {
        font-size: 16px;
        line-height: 1.6;
    }

    /* General containers and images for mobile */
    .page-doi-tac__hero-container,
    .page-doi-tac__content-area {
        padding: 30px 15px;
        flex-direction: column;
        gap: 30px;
    }

    .page-doi-tac__section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-doi-tac__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }

    .page-doi-tac__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-doi-tac__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-doi-tac__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Intro Section - Feature Grid */
    .page-doi-tac__feature-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-doi-tac__icon-box-media {
        width: 150px !important; /* Adjust size for mobile */
        height: 150px !important;
        border-width: 3px;
    }

    .page-doi-tac__icon-box-media img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .page-doi-tac__feature-title {
        font-size: 1.3rem;
    }

    /* Benefits Section - Card Grid */
    .page-doi-tac__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-doi-tac__benefit-card {
        padding: 25px;
    }

    .page-doi-tac__card-title {
        font-size: 1.2rem;
    }

    /* Guide Section */
    .page-doi-tac__guide-list {
        gap: 20px;
    }

    .page-doi-tac__guide-item {
        flex-direction: column; /* Stack number and text vertically */
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .page-doi-tac__guide-step-number {
        margin-bottom: 15px;
    }

    .page-doi-tac__guide-step-title {
        font-size: 1.2rem;
    }

    /* FAQ Section */
    .page-doi-tac__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-doi-tac__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* Universal image responsive styles for content area */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Ensure all containers with images also adapt */
    .page-doi-tac__hero-image,
    .page-doi-tac__benefit-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Tablet (max-width: 1024px) - Adjustments */
@media (max-width: 1024px) {
    .page-doi-tac__hero-container,
    .page-doi-tac__content-area {
        padding: 30px 20px;
        gap: 30px;
    }

    .page-doi-tac__main-title {
        font-size: clamp(2.2rem, 3.5vw, 3rem);
    }

    .page-doi-tac__section-title {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
    }

    .page-doi-tac__feature-grid,
    .page-doi-tac__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-doi-tac__icon-box-media {
        width: 180px;
        height: 180px;
    }
}