@media (max-width: 1023px) {
  :root {
    --header-h: 64px;
  }
}

.article-page {
  margin-top: 0;
  padding: 0 0 64px;
  background: #fff;
}

.article-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-banner {
  position: relative;
  display: grid;
  min-height: 390px;
  padding-top: var(--header-h);
  overflow: hidden;
  place-items: center;
  background: #16212d;
}

.article-banner img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(11, 20, 30, 0.82), rgba(11, 20, 30, 0.42));
}

.article-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  padding: 56px 20px;
  text-align: center;
}

.article-banner-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.article-banner-content h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.article-breadcrumb-bar {
  padding: 15px 0;
  border-bottom: 1px solid #e6ebf1;
  background: #fbfcfe;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.88rem;
}

.article-breadcrumb a {
  color: #556574;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumb a:hover,
.article-breadcrumb a:focus-visible,
.article-breadcrumb [aria-current="page"] {
  color: #2c72db;
}

.article {
  margin: 0 auto;
}

.article-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(28px, 5vw, 58px) 0;
  border-bottom: 1px solid #e9eef4;
}

.article-media {
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #eef2f7;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.1);
}

.article-media-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.article-media:hover .article-media-image {
  transform: scale(1.035);
}

.article-intro {
  min-width: 0;
}

.article-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.16;
}

.article-meta {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  margin: 20px 0 0;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: #f5f9ff;
  color: #57667a;
  font-size: 0.87rem;
  font-weight: 600;
}

.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.25s ease;
}

.article-cta:hover,
.article-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(44, 114, 219, 0.25);
}

.article-cta svg {
  transition: transform 0.25s ease;
}

.article-cta:hover svg,
.article-cta:focus-visible svg {
  transform: translateX(4px);
}

.article-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-top: clamp(34px, 5vw, 56px);
  color: #4b5563;
  font-size: 1.03rem;
  line-height: 1.78;
}

.article-content > p {
  margin-bottom: 24px;
}

.article-content a:not(.btn) {
  color: #2c72db;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 34px 0 16px;
  color: #1f2937;
  font-weight: 800;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.45rem;
}

.article-content h3 {
  font-size: 1.22rem;
}

.article-content h4 {
  font-size: 1.08rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px 22px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 22px auto;
  border-radius: 10px;
}

.article-content figure {
  margin: 28px 0;
}

.article-content blockquote {
  padding: 22px 24px;
  border-left: 3px solid #2c72db;
  border-radius: 0 10px 10px 0;
  background: #f6f8fb;
  color: #1f2937;
  font-size: 1.04rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.article-content .wp-block-button__link {
  display: inline-flex;
  border-radius: 999px;
}

.article-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid #e6ebf1;
}

.article-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid #d8dfe8;
  border-radius: 999px;
  background: #fff;
  color: #5b6770;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.article-navigation a:hover,
.article-navigation a:focus-visible {
  border-color: #2c72db;
  background: #eef4fd;
  color: #2c72db;
  transform: translateY(-1px);
}

.article-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .article-page {
    padding-bottom: 50px;
  }

  .article-banner {
    min-height: 330px;
  }

  .article-banner-content {
    padding: 48px 20px;
  }

  .article-lead {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 24px;
  }

  .article-media-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.68;
  }

  .article-content h2 {
    font-size: 1.3rem;
  }

  .article-navigation {
    margin-top: 38px;
  }
}
