@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.ychv-history-viewer-wrap,
.ychv-history-viewer-wrap * {
  box-sizing: border-box;
  min-width: 0;
}

.ychv-history-viewer-wrap {
  width: 100% !important;
  overflow: hidden;
  background: #ffffff;
  color: #202326;
  font-family: inherit;
}

.ychv-history-viewer-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

.ychv-section {
  position: relative;
  text-align: center;
  isolation: isolate;
}

.ychv-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
}

.ychv-section-one::before,
.ychv-section-three::before {
  background: #ffffff;
}

.ychv-section-two::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 0, 0, 0.075), transparent 34%),
    linear-gradient(180deg, #fff8f6 0%, #f7fbfb 100%);
}

.ychv-section h2 {
  margin: 0 auto;
  max-width: 1120px;
  color: #17191c;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.ychv-intro {
  margin: 0 auto;
  max-width: 760px;
  color: #5f666d;
  font-weight: 450;
  line-height: 1.65;
  text-align: center;
}

.ychv-grid {
  display: grid !important;
  align-items: stretch !important;
  width: 100%;
  margin: 0 auto;
}

.ychv-card {
  position: relative;
  display: block;
  height: 100% !important;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)) padding-box,
    linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(14, 165, 164, 0.18), rgba(255, 195, 0, 0.16)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 46px rgba(31, 36, 42, 0.085);
  overflow: hidden;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-position 360ms ease;
}

.ychv-card::after {
  content: "";
  position: absolute;
  inset: auto 18% 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #ff0000, #0ea5a4, #ffc300);
  opacity: 0.72;
  transform: scaleX(0.56);
  transform-origin: center;
  transition: transform 260ms ease, opacity 260ms ease;
}

.ychv-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 58px rgba(255, 0, 0, 0.13), 0 12px 30px rgba(31, 36, 42, 0.08);
  border-color: rgba(255, 0, 0, 0.22);
}

.ychv-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.ychv-icon {
  display: inline-grid;
  place-items: center;
  margin: 0 auto;
  color: #ffffff;
  background:
    linear-gradient(135deg, #ff0000 0%, #d91f2d 42%, #0ea5a4 100%);
  box-shadow: 0 14px 28px rgba(255, 0, 0, 0.2);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.ychv-card:hover .ychv-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 34px rgba(14, 165, 164, 0.22);
}

.ychv-i {
  color: #ffffff;
  line-height: 1;
}

.ychv-card h3 {
  margin: 0;
  color: #202326;
  font-weight: 760;
  line-height: 1.24;
  letter-spacing: 0;
  text-align: center;
}

.ychv-card p {
  margin: 0;
  color: #687079;
  font-weight: 430;
  line-height: 1.56;
  text-align: center;
}

.ychv-reveal {
  opacity: 1;
  transform: translateY(0);
}

.ychv-history-viewer-wrap.ychv-js-ready .ychv-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.ychv-history-viewer-wrap.ychv-js-ready .ychv-reveal.ychv-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .ychv-section {
    padding: 92px 28px;
  }

  .ychv-section h2 {
    font-size: 40px;
    white-space: nowrap;
  }

  .ychv-intro {
    margin-top: 18px;
    font-size: 17px;
  }

  .ychv-grid {
    margin-top: 46px;
    gap: 24px;
  }

  .ychv-grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ychv-grid-eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ychv-card {
    min-height: 292px;
    padding: 34px 26px 32px;
    border-radius: 22px;
  }

  .ychv-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    margin-bottom: 24px;
  }

  .ychv-i {
    font-size: 27px;
  }

  .ychv-card h3 {
    font-size: 20px;
    margin-bottom: 13px;
  }

  .ychv-card p {
    font-size: 15px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ychv-section {
    padding: 74px 24px;
  }

  .ychv-section h2 {
    font-size: 34px;
  }

  .ychv-intro {
    margin-top: 16px;
    font-size: 16px;
  }

  .ychv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
    gap: 20px;
  }

  .ychv-card {
    min-height: 266px;
    padding: 30px 22px;
    border-radius: 20px;
  }

  .ychv-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin-bottom: 21px;
  }

  .ychv-i {
    font-size: 25px;
  }

  .ychv-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .ychv-card p {
    font-size: 14.5px;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .ychv-section {
    padding: 58px 18px;
  }

  .ychv-section h2 {
    font-size: 27px;
  }

  .ychv-intro {
    margin-top: 13px;
    font-size: 14.5px;
    line-height: 1.58;
  }

  .ychv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    gap: 14px;
  }

  .ychv-card {
    min-height: 228px;
    padding: 22px 14px;
    border-radius: 16px;
  }

  .ychv-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    margin-bottom: 16px;
  }

  .ychv-i {
    font-size: 21px;
  }

  .ychv-card h3 {
    font-size: 16px;
    margin-bottom: 9px;
  }

  .ychv-card p {
    font-size: 13px;
    line-height: 1.48;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .ychv-section {
    padding: 50px 14px;
  }

  .ychv-section h2 {
    font-size: 24px;
  }

  .ychv-intro {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.52;
  }

  .ychv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    gap: 12px;
  }

  .ychv-card {
    min-height: 218px;
    padding: 19px 11px;
    border-radius: 14px;
  }

  .ychv-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .ychv-i {
    font-size: 19px;
  }

  .ychv-card h3 {
    font-size: 14.5px;
    margin-bottom: 8px;
  }

  .ychv-card p {
    font-size: 12.2px;
    line-height: 1.44;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .ychv-section {
    padding: 44px 10px;
  }

  .ychv-section h2 {
    font-size: 21px;
  }

  .ychv-intro {
    margin-top: 10px;
    font-size: 12.8px;
    line-height: 1.48;
  }

  .ychv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
    gap: 9px;
  }

  .ychv-card {
    min-height: 212px;
    padding: 16px 8px;
    border-radius: 12px;
  }

  .ychv-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .ychv-i {
    font-size: 17px;
  }

  .ychv-card h3 {
    font-size: 13px;
    margin-bottom: 7px;
  }

  .ychv-card p {
    font-size: 11.3px;
    line-height: 1.4;
  }
}