.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

/* Hero Section */
.page-doi-tac__hero-section {
    padding-top: 10px; /* Adjusted for fixed header, as shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: #f5faff; /* Light background for hero */
}

.page-doi-tac__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 16px;
}

.page-doi-tac__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #1e1765; /* Darker text for contrast on light hero background */
}

.page-doi-tac__main-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-doi-tac__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-doi-tac__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-doi-tac__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #26A9E0; /* Brand color */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-doi-tac__btn-primary:hover {
    background-color: #1e87b3;
}

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

.page-doi-tac__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

.page-doi-tac__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-doi-tac__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #333333;
}

/* Intro Section */
.page-doi-tac__intro-section {
    background-color: #FFFFFF;
}

/* Benefits Section */
.page-doi-tac__benefits-section {
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text */
    padding: 60px 0;
}

.page-doi-tac__benefits-section .page-doi-tac__section-title {
    color: #FFFFFF; /* Ensure title is white on dark background */
}

.page-doi-tac__text-contrast-fix {
    color: #FFFFFF; /* For elements that need explicit white text on dark background */
}

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

.page-doi-tac__benefit-card {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-doi-tac__benefit-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Min size requirement */
    min-height: 150px; /* Min size requirement for 400x300 aspect ratio */
}

.page-doi-tac__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-doi-tac__card-description {
    font-size: 1em;
    color: #555555;
}

/* Register Section */
.page-doi-tac__register-section {
    background-color: #f9f9f9;
}

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

.page-doi-tac__step-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-doi-tac__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
    text-align: center;
}

/* FAQ Section */
.page-doi-tac__faq-section {
    background-color: #FFFFFF;
    padding-bottom: 80px;
}

.page-doi-tac__faq-list {
    margin-top: 40px;
}

.page-doi-tac__faq-item {
    background-color: #f0f8ff; /* Light blue background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    list-style: none; /* For details/summary */
    -webkit-tap-highlight-color: transparent; /* Prevent blue box on tap */
}

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

.page-doi-tac__faq-item[open] > .page-doi-tac__faq-question {
    background-color: #e6f2ff; /* Slightly darker when open */
    border-bottom: 1px solid #d0e7ff;
}

.page-doi-tac__faq-qtext {
    flex-grow: 1;
}

.page-doi-tac__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-doi-tac__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-answer {
    max-height: 500px; /* A large enough value to accommodate content */
    padding-top: 10px;
}

/* Responsive Styles for 1024px */
@media (max-width: 1024px) {
    .page-doi-tac__main-title {
        font-size: 2.5em;
    }

    .page-doi-tac__section-title {
        font-size: 2em;
    }
}

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

    /* Hero Section */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Important for fixed header */
        padding-bottom: 40px;
    }

    .page-doi-tac__hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

    .page-doi-tac__hero-content,
    .page-doi-tac__hero-image {
        flex: 1 1 100%;
        min-width: unset;
    }

    .page-doi-tac__main-title {
        font-size: 2em; /* Smaller font size for mobile H1 */
        margin-bottom: 15px;
    }

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

    .page-doi-tac__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* General Content Area */
    .page-doi-tac__content-area {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-doi-tac__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

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

    .page-doi-tac__benefit-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
    }

    /* Steps Grid */
    .page-doi-tac__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-doi-tac__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-doi-tac__cta-buttons--center {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        box-sizing: border-box !important;
        /* flex-direction: column already inherited, ensure gap is handled */
        gap: 15px;
    }

    /* Ensure all images inside content area are responsive */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Generic containers to prevent overflow */
    .page-doi-tac__section,
    .page-doi-tac__card,
    .page-doi-tac__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}