/* Keep the site rhythm consistent while shortening the gaps between sections. */
.ptb80p,
.ptb80p.sixwap {
  padding-block: 26.67px !important;
}

.jys-home .jys-president-section {
  padding-top: 16px !important;
  padding-bottom: 21.33px !important;
}

.jys-about-page section {
  padding-top: 26.67px !important;
  padding-bottom: 26.67px !important;
}

/* Content-led About sections should not retain the template's oversized minimums. */
.jys-about-page #webox1,
.jys-about-page .jys-about-history,
.jys-about-page .jys-about-honors {
  min-height: 0 !important;
}

.jys-about-page .jys-about-culture {
  height: auto !important;
  min-height: 0 !important;
}

.client-content {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.client-content section {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}

.cc-hero {
  padding-top: 21.33px !important;
  padding-bottom: 19.33px !important;
}

.cc-section {
  padding-bottom: 10.67px !important;
  margin-bottom: 10px !important;
}

.cc-contact {
  margin-top: 12px !important;
  padding-top: 12.67px !important;
  padding-bottom: 12.67px !important;
}

.jys-home-news {
  width: 1366px !important;
  max-width: calc(100% - 48px) !important;
  margin-inline: auto !important;
}

.jys-home-news-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 30px;
}

.jys-home-news-heading > div {
  padding-right: 24px;
  border-right: 1px solid #ddd;
  text-align: right;
}

.jys-home-news-heading > div > p {
  margin: 0 0 4px;
  color: #888;
  font-size: 11px;
  letter-spacing: 2px;
}

.jys-home-news-heading h2 {
  margin: 0;
  color: #222;
  font-size: 30px;
  line-height: 1.35;
}

.jys-home-news-heading > strong {
  color: #d90012;
  font-size: 30px;
}

.jys-home-news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid #eee;
}

.jys-home-news-toolbar nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.jys-home-news-toolbar nav a,
.jys-home-news-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid #d90012;
  border-radius: 24px;
  color: #d90012;
  white-space: nowrap;
}

.jys-home-news-toolbar nav a:hover {
  background: #d90012;
  color: #fff;
}

.jys-home-news-all {
  background: #d90012;
  color: #fff !important;
}

.jys-home-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 48px;
  padding-top: 30px;
}

.jys-home-news-feature,
.jys-home-news-row {
  min-width: 0;
}

.jys-home-news-feature > a {
  display: block;
  color: #222;
}

.jys-home-news-feature img,
.jys-home-news-image-placeholder {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: linear-gradient(135deg, #eee8e2, #d8d0c8);
}

.jys-home-news-image-placeholder {
  display: grid;
  place-items: center;
  color: #8d7867;
  font-size: 24px;
}

.jys-home-news-feature-copy {
  padding-top: 18px;
}

.jys-home-news-feature time {
  color: #999;
  font-size: 14px;
}

.jys-home-news-feature h3 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.5;
}

.jys-home-news-feature p {
  margin: 0;
  color: #777;
  font-size: 15px;
  line-height: 1.8;
}

.jys-home-news-list {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  align-content: stretch;
}

.jys-home-news-row {
  border-bottom: 1px solid #eee;
}

.jys-home-news-row:first-child {
  border-top: 1px solid #eee;
}

.jys-home-news-row > a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 8px 0;
  color: #333;
}

.jys-home-news-row time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  background: #eee;
  color: #666;
}

.jys-home-news-row time strong {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.jys-home-news-row time span {
  font-size: 15px;
}

.jys-home-news-row h3 {
  margin: 0 0 7px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jys-home-news-row p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #888;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jys-home-news-row > a:hover h3 {
  color: #d90012;
}

@media (max-width: 767px) {
  .ptb80p,
  .ptb80p.sixwap {
    padding-block: 13.33px !important;
  }

  .jys-home .jys-president-section {
    padding-top: 11.67px !important;
    padding-bottom: 13.33px !important;
  }

  .jys-about-page section {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }

  .client-content {
    padding-top: 11.33px !important;
    padding-bottom: 11.33px !important;
  }

  .cc-hero {
    padding-top: 12.67px !important;
    padding-bottom: 11.33px !important;
  }

  .jys-home-news {
    max-width: calc(100% - 40px) !important;
  }

  .jys-home-news-heading {
    display: block;
    margin-bottom: 20px;
    text-align: center;
  }

  .jys-home-news-heading > div {
    padding: 0;
    border: 0;
    text-align: center;
  }

  .jys-home-news-heading h2,
  .jys-home-news-heading > strong {
    font-size: 23px;
  }

  .jys-home-news-heading > strong {
    display: block;
    margin-top: 7px;
  }

  .jys-home-news-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .jys-home-news-toolbar nav {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
  }

  .jys-home-news-toolbar nav a,
  .jys-home-news-all {
    min-height: 36px;
    padding: 0 16px;
    font-size: 14px;
  }

  .jys-home-news-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 22px;
  }

  .jys-home-news-list {
    grid-template-rows: none;
  }

  .jys-home-news-feature img,
  .jys-home-news-image-placeholder {
    height: 240px;
  }

  .jys-home-news-feature h3 {
    font-size: 19px;
  }

  .jys-home-news-row > a {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    min-height: 92px;
  }

  .jys-home-news-row time {
    min-height: 68px;
  }

  .jys-home-news-row time strong {
    font-size: 23px;
  }
}
