/* style/doi-tac.css */
.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Default text color on dark body background */
    background-color: #0D0E12; /* Body background color */
}

.page-doi-tac__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-doi-tac__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    margin-bottom: 40px;
}

.page-doi-tac__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

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

.page-doi-tac__hero-content {
    position: relative;
    padding: 40px 20px;
    text-align: center;
    background: #17191F; /* Card BG */
    border-radius: 8px;
    margin-top: -60px;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-doi-tac__main-title {
    font-size: 3.2em;
    font-weight: bold;
    color: #FFB04D; /* Glow color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-doi-tac__intro-text {
    font-size: 1.1em;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-doi-tac__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-doi-tac__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-doi-tac__btn-secondary {
    background: transparent;
    color: #FFA53A;
    border: 2px solid #FFA53A;
}

.page-doi-tac__btn-secondary:hover {
    background: #FFA53A;
    color: #17191F;
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

/* Common Section Styles */
.page-doi-tac__section-title {
    font-size: 2.5em;
    color: #FFB04D;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
    font-weight: bold;
}

.page-doi-tac__section-description {
    font-size: 1.05em;
    color: #FFF3E6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.page-doi-tac__light-bg {
    background-color: #0D0E12;
    color: #FFF3E6;
    padding: 60px 0;
}

.page-doi-tac__dark-bg {
    background-color: #17191F;
    color: #FFF3E6;
    padding: 60px 0;
}

/* Features Grid (Why Partner) */
.page-doi-tac__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-doi-tac__feature-card {
    background-color: #17191F;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-doi-tac__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-doi-tac__feature-text {
    font-size: 0.95em;
    color: #FFF3E6;
}

/* Types of Partners Section */
.page-doi-tac__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-doi-tac__type-card {
    background-color: #0D0E12;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-doi-tac__type-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-doi-tac__type-title {
    font-size: 1.5em;
    color: #FF8C1A;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-doi-tac__type-text {
    font-size: 1em;
    color: #FFF3E6;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-doi-tac__step-card {
    background-color: #17191F;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C;
    position: relative;
    padding-top: 60px;
}

.page-doi-tac__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #0D0E12;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-doi-tac__step-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-doi-tac__step-title {
    font-size: 1.3em;
    color: #FFA53A;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-doi-tac__step-text {
    font-size: 0.95em;
    color: #FFF3E6;
}

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

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

.page-doi-tac__faq-item {
    background-color: #0D0E12;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #A84F0C;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__faq-question {
    font-size: 1.2em;
    color: #FF8C1A;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
}

.page-doi-tac__faq-answer {
    font-size: 1em;
    color: #FFF3E6;
}

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

/* Contact Section */
.page-doi-tac__contact-section {
    padding-bottom: 80px;
}

.page-doi-tac__contact-button {
    margin-top: 30px;
}


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

/* General Responsive for Images and Buttons */
.page-doi-tac img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-doi-tac__cta-button,
.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%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-doi-tac__cta-buttons,
.page-doi-tac__button-group,
.page-doi-tac__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-doi-tac__main-title {
        font-size: 2.8em;
    }
    .page-doi-tac__section-title {
        font-size: 2.2em;
    }
    .page-doi-tac__hero-content {
        max-width: 95%;
    }
}


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

    .page-doi-tac__container {
        padding: 15px;
    }

    /* Hero Section (顶区轮播 - although not a carousel, it's the top section) */
    .page-doi-tac__hero-section {
        margin-bottom: 20px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-doi-tac__hero-content {
        padding: 30px 15px;
        margin-top: -40px;
        max-width: 100%;
    }

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

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

    .page-doi-tac__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary {
        padding: 12px 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-doi-tac__cta-buttons,
    .page-doi-tac__button-group,
    .page-doi-tac__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Common Section Styles */
    .page-doi-tac__section-title {
        font-size: 2em;
        margin-top: 40px;
        margin-bottom: 15px;
    }

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

    .page-doi-tac__light-bg,
    .page-doi-tac__dark-bg {
        padding: 40px 0;
    }

    /* Features Grid (Why Partner) - analogous to home_content/blog grid for responsiveness */
    .page-doi-tac__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-doi-tac__feature-card {
        padding: 20px;
    }

    .page-doi-tac__feature-icon {
        max-width: 200px;
    }

    .page-doi-tac__feature-title {
        font-size: 1.2em;
    }

    /* Types of Partners Section */
    .page-doi-tac__types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-doi-tac__type-card {
        padding: 20px;
    }

    .page-doi-tac__type-image {
        max-height: 200px;
    }

    .page-doi-tac__type-title {
        font-size: 1.3em;
    }

    /* Process Section */
    .page-doi-tac__process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-doi-tac__step-card {
        padding: 40px 20px 20px;
    }

    .page-doi-tac__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        top: -15px;
    }

    .page-doi-tac__step-icon {
        max-width: 120px;
    }

    .page-doi-tac__step-title {
        font-size: 1.1em;
    }

    .page-doi-tac__cta-bottom {
        margin-top: 30px;
    }

    /* FAQ Section */
    .page-doi-tac__faq-list {
        margin-top: 30px;
    }

    .page-doi-tac__faq-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-doi-tac__faq-question {
        font-size: 1.1em;
    }

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

    /* Contact Section */
    .page-doi-tac__contact-section {
        padding-bottom: 60px;
    }

    .page-doi-tac__contact-button {
        margin-top: 20px;
    }

    /* All images must be responsive */
    .page-doi-tac img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    /* All containers with images/buttons must adapt */
    .page-doi-tac__section,
    .page-doi-tac__card,
    .page-doi-tac__container,
    .page-doi-tac__hero-image-wrapper,
    .page-doi-tac__hero-content,
    .page-doi-tac__features-grid,
    .page-doi-tac__types-grid,
    .page-doi-tac__process-steps,
    .page-doi-tac__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}