/* style/doi-tac.css */
.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background: #F5F7FA; /* Background */
}

.page-doi-tac__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-doi-tac__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 40px;
    background-color: #FFFFFF; /* Card BG */
}

.page-doi-tac__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-bottom: 30px;
    overflow: hidden;
}

.page-doi-tac__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-doi-tac__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-doi-tac__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    color: #E53935; /* Primary color for emphasis */
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.page-doi-tac__description {
    font-size: 1.15rem;
    color: #333333; /* Text Main */
    margin-bottom: 30px;
}

.page-doi-tac__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.page-doi-tac__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-doi-tac__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-doi-tac__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-doi-tac__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #E53935; /* Primary color */
    border: 2px solid #E53935; /* Primary color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__btn-secondary:hover {
    background: #E53935; /* Primary color */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-doi-tac__section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

.page-doi-tac__section:nth-of-type(even) {
    background-color: #ffffff; /* Card BG */
}

.page-doi-tac__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E53935; /* Primary color */
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-doi-tac__section-intro {
    font-size: 1.1rem;
    color: #333333; /* Text Main */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Why Partner Section */
.page-doi-tac__why-partner {
    background-color: #F5F7FA; /* Background */
}

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

.page-doi-tac__feature-item {
    background-color: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-doi-tac__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-doi-tac__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #E53935; /* Primary color */
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-doi-tac__feature-text {
    font-size: 1rem;
    color: #333333; /* Text Main */
}

/* Benefits Section */
.page-doi-tac__benefits {
    background-color: #ffffff; /* Card BG */
}

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

.page-doi-tac__benefit-card {
    background-color: #F5F7FA; /* Background */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-doi-tac__benefit-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid #E0E0E0; /* Border */
}

.page-doi-tac__benefit-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E53935; /* Primary color */
    padding: 25px 30px 15px 30px;
    line-height: 1.3;
}

.page-doi-tac__benefit-content {
    padding: 0 30px 30px 30px;
    flex-grow: 1;
}

.page-doi-tac__benefit-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333; /* Text Main */
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-doi-tac__benefit-text {
    font-size: 1rem;
    color: #333333; /* Text Main */
}

/* Partnership Models Section */
.page-doi-tac__partnership-models {
    background-color: #F5F7FA; /* Background */
}

.page-doi-tac__model-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-doi-tac__model-card {
    background-color: #ffffff; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-doi-tac__model-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #E53935; /* Primary color */
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-doi-tac__model-text {
    font-size: 1.1rem;
    color: #333333; /* Text Main */
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Registration Process Section */
.page-doi-tac__registration-process {
    background-color: #ffffff; /* Card BG */
}

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

.page-doi-tac__step-card {
    background-color: #F5F7FA; /* Background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-doi-tac__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
}

.page-doi-tac__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #E53935; /* Primary color */
    margin-bottom: 10px;
}

.page-doi-tac__step-text {
    font-size: 1rem;
    color: #333333; /* Text Main */
}

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

.page-doi-tac__btn-large {
    padding: 16px 40px;
    font-size: 1.15rem;
}

/* FAQ Section */
.page-doi-tac__faq {
    background-color: #F5F7FA; /* Background */
}

.page-doi-tac__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-doi-tac__faq-item {
    background-color: #ffffff; /* Card BG */
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0E0E0; /* Border */
}

.page-doi-tac__faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #E53935; /* Primary color */
    cursor: pointer; /* Indicate it's clickable, though no JS for accordion */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-doi-tac__faq-answer p {
    font-size: 1rem;
    color: #333333; /* Text Main */
    padding-left: 0;
    margin-top: 0;
}

/* Call to Action Section */
.page-doi-tac__call-to-action {
    padding-bottom: 80px;
    background-color: #ffffff; /* Card BG */
    text-align: center;
}

/* Image responsive base styles */
.page-doi-tac img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

    .page-doi-tac__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }

    /* 1. Top Section / Hero Section */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-doi-tac__hero-content {
        padding: 0 15px;
    }

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

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

    /* Buttons and Button Containers */
    .page-doi-tac__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-doi-tac__btn,
    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary,
    .page-doi-tac a[class*="button"],
    .page-doi-tac a[class*="btn"] {
        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;
    }

    /* 2. Single Column Long Text Container & General Sections */
    .page-doi-tac__section {
        padding: 40px 0;
    }

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

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

    .page-doi-tac__feature-grid,
    .page-doi-tac__benefit-grid,
    .page-doi-tac__process-steps {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-doi-tac__feature-item,
    .page-doi-tac__benefit-card,
    .page-doi-tac__model-card,
    .page-doi-tac__step-card,
    .page-doi-tac__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* 3. Generic Images and Figure */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    /* 4. Buttons and Button Containers (already covered above, but re-emphasize container for multiple buttons) */
    .page-doi-tac__model-cards {
        flex-direction: column; /* Stack model cards vertically */
        gap: 20px;
    }

    .page-doi-tac__model-card {
        max-width: 100%;
        padding: 30px 20px;
    }

    /* 5. Registration Tutorial and FAQ Blocks */
    .page-doi-tac__step-card {
        padding-top: 50px;
    }

    .page-doi-tac__step-number {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 15px;
    }

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

    .page-doi-tac__faq-question {
        font-size: 1.15rem;
    }

    .page-doi-tac__faq-answer p {
        font-size: 0.95rem;
    }

    .page-doi-tac__call-to-action {
        padding-bottom: 50px;
    }

    .page-doi-tac__btn-large {
        font-size: 1.05rem;
        padding: 14px 25px;
    }
}