/* Khung 1 */
.faq-container {
    display: flex;
    width: 1440px;
    height: 454px;
    margin: 0 auto;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), url(../public/images/FAQs-banner.jpg) lightgray 50% / cover no-repeat;
}

.faq-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-inner-box {
    width: 847px;
    height: 376.66px;
    position: relative;
}

.faq-heading {
    width: 847px;
    height: 138px;
    color: var(--Foundation-Yellow-Normal, #FFF600);
    font-size: 39px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.faq-heading-inner {
    width: 827px;
    height: 118px;
    display: flex;
    align-items: center;
}

.faq-border {
    background: #FFF;
    width: 748px;
    height: 1px;
    margin: 12px auto;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-bottom-box {
    width: 717px;
    height: 96px;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(24px);
    color: var(--Foundation-black-Normal, #FFF);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-align: justify;
}

.faq-right-box {
    width: 506.09px;
    height: 376.66px;
}

.faq-right-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Khung 2 */

.faq-section-2 {
    width: 1073px;
    height: auto;
    margin: 104px auto 104px;
    padding-bottom: 50px;
}

/* Ẩn hoàn toàn section khi không có dữ liệu */
.faq-section-2:empty,
.faq-section-2:not(:has(*)) {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.faq-section-2-top {
    width: 1073px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.faq-section-2-top-buttons-container {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.faq-section-2-top-buttons-container-2 {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 34px;
    gap: 32px;
}

.faq-section-2-top-button {
    width: fit-content;
    height: 62px;
    border-radius: 24px;
    background: var(--foundation-yellow-normal-hover, #E6DD00);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Foundation-black-Normal, #333);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 0 24px;
}

.faq-section-2-top-button-2 {
    width: fit-content;
    height: 62px;
    border-radius: 24px;
    background: var(--foundation-yellow-normal-hover, #E6DD00);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Foundation-black-Normal, #333);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 0 24px;
}

.faq-section-2-top-button-3 {
    width: fit-content;
    height: 62px;
    border-radius: 24px;
    background: var(--foundation-yellow-normal-hover, #E6DD00);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Foundation-black-Normal, #333);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 0 24px;
}

.faq-section-2-top-button-4 {
    width: fit-content;
    height: 62px;
    border-radius: 24px;
    background: var(--foundation-yellow-normal-hover, #E6DD00);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Foundation-black-Normal, #333);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 0 24px;
}

.faq-section-2-bottom {
    width: 960px;
    height: auto;
    margin: 65px auto 0;
    overflow: visible;
}

.faq-section-2-bottom-top {
    width: 960px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 71px;
}

.faq-section-2-bottom-top-text {
    color: var(--Foundation-black-Normal, #333);
    text-align: center;
    font-size: 31px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 46.5px */
    align-self: stretch;
}

.faq-section-2-bottom-middle {
    width: 960px;
    height: 64px;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}

.faq-section-2-bottom-middle-text {
    width: 880px;
    height: 38px;
    color: var(--Foundation-black-Normal, #333);
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 37.5px */
}

.faq-section-2-bottom-middle-icon {
    fill: var(--Foundation-black-Normal, #333);
    stroke-width: 3px;
    stroke: var(--Foundation-black-Normal, #333);
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
}

.faq-section-2-bottom-divider {
    background: #333;
    width: 960px;
    height: 1px;
    margin: 12px auto;
}

/* FAQ Answer Containers */
.faq-section-2-bottom-answer {
    width: 960px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.faq-section-2-bottom-answer.active {
    max-height: 350px;
    margin-bottom: 12px;
    opacity: 1;
    visibility: visible;
}

.faq-section-2-bottom-answer-content {
    padding: 15px 20px 15px 10px;
    color: var(--Foundation-black-Normal, #333);
    font-family: 'Roboto', sans-serif !important;
    font-size: 20px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 150% !important; /* 30px */
    flex: 1 0 0;
}

/* Force Roboto for all nested elements inside FAQ answer to override global Montserrat */
.faq-section-2-bottom-answer-content *,
.faq-section-2-bottom-answer-content {
    font-family: 'Roboto', sans-serif !important;
}

.faq-section-2-bottom-answer-content p {
    margin: 0 0 10px 0;
    font-family: 'Roboto', sans-serif !important;
    font-size: 20px !important;
    line-height: 150% !important;
}

.faq-section-2-bottom-answer-content ul {
    margin: 0;
    padding-left: 20px;
    font-family: 'Roboto', sans-serif !important;
    font-size: 20px !important;
    line-height: 150% !important;
}

.faq-section-2-bottom-answer-content li {
    margin-bottom: 6px;
    font-family: 'Roboto', sans-serif !important;
    font-size: 20px !important;
    line-height: 150% !important;
}

.faq-section-2-bottom-answer-content strong {
    font-weight: 700 !important;
    font-family: 'Roboto', sans-serif !important;
}

/* FAQ Content Sections */
.faq-content-section {
    display: none;
}

.faq-content-section.active {
    display: block;
}

/* FAQ Tab Buttons */
.faq-section-2-top-button,
.faq-section-2-top-button-2,
.faq-section-2-top-button-3,
.faq-section-2-top-button-4 {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    justify-self: center;
}

.faq-section-2-top-button.active,
.faq-section-2-top-button-2.active,
.faq-section-2-top-button-3.active,
.faq-section-2-top-button-4.active {
    opacity: 1;
    background: var(--foundation-yellow-normal, #FFF600);
}

/* FAQ Item Clickable */
.faq-section-2-bottom-middle {
    cursor: pointer;
    transition: background-color 0.2s ease;
}



/* Icon Transition */
.faq-section-2-bottom-middle-icon {
    transition: all 0.3s ease;
}

.faq-section-2-bottom-middle.active .faq-section-2-bottom-middle-icon {
    width: 48px;
    height: 48px;
    aspect-ratio: 1/1;
}
/* Khung 3 */
.faq-section-3 {
    width: 1440px;
    height: 703px;
    margin: 0 auto 104px;
}

.faq-section-3-top {
    width: 1440px;
    height: 59px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px;

}

.faq-section-3-top-text {
    color: var(--Foundation-black-Normal, #333);
    text-align: center;
    font-family: Montserrat;
    font-size: 39px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 58.5px */
    align-self: stretch;
}


.faq-section-3-bottom {
    width: 1440px;
    height: 599px;
    margin: 0 auto;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), url('/wp-content/themes/Web-tuvanhosocapdo-attt/public/images/home10.png') lightgray 50% / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Contact Form Styles */
.faq-frame-e1 {
    width: 915px;
    height: 438px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.faq-frame-e2 {
    width: 915px;
    height: 273px;
    margin-top: 32px;
}

.faq-frame-e3 {
    width: 915px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF600;
    font-size: 31px;
    font-weight: 700;
    text-align: center;
}

.faq-frame-e4 {
    width: 915px;
    height: 194px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 32px 41px;
}

.faq-frame-e41, .faq-frame-e42, .faq-frame-e43, .faq-frame-e44 {
    width: 437px;
    height: 81px;
}

.faq-frame-e41a {
    height: 38px;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.faq-frame-e41b {
    width: 437px;
    height: 38px;
    border-radius: 30px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
}

.faq-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #000;
    background: transparent;
    padding-left: 28px;
}

.faq-dropdown-container {
    position: relative;
}

.faq-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.faq-dropdown-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.faq-frame-e5 {
    width: 915px;
    height: 40px;
    margin-top: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-cta-button {
    width: 150px;
    height: 40px;
    background-color: #FFF600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
    font-size: 16px;
    font-weight: normal;
    transition: all 0.3s ease;
}
/* Khung 4 */
.faq-section-4 {
    width: 100%;
    margin: 90px auto 104px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-section-4-box {
    width: 1236px;
    height: 569px;
}

.faq-section-4-top {
    width: 1236px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 54px;
}

.faq-section-4-top-text {
    color: var(--Foundation-black-Normal, #333);
    font-family: Montserrat;
    font-size: 31px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    align-self: stretch;
    text-align: left;
}

.faq-section-4-bottom {
    width: 1236px;
    height: 468px;
    display: flex;
    gap: 76px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar across browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    cursor: default; /* arrow cursor */
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x;
    scroll-behavior: smooth;
}

.faq-section-4-bottom::-webkit-scrollbar { display: none; }

.faq-section-4-bottom.is-dragging {
    scroll-snap-type: none; /* disable snap while dragging for smoothness */
}

.faq-article-card {
    width: 300px;
    height: 468px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Disable interactions that interfere with dragging */
.faq-section-4-bottom *, .faq-article-card *, .faq-article-title, .faq-article-desc {
    -webkit-user-select: none;
    user-select: none;
}
.faq-article-card * { pointer-events: auto; }
.faq-article-card a { display: block; width: 100%; height: 100%; text-decoration: none; color: inherit; }

.faq-article-image {
    width: 300px;
    height: 302px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}
.faq-article-image img {
    width: 300px;
    height: 302px;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none; /* avoid capturing drag */
}
.faq-article-title {
    width: 300px;
    height: 40px;
    margin-top: 16px; /* gap ảnh 16px */
    color: var(--Foundation-black-Normal, #333);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    flex: 1 0 0;
    display: flex;
    padding: 0 10px;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    box-sizing: border-box; /* keep padding inside 300px */
    text-align: left;
}
.faq-article-desc {
    width: 300px;
    height: 110px;
    padding: 10px;
    color: var(--Foundation-black-Normal, #333);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    flex: 1 0 0;
    box-sizing: border-box;
}