/* Single blog post — editorial layout inspired by the supplied reference. */
.amarex-article {
  --post-navy: #1e3362;
  --post-blue: #4a7ba8;
  --post-orange: #d86d27;
  --post-pale: #e6f3ff;
  --post-text: #333333;
  --post-muted: #68717b;
  --post-border: #e1e5e9;
  color: var(--post-text);
}

.amarex-article a:focus-visible {
  outline: 3px solid rgba(74, 123, 168, .45);
  outline-offset: 3px;
}

.article-hero {
  background-color: var(--post-navy);
  background-image: linear-gradient(100deg, #13264b 0%, #1e3362 58%, #7088a0 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  min-height: 520px;
}

.article-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding-bottom: 54px;
  padding-top: 54px;
}

.article-published {
  color: rgba(255, 255, 255, .88);
  display: block;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.article-title {
  color: #fff;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 0;
  max-width: 790px;
  text-wrap: balance;
}

.article-body {
  background: #fff;
  padding: 58px 0 12px;
}

.article-content {
  color: #424b54;
  font-size: 18px;
  line-height: 1.75;
}

.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content figure { margin-bottom: 25px; }

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #26313d;
  font-weight: 700;
  letter-spacing: -.015em;
}

.article-content h2 { font-size: 27px; line-height: 1.3; margin: 42px 0 17px; }
.article-content h3 { font-size: 22px; line-height: 1.35; margin: 34px 0 15px; }
.article-content h4 { font-size: 19px; line-height: 1.4; margin: 30px 0 13px; }
.article-content strong { color: #37414c; font-weight: 750; }
.article-content em { color: #4e5965; }

.article-content a {
  color: var(--post-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover,
.article-content a:focus { color: var(--post-orange); }
.article-content ul, .article-content ol { padding-left: 24px; }
.article-content li { margin-bottom: 8px; padding-left: 5px; }
.article-content li::marker { color: var(--post-blue); }

.article-content blockquote {
  background: var(--post-pale);
  border-left: 4px solid var(--post-orange);
  color: var(--post-navy);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin-left: 0;
  margin-right: 0;
  padding: 24px 28px;
}

.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img { border-radius: 8px; height: auto; }
.article-content .wp-caption { max-width: 100%; }
.article-content figcaption,
.article-content .wp-caption-text { color: var(--post-muted); font-size: 13px; line-height: 1.5; margin-top: 7px; text-align: center; }
.article-content iframe { max-width: 100%; }

.article-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.article-content th,
.article-content td { border: 1px solid var(--post-border); min-width: 135px; padding: 12px 14px; text-align: left; }
.article-content th { background: var(--post-navy); color: #fff; }
.article-content tbody tr:nth-child(even) { background: #f7f9fb; }
.article-page-links { display: flex; gap: 9px; margin-top: 30px; }

.article-author { margin-top: 58px; padding: 0 0 64px; }
.article-author > h2 { color: #202a35; font-size: 31px; font-weight: 700; line-height: 1.2; margin: 0; }
.article-author__rule { border-top: 1px solid var(--post-border); margin: 38px 0 32px; }

.article-author__profile {
  align-items: flex-start;
  display: flex;
  gap: 28px;
  width: 100%;
}

.article-author__avatar {
  border-radius: 7px;
  flex: 0 0 200px;
  overflow: hidden;
}

.article-author__avatar img {
  border-radius: 7px;
  display: block;
  height: 200px;
  object-fit: cover;
  width: 200px;
}

.article-author__details {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.article-author__bio {
  color: #4d5761;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 15px;
  max-width: none;
  width: 100%;
}

.article-author__bio p { margin: 0 0 8px; }
.article-author__bio p:last-child { margin-bottom: 0; }
.article-author__details h3 { font-size: 18px; font-weight: 750; line-height: 1.35; margin: 0 0 3px; }
.article-author__details h3 a { color: #27313b; }
.article-author__details h3 a:hover { color: var(--post-orange); }
.article-author__position { color: #4d5761; font-size: 16px; line-height: 1.5; margin: 0 0 12px; }

.article-author__link {
  align-items: center;
  color: var(--post-blue);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-author__link i { font-size: 12px; transition: transform .25s ease; }
.article-author__link:hover { color: var(--post-orange); }
.article-author__link:hover i { transform: translateX(3px); }

.article-related {
  background: #f7f9fb;
  padding: 68px 0 82px;
}

.article-related > .article-container > h2 {
  color: #202a35;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 36px;
}

.article-related__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.article-card__media {
  background: var(--post-pale);
  border-radius: 8px;
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.article-card__media::before { content: ""; display: block; padding-top: 55%; }

.article-card__image,
.article-card__placeholder {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.article-card__image { object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card__image { transform: scale(1.035); }
.article-card__placeholder { align-items: center; color: var(--post-blue); display: flex; font-size: 40px; justify-content: center; }

.article-card__meta {
  align-items: center;
  color: #66707a;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.article-card__meta i { background: #9ba3aa; display: inline-block; height: 16px; width: 1px; }
.article-card > h3 { display: -webkit-box; font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 16px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-card > h3 a { color: #202a35; }
.article-card > h3 a:hover { color: var(--post-orange); }

.article-card__link {
  align-items: center;
  color: #303a44;
  display: inline-flex;
  font-size: 15px;
  font-weight: 650;
  gap: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-card__link i { color: var(--post-orange); font-size: 13px; transition: transform .25s ease; }
.article-card__link:hover { color: var(--post-orange); }
.article-card__link:hover i { transform: translateX(4px); }

@media (max-width: 991.98px) {
  .article-hero, .article-hero__inner { min-height: 440px; }
  .article-title { max-width: 700px; }
  .article-author__avatar { flex-basis: 170px; }
  .article-author__avatar img { height: 170px; width: 170px; }
  .article-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 15px); }
}

@media (max-width: 767.98px) {
  .article-hero, .article-hero__inner { min-height: 380px; }
  .article-hero__inner { padding-bottom: 40px; padding-top: 40px; }
  .article-title { font-size: clamp(35px, 9vw, 48px); }
  .article-body { padding-top: 42px; }
  .article-reading-container { padding-left: 22px; padding-right: 22px; }
  .article-content { font-size: 16px; line-height: 1.72; }
  .article-content h2 { font-size: 25px; }
  .article-content blockquote { font-size: 18px; padding: 20px; }
  .article-author { margin-top: 46px; padding-bottom: 52px; }
  .article-author__rule { margin: 28px 0; }
  .article-author__profile { gap: 20px; }
  .article-author__avatar { flex-basis: 150px; }
  .article-author__avatar img { height: 150px; width: 150px; }
  .article-related { padding: 52px 0 62px; }
  .article-related__grid { grid-template-columns: minmax(0, 1fr); }
  .article-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
}

@media (max-width: 479.98px) {
  .article-author__profile { flex-direction: column; gap: 18px; }
  .article-author__avatar { flex-basis: auto; width: 200px; }
  .article-author__avatar img { height: 200px; width: 200px; }
  .article-author__bio { font-size: 14px; }
  .article-card > h3 { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-author__link i, .article-card__image, .article-card__link i { transition: none; }
}
