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

/* General Styles for .page-cau-hoi-thuong-gap */
.page-cau-hoi-thuong-gap {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-cau-hoi-thuong-gap__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

.page-cau-hoi-thuong-gap__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #F4D34D; /* Gold */
    text-shadow: 0 0 8px rgba(255, 204, 102, 0.6); /* Glow */
}

.page-cau-hoi-thuong-gap__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #FFF5E1;
}

/* Hero Section */
.page-cau-hoi-thuong-gap__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background: linear-gradient(to right, #C91F17, #E53935); /* Primary and Auxiliary */
    color: #FFF5E1; /* Text Main */
}

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

.page-cau-hoi-thuong-gap__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    padding-right: 20px;
}

.page-cau-hoi-thuong-gap__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 title clamp */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold gradient start for emphasis */
}

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

.page-cau-hoi-thuong-gap__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-cau-hoi-thuong-gap__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #7A0E0E; /* Deep Red for contrast */
    border: 2px solid #F2B544; /* Border Gold */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cau-hoi-thuong-gap__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-cau-hoi-thuong-gap__btn-secondary {
    background-color: transparent;
    color: #FFD86A; /* Gold */
    border: 2px solid #FFD86A; /* Gold */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cau-hoi-thuong-gap__btn-secondary:hover {
    background-color: #FFD86A;
    color: #7A0E0E; /* Deep Red */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

.page-cau-hoi-thuong-gap__hero-side-image {
    max-width: 600px; /* Recommended size for hero */
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center image */
}

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

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

.page-cau-hoi-thuong-gap__faq-item {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid #7A0E0E; /* Deep Red border */
}

.page-cau-hoi-thuong-gap__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.25em;
    font-weight: bold;
    color: #FFD86A; /* Gold for question text */
    cursor: pointer;
    background-color: #C91F17; /* Primary Color */
    border-bottom: 1px solid #7A0E0E;
    position: relative;
    user-select: none; /* Prevent text selection on click */
}

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

.page-cau-hoi-thuong-gap__faq-item > summary {
    list-style: none; /* Hide default marker for details */
}

.page-cau-hoi-thuong-gap__faq-item[open] > .page-cau-hoi-thuong-gap__faq-question {
    border-bottom: 1px solid #7A0E0E;
}

.page-cau-hoi-thuong-gap__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-cau-hoi-thuong-gap__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: #F4D34D; /* Gold */
}

.page-cau-hoi-thuong-gap__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    color: #FFF5E1; /* Text Main */
    background-color: #D32F2F; /* Card BG */
}

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

.page-cau-hoi-thuong-gap__faq-answer ol,
.page-cau-hoi-thuong-gap__faq-answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-cau-hoi-thuong-gap__faq-answer li {
    margin-bottom: 8px;
}

.page-cau-hoi-thuong-gap__faq-answer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Contact CTA Section */
.page-cau-hoi-thuong-gap__contact-cta-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Background */
}

.page-cau-hoi-thuong-gap__dark-section {
    background-color: #C91F17; /* Primary color */
    color: #ffffff; /* Forced white text for contrast */
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Border Gold */
}

.page-cau-hoi-thuong-gap__dark-section .page-cau-hoi-thuong-gap__section-title {
    color: #FFD86A; /* Gold */
}

.page-cau-hoi-thuong-gap__dark-section .page-cau-hoi-thuong-gap__section-description {
    color: #FFF5E1; /* Text Main */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cau-hoi-thuong-gap__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-cau-hoi-thuong-gap__hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .page-cau-hoi-thuong-gap__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-cau-hoi-thuong-gap__cta-buttons {
        justify-content: center;
    }

    .page-cau-hoi-thuong-gap__hero-image {
        order: -1; /* Image above content on tablet */
    }

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

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

    .page-cau-hoi-thuong-gap__section-title {
        font-size: 2em;
    }
}

@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; /* Ensure small top padding */
        padding-bottom: 30px;
    }

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

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

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

    .page-cau-hoi-thuong-gap__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    .page-cau-hoi-thuong-gap__btn-primary,
    .page-cau-hoi-thuong-gap__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px; /* Adjust padding for mobile buttons */
    }
    
    .page-cau-hoi-thuong-gap__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All images must be responsive */
    .page-cau-hoi-thuong-gap img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Content area containers */
    .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-left: 15px;
        padding-right: 15px;
    }

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

    .page-cau-hoi-thuong-gap__faq-question {
        font-size: 1.1em;
        padding: 15px 15px;
    }

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

    .page-cau-hoi-thuong-gap__section-title {
        font-size: 1.8em;
    }

    .page-cau-hoi-thuong-gap__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cau-hoi-thuong-gap__dark-section {
        padding: 30px 15px;
    }
}