/* style/doi-tac.css */

/* Base Styles */
.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on default white body background */
    background-color: #ffffff; /* Explicitly white background for main content area */
}

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

/* Hero Section */
.page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding as per rules, assuming body handles --header-offset */
    margin-bottom: 40px;
    background-color: #f0f0f0; /* Light background for hero section */
}

.page-doi-tac__hero-image-wrapper {
    margin-bottom: 20px;
}

.page-doi-tac__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-doi-tac__hero-content {
    text-align: center;
    padding: 20px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.page-doi-tac__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font size */
    color: #017439; /* Brand primary color for H1 */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-doi-tac__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

/* Section Common Styles */
.page-doi-tac__section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-doi-tac__section:nth-of-type(even) {
    background-color: #f9f9f9; /* Light grey background for alternating sections */
}

.page-doi-tac__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-doi-tac__section-intro {
    font-size: 1.05em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #666666;
}

/* Benefit Cards Grid */
.page-doi-tac__benefits-grid,
.page-doi-tac__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-doi-tac__benefit-card,
.page-doi-tac__step-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-doi-tac__benefit-card:hover,
.page-doi-tac__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.page-doi-tac__benefit-icon,
.page-doi-tac__step-image {
    width: 100%; /* Ensure full width within card */
    max-width: 400px; /* Max width to prevent overstretching on very large screens */
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    min-height: 200px; /* Min size for images */
}

.page-doi-tac__benefit-title,
.page-doi-tac__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-doi-tac__benefit-text,
.page-doi-tac__step-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Make text take up available space */
}

/* Buttons */
.page-doi-tac__cta-button,
.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1.1em;
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    margin-top: 20px; /* Add margin for spacing */
}

.page-doi-tac__btn-primary,
.page-doi-tac__cta-button {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #017439;
}

.page-doi-tac__btn-primary:hover,
.page-doi-tac__cta-button:hover {
    background-color: #005f2e; /* Slightly darker green on hover */
    border-color: #005f2e;
}

.page-doi-tac__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Main brand color for text */
    border: 2px solid #017439;
}

.page-doi-tac__btn-secondary:hover {
    background-color: #f0f0f0; /* Light grey background on hover */
    color: #005f2e; /* Slightly darker green text on hover */
    border-color: #005f2e;
}

/* CTA Bottom Section */
.page-doi-tac__cta-bottom {
    background-color: #017439; /* Brand primary color background */
    color: #ffffff; /* White text */
    text-align: center;
    padding: 80px 0;
}

.page-doi-tac__cta-bottom .page-doi-tac__section-title,
.page-doi-tac__cta-bottom .page-doi-tac__section-intro {
    color: #ffffff; /* White text for titles and intro on dark background */
}

.page-doi-tac__cta-bottom .page-doi-tac__cta-button {
    background-color: #C30808; /* Custom red for register/login */
    border-color: #C30808;
    color: #FFFF00; /* Custom yellow for register/login font */
    font-size: 1.2em;
    padding: 16px 32px;
}

.page-doi-tac__cta-bottom .page-doi-tac__cta-button:hover {
    background-color: #a00606; /* Darker red on hover */
    border-color: #a00606;
    color: #ffcc00; /* Slightly darker yellow on hover */
}


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

.page-doi-tac__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    list-style: none; /* Hide default marker for details summary */
}

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

.page-doi-tac__faq-item[open] .page-doi-tac__faq-question {
    border-bottom: 1px solid #e0e0e0;
    color: #017439;
}

.page-doi-tac__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-doi-tac__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
}

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


/* Responsive Styles */
@media (max-width: 768px) {
    /* Hero Section */
    .page-doi-tac__hero-section {
        padding-top: 10px; /* Ensure small top padding */
        margin-bottom: 20px;
        padding-left: 0;
        padding-right: 0;
    }

    .page-doi-tac__hero-content {
        padding: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-doi-tac__main-title {
        font-size: 2.2em; /* Smaller H1 for mobile */
    }

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

    /* Section Common Styles */
    .page-doi-tac__section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .page-doi-tac__section-title {
        font-size: 1.8em; /* Smaller section titles for mobile */
        margin-bottom: 15px;
    }

    .page-doi-tac__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px; /* Add padding to intro text */
    }

    /* Benefits Grid & Steps Grid */
    .page-doi-tac__benefits-grid,
    .page-doi-tac__steps-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
        margin-top: 20px;
    }

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

    .page-doi-tac__benefit-icon,
    .page-doi-tac__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
    }

    /* General Images and Containers */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-doi-tac__section,
    .page-doi-tac__card,
    .page-doi-tac__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons and Button Containers */
    .page-doi-tac__cta-button,
    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary,
    .page-doi-tac a[class*="button"],
    .page-doi-tac a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for mobile buttons */
        font-size: 1em;
    }
    
    .page-doi-tac__cta-buttons,
    .page-doi-tac__button-group,
    .page-doi-tac__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 10px; /* Spacing between wrapped buttons */
        display: flex;
        flex-direction: column; /* Stack buttons vertically by default */
        align-items: center;
    }

    /* CTA Bottom Section */
    .page-doi-tac__cta-bottom {
        padding: 40px 15px;
    }

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

    .page-doi-tac__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.95em;
    }
}