/* style/doi-tac.css */

.page-doi-tac {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #f8f9fa; /* Light background for the page content */
}

.page-doi-tac__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relies on shared body padding-top */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: #f0f8ff; /* Light blue tint for hero background */
}

.page-doi-tac__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-doi-tac__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.page-doi-tac__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.page-doi-tac__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-doi-tac__hero-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-doi-tac__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-doi-tac__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-2px);
}

.page-doi-tac__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-doi-tac__btn-secondary:hover {
    background-color: #e0f2ff;
    color: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-2px);
}

.page-doi-tac__section {
    padding: 60px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.page-doi-tac__section--why-join {
    background-color: #f8f9fa;
}

.page-doi-tac__section:last-of-type {
    border-bottom: none;
}

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

.page-doi-tac__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-doi-tac__section-description {
    font-size: 1.1rem;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 50px auto;
    line-height: 1.6;
}

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

.page-doi-tac__card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-doi-tac__card-title {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-doi-tac__card-text {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

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

.page-doi-tac__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

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

.page-doi-tac__step-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-doi-tac__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

.page-doi-tac__step-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.page-doi-tac__step-text {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

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

.page-doi-tac__info-card {
    background-color: #f0f8ff;
    border-left: 5px solid #26A9E0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-doi-tac__info-card-title {
    font-size: 1.3rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-doi-tac__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-doi-tac__list-item {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-doi-tac__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-doi-tac__registration-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 40px;
}

.page-doi-tac__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-doi-tac__step-figure {
    margin: 0 0 20px 0;
    width: 100%;
    max-width: 680px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__step-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-doi-tac__step-caption {
    font-size: 0.9rem;
    color: #777777;
    margin-top: 10px;
}

.page-doi-tac__step-heading {
    font-size: 1.6rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

.page-doi-tac__faq-item {
    background-color: #f0f8ff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-doi-tac__faq-item[open] {
    background-color: #e6f7ff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    list-style: none;
    outline: none;
}

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

.page-doi-tac__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

.page-doi-tac__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

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

.page-doi-tac__section--contact-support {
    background-color: #f0f8ff;
}

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

.page-doi-tac__contact-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-doi-tac__contact-card-title {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-doi-tac__contact-card-text {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-doi-tac__cta-final {
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(38, 169, 224, 0.3);
}

.page-doi-tac__cta-final-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-doi-tac__cta-final-text {
    font-size: 1.1rem;
    color: #e0f2ff;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

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

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

    .page-doi-tac__hero-image-wrapper {
        max-height: 400px;
    }

    .page-doi-tac__grid,
    .page-doi-tac__steps-grid,
    .page-doi-tac__terms-grid,
    .page-doi-tac__contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-doi-tac__card,
    .page-doi-tac__step-card,
    .page-doi-tac__info-card,
    .page-doi-tac__contact-card {
        padding: 25px;
    }

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

    .page-doi-tac__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

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

    .page-doi-tac__cta-final {
        padding: 30px;
    }

    .page-doi-tac__cta-final-title {
        font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    }

    .page-doi-tac__cta-final-text {
        font-size: 1rem;
    }
}

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

    /* 1. Top section title + dual CTA */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Ensures 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;
    }

    .page-doi-tac__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

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

    /* 2. Single column long text container */
    .page-doi-tac__section {
        padding: 40px 15px;
    }

    .page-doi-tac__container {
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-doi-tac__section-description {
        font-size: 0.95rem;
        margin: -10px auto 30px auto;
        padding: 0 15px;
    }

    .page-doi-tac__grid,
    .page-doi-tac__steps-grid,
    .page-doi-tac__terms-grid,
    .page-doi-tac__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-doi-tac__card,
    .page-doi-tac__step-card,
    .page-doi-tac__info-card,
    .page-doi-tac__contact-card {
        padding: 20px;
    }

    .page-doi-tac__card-title,
    .page-doi-tac__step-title,
    .page-doi-tac__info-card-title,
    .page-doi-tac__contact-card-title {
        font-size: 1.25rem;
    }

    .page-doi-tac__card-text,
    .page-doi-tac__step-text,
    .page-doi-tac__list-item,
    .page-doi-tac__faq-answer p,
    .page-doi-tac__contact-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;
        box-sizing: border-box !important;
    }

    .page-doi-tac__image-wrapper {
        padding: 0 15px;
    }

    .page-doi-tac__step-figure {
        padding: 0;
    }

    /* 4. Buttons and button containers */
    .page-doi-tac__cta-bottom,
    .page-doi-tac__cta-final {
        padding: 0 15px;
        margin-top: 40px;
    }

    .page-doi-tac__cta-final-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

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

    .page-doi-tac__cta-final {
        padding: 30px 20px;
    }

    /* 5. Registration tutorial and FAQ blocks */
    .page-doi-tac__registration-steps {
        gap: 30px;
    }

    .page-doi-tac__step-figure {
        margin-bottom: 15px;
    }

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

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

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

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