/* افزونه شهدای شهر */
.shc-wrap, .shc-single { direction: rtl; text-align: right; }
.shc-wrap *, .shc-single * { box-sizing: border-box; }

/* جستجو */
.shc-search { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 28px; }
.shc-search input[type="search"] { flex: 1; padding: 11px 14px; border: 1px solid #cfd8d3; border-radius: 10px; font-size: 15px; }
.shc-search button { padding: 11px 22px; border: 0; border-radius: 10px; background: #1f3d33; color: #fff; cursor: pointer; font-size: 15px; }
.shc-search button:hover { background: #2d5a49; }

/* شبکه کارت‌ها */
.shc-grid { display: grid; grid-template-columns: repeat(var(--shc-cols, 4), 1fr); gap: 22px; }
@media (max-width: 1024px) { .shc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .shc-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px)  { .shc-grid { grid-template-columns: 1fr; } }

.shc-card { display: block; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none !important; color: inherit; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .25s ease, box-shadow .25s ease; border-bottom: 4px solid #1f3d33; }
.shc-card:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(0,0,0,.16); }

.shc-card-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #2c3e37; }
.shc-card-img img, .shc-card-img svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.shc-card:hover .shc-card-img img { transform: scale(1.06); }
.shc-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%); pointer-events: none; }
.shc-badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: #000; color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 20px; }

.shc-card-body { padding: 14px 12px 16px; text-align: center; }
.shc-card-body h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; color: #1f3d33; }
.shc-card-body p { margin: 0; font-size: 13px; color: #6b7a74; }

.shc-empty { text-align: center; padding: 40px 0; color: #777; }

/* صفحه‌بندی */
.shc-pagination { margin-top: 30px; text-align: center; }
.shc-pagination .page-numbers { display: inline-block; padding: 7px 14px; margin: 0 3px; border-radius: 8px; background: #eef2f0; color: #1f3d33; text-decoration: none; }
.shc-pagination .page-numbers.current, .shc-pagination .page-numbers:hover { background: #1f3d33; color: #fff; }

/* صفحه تک شهید */
.shc-single { max-width: 900px; margin: 0 auto; }
.shc-single-top { display: flex; gap: 30px; align-items: flex-start; background: #f6f8f7; border-radius: 16px; padding: 24px; border-right: 6px solid #1f3d33; }
.shc-single-photo { flex: 0 0 260px; border-radius: 12px; overflow: hidden; background: #2c3e37; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.shc-single-photo img, .shc-single-photo svg { width: 100%; height: auto; display: block; }
.shc-single-info { flex: 1; min-width: 0; }
.shc-label-martyr { display: inline-block; background: #000; color: #fff; font-size: 13px; padding: 3px 14px; border-radius: 20px; }
.shc-single-info h2 { margin: 10px 0 16px; font-size: 28px; color: #1f3d33; }
.shc-table { width: 100%; border-collapse: collapse; }
.shc-table th, .shc-table td { padding: 9px 6px; border-bottom: 1px solid #dde4e0; text-align: right; font-size: 15px; }
.shc-table th { width: 38%; color: #5b6b64; font-weight: 600; background: transparent; }

.shc-section { margin-top: 28px; }
.shc-section h3 { margin: 0 0 12px; padding-right: 12px; border-right: 4px solid #1f3d33; font-size: 21px; color: #1f3d33; }
.shc-text { line-height: 2.1; font-size: 16px; }
.shc-will .shc-text { background: #fffdf5; border: 1px dashed #c9b97a; border-radius: 12px; padding: 20px 22px; }

.shc-back { margin-top: 32px; }
.shc-back a { display: inline-block; padding: 10px 22px; background: #1f3d33; color: #fff !important; border-radius: 10px; text-decoration: none; }
.shc-back a:hover { background: #2d5a49; }

@media (max-width: 680px) {
  .shc-single-top { flex-direction: column; align-items: center; padding: 18px; }
  .shc-single-photo { flex-basis: auto; width: 70%; max-width: 280px; }
  .shc-single-info { width: 100%; }
  .shc-single-info h2 { font-size: 23px; }
}
