/*
Theme Name: i4
Version: 1.0
*/

:root {
  --yd-text: #2a2b2e;
  --yd-muted: #626469;
  --yd-subtle: #939599;
  --yd-line: #eef1f6;
  --yd-blue: #2461ef;
  --yd-blue-dark: #1f378f;
  --yd-bg: #f7f9fc;
}

body {
  background: linear-gradient(180deg, #fff 0%, var(--yd-bg) 100%);
}

.yd-post-section {
  background: linear-gradient(180deg, #fff 0%, var(--yd-bg) 100%);
  padding: 88px 20px 110px;
}

.yd-post-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.yd-post-head {
  text-align: center;
  margin-bottom: 44px;
}

.yd-post-eyebrow {
  color: var(--yd-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 14px;
}

.yd-post-title {
  color: var(--yd-text);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.18;
}

.yd-post-desc {
  color: var(--yd-subtle);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 14px;
}

.yd-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.yd-post-card {
  background: #fff;
  border: 1px solid var(--yd-line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 55, 143, .08);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.yd-post-card:hover {
  border-color: rgba(36, 97, 239, .28);
  box-shadow: 0 22px 56px rgba(31, 55, 143, .13);
  transform: translateY(-4px);
}

.yd-post-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eaf0ff 0%, #f7f9fc 55%, #ffeceb 100%);
  overflow: hidden;
}

.yd-post-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.yd-post-card:hover .yd-post-thumb img {
  transform: scale(1.04);
}

.yd-post-body {
  padding: 24px;
}

.yd-post-meta {
  color: var(--yd-subtle);
  font-size: 14px;
  line-height: 1;
  margin-bottom: 12px;
}

.yd-post-card-title {
  color: var(--yd-text);
  display: -webkit-box;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yd-post-card-title:hover {
  color: var(--yd-blue);
}

.yd-post-excerpt {
  color: var(--yd-muted);
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.75;
  margin-top: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.yd-post-more {
  color: var(--yd-blue);
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  text-decoration: none;
}

.yd-post-more:hover {
  color: var(--yd-blue-dark);
}

.yd-post-empty {
  background: #fff;
  border: 1px solid var(--yd-line);
  border-radius: 8px;
  color: var(--yd-muted);
  padding: 36px;
  text-align: center;
}

.yd-front-news-section {
  background: #fff;
  padding: 78px 20px 96px;
}

.yd-front-news-wrap {
  width: min(1068px, 100%);
  margin: 0 auto;
}

.yd-front-news-head {
  margin-bottom: 60px;
}

.yd-front-news-title {
  color: #09264a;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.yd-front-news-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.yd-front-news-item {
  display: grid;
  grid-template-columns: 328px minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: start;
}

.yd-front-news-thumb {
  aspect-ratio: 328 / 220;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 52%, #e7f5ff 100%);
  border-radius: 10px;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.yd-front-news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.yd-front-news-item:hover .yd-front-news-thumb img {
  transform: scale(1.035);
}

.yd-front-news-label {
  background: #f43658;
  border-radius: 0 22px 22px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  left: 0;
  line-height: 44px;
  min-width: 112px;
  padding: 0 16px 0 14px;
  position: absolute;
  top: 31px;
  z-index: 2;
}

.yd-front-news-placeholder {
  align-items: center;
  color: rgba(9, 38, 74, .72);
  display: flex;
  font-size: 22px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  line-height: 1.35;
  padding: 46px 28px 28px;
  text-align: center;
}

.yd-front-news-content {
  min-width: 0;
  padding-top: 3px;
}

.yd-front-news-post-title {
  color: #08264c;
  display: -webkit-box;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yd-front-news-post-title:hover {
  color: var(--yd-blue);
}

.yd-front-news-excerpt {
  color: #8da0b8;
  display: -webkit-box;
  font-size: 18px;
  line-height: 1.75;
  margin-top: 17px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yd-front-news-meta {
  align-items: center;
  color: #536b8b;
  display: flex;
  flex-wrap: wrap;
  font-size: 16px;
  gap: 9px;
  line-height: 1;
  margin-top: 34px;
}

.yd-front-news-source {
  align-items: center;
  color: #153456;
  display: inline-flex;
  gap: 8px;
}

.yd-front-news-source img {
  border-radius: 50%;
  height: 31px;
  width: 31px;
}

.yd-front-news-dot {
  background: #ff7d96;
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.yd-front-news-more {
  color: #8fa0b5;
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  margin-top: 181px;
  text-align: right;
  text-decoration: none;
}

.yd-front-news-more:hover {
  color: var(--yd-blue);
}

.yd-pagination {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.yd-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.yd-pagination a,
.yd-pagination span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--yd-line);
  border-radius: 8px;
  color: var(--yd-muted);
  display: inline-flex;
  font-size: 15px;
  padding: 0 14px;
  text-decoration: none;
}

.yd-pagination .current,
.yd-pagination a:hover {
  background: var(--yd-blue);
  border-color: var(--yd-blue);
  color: #fff;
}

.yd-single-section {
  background: linear-gradient(180deg, #fff 0%, var(--yd-bg) 100%);
  padding: 12px 20px 110px;
}

.yd-single-wrap {
  width: var(--ct-width);
  margin: 0 auto;
}

.yd-breadcrumb {
  color: var(--yd-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}

.yd-breadcrumb a {
  color: var(--yd-muted);
  text-decoration: none;
}

.yd-breadcrumb a:hover {
  color: var(--yd-blue);
}

.yd-single-article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
}

.yd-single-hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eaf0ff 0%, #f7f9fc 55%, #ffeceb 100%);
  border-radius: 8px;
  overflow: hidden;
}

.yd-single-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yd-single-inner {
  padding: 0 0 48px;
}

.yd-single-title {
  color: var(--yd-text);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
}

.yd-single-meta {
  color: var(--yd-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 34px;
}

.yd-single-content {
  color: var(--yd-muted);
  font-size: 17px;
  line-height: 1.9;
}

.yd-single-content > * + * {
  margin-top: 1.1em;
}

.yd-single-content h2,
.yd-single-content h3,
.yd-single-content h4 {
  color: var(--yd-text);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.7em;
}

.yd-single-content h2 {
  font-size: 28px;
}

.yd-single-content h3 {
  font-size: 23px;
}

.yd-single-content a {
  color: var(--yd-blue);
}

.yd-single-content img {
  border-radius: 8px;
  height: auto;
  max-width: 100%;
}

.yd-single-content ul,
.yd-single-content ol {
  padding-left: 1.4em;
}

.yd-single-content ul {
  list-style: disc;
}

.yd-single-content ol {
  list-style: decimal;
}

.yd-post-neighbor {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin: 42px auto 0;
  width: calc(var(--ct-width) - 36px - 4rem);
}

.yd-post-neighbor-item {
  align-items: center;
  color: #3b4658;
  display: inline-flex;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
}

.yd-post-neighbor-item-next {
  justify-content: flex-end;
  text-align: left;
}

.yd-post-neighbor-icon {
  flex: 0 0 auto;
  color: #4b5968;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.yd-post-neighbor-text {
  display: block;
  min-width: 0;
}

.yd-post-neighbor-text > span {
  color: #c3c8cf;
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.yd-post-neighbor-text strong {
  display: -webkit-box;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.42;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yd-post-neighbor-item:hover strong {
  color: var(--yd-blue);
}

.yd-post-neighbor-item.is-empty {
  opacity: .5;
}

.yd-related-section {
  margin: 54px auto 0;
  width: var(--ct-width);
}

.yd-related-section-archive {
  margin-top: 72px;
}

.yd-related-title {
  align-items: center;
  color: #3d4756;
  display: flex;
  font-size: 28px;
  font-weight: 700;
  gap: 10px;
  line-height: 1.2;
  margin-bottom: 22px;
}

.yd-related-title::before {
  color: #5c6f86;
  content: "»";
  font-size: 34px;
  line-height: .8;
}

.yd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.yd-related-card {
  min-width: 0;
}

.yd-related-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eaf0ff 0%, #f7f9fc 55%, #ffeceb 100%);
  border-radius: 6px;
  display: block;
  overflow: hidden;
}

.yd-related-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
  width: 100%;
}

.yd-related-card:hover .yd-related-thumb img {
  transform: scale(1.04);
}

.yd-related-body {
  padding: 13px 4px 0;
}

.yd-related-meta {
  align-items: center;
  color: #99a4b3;
  display: flex;
  font-size: 15px;
  gap: 7px;
  line-height: 1;
  margin-bottom: 9px;
}

.yd-related-meta span {
  background: #5e8fea;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.yd-related-card-title {
  color: #4a5363;
  display: -webkit-box;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yd-related-card-title:hover {
  color: var(--yd-blue);
}

.yd-related-excerpt {
  color: #99a4b3;
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.yd-related-stats {
  color: #99a4b3;
  font-size: 14px;
  line-height: 1;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .yd-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yd-front-news-item {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
  }

  .yd-front-news-more {
    display: none;
  }

  .yd-front-news-post-title {
    font-size: 21px;
  }

  .yd-front-news-excerpt {
    font-size: 16px;
  }

  .yd-front-news-meta {
    margin-top: 24px;
  }

  .yd-post-title,
  .yd-single-title {
    font-size: 34px;
  }

  .yd-post-neighbor {
    grid-template-columns: 1fr 1fr;
  }

  .yd-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .yd-post-section,
  .yd-single-section {
    padding: 72px 16px 84px;
  }

  .yd-post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .yd-front-news-section {
    padding: 64px 16px 76px;
  }

  .yd-front-news-title {
    font-size: 28px;
  }

  .yd-front-news-list {
    gap: 34px;
  }

  .yd-front-news-item {
    display: block;
  }

  .yd-front-news-thumb {
    aspect-ratio: 16 / 10;
  }

  .yd-front-news-label {
    font-size: 17px;
    line-height: 38px;
    min-width: 96px;
    top: 24px;
  }

  .yd-front-news-content {
    padding-top: 16px;
  }

  .yd-front-news-post-title {
    font-size: 20px;
  }

  .yd-front-news-excerpt {
    font-size: 15px;
    margin-top: 10px;
  }

  .yd-front-news-meta {
    font-size: 14px;
    margin-top: 18px;
  }

  .yd-front-news-source img {
    height: 27px;
    width: 27px;
  }

  .yd-post-title,
  .yd-single-title {
    font-size: 28px;
  }

  .yd-single-inner {
    padding: 30px 22px 38px;
  }

  .yd-post-neighbor {
    display: block;
    margin-top: 28px;
  }

  .yd-post-neighbor-item + .yd-post-neighbor-item {
    margin-top: 20px;
  }

  .yd-post-neighbor-item-next {
    justify-content: flex-start;
  }

  .yd-post-neighbor-icon {
    font-size: 28px;
  }

  .yd-post-neighbor-text > span {
    font-size: 15px;
  }

  .yd-post-neighbor-text strong {
    font-size: 18px;
  }

  .yd-related-section {
    margin-top: 38px;
  }

  .yd-related-title {
    font-size: 24px;
  }

  .yd-related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
