.home-showcase {
  --showcase-collapsed: 904px;
  width: 100%;
  margin: 0;
  padding: 30px 16px 70px;
  background: var(--cream);
  direction: rtl;
  font-family: "Vazirmatn", "Mona Sans", sans-serif;
}

.home-showcase *,
.home-showcase *::before,
.home-showcase *::after {
  box-sizing: border-box;
}

.showcase-head {
  max-width: 1400px;
  margin: 0 auto 28px;
  text-align: center;
}

.showcase-head h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.7;
}

.home-showcase .home2-sub {
  margin-bottom: 0;
}

.home-showcase [data-animate] {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
}

.home-showcase [data-animate].is-in {
  animation: showcaseBlurIn 0.7s ease both;
}

@keyframes showcaseBlurIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

.showcase-list {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-list.is-collapsible:not(.is-expanded) {
  padding-bottom: 36px;
}

.showcase-clip {
  position: relative;
  overflow: visible;
}

.showcase-list.is-collapsible:not(.is-expanded) .showcase-clip {
  max-height: var(--showcase-collapsed);
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 10px 0 22px;
}

.showcase-card {
  --showcase-accent: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 252px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.showcase-card:hover {
  border-color: rgba(26, 69, 59, 0.22);
}

.showcase-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.showcase-brand {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-areas:
    "logo name"
    "logo followers"
    "bio bio";
  gap: 3px 11px;
  min-width: 0;
}

.showcase-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-art);
}

.showcase-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--ink);
  background: var(--cream);
  font-size: 22px;
  font-weight: 800;
}

.showcase-name {
  grid-area: name;
  align-self: end;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.showcase-followers {
  grid-area: followers;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-align: right;
}

.showcase-bio {
  grid-area: bio;
  overflow: hidden;
  margin-top: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.showcase-years {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 130px;
  padding-top: 2px;
  text-align: left;
}

.showcase-years span,
.showcase-years strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 160px;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.showcase-years strong {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
}

.showcase-services {
  display: grid;
  grid-template-columns: repeat(var(--showcase-service-cols, 4), minmax(0, 1fr));
  grid-auto-rows: 27px;
  grid-auto-flow: dense;
  gap: 6px;
  padding-top: 1px;
}

.showcase-service {
  --showcase-service: var(--ink);
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 28px;
  padding: 4px 8px;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.showcase-service svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: var(--showcase-service);
}

.showcase-service.is-featured {
  grid-row: span 2;
  height: auto;
  min-height: 60px;
  padding: 8px;
  justify-content: center;
  background: var(--paper);
  border-color: rgba(26, 69, 59, 0.22);
  font-weight: 700;
}

.showcase-service > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-fade {
  display: none;
  position: absolute;
  z-index: 10;
  inset-inline: 0;
  bottom: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 245, 242, 0) 0%, rgba(248, 245, 242, 0.86) 55%, var(--cream) 100%);
}

.showcase-list.is-collapsible:not(.is-expanded) .showcase-fade {
  display: block;
}

.showcase-more {
  position: absolute;
  z-index: 15;
  left: 50%;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transform: translateX(-50%);
}

.showcase-more:hover {
  border-color: var(--accent);
}

.showcase-more-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.showcase-more-icon::before,
.showcase-more-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}

.showcase-more-icon::before {
  top: -1px;
  opacity: 0.95;
}

.showcase-more-icon::after {
  top: 5px;
  opacity: 0.45;
}

.showcase-list.is-expanded {
  padding-bottom: 10px;
}

.showcase-list.is-expanded .showcase-clip {
  max-height: none;
  overflow: visible;
}

.showcase-list.is-expanded .showcase-fade,
.showcase-list.is-expanded .showcase-more {
  display: none;
}

.showcase-meet {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 140px 140px;
  align-items: center;
  gap: 18px;
  max-width: 1400px;
  margin: 46px auto 0;
  padding: 28px 50px 22px 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.showcase-meet-icon {
  display: flex;
  justify-content: center;
}

.showcase-meet-icon img {
  width: 64px;
  height: auto;
}

.showcase-meet-copy {
  min-width: 0;
}

.showcase-meet-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22.4px;
  line-height: 1.6;
  text-align: center;
}

.showcase-meet-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  text-align: justify;
}

.showcase-meet-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
}

.showcase-meet-action img {
  width: 38px;
  height: auto;
}

.showcase-meet-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
}

.showcase-tooltip {
  position: fixed;
  z-index: 999999;
  width: max-content;
  max-width: min(280px, calc(100vw - 28px));
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  text-align: right;
  direction: rtl;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, 4px, 0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.showcase-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .showcase-meet {
    grid-template-columns: 90px minmax(0, 1fr) 120px 120px;
    padding: 24px 22px;
  }
}

@media (max-width: 768px) {
  .home-showcase {
    padding: 24px 12px 50px;
  }

  .showcase-head h2 {
    font-size: 22px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .showcase-card {
    min-height: 238px;
    padding: 16px;
  }

  .showcase-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .showcase-brand {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .showcase-logo {
    width: 58px;
    height: 58px;
  }

  .showcase-years {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    gap: 7px;
  }

  .showcase-years span,
  .showcase-years strong {
    max-width: 48%;
    min-height: 27px;
    padding: 5px 8px;
    font-size: 11.2px;
  }

  .showcase-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 29px;
  }

  .showcase-service {
    height: 29px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .showcase-service.is-featured {
    min-height: 64px;
    font-size: 11.3px;
  }

  .showcase-fade {
    height: 150px;
  }

  .showcase-meet {
    grid-template-columns: 1fr 1fr;
    padding: 22px 16px;
  }

  .showcase-meet-icon,
  .showcase-meet-copy {
    grid-column: 1 / -1;
  }

  .showcase-meet-title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-showcase [data-animate] {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}
