/* آکاردئون خالص — استایل هم‌خانواده تب‌اسلاید (بدون پنل اسلاید) */

.crafto-accordion {
    direction: rtl;
    width: 100%;
}

.crafto-accordion__title {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.crafto-accordion__intro {
    margin: 0 0 1.75rem;
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
}

.crafto-accordion__intro > :first-child {
    margin-top: 0;
}

.crafto-accordion__intro > :last-child {
    margin-bottom: 0;
}

.crafto-accordion__intro p {
    margin: 0 0 1rem;
}

.hpb-acc {
    --hpb-acc-divider: #e5e7eb;
    --hpb-acc-title-active: #0f172a;
    --hpb-acc-title-inactive: #64748b;
    --hpb-acc-body: #475569;
    --hpb-acc-icon: #94a3b8;
    --hpb-acc-transition: 450ms;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hpb-acc-item {
    border-bottom: 1px solid var(--hpb-acc-divider);
}

.hpb-acc-item:first-child {
    border-top: 1px solid var(--hpb-acc-divider);
}

.hpb-acc-item__trigger {
    display: block;
    width: 100%;
    padding: 22px 0;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: right;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.hpb-acc-item__headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.hpb-acc-item__title {
    display: block;
    font-size: var(--hpb-acc-title-size, clamp(1.05rem, 1.8vw, 1.35rem));
    font-weight: 600;
    line-height: 1.35;
    color: var(--hpb-acc-title-inactive);
    transition: color var(--hpb-acc-transition) ease, font-size var(--hpb-acc-transition) ease,
        font-weight var(--hpb-acc-transition) ease;
}

.hpb-acc-item.is-active .hpb-acc-item__title {
    font-size: var(--hpb-acc-title-size-active, clamp(1.45rem, 2.6vw, 2rem));
    font-weight: 700;
    color: var(--hpb-acc-title-active);
}

.hpb-acc-item__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hpb-acc-icon);
}

.hpb-acc-item__icon-plus {
    position: relative;
    width: 14px;
    height: 14px;
}

.hpb-acc-item__icon-plus::before,
.hpb-acc-item__icon-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: currentColor;
    border-radius: 1px;
    transition: transform var(--hpb-acc-transition) ease, opacity var(--hpb-acc-transition) ease;
}

.hpb-acc-item__icon-plus::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.hpb-acc-item__icon-plus::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.hpb-acc-item.is-active .hpb-acc-item__icon-plus::after {
    transform: translate(-50%, -50%) scaleY(0);
    opacity: 0;
}

.hpb-acc-item__body-wrap {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows var(--hpb-acc-transition) ease, margin var(--hpb-acc-transition) ease;
}

.hpb-acc-item.is-active .hpb-acc-item__body-wrap {
    grid-template-rows: 1fr;
    margin-bottom: 18px;
}

.hpb-acc-item__body-wrap[hidden] {
    display: grid;
}

.hpb-acc-item__body {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--hpb-acc-transition) ease, transform var(--hpb-acc-transition) ease;
}

.hpb-acc-item.is-active .hpb-acc-item__body {
    opacity: 1;
    transform: none;
}

.hpb-acc-item__content {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--hpb-acc-body);
}

.hpb-acc-item__content > :first-child {
    margin-top: 0;
}

.hpb-acc-item__content > :last-child {
    margin-bottom: 0;
}

.hpb-acc-item__media {
    margin-top: 1rem;
}

.hpb-acc-item__image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
}

.hpb-acc-item__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--h-navy, #0d48a2);
    text-decoration: none;
}

.hpb-acc-item__link:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .hpb-acc-item__title,
    .hpb-acc-item__body-wrap,
    .hpb-acc-item__body,
    .hpb-acc-item__icon-plus::before,
    .hpb-acc-item__icon-plus::after {
        transition: none;
    }
}
