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

/* Base styles for the page content */
.page-hoi-dap-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    padding-bottom: 40px;
}

/* Hero Section */
.page-hoi-dap-faq__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first, will change for desktop */
    align-items: center;
    text-align: center;
    padding: 10px 20px 40px; /* Small top padding as body handles header offset */
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Using brand colors for hero background */
    color: #ffffff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap-faq__hero-image-container {
    width: 100%;
    max-width: 800px; /* Adjust max-width for image */
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-hoi-dap-faq__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-hoi-dap-faq__hero-content {
    max-width: 900px;
    margin-bottom: 30px;
}

.page-hoi-dap-faq__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hoi-dap-faq__description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hoi-dap-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.page-hoi-dap-faq__btn-primary,
.page-hoi-dap-faq__btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-hoi-dap-faq__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button Color */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-hoi-dap-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-hoi-dap-faq__btn-secondary {
    background-color: #ffffff; /* Card BG */
    color: #2F6BFF; /* Main Color */
    border: 2px solid #2F6BFF; /* Main Color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap-faq__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #f0f5ff;
}

/* Content Area */
.page-hoi-dap-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-hoi-dap-faq__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    margin-top: 40px;
    position: relative;
}

.page-hoi-dap-faq__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2F6BFF 0%, #6FA3FF 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-hoi-dap-faq__intro-text {
    font-size: 1.1rem;
    color: #1F2D3D;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* FAQ List */
.page-hoi-dap-faq__faq-list {
    margin-top: 30px;
}

.page-hoi-dap-faq__faq-item {
    background-color: #ffffff; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth details animation */
}

.page-hoi-dap-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000; /* Custom Color_1776249996415 */
    cursor: pointer;
    background-color: #f8faff;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for summary */
}

/* Hide default marker for Webkit browsers */
.page-hoi-dap-faq__faq-question::-webkit-details-marker {
    display: none;
}

/* Hide default marker for Firefox */
.page-hoi-dap-faq__faq-item > summary {
    list-style: none;
}

.page-hoi-dap-faq__faq-question:hover {
    background-color: #e6f0ff;
}

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

.page-hoi-dap-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2F6BFF;
    transition: transform 0.3s ease;
}

.page-hoi-dap-faq__faq-item[open] .page-hoi-dap-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-hoi-dap-faq__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.05rem;
    color: #1F2D3D; /* Text Main */
    border-top: 1px solid #D6E2FF;
    background-color: #ffffff;
}

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

.page-hoi-dap-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}

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

.page-hoi-dap-faq__faq-link {
    color: #2F6BFF; /* Main Color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.page-hoi-dap-faq__faq-link:hover {
    color: #6FA3FF; /* Auxiliary Color */
    text-decoration: underline;
}

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

/* CTA Section at the bottom */
.page-hoi-dap-faq__cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #e6f0ff; /* Light background for contrast */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-hoi-dap-faq__cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: #2F6BFF; /* Main Color */
    margin-bottom: 15px;
}

.page-hoi-dap-faq__cta-text {
    font-size: 1.1rem;
    color: #1F2D3D;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles for Desktop */
@media (min-width: 769px) {
    .page-hoi-dap-faq__hero-section {
        flex-direction: row; /* Desktop layout */
        text-align: left;
        padding-left: 40px;
        padding-right: 40px;
    }

    .page-hoi-dap-faq__hero-content {
        flex: 1;
        margin-right: 40px;
        margin-bottom: 0;
    }

    .page-hoi-dap-faq__hero-image-container {
        flex: 1;
        margin-top: 0;
    }

    .page-hoi-dap-faq__cta-buttons {
        justify-content: flex-start;
    }
}

/* Responsive Styles for Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-hoi-dap-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-hoi-dap-faq__hero-section {
        padding: 10px 15px 30px;
        margin-bottom: 30px;
    }

    .page-hoi-dap-faq__hero-content {
        margin-bottom: 25px;
    }

    .page-hoi-dap-faq__main-title {
        font-size: 2.2rem;
    }

    .page-hoi-dap-faq__description {
        font-size: 1rem;
    }

    .page-hoi-dap-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin-left: auto;
        margin-right: auto;
    }

    .page-hoi-dap-faq__btn-primary,
    .page-hoi-dap-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        min-width: unset;
    }
    
    /* Ensure all images are responsive */
    .page-hoi-dap-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-hoi-dap-faq__hero-image-container,
    .page-hoi-dap-faq__content-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-hoi-dap-faq__container {
        padding: 0 15px;
    }

    .page-hoi-dap-faq__section-title {
        font-size: 2rem;
        margin-bottom: 25px;
        margin-top: 30px;
    }

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

    .page-hoi-dap-faq__faq-question {
        padding: 15px;
        font-size: 1.05rem;
    }

    .page-hoi-dap-faq__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95rem;
    }
    
    .page-hoi-dap-faq__faq-answer ul {
        margin-left: 20px;
    }

    .page-hoi-dap-faq__cta-section {
        margin-top: 40px;
        padding: 30px 15px;
    }

    .page-hoi-dap-faq__cta-title {
        font-size: 1.8rem;
    }

    .page-hoi-dap-faq__cta-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}