/* Shahramteb B-06. Namespaced; mirrors the supplied reference DOM/utility styling. */
.sh-b06,
.sh-b06 * { box-sizing: border-box; }

.sh-b06 {
  --shb06-section-bg: #f8f9fb;
  --shb06-hover-speed: 150ms;
  --shb06-cols-desktop: 7;
  --shb06-cols-tablet: 4;
  --shb06-mobile-card-width: 30%;
  direction: rtl;
  width: 100%;
  background: var(--shb06-section-bg);
  color: #01193f;
  font-family: YekanBakh, "Yekan Bakh", Tahoma, sans-serif;
}

.sh-b06__inner {
  max-width: 1400px;
  margin-inline: auto;
  padding: 40px 32px 56px;
}

.sh-b06__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.sh-b06__heading-wrap { min-width: 0; }

.sh-b06__eyebrow {
  margin: 0 0 8px;
  color: #16865a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .3em;
}

.sh-b06__title {
  margin: 0;
  padding: 0;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 300;
  font-family: inherit;
  color: #01193f;
  text-align: right;
}

.sh-b06__title-strong { font-weight: 600; }

.sh-b06__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #738093;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--shb06-hover-speed) ease;
}

.sh-b06__all:hover,
.sh-b06__all:focus-visible { color: #01193f; }
.sh-b06__all svg { display: block; flex-shrink: 0; }

.sh-b06__grid {
  display: grid;
  grid-template-columns: repeat(var(--shb06-cols-desktop), minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  direction: rtl;
}

.sh-b06__card {
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  min-width: 0;
  padding: 10px;
  border-radius: 20px;
  background-color: #fff;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color var(--shb06-hover-speed) ease;
}

.sh-b06__card:hover,
.sh-b06__card:focus-visible { background-color: #edf1f4; }

.sh-b06__picture {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 14.4px;
}

.sh-b06__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

.sh-b06__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #f0f2f4;
}

.sh-b06__card-title {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 10px 4px 0;
  overflow: hidden;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .025em;
  color: #01193f;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--shb06-hover-speed) ease;
}

.sh-b06__card:hover .sh-b06__card-title,
.sh-b06__card:focus-visible .sh-b06__card-title { color: #16865a; }

/* Optional enhancements: off by default, because they are not in the HTML source. */
.sh-b06--zoom .sh-b06__image { transition: transform 220ms ease; }
.sh-b06--zoom .sh-b06__card:hover .sh-b06__image,
.sh-b06--zoom .sh-b06__card:focus-visible .sh-b06__image { transform: scale(1.055); }
.sh-b06--lift .sh-b06__card { transition: background-color var(--shb06-hover-speed) ease, transform 220ms ease; }
.sh-b06--lift .sh-b06__card:hover,
.sh-b06--lift .sh-b06__card:focus-visible { transform: translateY(-4px); }

.sh-b06 a:focus-visible {
  outline: 2px solid #16865a;
  outline-offset: 2px;
}

.sh-b06__editor-notice {
  font: 14px/1.8 YekanBakh, Tahoma, sans-serif;
  padding: 16px;
  background: #fff;
  border: 1px dashed #b9c1ce;
  border-radius: 12px;
  color: #01193f;
}

/* Original Tailwind implementation: sm:grid-cols-4, lg:grid-cols-7. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .sh-b06__grid { grid-template-columns: repeat(var(--shb06-cols-tablet), minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 640px) and (max-width: 767.98px) {
  .sh-b06__title { font-size: 30px; }
}

/* Original: max-sm: horizontal scroll, 30%-width cards, snap-x mandatory. */
@media (max-width: 639.98px) {
  .sh-b06__inner { padding: 32px 16px; }
  .sh-b06__header {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
  }
  .sh-b06__title { font-size: 28px; }
  .sh-b06__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin-inline: -16px;
    padding-inline: 16px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .sh-b06__grid::-webkit-scrollbar { display: none; }
  .sh-b06__card {
    flex: 0 0 var(--shb06-mobile-card-width);
    width: var(--shb06-mobile-card-width);
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-b06 .sh-b06__card,
  .sh-b06 .sh-b06__card-title,
  .sh-b06 .sh-b06__all,
  .sh-b06 .sh-b06__image { transition-duration: 0ms !important; }
  .sh-b06 .sh-b06__card:hover,
  .sh-b06 .sh-b06__card:focus-visible,
  .sh-b06 .sh-b06__card:hover .sh-b06__image,
  .sh-b06 .sh-b06__card:focus-visible .sh-b06__image { transform: none !important; }
  .sh-b06__grid { scroll-behavior: auto; }
}

/* Repeater custom cards without a destination remain visual but not clickable. */
.sh-b06__card--static { cursor: default; }
