/* انجمن هامرز — استایل محتوای همگام‌شده (همه‌ی کلاس‌ها با پیشوند ha- تا با قالب سایت تداخل نداشته باشد) */
.ha {
    --ha-brand: #1e6a75;
    --ha-ink: #0f172a;
    --ha-muted: #64748b;
    --ha-line: #e2e8f0;
    --ha-soft: #f8fafc;
    --ha-radius: 16px;
    direction: rtl;
    color: var(--ha-ink);
    line-height: 1.9;
}
.ha *, .ha *::before, .ha *::after { box-sizing: border-box; }
.ha img { max-width: 100%; height: auto; display: block; }
.ha a { text-decoration: none; }
.ha-muted { color: var(--ha-muted); }
.ha-empty { color: var(--ha-muted); padding: 24px 0; text-align: center; }

/* هدر صفحه‌ی عضو */
.ha-hero { background: #fff; border: 1px solid var(--ha-line); border-radius: 20px; overflow: hidden; }
.ha-cover { height: 220px; background: linear-gradient(135deg, var(--ha-brand), #0f172a); }
.ha-cover img { width: 100%; height: 100%; object-fit: cover; }
.ha-head { display: flex; gap: 20px; align-items: flex-end; padding: 0 24px 20px; margin-top: -56px; flex-wrap: wrap; }
.ha-logo { width: 112px; height: 112px; border-radius: 22px; background: #fff; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-size: 40px; font-weight: 800; color: var(--ha-brand); }
.ha-logo img { width: 100%; height: 100%; object-fit: contain; }
.ha-title { flex: 1; min-width: 220px; padding-top: 60px; }
.ha-title .ha-name { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.6; }
.ha-title p { margin: 2px 0 0; color: var(--ha-muted); }
.ha-verified { display: inline-block; background: #dcfce7; color: #166534; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-top: 8px; }
.ha-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--ha-line); border-top: 1px solid var(--ha-line); }
.ha-facts > div { background: #fff; padding: 12px 20px; }
.ha-k { display: block; font-size: 12px; color: var(--ha-muted); }
.ha-v { display: block; font-size: 14px; font-weight: 700; color: var(--ha-ink); overflow-wrap: anywhere; }

.ha-section { background: #fff; border: 1px solid var(--ha-line); border-radius: var(--ha-radius); padding: 22px 24px; margin-top: 20px; }
.ha-section h2 { font-size: 19px; font-weight: 800; margin: 0 0 14px; }
.ha-about { color: #334155; }

/* محصولات */
.ha-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ha-product { border: 1px solid var(--ha-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.ha-product-img { aspect-ratio: 4 / 3; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; overflow: hidden; }
.ha-product-img img { width: 100%; height: 100%; object-fit: cover; }
.ha-product-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ha-product-body h3 { font-size: 15px; font-weight: 800; margin: 0; }
.ha-product-body p { font-size: 13.5px; color: #475569; margin: 0; }
.ha-product-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13.5px; }
.ha-price { font-weight: 800; color: var(--ha-brand); }

/* تماس و مشخصات */
.ha-contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ha-contact > div { background: var(--ha-soft); border-radius: 12px; padding: 12px 14px; }
.ha-contact .ha-wide { grid-column: 1 / -1; }
.ha-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ha-social a { border: 1px solid var(--ha-line); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; color: var(--ha-ink); }
.ha-social a:hover { border-color: var(--ha-brand); color: var(--ha-brand); }

/* دفتر مرکزی و کارخانه */
.ha-location + .ha-location { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--ha-line); }
.ha-location h3 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.ha-location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.ha-contact-single { grid-template-columns: 1fr; }
.ha-map { width: 100%; height: 260px; border: 0; border-radius: 12px; background: #f1f5f9; }
.ha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; background: none !important; padding: 0 !important; }
.ha-nav a { font-size: 12.5px; border: 1px solid var(--ha-line); border-radius: 999px; padding: 4px 12px; color: var(--ha-ink); background: #fff; }
.ha-nav a:hover { border-color: var(--ha-brand); color: var(--ha-brand); }
@media (max-width: 760px) { .ha-location-grid { grid-template-columns: 1fr; } }

/* خبر */
.ha-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.ha-badge { display: inline-block; background: #eef6f7; color: var(--ha-brand); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ha-attachments h3 { font-size: 16px; margin: 12px 0 8px; }
.ha-attachment { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--ha-line); border-radius: 10px; margin-bottom: 8px; color: var(--ha-ink); }
.ha-attachment:hover { border-color: var(--ha-brand); }
.ha-attachment small { color: var(--ha-muted); }

/* گالری */
.ha-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.ha-photos figure { margin: 0; }
.ha-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.ha-photos figcaption { font-size: 12.5px; color: var(--ha-muted); margin-top: 4px; }

/* فهرست‌ها (کدکوتاه‌ها) */
.ha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ha-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ha-line); border-radius: 14px; overflow: hidden; color: var(--ha-ink); transition: border-color .15s, box-shadow .15s; }
.ha-card:hover { border-color: var(--ha-brand); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.ha-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #f1f5f9; color: var(--ha-muted); overflow: hidden; }
.ha-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ha-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; min-width: 0; }
.ha-card-body h3 { font-size: 15.5px; margin: 0; line-height: 1.7; }
.ha-card-body h3 a { color: var(--ha-ink); }
.ha-card-body p { font-size: 13.5px; color: #475569; margin: 0; }
.ha-card-body small { font-size: 12.5px; color: #475569; }
.ha-card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ha-muted); }

.ha-member-card { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
.ha-member-logo { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--ha-line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-size: 24px; font-weight: 800; color: var(--ha-brand); }
.ha-member-logo img { width: 100%; height: 100%; object-fit: contain; }
.ha-member-card .ha-card-body { padding: 0; }

.ha-search { display: flex; gap: 8px; margin-bottom: 16px; }
.ha-search input { flex: 1; padding: 10px 14px; border: 1px solid var(--ha-line); border-radius: 10px; font: inherit; }
.ha-search button, .ha-button { display: inline-block; background: var(--ha-brand); color: #fff !important; border: 0; border-radius: 10px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.ha-button-light { background: #fff; color: var(--ha-brand) !important; border: 1px solid var(--ha-brand); }
.ha-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ha-pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.ha-pager a { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid var(--ha-line); border-radius: 8px; color: var(--ha-ink); }
.ha-pager a.is-active { background: var(--ha-brand); border-color: var(--ha-brand); color: #fff; }

.ha-events-list { display: flex; flex-direction: column; gap: 10px; }
.ha-event-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--ha-line); border-radius: 12px; background: #fff; color: var(--ha-ink); }
.ha-event-row:hover { border-color: var(--ha-brand); }
.ha-event-row .ha-card-body { flex: 1; padding: 0; }
.ha-event-date { flex: none; background: #eef6f7; color: var(--ha-brand); font-weight: 800; border-radius: 10px; padding: 8px 12px; font-size: 14px; }

@media (max-width: 640px) {
    .ha-cover { height: 150px; }
    .ha-head { padding: 0 16px 16px; }
    .ha-logo { width: 88px; height: 88px; }
    .ha-title { padding-top: 0; }
    .ha-section { padding: 18px 16px; }
    .ha-event-row { flex-wrap: wrap; }
}
