/* style/doi-tac.css */

/* General styles for the page-doi-tac container */
.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main color for overall page content */
    background-color: #B71C1C; /* Background color */
}

.page-doi-tac__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-doi-tac__section-title {
    font-size: 2.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold-like color for titles */
    line-height: 1.2;
}

.page-doi-tac__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF5E1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for --header-offset */
    padding-bottom: 40px;
    background-color: #7A0E0E; /* Deep Red for hero background */
}

.page-doi-tac__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-doi-tac__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #FFF5E1; /* Text Main */
}

.page-doi-tac__hero-title {
    font-size: clamp(2.5rem, 5vw, 3rem); /* H1 font size with clamp */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD86A; /* Gold-like color for H1 */
}

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

.page-doi-tac__hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-doi-tac__hero-image {
    flex: 1 1 40%;
    text-align: center;
    min-width: 250px;
}

.page-doi-tac__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-doi-tac__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #7A0E0E; /* Deep Red text for contrast */
    border: 2px solid #FFD86A;
}

.page-doi-tac__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 0 15px #FFCC66; /* Glow effect */
}

.page-doi-tac__btn-secondary {
    background-color: transparent;
    color: #FFD86A; /* Gold text */
    border: 2px solid #FFD86A; /* Gold border */
}

.page-doi-tac__btn-secondary:hover {
    background-color: #FFD86A;
    color: #7A0E0E; /* Deep Red text on hover */
    box-shadow: 0 0 15px #FFCC66; /* Glow effect */
}

/* Intro Section */
.page-doi-tac__intro-section {
    background-color: #C91F17; /* Main color */
    padding: 60px 0;
}

.page-doi-tac__features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-doi-tac__feature-item {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 280px;
    text-align: center;
    background-color: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-doi-tac__icon-box-media {
    width: 180px; /* Smaller for desktop, will scale up in mobile if needed */
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FFD86A; /* Gold border */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-doi-tac__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-doi-tac__feature-title {
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold-like color */
}

.page-doi-tac__feature-text {
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
}

/* Benefits Section */
.page-doi-tac__benefits-section {
    background-color: #B71C1C; /* Background color */
    padding: 60px 0;
}

.page-doi-tac__benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-doi-tac__benefit-card {
    flex: 1 1 calc(33.333% - 30px);
    min-width: 280px;
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

.page-doi-tac__benefit-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-doi-tac__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 15px 10px;
    color: #FFD86A; /* Gold-like color */
}

.page-doi-tac__card-text {
    font-size: 1em;
    padding: 0 15px 20px;
    color: #FFF5E1; /* Text Main */
}

/* How to Join Section */
.page-doi-tac__how-to-join-section {
    background-color: #C91F17; /* Main color */
    padding: 60px 0;
}

.page-doi-tac__steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-doi-tac__step-item {
    flex: 1 1 calc(25% - 30px);
    min-width: 200px;
    text-align: center;
    background-color: #D32F2F; /* Card BG */
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    box-sizing: border-box;
}

.page-doi-tac__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #7A0E0E; /* Deep Red text */
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    border: 2px solid #FFCC66; /* Glow */
}

.page-doi-tac__step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFD86A; /* Gold-like color */
}

.page-doi-tac__step-text {
    font-size: 0.95em;
    color: #FFF5E1; /* Text Main */
}

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

/* FAQ Section */
.page-doi-tac__faq-section {
    background-color: #B71C1C; /* Background color */
    padding: 60px 0;
}

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

.page-doi-tac__faq-item {
    background-color: #D32F2F; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFF5E1; /* Text Main */
}

.page-doi-tac__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: #FFD86A; /* Gold-like color for question */
    background-color: #C91F17; /* Main color */
    border-bottom: 1px solid #7A0E0E; /* Deep Red border */
}

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

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

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

.page-doi-tac__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #FFD86A;
    transition: transform 0.3s ease;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
    transform: rotate(45deg); /* Change + to X */
}

.page-doi-tac__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
    background-color: #D32F2F; /* Card BG */
}

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

/* Contact CTA Section */
.page-doi-tac__contact-cta-section {
    background-color: #7A0E0E; /* Deep Red for background */
    padding: 60px 0;
    text-align: center;
}

.page-doi-tac__contact-cta-section .page-doi-tac__section-title {
    color: #FFD86A; /* Gold-like color */
}

.page-doi-tac__contact-cta-section .page-doi-tac__section-description {
    color: #FFF5E1; /* Text Main */
    margin-bottom: 40px;
}

.page-doi-tac__contact-cta-section .page-doi-tac__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Image general responsive */
.page-doi-tac img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-doi-tac__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-doi-tac__hero-content {
        order: 2;
    }

    .page-doi-tac__hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .page-doi-tac__hero-cta-group {
        justify-content: center;
    }

    .page-doi-tac__features-grid,
    .page-doi-tac__benefits-grid,
    .page-doi-tac__steps-grid {
        gap: 20px;
    }

    .page-doi-tac__feature-item,
    .page-doi-tac__benefit-card {
        flex: 1 1 calc(50% - 20px);
    }

    .page-doi-tac__step-item {
        flex: 1 1 calc(50% - 20px);
    }

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

@media (max-width: 768px) {
    /* HERO Section */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for --header-offset */
        padding-bottom: 30px;
    }

    .page-doi-tac__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }

    .page-doi-tac__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

    .page-doi-tac__hero-cta-group {
        flex-direction: column;
        gap: 10px;
    }

    /* Buttons */
    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    /* Intro Section - Module 1 (3-column with circular images) */
    .page-doi-tac__intro-section,
    .page-doi-tac__benefits-section,
    .page-doi-tac__how-to-join-section,
    .page-doi-tac__faq-section,
    .page-doi-tac__contact-cta-section {
        padding: 40px 0;
    }

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