/* ==========================================================================
   Static Pages Common Styles (Haminja)
   ========================================================================== */

.hmj-static-page {
    background: var(--hmj-bg-page, #f8fafc);
    min-height: 60vh;
}

.hmj-static-card {
    background: var(--hmj-bg-card, #ffffff);
    border-radius: var(--hmj-radius-lg, 20px);
    box-shadow: var(--hmj-shadow-sm, 0 4px 16px rgba(15, 23, 42, 0.04));
    border: none;
    padding: 2rem;
}

.hmj-static-card h1,
.hmj-static-card h3 {
    color: var(--hmj-text, #0f172a);
}

.hmj-static-lead {
    color: var(--hmj-text-muted, #64748b);
    line-height: 1.9;
    font-size: 1rem;
}

.hmj-static-list {
    padding-right: 1.25rem;
    color: var(--hmj-text-muted, #64748b);
    line-height: 2;
}

.hmj-static-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.hmj-error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hmj-error-icon svg {
    width: 36px;
    height: 36px;
}

/* ==========================================================================
   Minimal & Sleek FAQ Styles (طراحی مینیمال و شیک سوالات متداول)
   ========================================================================== */

.hmj-faq-section {
    background: var(--hmj-bg-page, #f8fafc);
    min-height: 70vh;
    padding-bottom: 3rem;
}

.hmj-faq-hero {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.hmj-faq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.16);
    color: var(--hmj-primary, #0d9488);
    font-size: 0.8rem;
    font-weight: 600;
}

.hmj-faq-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--hmj-text, #0f172a);
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
}

.hmj-faq-subtitle {
    font-size: 0.92rem;
    color: var(--hmj-text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* باکس جستجوی مینیمال */
.hmj-faq-search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.hmj-faq-search-input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 38px;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: var(--hmj-surface, #ffffff);
    color: var(--hmj-text, #1e293b);
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.hmj-faq-search-input:focus {
    outline: none;
    border-color: var(--hmj-primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.hmj-faq-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.hmj-faq-search-clear {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hmj-faq-search-clear:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* نوار تعداد و بستن همه */
.hmj-faq-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto 0.75rem;
    padding: 0 0.25rem;
}

.hmj-faq-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hmj-primary, #0d9488);
    background: rgba(13, 148, 136, 0.07);
    padding: 3px 10px;
    border-radius: 999px;
}

/* لیست آکاردئون مینیمال */
.hmj-faq-list {
    max-width: 720px;
    margin: 0 auto 2rem;
}

.hmj-faq-item {
    background: var(--hmj-surface, #ffffff);
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    margin-bottom: 0.55rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.hmj-faq-item:hover {
    border-color: rgba(13, 148, 136, 0.3);
}

.hmj-faq-item.is-open {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.06);
}

/* هدر آیتم */
.hmj-faq-header {
    margin: 0;
}

.hmj-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: right;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hmj-faq-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.hmj-faq-icon-box {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 9px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--hmj-primary, #0d9488);
    border: 1px solid rgba(13, 148, 136, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hmj-faq-item:hover .hmj-faq-icon-box,
.hmj-faq-item.is-open .hmj-faq-icon-box {
    background: var(--hmj-primary, #0d9488);
    color: #ffffff;
    border-color: var(--hmj-primary, #0d9488);
}

.hmj-faq-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.hmj-faq-question {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--hmj-text, #1e293b);
    line-height: 1.5;
    margin: 0;
    white-space: normal;
}

.hmj-faq-item.is-open .hmj-faq-question {
    color: var(--hmj-primary, #0d9488);
}

/* دکمه باز/بستن چورون */
.hmj-faq-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.hmj-faq-item:hover .hmj-faq-toggle {
    background: rgba(13, 148, 136, 0.1);
    color: var(--hmj-primary, #0d9488);
}

.hmj-faq-btn:not(.collapsed) .hmj-faq-toggle {
    transform: rotate(180deg);
    background: var(--hmj-primary, #0d9488);
    color: #ffffff;
}

/* بدنه پاسخ */
.hmj-faq-body {
    padding: 0 1rem 0.85rem 1rem;
}

.hmj-faq-answer-inner {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-right: 3px solid var(--hmj-primary, #0d9488);
}

.hmj-faq-answer-text {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
    word-break: break-word;
}

/* کارت خالی بودن نتایج */
.hmj-faq-empty-search {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--hmj-surface, #ffffff);
    border-radius: 14px;
    border: 1.5px dashed #cbd5e1;
    margin-bottom: 1.5rem;
}

.hmj-faq-empty-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    color: var(--hmj-primary, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* بنر CTA مینیمال انتهای صفحه */
.hmj-faq-cta {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 16px;
    padding: 1.35rem 1.75rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hmj-faq-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 220px;
}

.hmj-faq-cta-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
}

.hmj-faq-cta-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.hmj-faq-cta-desc {
    font-size: 0.85rem;
    opacity: 0.92;
    line-height: 1.5;
    margin: 0;
}

.hmj-faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.25rem;
    background: #ffffff;
    color: #0f766e;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hmj-faq-cta-btn:hover {
    background: #f8fafc;
    color: #0d9488;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 576px) {
    .hmj-faq-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.15rem;
    }
    .hmj-faq-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Custom CMS Pages & Business Registration Guide
   ========================================================================== */
.hmj-page-wrap {
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.hmj-page-breadcrumb {
    margin-bottom: 1.25rem;
}

.hmj-page-article {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: clamp(1.35rem, 3vw, 2.75rem);
    box-shadow: 0 10px 34px -10px rgba(15, 23, 42, 0.06);
}

.hmj-page-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hmj-page-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 159, 138, 0.09);
    border: 1px solid rgba(15, 159, 138, 0.2);
    color: var(--hmj-primary-dark, #087F70);
    font-size: 0.78rem;
    font-weight: 700;
}

.hmj-page-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hmj-primary, #0F9F8A);
    box-shadow: 0 0 0 3px rgba(15, 159, 138, 0.18);
}

.hmj-page-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.hmj-page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hmj-page-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.hmj-page-meta i {
    color: var(--hmj-primary, #0F9F8A);
}

.hmj-page-hero {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.12);
    background: #0b2e2a;
}

.hmj-page-hero img {
    width: 100%;
    max-height: 390px;
    object-fit: cover;
    display: block;
}

.hmj-page-summary {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 159, 138, 0.08) 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 159, 138, 0.18);
    margin-bottom: 1.75rem;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.85;
}

.hmj-page-summary__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--hmj-primary, #0F9F8A);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.hmj-page-content {
    font-size: 1rem;
    line-height: 2;
    color: #334155;
    word-break: break-word;
}

.hmj-page-content h1,
.hmj-page-content h2,
.hmj-page-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.25rem;
}

.hmj-page-content h2 {
    padding-right: 0.75rem;
    border-right: 4px solid var(--hmj-primary, #0F9F8A);
}

.hmj-page-content p {
    margin-bottom: 1.15rem;
}

.hmj-page-content ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

@media (max-width: 767.98px) {
    .hmj-page-content ul {
        grid-template-columns: 1fr;
    }
}

.hmj-page-content ul li {
    position: relative;
    padding: 0.9rem 2.75rem 0.9rem 1rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
}

.hmj-page-content ul li::before {
    content: "";
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(15, 159, 138, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F9F8A' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}

/* Business guide steps & CTA */
.hmj-biz-guide {
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.hmj-biz-guide__head {
    margin-bottom: 1.25rem;
}

.hmj-biz-guide__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
}

.hmj-biz-guide__head p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.hmj-biz-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 1.75rem;
}

.hmj-biz-step {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.15rem 1rem;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hmj-biz-step:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 159, 138, 0.45);
    box-shadow: 0 12px 28px -8px rgba(15, 159, 138, 0.16);
}

.hmj-biz-step__num {
    position: absolute;
    top: 0.95rem;
    left: 0.95rem;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(15, 159, 138, 0.12);
    color: var(--hmj-primary-dark, #087F70);
    font-size: 0.78rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.hmj-biz-step__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 159, 138, 0.14), rgba(15, 159, 138, 0.05));
    color: var(--hmj-primary, #0F9F8A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.hmj-biz-step h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.hmj-biz-step p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.65;
    color: #64748b;
}

.hmj-biz-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.65rem 1.75rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #043832 0%, #08594e 50%, #0F9F8A 100%);
    color: #ffffff;
    box-shadow: 0 18px 40px -12px rgba(4, 56, 50, 0.35);
}

.hmj-biz-cta__badge {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.18);
    border: 1px solid rgba(94, 234, 212, 0.35);
    color: #5eead4;
    font-size: 0.74rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hmj-biz-cta__copy h3 {
    margin: 0 0 0.35rem;
    font-size: 1.18rem;
    font-weight: 900;
    color: #ffffff;
}

.hmj-biz-cta__copy p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.hmj-biz-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hmj-biz-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hmj-biz-cta__btn--primary {
    background: #ffffff;
    color: #06665A !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hmj-biz-cta__btn--primary:hover {
    transform: translateY(-2px);
    background: #ecfdf5;
}

.hmj-biz-cta__btn--ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.hmj-biz-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hmj-page-share {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hmj-page-share__label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 991.98px) {
    .hmj-biz-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hmj-biz-steps {
        grid-template-columns: 1fr;
    }

    .hmj-biz-cta {
        padding: 1.25rem;
    }

    .hmj-biz-cta__actions,
    .hmj-biz-cta__btn {
        width: 100%;
    }
}
