.faq-tabs {
    position: sticky;
    top: var(--site-header-height, 150px);
    z-index: 90;
    display: flex;
    justify-content: center;
    gap: 58px;
    min-height: 56px;
    padding: 0 24px;
    background: #f5f4f0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

.faq-tabs::-webkit-scrollbar {
    display: none;
}

.faq-tab {
    flex: 0 0 auto;
    min-height: 32px;
    align-self: center;
    padding: 6px 13px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.faq-tab.is-active {
    background: #ff5500;
    color: #fff;
}

.faqs {
    padding: 58px 0 0;
}

.faq-panel[hidden] {
    display: none;
}

.faq-panel-title {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin: 0 0 16px;
    color: #000;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
}

.faq-panel-title span {
    font-size: 35px;
}

.faq-list {
    border-top: 1px solid #f3f3f5;
}

.faq-item {
    border: 1px solid #f3f3f5;
    border-top: 0;
    background: #fff;
    border-radius: 5px;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12.5px 17px;
    color: #000;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    flex: 0 0 auto;
    font-size: 16px;
    transition: transform 180ms ease;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 10px 17px 12px;
    background: #fff8f6;
    color: #000;
    font-size: 16px;
    line-height: 1.65;
}

.faq-answer p {
    margin: 0;
}

/* CSS-only smooth accordion: ไม่ใช้ JS เลย
   - เบราว์เซอร์ใหม่: เลื่อนกาง/พับนุ่มๆ ผ่าน ::details-content + interpolate-size
   - เบราว์เซอร์เก่า: เปิด/ปิดทันทีแบบเดิม (ไม่พัง) */
@supports (interpolate-size: allow-keywords) {
    :root {
        interpolate-size: allow-keywords;
    }
}

.faq-item::details-content {
    overflow: clip;
    height: 0;
    opacity: 0;
    transition:
        height 320ms ease,
        opacity 240ms ease,
        content-visibility 320ms allow-discrete;
}

.faq-item[open]::details-content {
    height: auto;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item::details-content {
        transition: none;
    }
}

@media (max-width: 768px) {
    .faq-tabs {
        top: var(--site-header-height, 72px);
        justify-content: flex-start;
        gap: 8px;
        padding: 0 16px;
    }

    .faq-panel-title {
        gap: 10px;
        font-size: 27px;
        font-weight: 600;
    }
}

.design-banner .banner-title::before,
.design-banner .banner-title::after {
    content: "";
    position: absolute;
    z-index: 0;
}

.design-banner .banner-title::before {
    background: #ffd600;
    bottom: 55px;
    left: 552px;
    width: 133px;
    height: 72px;

    z-index: -1;
}

.design-banner .banner-title::after {
    background: #058e75;
    right: 0;
    bottom: -40px;
    width: 129px;
    height: 129px;

    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.design-banner .banner-title {
    height: 343px;
}

@media (max-width: 768px) {
    .design-banner .banner-content {
        margin-top: 50px;
    }

    .design-banner .banner-title {
        height: 226px;
        margin-top: 100px;
    }

    .design-banner .banner-title::before {
        left: 20px;
        top: 118px;
        bottom: 0;
        width: 89px;
        height: 49px;
    }

    .design-banner .banner-title::after {
        right: 80px;
        top: 271px;
        bottom: 0;
        width: 73px;
        height: 73px;
    }
}
