/* Hubs: /manufacturing and /counseling (index, list, profile) */
.dh { --dh-ink: #0f172a; --dh-mute: #64748b; --dh-line: #e2e8f0; --dh-soft: #f4f7fb; --dh-brand: #0044bb; --dh-accent: #475569; --dh-accent-soft: #eef1f5; color: var(--dh-ink); }
.dh--counseling { --dh-accent: #0f766e; --dh-accent-soft: #e3f5f1; }
.dh--manufacturing { --dh-accent: #b45309; --dh-accent-soft: #fdf1e2; }
.dh .container { max-width: 1180px; }

/* hero */
.dh-hero { position: relative; margin: 8px 0 28px; }
.dh-hero__box { position: relative; overflow: hidden; border-radius: 24px; min-height: 340px; display: flex; align-items: flex-end; background: #0f172a center / cover no-repeat; isolation: isolate; box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .55); }
.dh-hero__box::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 15, 32, .92) 0%, rgba(8, 15, 32, .62) 48%, rgba(8, 15, 32, .18) 100%); }
.dh-hero--compact .dh-hero__box { min-height: 220px; }
.dh-hero__body { width: 100%; padding: 34px 36px; color: #fff; }
.dh-hero__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: .85rem; font-weight: 700; margin-bottom: 14px; }
.dh-hero__title { margin: 0 0 10px; color: #fff; font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.45; }
.dh-hero__lead { margin: 0 0 18px; max-width: 760px; color: rgba(255, 255, 255, .88); line-height: 1.95; font-size: 1rem; }
.dh-hero--compact .dh-hero__title { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin-bottom: 0; }
.dh-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dh-stats li { min-width: 120px; padding: 10px 18px; border-radius: 16px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .2); }
.dh-stats strong { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.4; }
.dh-stats span { font-size: .82rem; opacity: .85; }

/* sections */
.dh-section { margin: 0 0 34px; }
.dh-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.dh-head h2 { margin: 0; font-size: 1.3rem; font-weight: 900; position: relative; padding-inline-start: 14px; }
.dh-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 18%; bottom: 18%; width: 5px; border-radius: 5px; background: var(--dh-accent); }
.dh-head p { margin: 4px 0 0; color: var(--dh-mute); font-size: .93rem; }
.dh h3.dh-sub { margin: 18px 0 10px; font-size: 1.02rem; font-weight: 800; }
.dh h3.dh-sub a { color: inherit; text-decoration: none; }

/* chips */
.dh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.dh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border: 1px solid var(--dh-line); border-radius: 999px; background: #fff; color: #334155; font-size: .9rem; font-weight: 700; text-decoration: none; transition: .15s; }
.dh-chip small { color: var(--dh-mute); font-weight: 700; font-size: .8rem; }
.dh-chip:hover, .dh-chip.is-active { background: var(--dh-accent); border-color: var(--dh-accent); color: #fff; transform: translateY(-1px); }
.dh-chip:hover small, .dh-chip.is-active small { color: rgba(255, 255, 255, .85); }
.dh-panel { padding: 20px 22px; border: 1px solid var(--dh-line); border-radius: 20px; background: #fff; margin: 0 0 22px; }

/* tiles (provinces / groups) */
.dh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dh-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--dh-line); border-radius: 16px; background: #fff; color: var(--dh-ink); font-weight: 800; text-decoration: none; transition: .15s; }
.dh-tile span { padding: 2px 10px; border-radius: 999px; background: var(--dh-accent-soft); color: var(--dh-accent); font-size: .82rem; font-weight: 800; }
.dh-tile:hover { border-color: var(--dh-accent); box-shadow: 0 10px 22px -16px rgba(15, 23, 42, .5); transform: translateY(-2px); }

/* cards */
.dh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dh-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--dh-line); border-radius: 18px; background: #fff; transition: .18s; }
.dh-card:hover { transform: translateY(-3px); border-color: var(--dh-accent); box-shadow: 0 16px 30px -20px rgba(15, 23, 42, .55); }
.dh-card__media { display: block; aspect-ratio: 1200 / 631; background: var(--dh-accent-soft); }
.dh-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dh-card__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--dh-accent); font-size: 2.6rem; font-weight: 900; background: linear-gradient(135deg, var(--dh-accent-soft), #fff); }
.dh-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dh-card__title { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.7; }
.dh-card__title a { color: var(--dh-ink); text-decoration: none; }
.dh-card__title a:hover { color: var(--dh-accent); }
.dh-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; }
.dh-tag { padding: 3px 10px; border-radius: 999px; background: var(--dh-accent-soft); color: var(--dh-accent); font-size: .78rem; font-weight: 800; }
.dh-tag--plain { background: var(--dh-soft); color: var(--dh-mute); }
.dh-empty { padding: 30px; text-align: center; border: 1px dashed var(--dh-line); border-radius: 18px; color: var(--dh-mute); }
.dh-pagination { margin-top: 28px; display: flex; justify-content: center; }

