/* style/doi-tac.css */
.page-doi-tac {
    font-family: Arial, sans-serif;
    color: var(--text-main, #1F2D3D); /* Default text color */
    background-color: var(--background, #F4F7FB); /* Default page background */
    line-height: 1.6;
}

.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;
    text-align: center;
    overflow: hidden;
    background-color: var(--main-color, #2F6BFF); /* Fallback if image fails */
    padding-top: 10px; /* As per fixed header rule */
}

.page-doi-tac__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.page-doi-tac__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-doi-tac__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    color: #ffffff; /* White text on dark/brightened image */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

.page-doi-tac__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-doi-tac__hero-description {
    font-size: clamp(1em, 1.5vw, 1.3em);
    margin-bottom: 30px;
}

.page-doi-tac__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Buttons */
.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary,
.page-doi-tac__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't exceed container */
    width: auto; /* Default width */
}

.page-doi-tac__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom button color */
    color: #ffffff;
    border: none;
}

.page-doi-tac__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-doi-tac__btn-secondary {
    background: #ffffff;
    color: var(--main-color, #2F6BFF);
    border: 2px solid var(--main-color, #2F6BFF);
}

.page-doi-tac__btn-secondary:hover {
    background: var(--main-color, #2F6BFF);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-doi-tac__btn-link {
    background: transparent;
    color: var(--main-color, #2F6BFF);
    border: 1px solid var(--main-color, #2F6BFF);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-doi-tac__btn-link:hover {
    background: var(--main-color, #2F6BFF);
    color: #ffffff;
}

/* Section common styles */
.page-doi-tac__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--text-main, #1F2D3D);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-doi-tac__section-intro {
    font-size: clamp(0.9em, 1.2vw, 1.1em);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--custom-color-1776249996415, #000000);
}

/* Why Partner Section */
.page-doi-tac__why-partner-section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF); /* Light background for contrast */
}

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

.page-doi-tac__advantage-item {
    background: var(--background, #F4F7FB);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--border, #D6E2FF);
}

.page-doi-tac__advantage-item:hover {
    transform: translateY(-10px);
}

.page-doi-tac__advantage-image {
    width: 100%;
    height: auto;
    max-height: 300px; /* Limit height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Ensure it behaves as a block element */
}

.page-doi-tac__advantage-title {
    font-size: 1.4em;
    color: var(--main-color, #2F6BFF);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-doi-tac__advantage-text {
    font-size: 0.95em;
    color: var(--text-main, #1F2D3D);
}

/* Partnership Models Section */
.page-doi-tac__partnership-models-section {
    padding: 60px 0;
    background-color: var(--background, #F4F7FB);
}

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

.page-doi-tac__model-card {
    background: var(--card-bg, #FFFFFF);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--border, #D6E2FF);
    text-align: center;
}

.page-doi-tac__model-card:hover {
    transform: translateY(-10px);
}

.page-doi-tac__model-title {
    font-size: 1.5em;
    color: var(--main-color, #2F6BFF);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-doi-tac__model-description {
    font-size: 0.95em;
    color: var(--text-main, #1F2D3D);
    margin-bottom: 25px;
}

/* CTA Section */
.page-doi-tac__cta-section {
    padding: 80px 0;
    background-color: var(--main-color, #2F6BFF); /* Dark background */
    color: #ffffff; /* White text */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-doi-tac__cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-doi-tac__cta-text-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-doi-tac__cta-title {
    font-size: clamp(1.8em, 3.5vw, 3em);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-doi-tac__cta-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-doi-tac__cta-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align buttons to the left */
}

.page-doi-tac__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* FAQ Section */
.page-doi-tac__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF);
}

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

.page-doi-tac__faq-item {
    background: var(--background, #F4F7FB);
    border: 1px solid var(--border, #D6E2FF);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--main-color, #2F6BFF);
    cursor: pointer;
    background-color: #fcfdff;
    list-style: none; /* For details/summary */
}

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

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

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

.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); /* Change to X or minus */
}

.page-doi-tac__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--text-main, #1F2D3D);
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-doi-tac__hero-content {
        max-width: 700px;
    }

    .page-doi-tac__cta-text-wrapper {
        text-align: center;
    }

    .page-doi-tac__cta-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-doi-tac__container {
        padding: 15px;
    }

    /* Hero Section */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
    }

    .page-doi-tac__hero-content {
        position: static;
        transform: none;
        width: 100%;
        padding: 30px 15px;
        background-color: rgba(47, 107, 255, 0.9); /* Solid background on mobile */
        color: #ffffff;
        text-shadow: none;
    }

    .page-doi-tac__hero-image {
        display: none; /* Hide hero image on mobile if content takes full width */
    }

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

    .page-doi-tac__hero-description {
        font-size: 1em;
    }

    .page-doi-tac__hero-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Buttons (General Mobile) */
    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary,
    .page-doi-tac__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-doi-tac__hero-actions,
    .page-doi-tac__cta-actions {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Why Partner Section */
    .page-doi-tac__why-partner-section {
        padding: 40px 0;
    }

    .page-doi-tac__advantages-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-doi-tac__advantage-item {
        padding: 20px;
    }

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

    /* Partnership Models Section */
    .page-doi-tac__partnership-models-section {
        padding: 40px 0;
    }

    .page-doi-tac__models-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

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

    /* CTA Section */
    .page-doi-tac__cta-section {
        padding: 50px 0;
    }

    .page-doi-tac__cta-content {
        flex-direction: column-reverse; /* Image above text on mobile */
    }

    .page-doi-tac__cta-text-wrapper {
        text-align: center;
        max-width: 100%;
    }

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

    .page-doi-tac__cta-description {
        font-size: 1em;
    }

    .page-doi-tac__cta-actions {
        justify-content: center;
    }

    .page-doi-tac__cta-image-wrapper {
        max-width: 100%;
        width: 100%;
    }

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

    /* FAQ Section */
    .page-doi-tac__faq-section {
        padding: 40px 0;
    }

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

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

    /* General image responsive fix for all img elements within the page */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-doi-tac__section,
    .page-doi-tac__card,
    .page-doi-tac__container,
    .page-doi-tac__advantage-item,
    .page-doi-tac__model-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}