/* style/hoi-dap-faq.css */

.page-hoi-dap-faq {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
}

.page-hoi-dap-faq__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
}

.page-hoi-dap-faq__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px;
}

.page-hoi-dap-faq__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333;
}

.page-hoi-dap-faq__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #E53935;
    max-width: 600px;
}

.page-hoi-dap-faq__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
}

.page-hoi-dap-faq__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

.page-hoi-dap-faq__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.page-hoi-dap-faq__hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-hoi-dap-faq__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-hoi-dap-faq__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-hoi-dap-faq__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

.page-hoi-dap-faq__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-hoi-dap-faq__btn-secondary:hover {
    background: #E53935;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

.page-hoi-dap-faq__small-button {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 20px;
}

.page-hoi-dap-faq__content-area,
.page-hoi-dap-faq__related-links-section .page-hoi-dap-faq__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-hoi-dap-faq__section-title {
    font-size: 2.2em;
    font-weight: bold;
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
}

.page-hoi-dap-faq__intro-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #333333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-hoi-dap-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-hoi-dap-faq__faq-item {
    background: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-hoi-dap-faq__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    list-style: none;
    outline: none;
    position: relative;
}

.page-hoi-dap-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-hoi-dap-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-hoi-dap-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #E53935;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-hoi-dap-faq__faq-item[open] .page-hoi-dap-faq__faq-toggle {
    transform: rotate(0deg);
}

.page-hoi-dap-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #333333;
}

.page-hoi-dap-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-hoi-dap-faq__faq-answer ol,
.page-hoi-dap-faq__faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: decimal;
}

.page-hoi-dap-faq__faq-answer ul {
    list-style-type: disc;
}

.page-hoi-dap-faq__faq-answer li {
    margin-bottom: 8px;
}

.page-hoi-dap-faq__faq-answer a {
    color: #E53935;
    text-decoration: underline;
}

.page-hoi-dap-faq__sub-question {
    font-size: 1.1em;
    font-weight: bold;
    color: #E53935;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-hoi-dap-faq__faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 15px;
    display: block;
}

.page-hoi-dap-faq__related-links-section {
    background-color: #F5F7FA;
    padding: 60px 0;
}

.page-hoi-dap-faq__links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.page-hoi-dap-faq__link-card {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.page-hoi-dap-faq__link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap-faq__card-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #E53935;
    margin-bottom: 10px;
}

.page-hoi-dap-faq__card-description {
    font-size: 0.95em;
    color: #666666;
}

/* General image responsive styles */
.page-hoi-dap-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-hoi-dap-faq {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-hoi-dap-faq__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-hoi-dap-faq__hero-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    .page-hoi-dap-faq__hero-content {
        flex: 1 1 100%;
        text-align: center;
    }

    .page-hoi-dap-faq__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-hoi-dap-faq__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-hoi-dap-faq__hero-image {
        flex: 1 1 100%;
        order: -1; /* Image above text on mobile */
    }

    .page-hoi-dap-faq__hero-cta-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-hoi-dap-faq__cta-button,
    .page-hoi-dap-faq__btn-primary,
    .page-hoi-dap-faq__btn-secondary,
    .page-hoi-dap-faq a[class*="button"],
    .page-hoi-dap-faq 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-left: 15px;
        padding-right: 15px;
    }

    .page-hoi-dap-faq__content-area,
    .page-hoi-dap-faq__related-links-section .page-hoi-dap-faq__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-hoi-dap-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-hoi-dap-faq__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-hoi-dap-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-hoi-dap-faq__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    .page-hoi-dap-faq__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-hoi-dap-faq__links-grid {
        grid-template-columns: 1fr;
    }

    .page-hoi-dap-faq__link-card {
        padding: 20px;
    }

    /* Ensure all images inside content areas are responsive */
    .page-hoi-dap-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}

/* Color Contrast Fixes (if needed) */
.page-hoi-dap-faq__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-hoi-dap-faq__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}