/* profile */
.dh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.dh-body { padding: 24px 26px; border: 1px solid var(--dh-line); border-radius: 20px; background: #fff; color: #334155; line-height: 2; }
.dh-body h2 { color: var(--dh-ink); font-weight: 900; font-size: 1.25rem; margin: 26px 0 10px; }
.dh-body h2:first-child { margin-top: 0; }
.dh-body p, .dh-body ul { margin: 0 0 14px; }
.dh-media { margin: 0 0 20px; }
.dh-media img { display: block; width: 100%; height: auto; border-radius: 20px; }
.dh-side { position: sticky; top: 24px; border: 1px solid var(--dh-line); border-radius: 20px; background: #fff; overflow: hidden; }
.dh-side__head { padding: 14px 20px; background: var(--dh-accent-soft); color: var(--dh-accent); font-weight: 900; }
.dh-side dl { margin: 0; padding: 6px 20px 16px; }
.dh-side dt { margin: 14px 0 3px; color: var(--dh-mute); font-size: .82rem; font-weight: 700; }
.dh-side dd { margin: 0; color: var(--dh-ink); font-weight: 800; word-break: break-word; }
.dh-side dd a { color: var(--dh-brand); text-decoration: none; }
.dh-side .dh-ltr { display: block; direction: ltr; unicode-bidi: plaintext; text-align: right; }
.dh-related { margin-top: 26px; }
.dh-related ul { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dh-related a { display: block; padding: 12px 16px; border: 1px solid var(--dh-line); border-radius: 14px; background: #fff; color: var(--dh-ink); font-weight: 800; text-decoration: none; transition: .15s; }
.dh-related a:hover { border-color: var(--dh-accent); color: var(--dh-accent); }
.dh-related small { color: var(--dh-mute); font-weight: 700; }
.dh-note { padding: 20px 24px; border-radius: 20px; background: var(--dh-soft); color: #334155; line-height: 2; }
.dh-note h2 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 900; }
.dh-note p { margin: 0 0 8px; }

@media (max-width: 991px) {
    .dh-layout { grid-template-columns: 1fr; }
    .dh-side { position: static; }
}
@media (max-width: 575px) {
    .dh-hero__box { min-height: 300px; border-radius: 18px; }
    .dh-hero--compact .dh-hero__box { min-height: 190px; }
    .dh-hero__body { padding: 22px 18px; }
    .dh-stats li { min-width: 0; flex: 1 1 28%; padding: 8px 12px; }
    .dh-grid { grid-template-columns: 1fr; }
    .dh-tiles { grid-template-columns: 1fr 1fr; }
    .dh-body { padding: 18px; }
}

/* person photo / default avatar */
.dh-card__avatar { padding: 10px 0 0; object-fit: contain !important; background: linear-gradient(135deg, var(--dh-accent-soft), #fff); }
.dh-side__photo { display: flex; justify-content: center; padding: 20px 20px 0; }
.dh-side__photo img { width: 180px; height: 180px; max-width: 100%; border-radius: 28px; object-fit: cover; background: linear-gradient(135deg, var(--dh-accent-soft), #fff); border: 1px solid var(--dh-line); }

/* products */
.dh-products { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--dh-line); border-radius: 20px; background: #fff; }
.dh-products .dh-head { margin-bottom: 12px; }
.dh-products .dh-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.15rem; }
.dh-products__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dh-products__list li { position: relative; padding: 8px 16px 8px 14px; border: 1px solid var(--dh-line); border-radius: 12px; background: var(--dh-accent-soft); color: var(--dh-ink); font-weight: 700; font-size: .92rem; line-height: 1.8; }

/* in-section search */
.dh-search { display: flex; gap: 10px; margin: 0 0 22px; padding: 8px; border: 1px solid var(--dh-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 24px -18px rgba(15, 23, 42, .5); }
.dh-search input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--dh-ink); font: inherit; }
.dh-search button { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 24px; border: 0; border-radius: 11px; background: var(--dh-accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.dh-search button:hover { filter: brightness(1.08); }
@media (max-width: 575px) { .dh-search { flex-direction: column; } .dh-search button { justify-content: center; } }

/* industrial group tiles with icons */
.dh-tile--group { gap: 12px; padding: 12px 14px; }
.dh-tile--group strong { flex: 1; font-weight: 800; line-height: 1.7; }
.dh-gicon { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--dh-accent-soft); color: var(--dh-accent); }
.dh-tile--group:hover .dh-gicon { background: var(--dh-accent); color: #fff; }

/* ۱۷ مهر ۱۴۰۵ (M1): دو ستون کاشی با متن بلند /factory را در گوشی از عرض صفحه بیرون می‌برد و مرورگر کوچک‌نمایی می‌کرد */
@media (max-width: 575px) {
    .dh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dh-tiles > li { min-width: 0; }
    .dh-tile { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
    .dh-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ۱۷ مهر ۱۴۰۵ (L1): سربرگ هاب‌های تولیدی و مشاوره در گوشی کوتاه (متن توضیحی پنهان) */
@media (max-width: 575px) {
    .dh-hero__box { min-height: 200px; }
    .dh-hero--compact .dh-hero__box { min-height: 150px; }
    .dh-hero__lead { display: none; }
    .dh-hero { margin-bottom: 16px; }
}
