.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #FFF6D6); /* Default text color for the page, derived from custom colors */
    background-color: var(--bg-color, #0A0A0A); /* Default background color for the page */
}

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

.page-doi-tac__hero-section {
    position: relative;
    text-align: center;
    padding-top: 10px; /* Small top padding as per instruction */
    padding-bottom: 60px;
    color: var(--text-main, #FFF6D6);
    background-color: var(--bg-color, #0A0A0A);
}

.page-doi-tac__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-doi-tac__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-doi-tac__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure content has space */
}

.page-doi-tac__main-title {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--primary-color, #F2C14E);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-doi-tac__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: var(--text-main, #FFF6D6);
}

.page-doi-tac__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary,
.page-doi-tac__btn-outline {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure button takes full width if needed */
}

.page-doi-tac__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A; /* Dark text for bright button */
    border: 2px solid transparent;
}

.page-doi-tac__btn-primary:hover {
    background: linear-gradient(180deg, #FFE699 0%, #FBB00D 100%);
    color: #000000;
}

.page-doi-tac__btn-secondary {
    background-color: transparent;
    color: var(--primary-color, #F2C14E);
    border: 2px solid var(--primary-color, #F2C14E);
}

.page-doi-tac__btn-secondary:hover {
    background-color: var(--primary-color, #F2C14E);
    color: #0A0A0A;
}

.page-doi-tac__btn-outline {
    background-color: transparent;
    color: var(--text-main, #FFF6D6);
    border: 1px solid var(--border-color, #3A2A12);
    padding: 10px 20px;
    font-size: 1em;
    margin-top: auto; /* Align buttons at bottom of card */
}

.page-doi-tac__btn-outline:hover {
    background-color: var(--primary-color, #F2C14E);
    color: #0A0A0A;
    border-color: var(--primary-color, #F2C14E);
}

.page-doi-tac__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color, #F2C14E);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-doi-tac__intro-text,
.page-doi-tac__outro-text {
    text-align: center;
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-main, #FFF6D6);
}

.page-doi-tac__benefits-section,
.page-doi-tac__programs-section,
.page-doi-tac__how-to-join-section,
.page-doi-tac__testimonials-section,
.page-doi-tac__faq-section,
.page-doi-tac__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--bg-color, #0A0A0A);
}

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

.page-doi-tac__card {
    background-color: var(--card-bg, #111111);
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main, #FFF6D6);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-doi-tac__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color, #FFD36B);
    margin-bottom: 15px;
}

.page-doi-tac__card-text {
    font-size: 1em;
    line-height: 1.5;
    flex-grow: 1; /* Ensures text fills space */
}

.page-doi-tac__benefits-image,
.page-doi-tac__how-to-join-image,
.page-doi-tac__testimonials-image,
.page-doi-tac__faq-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure no extra space below image */
}

.page-doi-tac__step-card {
    text-align: center;
}

.page-doi-tac__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color, #F2C14E);
    background-color: var(--card-bg, #111111);
    border: 2px solid var(--primary-color, #F2C14E);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Glow effect */
}

.page-doi-tac__testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-doi-tac__testimonial-author {
    font-weight: bold;
    color: var(--secondary-color, #FFD36B);
    text-align: right;
}

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

.page-doi-tac__faq-item {
    margin-bottom: 20px;
    background-color: var(--card-bg, #111111);
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-main, #FFF6D6);
}

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--primary-color, #F2C14E);
    background-color: rgba(242, 193, 78, 0.05); /* Slightly lighter background for question */
    list-style: none; /* Hide default marker */
}

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

.page-doi-tac__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
    transform: rotate(180deg); /* Rotate icon when open */
}

.page-doi-tac__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-main, #FFF6D6);
}

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

.page-doi-tac__faq-answer a {
    color: var(--secondary-color, #FFD36B);
    text-decoration: underline;
}

.page-doi-tac__faq-answer a:hover {
    color: var(--primary-color, #F2C14E);
}

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

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

    .page-doi-tac__hero-content {
        padding: 60px 20px;
        min-height: 400px;
    }

    .page-doi-tac__benefits-section,
    .page-doi-tac__programs-section,
    .page-doi-tac__how-to-join-section,
    .page-doi-tac__testimonials-section,
    .page-doi-tac__faq-section,
    .page-doi-tac__cta-bottom-section {
        padding: 60px 0;
    }

    .page-doi-tac__benefits-grid,
    .page-doi-tac__program-grid,
    .page-doi-tac__steps-grid,
    .page-doi-tac__testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-doi-tac__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }

    .page-doi-tac__hero-content {
        padding: 40px 15px;
        min-height: 300px;
    }

    .page-doi-tac__main-title {
        font-size: 2em;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .page-doi-tac__description {
        font-size: 1em;
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 通用图片与容器 */
    .page-doi-tac__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

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

    .page-doi-tac__intro-text,
    .page-doi-tac__outro-text {
        font-size: 1em;
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-doi-tac__benefits-section,
    .page-doi-tac__programs-section,
    .page-doi-tac__how-to-join-section,
    .page-doi-tac__testimonials-section,
    .page-doi-tac__faq-section,
    .page-doi-tac__cta-bottom-section {
        padding: 40px 0;
    }

    .page-doi-tac__benefits-grid,
    .page-doi-tac__program-grid,
    .page-doi-tac__steps-grid,
    .page-doi-tac__testimonials-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        margin-bottom: 30px;
    }

    .page-doi-tac__card {
        padding: 20px;
    }

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

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