/* =========================================================
   INSIGHTS — News Collage Redesign
   Layout: Hero video (left) | Sidebar (right)
            Bottom article strip (full width)
========================================================= */

#insights.section {
  --insights-watermark-shift: 0px;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 0;
  background:
    radial-gradient(840px 420px at 8% 8%, rgba(184, 150, 83, 0.16), transparent 60%),
    radial-gradient(980px 520px at 92% 90%, rgba(20, 42, 67, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(244, 247, 249, 0.94), rgba(244, 247, 249, 0.96)),
    url("../../img/brand/d&s.jpg") center / cover no-repeat,
    #F4F7F9;
}

#insights.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(244, 247, 249, 0.9), rgba(244, 247, 249, 0.9)),
    url("../../img/brand/d&s2.jpg") center / 660px auto repeat;
  opacity: 0.14;
  pointer-events: none;
  transform: translate3d(0, calc(var(--insights-watermark-shift) * -1), 0);
  transition: transform 0.22s linear;
  animation: insightsWatermarkDrift 24s linear infinite alternate;
}

#insights .container {
  position: relative;
  z-index: 1;
}

/* ── Section Header ─────────────────────────────────── */

#insights .section-head--insights {
  align-items: end;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(10, 25, 47, 0.10);
}

.insights-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 25, 47, 0.10);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(10, 25, 47, 0.74);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.insights-viewAll {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Collage Root ───────────────────────────────────── */

.insights-collage {
  display: grid;
  grid-template-areas:
    "hero  sidebar"
    "strip strip";
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0;
}

/* Vertical divider between hero and sidebar */
.insights-collage__hero {
  grid-area: hero;
  padding-right: 28px;
  border-right: 1px solid rgba(10, 25, 47, 0.10);
}

.insights-collage__sidebar {
  grid-area: sidebar;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.insights-collage__strip {
  grid-area: strip;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(10, 25, 47, 0.10);
}

/* ── Base Card ──────────────────────────────────────── */

.insight-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
}

.insight-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

/* ── Media block ────────────────────────────────────── */

.insight-card__mediaLink {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}

.insight-card__mediaFrame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe6ec;
  border-radius: 10px;
}

.insight-card__mediaImage {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.insight-card__mediaImage--placeholder {
  background-image:
    linear-gradient(180deg, rgba(10, 25, 47, 0.12), rgba(10, 25, 47, 0.28)),
    url("../../img/insights/legal-placeholder.jpg");
}

.insight-card__mediaLink:hover .insight-card__mediaImage,
.insight-card:hover .insight-card__mediaImage {
  transform: scale(1.04);
}

.insight-card__cornerBadge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: #0A192F;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.12);
}

.insight-card__cornerBadge--video {
  background: rgba(255, 255, 255, 0.90);
}

.insight-card__mediaScrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 21, 39, 0.02), rgba(9, 21, 39, 0.28));
  border-radius: 10px;
}

.insight-card__playBadge {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 6vw, 72px);
  height: clamp(52px, 6vw, 72px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(10, 25, 47, 0.22);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.insight-card__mediaLink:hover .insight-card__playBadge {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.96);
}

.insight-card--featured .insight-card__playBadge {
  animation: insightPlayFloat 3.6s ease-in-out infinite;
}

.insight-card__playTriangle {
  display: block;
  margin-left: 4px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid rgba(10, 25, 47, 0.92);
}

/* ── Body ───────────────────────────────────────────── */

.insight-card__body {
  display: grid;
  gap: 12px;
  padding: 18px 0 0;
}

.insight-card__body--featured {
  padding-top: 20px;
  gap: 14px;
}

.insight-card__body--compact {
  padding-top: 14px;
  gap: 10px;
}

.insight-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.insight-card__metaTag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(10, 25, 47, 0.07);
  color: rgba(10, 25, 47, 0.60);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-card__title {
  margin: 0;
  color: #10243B;
  letter-spacing: -0.022em;
  line-height: 1.14;
}

.insight-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.insight-card__title a:hover {
  color: rgba(16, 36, 59, 0.66);
}

.insight-card__title--featured {
  font-size: clamp(26px, 2.6vw, 38px);
}

.insight-card__title--secondary {
  font-size: clamp(18px, 1.7vw, 22px);
}

