/**
 * Component: Service FAQs (Những câu hỏi thường gặp)
 * Path: template-parts/sections/service-faqs/style.css
 */

.service-faqs-section {
    padding: clamp(50px, 6vw, 90px) 0;
    background-color: #ffffff;
    width: 100%;
}

.custom-faq-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Tiêu đề "Những câu hỏi thường gặp" phông Kodchasan, màu #374426 32px */
.custom-faq-heading {
    font-family: 'Kodchasan', var(--font-serif), Georgia, serif !important;
    font-weight: 500;
    font-size: 32px !important;
    color: #374426 !important;
    text-align: center;
    margin: 0 0 clamp(24px, 4vw, 40px) 0;
    letter-spacing: -0.3px;
}

.custom-faq-container {
    font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
    margin: 20px 0;
}

.custom-faq-item {
    border-top: 1px solid #e5e5e5;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

.custom-faq-item:last-child {
    border-bottom: 1px solid #e5e5e5;
}

.custom-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.custom-faq-title {
    font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 16px !important;
    font-weight: 600;
    color: #456C35;
    line-height: 1.45;
}

.custom-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: #456C35;
    margin-left: 15px;
    flex-shrink: 0;
}

.custom-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.custom-faq-content-inner {
    padding: 0 20px 20px 20px;
    font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
    font-size: 16px !important;
    color: #4a4a4a;
    line-height: 1.65;
}

.custom-faq-content-inner p {
    margin: 0;
    font-size: 16px !important;
}

/* Khi được click (Active) */
.custom-faq-item.is-active {
    background-color: #F7F5E9;
}

.custom-faq-item.is-active .custom-faq-title {
    font-weight: 700;
    color: #374426;
}

.custom-faq-item.is-active .custom-faq-icon {
    transform: rotate(180deg);
}

/* Tablet & Mobile */
@media (max-width: 991px) {
    .custom-faq-wrapper {
        padding: 0 15px !important;
    }
}

@media (max-width: 767px) {
    .custom-faq-heading {
        font-size: 26px !important;
    }
    .custom-faq-title,
    .custom-faq-content-inner,
    .custom-faq-content-inner p {
        font-size: 14.5px !important;
    }
    .custom-faq-header {
        padding: 15px !important;
    }
    .custom-faq-content-inner {
        padding: 0 15px 15px 15px !important;
    }
}