/* style/doi-tac.css */

:root {
    --deep-navy-color: #08162B;
    --card-bg-color: #10233F;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --btn-text-color: #ffffff;
}

.page-doi-tac {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Body background is dark, so text is light */
    background-color: var(--deep-navy-color); /* Ensure consistency with body background */
    line-height: 1.6;
}

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

.page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--deep-navy-color);
}

.page-doi-tac__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(79, 168, 255, 0.5);
}

.page-doi-tac__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-doi-tac__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-doi-tac__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-doi-tac__btn-primary {
    background: var(--btn-gradient);
    color: var(--btn-text-color);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-doi-tac__btn-secondary {
    background: var(--card-bg-color);
    color: var(--text-main-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-doi-tac__why-partner-section,
.page-doi-tac__registration-process,
.page-doi-tac__faq-section,
.page-doi-tac__call-to-action {
    padding: 60px 0;
    background-color: var(--deep-navy-color);
    border-top: 1px solid var(--divider-color);
}

.page-doi-tac__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(79, 168, 255, 0.4);
}

.page-doi-tac__section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-doi-tac__feature-card,
.page-doi-tac__step-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

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

.page-doi-tac__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-doi-tac__step-card .page-doi-tac__step-number {
    background: var(--btn-gradient);
    color: var(--btn-text-color);
    font-size: 1.8rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--glow-color);
}

.page-doi-tac__image-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-doi-tac__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-doi-tac__image-caption {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-top: 15px;
}

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

.page-doi-tac__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    outline: none;
    user-select: none;
    position: relative;
}

.page-doi-tac__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-doi-tac__faq-item summary::marker {
    display: none;
}

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-doi-tac__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gold-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

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

.page-doi-tac__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-answer {
    max-height: 500px; /* Sufficient height for content */
}

.page-doi-tac__faq-answer p {
    margin: 0;
    color: var(--text-secondary-color);
}

.page-doi-tac__call-to-action {
    text-align: center;
    padding-bottom: 80px;
}

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

@media (max-width: 1024px) {
    .page-doi-tac__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

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

    .page-doi-tac__hero-description,
    .page-doi-tac__section-intro {
        font-size: 1.1rem;
    }

    .page-doi-tac__feature-card,
    .page-doi-tac__step-card {
        padding: 25px;
    }

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

    .page-doi-tac__btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* 1. Top section/title + CTA */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-doi-tac__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-doi-tac__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }

    .page-doi-tac__btn {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 2. Single-column long text containers */
    .page-doi-tac__container {
        padding: 0 15px;
    }

    .page-doi-tac__why-partner-section,
    .page-doi-tac__registration-process,
    .page-doi-tac__faq-section,
    .page-doi-tac__call-to-action {
        padding: 40px 0;
    }

    .page-doi-tac__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-doi-tac__section-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .page-doi-tac__features-grid,
    .page-doi-tac__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
    }

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

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

    .page-doi-tac__card-text {
        font-size: 0.95rem;
    }

    /* 3. General images and figure */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-doi-tac__image-wrapper {
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-doi-tac__image-caption {
        font-size: 0.85rem;
    }

    /* 4. Buttons (already covered in top section CTA, but ensure general application) */
    /* .page-doi-tac__btn and .page-doi-tac__cta-buttons are already handled above */

    /* 5. FAQ section */
    .page-doi-tac__faq-list {
        margin-bottom: 30px;
    }

    .page-doi-tac__faq-item summary {
        padding: 15px;
        font-size: 1.1rem;
    }

    .page-doi-tac__faq-toggle {
        font-size: 1.5rem;
    }

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

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