/* ==========================================================================
   News & Media module styles — scoped to /news-media pages only.
   Loaded via <Head> in the listing + details pages (the insulators.css
   pattern). Extracted from the original news-media.html / media-details.html
   inline <style> blocks so the design matches exactly. The .card / .card__*
   and .theme-btn systems live in style.css and are reused as-is.
   ========================================================================== */

/* ===== Page banner (reuses the catalogue listing hero pattern) ===== */
.cat-hero {
  min-height: 520px;
  background-color: #1b2a3a; /* fallback while the hero image loads */
  justify-content: flex-start;
  padding-bottom: 0;
}
.cat-hero::before {
  background: linear-gradient(
    90deg,
    rgba(10, 25, 41, 0.72) 0%,
    rgba(10, 25, 41, 0.4) 45%,
    rgba(10, 25, 41, 0.15) 100%
  );
}

.cat-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 90px;
}

.cat-hero-title {
  color: #fff; 
  font-weight: 600;
  font-size: clamp(30px, 6vw, 50px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.cat-hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 0;
}


@media (max-width: 991.98px) {
  .cat-hero {
    min-height: 440px;
  }
  .cat-hero-content {
    padding-bottom: 70px;
  }  
}

/* ===== News & Media listing ===== */
/* Cards reuse the "Latest Insights" .card / .card__* system from style.css so
   the look & feel matches exactly. Only grid + logo-fit tweaks below. */
.nm-section {
  background: #ffffff;
  padding: 56px 0 90px;
}

/* intro copy (mirrors .cl-intro) */
.nm-intro {
  max-width: 1080px;
  margin: 0 auto 44px;
  color: #6c7a8c;
  font-size: 16px;
  line-height: 1.85;
  text-align: center;
}

/* In a grid (not the slider) the card should fill its column */
.nm-section .card {
  width: 100%;
  height: 100%;
  border:rgba(0, 0, 0, 0.1) solid 1px;
  border-radius: 10px;
  overflow: hidden;
}

.nm-section .card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 0 0;
}
.nm-section .card__content{
  padding: 15px 15px 20px;
}

/* ===== News & Media details ===== */
/* Reuses theme tokens (--navy, --primary-blue, --border, --radius) and the
   existing .card__date and .theme-btn classes. Only layout helpers below. */
.md-section {
  background: #ffffff;
  padding: 72px 0 96px;
}
.card__date{
  display:none;
}
/* ---- left column ---- */
.md-title {
  color: var(--navy, #00172c);
  font-family: "proxima_novasemibold", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.md-meta {
  margin-bottom: 28px;
}

/* image keeps a clean 16:9 aspect ratio and is fully responsive */
.md-figure {
  border-radius: var(--radius, 16px);
  overflow: hidden;
  background: #dfe3e8;
  margin: 0;
}
.md-figure img {
  width: 100%;
  /*height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;*/
  display: block;
}

.md-content {
  color: #6c7a8c;
  font-size: 16px;
  line-height: 1.85;
  margin-top: 30px;
}
.md-content p {
  margin-bottom: 18px;
}
.md-content p:last-child {
  margin-bottom: 0;
}

/* Embedded video (YouTube/Vimeo iframe pasted into the description field)
   scales to the column width instead of keeping its fixed pixel size. */
.md-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius, 16px);
  margin-bottom: 18px;
}

/* ---- right column (sticky info card) ---- */
.md-aside {
  background: #f4f6fa;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 16px);
  padding: 30px 28px;
  position: sticky;
  top: 24px;
}
.md-aside-title {
  color: var(--navy, #00172c);
  font-family: "proxima_novasemibold", sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
}
.md-aside p {
  color: #6c7a8c;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.md-aside .theme-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .md-aside {
    position: static;
    margin-top: 36px;
  }
}

/* ---- image modal ---- */
.md-modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #00172c;
}
.md-modal-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.md-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background-color: #fff;
  opacity: 1;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.25s ease;
}
.md-modal-close:hover {
  background-color: #e6f0fa;
}
