/* Media Center — News article detail page */

.template-newspage,
.template-blogpage {
  background: #ffffff;
}

.news-article {
  --news-article-accent: #a07a5e;
  --news-article-muted: #8a8a8a;
  --news-article-text: #4a4a4a;
  --news-article-heading: #152532;
  --news-article-btn: #7cc4e6;
  --news-article-btn-hover: #5fb3de;
  --news-article-max: 720px;
  --news-article-gutter: clamp(24px, 5vw, 120px);
}

/* Hero */
.news-article__hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(420px, 52vh, 620px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.news-article__hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #152532;
}

.news-article__hero-image,
.news-article__hero-video {
  display: block;
  width: 100%;
  height: 110%;
  object-fit: cover;
}

.news-article__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(21, 37, 50, 0.35) 0%,
      rgba(21, 37, 50, 0.62) 55%,
      rgba(21, 37, 50, 0.82) 100%);
}

.news-article__hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - (var(--news-article-gutter) * 2)));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  color: #ffffff;
  animation: news-article-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.news-article__hero-label {
  color: #FFF;
  font-family: "Granadia-Bold", sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 58.8px;
  letter-spacing: -0.18px;
}

.news-article__hero-title {
  margin: 0;
  max-width: 972px;
  height: 126px;
  font-family: "Granadia-Book", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: pretty;
}

/* Article body */
.news-article__content {
  padding: clamp(32px, 4vw, 56px) 0 clamp(72px, 8vw, 120px);
  animation: news-article-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.news-article__container {
  width: 1313px;
  margin: 0 auto;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
  font-family: "Granadia-Book", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.news-article__country {
  color: #375794;
  font-family: "Granadia-Bold", sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.news-article__date {
  color: var(--news-article-muted);
}

.news-article__author-link {
  color: inherit;
  text-decoration: none;
}

.news-article__author-link:hover,
.news-article__author-link:focus-visible {
  text-decoration: underline;
}

.news-article__summary-title {
  margin: 0;
  color: var(--news-article-heading);
  font-family: "Granadia-Bold", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
}

.news-article__richtext {
  font-family: "Granadia-Book", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.85;
  color: var(--news-article-text);
}

.news-article__richtext+.news-article__richtext,
.news-article__richtext+.news-article__figure,
.news-article__figure+.news-article__richtext,
.news-article__summary-title+.news-article__richtext {
  margin-top: clamp(24px, 3vw, 36px);
}

.news-article__richtext p {
  margin: 0 0 1.25em;
}

.news-article__richtext p:last-child {
  margin-bottom: 0;
}

.news-article__richtext h2,
.news-article__richtext h3,
.news-article__richtext h4 {
  margin: 1.5em 0 0.75em;
  color: var(--news-article-heading);
  font-family: "Granadia-Bold", sans-serif;
  line-height: 1.3;
}

.news-article__richtext--lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.news-article__figure {
  margin: clamp(28px, 4vw, 44px) 0;
}

.news-article__inline-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.news-article__footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 6vw, 72px);
}

.news-article__back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 40px;
  border-radius: 999px;
  background: var(--news-article-btn);
  color: #ffffff;
  font-family: "Granadia-Bold", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease;
}

.news-article__back-btn:hover,
.news-article__back-btn:focus-visible {
  background: var(--news-article-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 196, 230, 0.35);
  color: #ffffff;
}

/* RTL */
html[lang="ar"] .news-article__hero-inner,
html[lang="ar"] .news-article__container {
  text-align: start;
}

html[lang="ar"] .news-article__hero-title,
html[lang="ar"] .news-article__richtext {
  font-family: "Granadia-Book", sans-serif;
}

/* Animations */
@keyframes news-article-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .news-article__hero-inner,
  .news-article__content {
    animation: none;
  }

  .news-article__back-btn {
    transition: background-color 0.2s ease;
  }

  .news-article__back-btn:hover,
  .news-article__back-btn:focus-visible {
    transform: none;
  }
}

@media (max-width: 768px) {
  .news-article__hero {
    min-height: clamp(360px, 58vh, 480px);
  }

  .news-article__hero-label {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }

  .news-article__meta {
    gap: 8px 16px;
  }
}