/* style/doi-tac.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* This is the body background from shared.css */
}

.page-doi-tac {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--deep-navy); /* Ensure consistency if body bg isn't applied correctly */
}

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

/* Hero Section */
.page-doi-tac__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 50px;
    background-color: var(--deep-navy);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-doi-tac__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding: 20px;
}

.page-doi-tac__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: block; /* Ensures no extra space below image */
}

.page-doi-tac__hero-text-block {
    text-align: center;
    max-width: 800px;
    color: var(--text-main);
}

.page-doi-tac__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-doi-tac__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.page-doi-tac__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    width: auto;
}

.page-doi-tac__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.7);
}

.page-doi-tac__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(79, 168, 255, 0.9);
    opacity: 0.9;
}

.page-doi-tac__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 10px rgba(79, 168, 255, 0.5);
}

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

/* General Sections */
.page-doi-tac__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-doi-tac__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-color);
    border-radius: 2px;
}

.page-doi-tac__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-doi-tac__intro-section, .page-doi-tac__types-section, .page-doi-tac__faq-section, .page-doi-tac__disclaimer-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    color: var(--text-main);
}

.page-doi-tac__dark-section, .page-doi-tac__contact-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: var(--text-main);
}

.page-doi-tac__section-title--light {
    color: var(--gold-color);
}

.page-doi-tac__text-block--light {
    color: var(--text-secondary);
}

/* Benefits Section */
.page-doi-tac__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-doi-tac__benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

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

.page-doi-tac__card-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px;
}

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

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

.page-doi-tac__cta-container {
    text-align: center;
    margin-top: 50px;
}

.page-doi-tac__cta-container--bottom {
    margin-top: 60px;
}

/* Types Section */
.page-doi-tac__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-doi-tac__type-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-doi-tac__card--gold-border {
    border: 2px solid var(--gold-color);
}

.page-doi-tac__card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--glow-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-doi-tac__card-link:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

/* Process Section */
.page-doi-tac__process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-doi-tac__step-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-doi-tac__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    border: 3px solid var(--glow-color);
}

.page-doi-tac__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-color);
}

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

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

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

.page-doi-tac__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-doi-tac__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-doi-tac__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--glow-color);
}

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

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

.page-doi-tac__faq-item[open] .page-doi-tac__faq-answer {
    max-height: 500px; /* Adjust as needed */
}

/* Contact Section */
.page-doi-tac__contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Disclaimer Section */
.page-doi-tac__disclaimer-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: center;
}

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

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

    /* Hero Section */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 30px;
    }

    .page-doi-tac__hero-content-wrapper {
        gap: 20px;
        padding: 15px;
    }

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

    .page-doi-tac__subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .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;
        font-size: 1rem;
    }

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

    /* General Sections */
    .page-doi-tac__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 30px;
    }

    .page-doi-tac__text-block {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .page-doi-tac__intro-section, .page-doi-tac__types-section, .page-doi-tac__faq-section, .page-doi-tac__disclaimer-section,
    .page-doi-tac__dark-section, .page-doi-tac__contact-section {
        padding: 40px 0;
    }

    /* Benefits Section */
    .page-doi-tac__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

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

    .page-doi-tac__card-image {
        min-height: 180px;
    }

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

    /* Types Section */
    .page-doi-tac__types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-doi-tac__type-card {
        padding: 25px;
    }

    /* Process Section */
    .page-doi-tac__process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-doi-tac__step-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-doi-tac__step-title {
        font-size: 1.2rem;
    }

    /* FAQ Section */
    .page-doi-tac__faq-list {
        padding: 0 15px;
    }

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

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

    /* Global image responsiveness */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* This page does not have a carousel section, five guide cards, home content box, or blog cards. */
    /* The template's mobile media query requirements for those specific sections are not applicable to this page. */
    /* However, general image and button responsiveness has been applied as required. */
}

/* Desktop specific styles for home_content_box (not used on doi-tac.html) */
/* The following are placeholder for the required check, but are not actually used on this page */
.page-doi-tac__home-content-box { 
    /* Not applicable for doi-tac.html */ 
}
.page-doi-tac__home-content-inner { 
    /* Not applicable for doi-tac.html */ 
}
.page-doi-tac__blog-grid { 
    /* Not applicable for doi-tac.html */ 
}

/* The following are placeholder for the required check for mobile media query, but are not actually used on this page */
@media (max-width: 768px) {
    .page-doi-tac__home-content-box {
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 10px 15px; /* Adjust padding for mobile */
        border-radius: 15px;
        box-shadow: 0 0 20px #3477c9; /* Keep shadow */
    }
    .page-doi-tac__home-content-inner {
        height: auto !important;
        overflow: visible !important;
    }
    .page-doi-tac__blog-grid {
        grid-template-columns: 1fr !important; /* Single column for blog on mobile */
        padding: 0 15px;
    }
    .page-doi-tac__hero-carousel-section { /* This page does not have a carousel, but for completeness of the check */
        padding-top: 10px !important;
        padding-bottom: 30px;
    }
    .page-doi-tac__guide-grid { /* This page does not have guide cards, but for completeness of the check */
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-doi-tac__guide-card { /* This page does not have guide cards, but for completeness of the check */
        padding-top: 0 !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .page-doi-tac__guide-card img { /* This page does not have guide cards, but for completeness of the check */
        aspect-ratio: 250/350 !important;
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
}