.news-article-page {
  --news-article-blue: var(--icm-color-primary);
  --news-article-blue-deep: var(--icm-color-primary-deep);
  --news-article-green: var(--icm-color-accent);
  --news-article-surface: var(--icm-color-surface);
  --news-article-surface-muted: #f5f7fb;
  --news-article-border: rgba(12, 40, 84, 0.09);
  --news-article-shadow: var(--icm-shadow-card);
  --news-article-shadow-hover: var(--icm-shadow-card-hover);
  --news-article-text: var(--icm-color-text);
  --news-article-muted: var(--icm-color-text-muted-3);
  display: block;
  color: var(--news-article-text);
}

.news-article-page .news-article-hero {
  position: relative;
  min-height: clamp(24rem, 44vw, 34rem);
  overflow: clip;
  background:
    linear-gradient(135deg, rgba(12, 40, 84, 0.92), rgba(13, 70, 148, 0.64)),
    linear-gradient(135deg, #d6e4f5, #e8eff8 48%, #cfdfed);
}

.news-article-page .news-article-hero-image,
.news-article-page .news-article-hero-image-placeholder,
.news-article-page .news-article-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-article-page .news-article-hero-image {
  display: block;
  object-fit: cover;
}

.news-article-page .news-article-hero-image-placeholder {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(135deg, #0d4694 0%, #154a82 45%, #4e6c85 100%);
}

.news-article-page .news-article-hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 40, 84, 0.38) 0%, rgba(12, 40, 84, 0.6) 100%),
    linear-gradient(90deg, rgba(12, 40, 84, 0.8) 0%, rgba(12, 40, 84, 0.26) 58%, rgba(12, 40, 84, 0.38) 100%);
}

.news-article-page .news-article-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  padding-block: clamp(2rem, 4.8vw, 4rem) clamp(2.25rem, 5.5vw, 4.5rem);
  color: #fff;
}

.news-article-page .news-article-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--icm-font-size--1);
}

.news-article-page .news-article-breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.84);

  &:not(:last-child)::after {
    content: "/";
    color: rgba(255, 255, 255, 0.48);
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

.news-article-page .news-article-hero-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  background: var(--news-article-green);
  color: #fff;
  font-size: var(--icm-font-size--2);
  font-weight: var(--icm-font-weight-bold);
  line-height: 1;
}

.news-article-page .news-article-title {
  max-width: 16ch;
  margin: 0;
  color: #fff;
  font-size: var(--icm-font-size-10);
  font-weight: var(--icm-font-weight-black);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.news-article-page .news-article-hero-summary {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--icm-font-size-2);
  font-weight: var(--icm-font-weight-semibold);
  line-height: 1.45;
}

.news-article-page .news-article-main {
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.news-article-page .news-article-main-grid {
  display: block;
}

.news-article-page .news-article-meta,
.news-article-page .news-article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--news-article-muted);
  font-size: var(--icm-font-size--1);
}

.news-article-page .news-article-meta {
  margin-bottom: 1.5rem;
}

.news-article-page .news-article-meta-item,
.news-article-page .news-article-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.news-article-page .news-article-content {
  min-width: 0;
}

.news-article-page .news-article-body {
  color: var(--news-article-text);
  font-size: var(--icm-font-size-0);
  line-height: 1.75;

  > :first-child {
    margin-top: 0;
  }

  > p:first-child {
    font-size: var(--icm-font-size-2);
    font-weight: var(--icm-font-weight-bold);
    line-height: 1.5;
    color: #101828;
  }

  p,
  ul,
  ol {
    margin-block: 0 1.4rem;
  }

  .alert.alert-primary {
    --bs-alert-bg: var(--icm-color-secondary);
    --bs-alert-color: var(--icm-color-inverse);
    --bs-alert-border-color: var(--icm-color-secondary);
    --bs-alert-link-color: var(--icm-color-inverse);
    box-shadow: none;

    h2,
    h3,
    h4,
    p,
    li,
    a {
      color: var(--icm-color-inverse);
    }

    p:last-child {
      margin-bottom: 0;
    }
  }

  .list-group.list-group-flush {
    border-top: 1px solid rgba(var(--icm-color-primary-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--icm-color-primary-rgb), 0.1);
    margin-bottom: 1.4rem;

    .list-group-item {
      position: relative;
      padding: 1rem 0 1rem 2rem;
      border-color: rgba(var(--icm-color-primary-rgb), 0.1);
      background: transparent;
      color: var(--news-article-text);
      font-size: var(--icm-font-size-0);
      font-weight: var(--icm-font-weight-medium);
    }

    .list-group-item::before {
      position: absolute;
      top: 1rem;
      left: 0;
      color: var(--icm-color-secondary);
      content: "\f061";
      font-family: "Font Awesome 6 Pro";
      font-size: 0.875rem;
      font-weight: 300;
      line-height: 1.6;
    }

    .list-group-item:last-child {
      margin-bottom: 0;
    }
  }

  h2,
  h3,
  h4 {
    margin-block: 2rem 1rem;
    color: var(--news-article-blue-deep);
    font-weight: var(--icm-font-weight-extrabold);
    line-height: 1.15;
  }

  h2 {
    font-size: var(--icm-font-size-4);
  }

  h3 {
    font-size: var(--icm-font-size-2);
  }

  .col > h2:first-child,
  .col > h3:first-child,
  .col > h4:first-child,
  [class*="col-"] > h2:first-child,
  [class*="col-"] > h3:first-child,
  [class*="col-"] > h4:first-child {
    margin-top: 0;
  }

  .accordion-item {
    overflow: clip;
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 1.25rem;
    background: var(--news-article-surface) !important;
    box-shadow: var(--news-article-shadow);
    transition:
      box-shadow 180ms ease,
      border-color 180ms ease;

    .accordion-header {
      margin: 0;
    }
  }

  .accordion {
    display: grid;
    gap: 1.5rem;
    padding: 0;
  }

  .accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 4.5rem 1.6rem 2rem;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--news-article-text);
    font-size: var(--icm-font-size-2);
    font-weight: var(--icm-font-weight-medium);
    line-height: 1.35;
    letter-spacing: -0.01em;

    &::before,
    &::after {
      position: absolute;
      top: 50%;
      right: 2rem;
      margin-left: 0;
      width: 0.95rem;
      height: 1.5px;
      border-radius: 999px;
      background: currentColor;
      background-image: none;
      background-size: 0;
      content: "";
      transform: translateY(-50%);
      transition: transform 180ms ease, opacity 180ms ease;
    }

    &::before {
      transform: translateY(-50%) rotate(90deg);
    }

    &:not(.collapsed) {
      color: var(--news-article-text);
    }

    &:not(.collapsed)::before {
      opacity: 0;
      transform: translateY(-50%) rotate(90deg) scaleY(0.2);
    }

    &:focus {
      box-shadow: none !important;
    }

    &:focus-visible {
      outline: 2px solid #0d4694;
      outline-offset: -2px;
    }
  }

  .accordion-collapse {
    transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .accordion-body {
    padding: 0 2rem 1.6rem !important;
    color: var(--news-article-muted);
    font-size: var(--icm-font-size-0);
    line-height: 1.7;
  }

  ul,
  ol {
    padding-left: 1.25rem;
  }

  li + li {
    margin-top: 0.4rem;
  }

  a {
    color: var(--news-article-blue);
    font-weight: var(--icm-font-weight-bold);
  }

  img {
    border-radius: var(--icm-radius-lg);
  }

  .accordion-item:has(.accordion-button:not(.collapsed)) {
    box-shadow: var(--news-article-shadow-hover);
  }
}

