/* News page — card grid + list pagination (design 1:1) */

#news-list.grid {
  scroll-margin-top: calc(var(--header-h, 132px) + 1.75rem);
}

#news-list.grid,
.grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

#news-list .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

#news-list .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

#news-list .card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--eu-blue), var(--navy));
  position: relative;
  overflow: hidden;
}

#news-list .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

#news-list .card:hover .card-media img {
  transform: scale(1.06);
}

#news-list .card-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

#news-list .card-meta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sky);
}

#news-list .card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#news-list .card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#news-list .card-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.25rem;
}

/* Pagination bar */
.list-pagination {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: 0;
}

.list-pagination-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 226, 0.35)),
    var(--white);
  border: 1px solid rgba(6, 54, 119, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(6, 54, 119, 0.06);
}

.list-pagination-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.list-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.list-pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  background: rgba(6, 54, 119, 0.05);
  border-radius: 999px;
}

.list-pagination-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(6, 54, 119, 0.04);
  transition:
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.list-pagination-nav:hover:not(:disabled) {
  border-color: rgba(251, 135, 28, 0.45);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(251, 135, 28, 0.12);
}

.list-pagination-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.list-pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.list-pagination-page:hover {
  background: rgba(251, 135, 28, 0.12);
  color: var(--accent);
}

.list-pagination-page.is-active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(251, 135, 28, 0.28);
  transform: scale(1.04);
}

.list-pagination-page.is-active:hover {
  background: #e87812;
  color: var(--white);
}

.list-pagination-ellipsis {
  color: var(--muted);
  padding: 0 0.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.list-pagination-progress {
  width: min(220px, 55%);
  height: 3px;
  margin: 0.15rem 0 0;
  border-radius: 999px;
  background: rgba(6, 54, 119, 0.08);
  overflow: hidden;
}

.list-pagination-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  transition: width 0.35s var(--ease);
}

@media (max-width: 980px) {
  #news-list.grid,
  .grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #news-list.grid,
  .grid.grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .list-pagination-inner {
    padding: 1rem;
  }

  .list-pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* News list skeleton */
#news-list .mhero-skel-card {
  overflow: hidden;
}

#news-list .mhero-skel-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.2rem;
}

#news-list .mhero-skel-card .mhero-skel-media {
  min-height: 10rem;
}

/* ——— Single news article — same modern pattern as stories ——— */
.news-detail-hero .detail-back {
  color: var(--accent, #fb871c);
}

.news-detail-hero .detail-back:hover,
.news-detail-hero .detail-back:focus-visible {
  color: var(--white);
}

.news-detail-hero .eyebrow {
  color: var(--light-blue, #abcbf5);
}

.news-detail-section {
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  background: var(--white);
}

.news-article-detail.article-detail {
  display: grid;
  gap: 2rem;
}

.news-article-detail .article-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.news-article-detail .detail-cover {
  --news-cover-radius: 16px;
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(420px, 48vw);
  height: auto;
  border-radius: var(--news-cover-radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(6, 54, 119, 0.08), rgba(171, 203, 245, 0.2)),
    var(--mist, #e8eef5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 44px rgba(6, 54, 119, 0.12);
  isolation: isolate;
}

.news-article-detail .detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(6, 54, 119, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(6, 54, 119, 0.06) 0%,
      transparent 28%,
      transparent 58%,
      rgba(6, 54, 119, 0.18) 100%
    );
}

.news-article-detail .detail-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-article-detail .detail-cover:hover img {
  transform: scale(1.045);
}

.news-article-detail .detail-cover--zoomable:hover img,
.news-article-detail .detail-cover--zoomable:focus-visible img {
  transform: scale(1.045);
}

.news-article-detail .detail-cover--empty {
  background: linear-gradient(145deg, #0a4a9e 0%, var(--navy, #063677) 55%, #04244f 100%);
}

.news-article-detail .detail-cover--empty::before {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 135, 28, 0.28), transparent 68%);
  filter: blur(8px);
}

.news-article-detail .detail-aside {
  min-width: 0;
}

.news-related-panel.side-panel,
.news-article-detail .related-news-panel {
  position: sticky;
  top: calc(var(--header-h, 132px) + 1rem);
  background: var(--white);
  border: 1px solid var(--line, #d5deea);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(6, 54, 119, 0.06);
  padding: 1.35rem 1.25rem 1.4rem;
}

.news-related-panel h3,
.news-article-detail .related-news-panel h3 {
  margin: 0 0 0.85rem;
  padding: 0 0 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #063677);
  line-height: 1.3;
  border-bottom: 1px solid rgba(6, 54, 119, 0.1);
}

.news-article-detail .related-news-list {
  display: grid;
  gap: 0;
}

.news-article-detail .related-news-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.95rem 0.45rem;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(6, 54, 119, 0.09);
  transition: background 0.2s ease;
}

.news-article-detail .related-news-item:first-child {
  padding-top: 0.15rem;
}

.news-article-detail .related-news-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.news-article-detail .related-news-item:hover {
  background: rgba(6, 54, 119, 0.04);
  border-radius: 8px;
}

.news-article-detail .related-news-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--navy, #063677) center / cover no-repeat;
  border: 1px solid var(--line, #d5deea);
  flex-shrink: 0;
}

.news-article-detail .related-news-thumb--empty {
  background: linear-gradient(135deg, var(--mist, #e8eef5), #dbe6f5);
}

.news-article-detail .related-news-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.news-article-detail .related-news-date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #8a9cb0);
}

.news-article-detail .related-news-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy, #063677);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-article-detail .related-news-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #fb871c);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s;
}

.news-article-detail .related-news-item:hover .related-news-title {
  color: var(--accent-deep, #d06a0a);
}

.news-article-detail .related-news-item:hover .related-news-arrow {
  transform: translateX(3px);
  color: var(--navy, #063677);
}

.news-related-cta {
  margin: 1.15rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(6, 54, 119, 0.1);
}

.news-related-cta .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  text-align: center;
  border: 1.5px solid rgba(6, 54, 119, 0.28);
  box-sizing: border-box;
}

.news-related-cta .btn .btn-ico {
  flex: 0 0 auto;
}

.news-related-cta .btn .btn-label {
  flex: 0 1 auto;
  max-width: 14em;
  min-width: 0;
  text-align: center;
  overflow-wrap: break-word;
}

.news-article-body.article-detail-body,
.news-article-detail .article-detail-body {
  width: 100%;
  max-width: none;
  color: var(--ink, #2a3340);
  line-height: 1.75;
}

.news-article-body .lede {
  margin: 0 0 1.35rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted, #5a6472);
  max-width: 52rem;
}

.news-article-body p {
  margin: 0 0 1em;
  max-width: none;
}

@media (max-width: 980px) {
  .news-article-detail.article-detail {
    display: flex;
    flex-direction: column;
  }

  .news-article-detail .article-detail-top {
    display: contents;
  }

  .news-article-detail .detail-cover,
  .news-article-detail .detail-cover--empty {
    order: 1;
  }

  .news-article-detail .article-detail-body {
    order: 2;
  }

  .news-article-detail .detail-aside {
    order: 3;
  }

  .news-article-detail .related-news-panel {
    position: static;
  }

  .news-article-detail .detail-cover {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-article-detail .detail-cover img,
  .news-article-detail .detail-cover:hover img {
    transform: none;
    transition: none;
  }
}
