.article-container {
  width: min(900px, calc(100% - 40px));
  margin: auto;
}

.article-wide-container {
  width: min(1080px, calc(100% - 40px));
  margin: auto;
}

.article-hero {
  padding: 60px 0 24px;
  background:
    radial-gradient(circle at 82% 14%, rgba(15, 68, 153, 0.10), transparent 30%),
    linear-gradient(#fff, #f7f9fd);
  text-align: center;
}

.article-back {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--blue);
  font-weight: 800;
}

.article-category {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-category.communication {
  color: #2454c7;
  background: rgba(36, 84, 199, 0.08);
}

.article-category.property {
  color: #2f855a;
  background: rgba(47, 133, 90, 0.08);
}

.article-category.personal {
  color: #c53030;
  background: rgba(197, 48, 48, 0.08);
}

.article-category.news {
  color: #7b3fe4;
  background: rgba(123, 63, 228, 0.08);
}

.article-hero h1 {
  max-width: 980px;
  margin: 0 auto 24px;
}

.article-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 700;
}

.article-image-wrap {
  padding: 30px 0 50px;
}

.article-body-section {
  padding: 60px 0 86px;
  background: #fff;
}

.article-text {
  max-width: 860px;
}

.article-text h2 {
  margin: 56px 0 18px;
  color: var(--dark);
  font-size: 38px;
  line-height: 1.2;
}

.article-text h2:first-child {
  margin-top: 0;
}

.article-text h3 {
  margin: 36px 0 14px;
  color: var(--dark);
  font-size: 28px;
  line-height: 1.3;
}

.article-text p {
  margin: 18px 0;
  color: #344054;
  font-size: 18px;
  line-height: 1.9;
}

.article-text ul,
.article-text ol {
  margin: 24px 0;
  padding-left: 24px;
}

.article-text li {
  margin: 12px 0;
  color: #344054;
  font-size: 18px;
  line-height: 1.8;
}

.article-text img {
  width: 100%;
  margin: 50px 0;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.article-text strong {
  color: var(--dark);
}

.article-text a {
  color: var(--blue);
  font-weight: 800;
}

.article-cta {
  margin-top: 64px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--dark), var(--blue));
  color: #fff;
}

.article-cta h2 {
  margin: 0 0 12px;
  color: #fff;
}

.article-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.related-section {
  padding: 84px 0 96px;
  background: var(--soft);
}

.related-section h2 {
  margin-bottom: 34px;
}

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

.related-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 68, 153, 0.08);
  transition: transform .25s, box-shadow .25s;
}

.related-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 68, 153, 0.16);
}

.related-card div {
  padding: 24px;
}

.related-card h3 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.3;
}

.related-card a,
.related-link {
  color: var(--blue);
  font-weight: 800;
}

.article-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.article-back {
  display: inline-flex;
  margin-top: -10px;
  margin-bottom: 4px;
  color: var(--blue);
  font-weight: 700;
  opacity: .85;
  transition: opacity .2s ease;
}

.article-back:hover {
  opacity: 1;
}

.article-category {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-back,
.related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

.related-link .link-arrow {
  width: 15px;
  height: 15px;
  object-fit: contain;
  transform: translateY(1px);
}

.link-arrow.left {
  width: 13px;
  height: 13px;
}

.hidden {
  display: none !important;
}

.article-page-state {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 24px;
  color: var(--muted);
  text-align: center;
}

.article-page-state.error h1 {
  margin: 0 0 16px;
  color: var(--dark);
}

.article-page-state.error p {
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.article-main-image {
  height: 460px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.article-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-main-image.has-placeholder {
  display: grid;
  place-items: center;
  padding: 50px;
}

.article-main-image.has-placeholder img {
  width: min(480px, 75%);
  height: auto;
  max-height: 260px;
  object-fit: contain;
}

.related-card-image {
  display: block;
  height: 210px;
  overflow: hidden;
  background: var(--soft);
}

.related-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.related-card:hover
.related-card-image img {
  transform: scale(1.05);
}

.related-card-image.has-placeholder {
  display: grid;
  place-items: center;
  padding: 32px;
}

.related-card-image.has-placeholder img {
  width: min(220px, 75%);
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.article-category.training {
  color: #9a6700;
  background: rgba(154, 103, 0, .09);
}

@media (max-width: 980px) {
  .article-main-image {
    height: 360px;
  }

  .article-cta {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .article-hero {
    padding: 60px 0 40px;
  }

  .article-image-wrap {
    padding-bottom: 50px;
  }

  .article-image-wrap img {
    height: 260px;
    border-radius: 22px;
  }

  .article-body-section {
    padding: 60px 0;
  }

  .article-text h2 {
    font-size: 30px;
  }

  .article-text h3 {
    font-size: 24px;
  }

  .article-text p,
  .article-text li {
    font-size: 16px;
  }

  .article-cta {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .article-cta .btn {
    width: 100%;
  }

  .article-hero h1 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .article-lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .article-text img {
    margin: 32px 0;
    border-radius: 16px;
  }

  .article-page-state {
    padding: 80px 20px;
  }

  .article-main-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .article-main-image img {
    height: 100%;
  }

  .article-main-image.has-placeholder {
    padding: 30px;
  }

  .article-text h2 {
    margin: 42px 0 16px;
  }

  .article-text h3 {
    margin: 30px 0 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}