.insight-card__title--article {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.3;
}

.insight-card__excerpt {
  margin: 0;
  color: rgba(16, 36, 59, 0.72);
  font-size: 15px;
  line-height: 1.75;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.insight-card__excerpt--short {
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.insight-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #0A192F;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: gap 0.18s ease;
}

.insight-card__cta::after {
  content: "\2192";
  transition: transform 0.2s ease;
}

.insight-card__cta:hover::after,
.insight-card__cta:focus-visible::after {
  transform: translateX(4px);
}

.insight-card__cta--compact {
  font-size: 12px;
}

/* ── Hero card ──────────────────────────────────────── */

.insight-card--featured .insight-card__mediaFrame {
  aspect-ratio: 16 / 10;
}

/* ── Sidebar cards ──────────────────────────────────── */

.insights-collage__sidebar .insight-card {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(10, 25, 47, 0.09);
}

.insights-collage__sidebar .insight-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.insights-collage__sidebar .insight-card + .insight-card {
  padding-top: 24px;
}

/* Sidebar media: horizontal thumbnail */
.insight-card--sidebar {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.insight-card--sidebar .insight-card__mediaLink {
  flex: 0 0 120px;
  border-radius: 8px;
}

.insight-card--sidebar .insight-card__mediaFrame {
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.insight-card--sidebar .insight-card__body {
  flex: 1;
  padding: 0;
  gap: 8px;
}

/* ── Bottom article strip ───────────────────────────── */

.insights-collage__strip .insight-card {
  padding: 0 24px;
  border-right: 1px solid rgba(10, 25, 47, 0.09);
}

.insights-collage__strip .insight-card:first-child {
  padding-left: 0;
}

.insights-collage__strip .insight-card:last-child {
  padding-right: 0;
  border-right: none;
}

.insight-card--article .insight-card__mediaFrame {
  aspect-ratio: 16 / 9;
  margin-bottom: 2px;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1100px) {
  .insight-card--sidebar {
    flex-direction: column;
  }

  .insight-card--sidebar .insight-card__mediaLink,
  .insight-card--sidebar .insight-card__mediaFrame {
    width: 100%;
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .insight-card--sidebar .insight-card__body {
    padding-top: 14px;
  }
}

@media (max-width: 991px) {
  .insights-collage {
    grid-template-areas:
      "hero"
      "sidebar"
      "strip";
    grid-template-columns: 1fr;
  }

  .insights-collage__hero {
    padding-right: 0;
    border-right: none;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(10, 25, 47, 0.10);
  }

  .insights-collage__sidebar {
    padding-left: 0;
    padding-top: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(10, 25, 47, 0.10);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .insights-collage__sidebar .insight-card {
    padding-bottom: 0;
    border-bottom: none;
    padding-top: 0;
  }

  .insight-card--sidebar {
    flex-direction: column;
  }

  .insight-card--sidebar .insight-card__mediaLink,
  .insight-card--sidebar .insight-card__mediaFrame {
    width: 100%;
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .insight-card--sidebar .insight-card__body {
    padding-top: 14px;
  }

  .insights-collage__strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  #insights.section {
    padding: 64px 0;
  }

  #insights .section-head--insights {
    align-items: start;
    margin-bottom: 20px;
  }

  .insights-collage__sidebar {
    grid-template-columns: 1fr;
  }

  .insights-collage__strip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .insights-collage__strip .insight-card {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid rgba(10, 25, 47, 0.09);
  }

  .insights-collage__strip .insight-card:last-child {
    border-bottom: none;
  }

  .insight-card__title--featured {
    font-size: 26px;
  }

  .insight-card__title--secondary {
    font-size: 18px;
  }
}

/* ── Animations ─────────────────────────────────────── */

@keyframes insightPlayFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%       { transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes insightsWatermarkDrift {
  from { transform: translate3d(0, calc(var(--insights-watermark-shift) * -1), 0); }
  to   { transform: translate3d(10px, calc(var(--insights-watermark-shift) * -1 - 8px), 0); }
}

@media (prefers-reduced-motion: reduce) {
  #insights.section::before,
  .insight-card--featured .insight-card__playBadge {
    animation: none;
    transition: none;
  }
}
