.hgc-section {
  padding: 48px 0 56px;
  overflow: hidden;
}

.hgc-label-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.hgc-label {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6a6e;
  text-align: center;
  margin-bottom: 44px;
}

.hgc-label-line {
  display: inline;
}

.hgc-carousel-outer {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hgc-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 10%,
    #000 18%,
    #000 82%,
    rgba(0, 0, 0, 0.35) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 10%,
    #000 18%,
    #000 82%,
    rgba(0, 0, 0, 0.35) 90%,
    transparent 100%
  );
}

.hgc-track {
  display: flex;
  gap: 44px;
  width: max-content;
  padding: 0 72px;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hgc-track.is-snapping {
  transition: none;
}

.hgc-slide-unit {
  flex: 0 0 272px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hgc-logo-slot {
  min-height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.hgc-logo-link {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  line-height: 0;
}

.hgc-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--hgc-logo-max-height, 64px);
  max-width: 260px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
}

.hgc-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e9e9ea;
  border-radius: 10px;
}

.hgc-card-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.hgc-av-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  flex: none;
  background: #f3f3f4;
  border: 1px solid #e9e9ea;
}

.hgc-av-wrap {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  flex: none;
}

.hgc-av {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center;
  border: none;
  box-shadow: none;
  display: block;
  transform: scale(1.18);
}

.hgc-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.hgc-byline {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: #636168;
}

.hgc-name {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #1f1c26;
  min-height: 24px;
}

.hgc-desc-placeholder {
  flex: 1;
  min-height: 42px;
  margin: 0;
}

.hgc-desc {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: #1f1c26;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hgc-chat-btn {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: #5848f7;
  border: 1px solid #5848f7;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hgc-chat-btn:hover {
  background: #4a3de0;
}

.hgc-slide-unit--accent .hgc-chat-btn {
  background: var(--hgc-accent);
  border-color: var(--hgc-accent);
  color: var(--hgc-accent-text, #fff);
}

.hgc-slide-unit--accent .hgc-chat-btn:hover {
  filter: brightness(0.9);
  background: var(--hgc-accent);
}

.hgc-chat-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.hgc-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 26px;
  border-radius: 9999px;
  border: 1px solid #e9e9ea;
  background: #fff;
  color: #5848f7;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(31, 28, 38, 0.08);
  transform: translateY(-50%);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.hgc-arrow--prev {
  left: 72px;
}

.hgc-arrow--next {
  right: 72px;
}

.hgc-arrow:hover {
  border-color: #c8c3f5;
  background: #f7f6fb;
}

.hgc-arrow:active {
  background: #f1f1fe;
}

.hgc-arrow svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .hgc-section {
    padding: 36px 0 48px;
  }

  .hgc-label-wrap {
    padding: 0 20px;
  }

  .hgc-label {
    margin-bottom: 28px;
    line-height: 1.45;
  }

  .hgc-label-line {
    display: block;
  }

  .hgc-arrow {
    display: none;
  }

  .hgc-viewport {
    touch-action: pan-y;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 6%,
      #000 14%,
      #000 86%,
      rgba(0, 0, 0, 0.35) 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 6%,
      #000 14%,
      #000 86%,
      rgba(0, 0, 0, 0.35) 94%,
      transparent 100%
    );
  }

  .hgc-track {
    /* Center the active 272px card; adjacent cards peek + fade on both sides */
    padding: 0 calc(50% - 136px);
  }
}