.news-article-page .news-article-back-link:hover,
.news-article-page .news-article-back-link:focus-visible {
  border-color: rgba(13, 70, 148, 0.12);
  background: #eaf0fb;
  color: var(--news-article-blue);
  transform: translateY(-1px);
}

.news-article-page .news-article-back-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--news-article-surface-muted);
  color: var(--news-article-blue);
  font-size: var(--icm-font-size--1);
  font-weight: var(--icm-font-weight-bold);
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.news-article-page .news-article-related {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.news-article-page .news-article-related-heading {
  margin-bottom: 1.75rem;

  h2 {
    margin: 0;
    color: var(--news-article-blue-deep);
    font-size: var(--icm-font-size-8);
    font-weight: var(--icm-font-weight-black);
    line-height: 1.05;
  }
}

.news-article-page .news-article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.news-article-page .news-article-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: clip;
  border: 1px solid var(--news-article-border);
  border-radius: 1.75rem;
  background: var(--news-article-surface);
  box-shadow: var(--news-article-shadow);
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-article-page .news-article-card-link:hover,
.news-article-page .news-article-card-link:focus-visible {
  border-color: rgba(13, 70, 148, 0.12);
  transform: translateY(-5px);
  box-shadow: var(--news-article-shadow-hover);
}

.news-article-page .news-article-card-media {
  position: relative;
  aspect-ratio: 1.68 / 1;
  overflow: clip;
  background: linear-gradient(135deg, #d8e7f7 0%, #eef5fb 55%, #d4ede2 100%);
}

.news-article-page .news-article-card-image,
.news-article-page .news-article-card-image-placeholder {
  width: 100%;
  height: 100%;
}

.news-article-page .news-article-card-image {
  display: block;
  object-fit: cover;
}

.news-article-page .news-article-card-image-placeholder {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(140deg, rgba(13, 70, 148, 0.88), rgba(0, 108, 87, 0.72));
}

.news-article-page .news-article-card-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--news-article-blue);
  color: #fff;
  font-size: var(--icm-font-size--2);
  font-weight: var(--icm-font-weight-bold);
  line-height: 1;
}

.news-article-page .news-article-card-content {
  display: grid;
  gap: 0.9rem;
  height: 100%;
  padding: 1.15rem 1.2rem 1.3rem;
}

.news-article-page .news-article-card-title {
  margin: 0;
  color: var(--news-article-text);
  font-size: var(--icm-font-size-4);
  font-weight: var(--icm-font-weight-black);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-article-page .news-article-card-summary {
  margin: 0;
  color: var(--news-article-text);
  font-size: var(--icm-font-size-0);
  line-height: 1.5;
}

.news-article-page .news-article-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  color: var(--news-article-blue);
  font-size: var(--icm-font-size-0);
  font-weight: var(--icm-font-weight-bold);
}

@media (max-width: 991.98px) {
  .news-article-page .news-article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .news-article-page .news-article-hero {
    min-height: 22rem;
  }

  .news-article-page .news-article-hero-content {
    gap: 0.85rem;
  }

  .news-article-page .news-article-title {
    max-width: none;
    font-size: var(--icm-font-size-9);
  }

  .news-article-page .news-article-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-article-page .news-article-body .accordion {
    gap: 1rem;
  }

  .news-article-page .news-article-body .accordion-button {
    gap: 1rem;
    padding: 1.25rem 3.75rem 1.2rem 1.25rem;
    font-size: var(--icm-font-size-1);
  }

  .news-article-page .news-article-body .accordion-button::before,
  .news-article-page .news-article-body .accordion-button::after {
    right: 1.25rem;
  }

  .news-article-page .news-article-body .accordion-body {
    padding: 0 1.25rem 1.25rem !important;
  }
}
