/* =========================================================
   Shared page FAQ accordion (hc-page-faq / hc-nbsec-faq)
   Reuse on any page: link this file and use the markup pattern
   from crm-development-solution.php FAQ section.
   ========================================================= */

.hc-nbsec-faq {
    margin-top: clamp(8px, 1vw, 12px);
    padding-top: clamp(32px, 4vw, 44px);
    border-top: 1px solid var(--white-scale-200);
}

.hc-nbsec-faq__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: clamp(22px, 2.8vw, 28px);
}

.hc-nbsec-faq__head .nbsec-label::before {
    display: none;
}

.hc-nbsec-faq__head .h5-headline {
    margin: 0;
    color: var(--white-scale-900);
}

.hc-nbsec-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hc-nbsec-faq__item {
    border-radius: 16px;
    border: 1px solid var(--white-scale-200);
    background: var(--background-bg-body);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.hc-nbsec-faq__item.is-open {
    border-color: color-mix(in oklab, var(--primary-colors-orange) 32%, var(--white-scale-200));
    box-shadow: 0 12px 32px color-mix(in oklab, var(--primary-colors-orange) 10%, transparent);
    background: radial-gradient(ellipse 70% 55% at 100% 0%, color-mix(in oklab, var(--primary-colors-orange) 10%, transparent), transparent 58%), var(--background-bg-body);
}

body.light_theme .hc-nbsec-faq__item {
    background: var(--fix-color-white);
}

body.light_theme .hc-nbsec-faq__item.is-open {
    background: radial-gradient(ellipse 70% 55% at 100% 0%, color-mix(in oklab, var(--primary-colors-orange) 8%, transparent), transparent 58%), var(--fix-color-white);
}

.hc-nbsec-faq__trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 1.5vw, 16px);
    width: 100%;
    padding: clamp(16px, 1.8vw, 20px) clamp(18px, 2vw, 22px);
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.hc-nbsec-faq__item.is-open .hc-nbsec-faq__trigger {
    align-items: flex-start;
}

.hc-nbsec-faq__question {
    margin: 0 !important;
    color: var(--white-scale-900) !important;
    line-height: 1.45;
    transition: color .2s ease;
}

.hc-nbsec-faq__trigger:hover .hc-nbsec-faq__question {
    color: color-mix(in oklab, var(--primary-colors-orange) 75%, var(--white-scale-900)) !important;
}

.hc-nbsec-faq__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 18px;
    color: var(--white-scale-700);
    background: var(--opacity-shade-white-white-100);
    border: 1px solid var(--white-scale-200);
    transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
}

.hc-nbsec-faq__item.is-open .hc-nbsec-faq__toggle {
    transform: rotate(180deg);
    color: var(--fix-color-black);
    background: var(--primary-colors-orange);
    border-color: var(--primary-colors-orange);
}

.hc-nbsec-faq__panel {
    display: none;
    padding: 0 clamp(18px, 2vw, 22px) clamp(18px, 2vw, 22px);
}

.hc-nbsec-faq__item.is-open .hc-nbsec-faq__panel {
    display: block;
}

.hc-nbsec-faq__panel .body-2 {
    margin: 0;
    max-width: 72ch;
    color: var(--white-scale-800);
    line-height: 1.65;
}

.hc-nbsec-faq.is-inview .hc-nbsec-faq__item {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition: opacity .4s ease, transform .4s ease, border-color .25s ease, box-shadow .25s ease;
}

.hc-nbsec-faq.is-inview .hc-nbsec-faq__item:nth-child(1) {
    transition-delay: .05s;
}

.hc-nbsec-faq.is-inview .hc-nbsec-faq__item:nth-child(2) {
    transition-delay: .1s;
}

.hc-nbsec-faq.is-inview .hc-nbsec-faq__item:nth-child(3) {
    transition-delay: .15s;
}

.hc-nbsec-faq.is-inview .hc-nbsec-faq__item {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hc-nbsec-faq.is-inview .hc-nbsec-faq__item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Standalone page FAQ section */
.hc-page-faq .section-head {
    margin-bottom: clamp(24px, 3vw, 36px);
}

.hc-page-faq__accordion {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hc-page-faq .hc-page-faq__accordion.hc-nbsec-faq {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.hc-page-faq__list {
    margin: 12px 0 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-page-faq__list li {
    line-height: 1.6;
    color: var(--white-scale-700);
}

.hc-page-faq .hc-nbsec-faq__panel .body-2 + .body-2 {
    margin-top: 12px;
}

.hc-page-faq:not(.is-expanded) .hc-page-faq__item--more {
    display: none;
}

.hc-page-faq__load-wrap {
    margin-top: clamp(24px, 3vw, 32px);
    text-align: center;
}

.hc-page-faq__load-more {
    min-width: 148px;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 10px;
}

.hc-page-faq.is-expanded .hc-page-faq__load-wrap {
    display: none;
}

@media (max-width: 575px) {
    .hc-page-faq__load-more {
        width: 100%;
        max-width: 280px;
    }
}
