/* style/cau-hoi-thuong-gap.css */

/* Base styles for the page */
.page-cau-hoi-thuong-gap {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main from custom colors for dark body background */
    background-color: #0D0E12; /* Background from custom colors */
}

/* Hero Section */
.page-cau-hoi-thuong-gap__hero-section {
    padding-top: 10px; /* Small top padding to respect header offset from body */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background gradient */
    color: #FFF3E6;
}

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

.page-cau-hoi-thuong-gap__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-cau-hoi-thuong-gap__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for responsive H1 font size */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFB04D; /* Glow color for title */
}

.page-cau-hoi-thuong-gap__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF3E6;
}

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

.page-cau-hoi-thuong-gap__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-cau-hoi-thuong-gap__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cau-hoi-thuong-gap__btn-primary,
.page-cau-hoi-thuong-gap__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-cau-hoi-thuong-gap__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cau-hoi-thuong-gap__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #E67800 100%); /* Slightly lighter gradient on hover */
    transform: translateY(-2px);
}

.page-cau-hoi-thuong-gap__btn-secondary {
    background: #17191F; /* Card BG */
    color: #FFA53A; /* Auxiliary color */
    border: 2px solid #A84F0C; /* Border color */
}

.page-cau-hoi-thuong-gap__btn-secondary:hover {
    background: #2a2d34; /* Slightly darker on hover */
    color: #FFB04D;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-cau-hoi-thuong-gap__faq-section {
    padding: 60px 0;
    background-color: #0D0E12; /* Background color */
    color: #FFF3E6;
}

.page-cau-hoi-thuong-gap__content-area {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-cau-hoi-thuong-gap__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #FFB04D; /* Glow color for title */
}

.page-cau-hoi-thuong-gap__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-cau-hoi-thuong-gap__faq-item {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 8px;
    overflow: hidden;
    color: #FFF3E6;
}

.page-cau-hoi-thuong-gap__faq-item details {
    /* Reset default details styling */
    list-style: none;
}

.page-cau-hoi-thuong-gap__faq-item details summary::-webkit-details-marker {
    display: none;
}

.page-cau-hoi-thuong-gap__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #17191F; /* Card BG */
    color: #FFB04D; /* Glow color for questions */
    transition: background-color 0.3s ease;
}

.page-cau-hoi-thuong-gap__faq-question:hover {
    background-color: #2a2d34;
}

.page-cau-hoi-thuong-gap__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

.page-cau-hoi-thuong-gap__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #FFF3E6;
    /* max-height: 0; */ /* Not needed with native details element */
    /* overflow: hidden; */ /* Not needed with native details element */
    /* transition: max-height 0.3s ease-out; */ /* Not needed with native details element */
}

/* Only apply max-height for details[open] to ensure smooth transition */
.page-cau-hoi-thuong-gap__faq-item[open] .page-cau-hoi-thuong-gap__faq-answer {
    max-height: 2000px; /* Ample height for content */
    transition: max-height 0.5s ease-in;
}

.page-cau-hoi-thuong-gap__faq-answer p {
    margin-bottom: 15px;
}

.page-cau-hoi-thuong-gap__faq-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 6px;
}

/* General image styling for content area */
.page-cau-hoi-thuong-gap img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* CTA Section at the bottom */
.page-cau-hoi-thuong-gap__cta-section {
    background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%); /* Background to Card BG gradient */
    padding: 60px 0;
    text-align: center;
    color: #FFF3E6;
}

.page-cau-hoi-thuong-gap__cta-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-cau-hoi-thuong-gap__cta-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFB04D; /* Glow color */
}

.page-cau-hoi-thuong-gap__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- Media Queries --- */

/* Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-cau-hoi-thuong-gap {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cau-hoi-thuong-gap__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-cau-hoi-thuong-gap__hero-container {
        flex-direction: column;
        padding: 30px 15px;
        gap: 20px;
    }

    .page-cau-hoi-thuong-gap__hero-content,
    .page-cau-hoi-thuong-gap__hero-image {
        flex: 1 1 100%; /* Stack elements */
        min-width: unset;
    }

    .page-cau-hoi-thuong-gap__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        text-align: center;
    }

    .page-cau-hoi-thuong-gap__hero-description {
        font-size: 1rem;
        text-align: center;
    }

    .page-cau-hoi-thuong-gap__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cau-hoi-thuong-gap__btn-primary,
    .page-cau-hoi-thuong-gap__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px 15px;
        font-size: 1rem;
    }

    .page-cau-hoi-thuong-gap__faq-section {
        padding: 40px 0;
    }

    .page-cau-hoi-thuong-gap__content-area {
        padding: 0 15px;
    }

    .page-cau-hoi-thuong-gap__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-cau-hoi-thuong-gap__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-cau-hoi-thuong-gap__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }

    /* General image responsiveness for all images within the page content */
    .page-cau-hoi-thuong-gap img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure containers also adapt */
    .page-cau-hoi-thuong-gap__section,
    .page-cau-hoi-thuong-gap__card,
    .page-cau-hoi-thuong-gap__container,
    .page-cau-hoi-thuong-gap__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content within these sections, if they don't have it already */
        padding-left: 0;
        padding-right: 0;
    }
    .page-cau-hoi-thuong-gap__faq-item .page-cau-hoi-thuong-gap__faq-question,
    .page-cau-hoi-thuong-gap__faq-item .page-cau-hoi-thuong-gap__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cau-hoi-thuong-gap__cta-section {
        padding: 40px 0;
    }

    .page-cau-hoi-thuong-gap__cta-title {
        font-size: 1.8rem;
    }

    .page-cau-hoi-thuong-gap__cta-description {
        font-size: 1rem;
    }
}

/* For larger tablets (max-width: 1024px), often not explicitly required but good practice */
@media (max-width: 1024px) {
    .page-cau-hoi-thuong-gap__hero-container,
    .page-cau-hoi-thuong-gap__content-area,
    .page-cau-hoi-thuong-gap__cta-container {
        padding-left: 25px;
        padding-right: 25px;
    }
    .page-cau-hoi-thuong-gap__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cau-hoi-thuong-gap__section-title {
        font-size: 2.2rem;
    }
    .page-cau-hoi-thuong-gap__cta-title {
        font-size: 2rem;
    }
}