/* =========================================================
   INSIGHTS SECTION
   ========================================================= */

.mersad-insights {
  position: relative;

  width: 100%;
  overflow: hidden;

  padding: 112px 0 106px;

  background: #070707;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.06);
}

.mersad-insights__container {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.mersad-insights__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;

  margin-bottom: 48px;
}

.mersad-insights__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;

  color: #d3f200;

  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mersad-insights__eyebrow::before {
  content: "";

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #d3f200;

  box-shadow:
    0 0 14px rgba(211, 242, 0, 0.38);
}

.mersad-insights__title {
  max-width: 760px;
  margin: 0;

  color: #f5f5f2;

  font-family: "Inter", sans-serif;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mersad-insights__title span {
  color: #d3f200;
}

.mersad-insights__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mersad-insights__view-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: #e8e8e5;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.mersad-insights__view-all svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: #d3f200;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 180ms ease;
}

.mersad-insights__view-all:hover svg {
  transform: translateX(4px);
}

.mersad-insights__controls {
  display: flex;
  gap: 8px;
}

.mersad-insights__control {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #bdbdbd;
  background: transparent;

  border: 1px solid #2b2b2b;
  border-radius: 50%;

  cursor: pointer;

  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.mersad-insights__control:hover {
  color: #050505;
  background: #d3f200;

  border-color: #d3f200;
}

.mersad-insights__control svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   HORIZONTAL TRACK
   ========================================================= */

.mersad-insights__viewport {
  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mersad-insights__viewport::-webkit-scrollbar {
  display: none;
}

.mersad-insights__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns:
    calc((100% - 54px) / 4);

  gap: 18px;
}

/* =========================================================
   ARTICLE
   ========================================================= */

.mersad-insight {
  min-width: 0;

  scroll-snap-align: start;

  border-top:
    1px solid rgba(255, 255, 255, 0.13);

  transition:
    border-color 220ms ease;
}

.mersad-insight:hover {
  border-color: #d3f200;
}

.mersad-insight__link {
  min-height: 340px;

  display: flex;
  flex-direction: column;

  padding: 25px 2px 4px;

  color: inherit;

  text-decoration: none;
}

.mersad-insight__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 34px;
}

.mersad-insight__category {
  color: #d3f200;

  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mersad-insight__index {
  color: #555555;

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 9px;
  font-weight: 600;
}

.mersad-insight__title {
  margin: 0;

  color: #ececea;

  font-family: "Inter", sans-serif;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;

  transition:
    color 200ms ease,
    transform 200ms ease;
}

.mersad-insight:hover
.mersad-insight__title {
  color: #ffffff;

  transform: translateY(-2px);
}

.mersad-insight__excerpt {
  margin: 20px 0 0;

  color: #858585;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.mersad-insight__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-top: auto;
  padding-top: 30px;

  color: #686868;

  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mersad-insight__footer svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: #727272;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    stroke 180ms ease,
    transform 180ms ease;
}

.mersad-insight:hover
.mersad-insight__footer svg {
  stroke: #d3f200;

  transform:
    translate(3px, -3px);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .mersad-insights {
    padding: 96px 0;
  }

  .mersad-insights__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mersad-insights__actions {
    width: 100%;

    justify-content: space-between;
  }

  .mersad-insights__track {
    grid-auto-columns:
      calc((100% - 18px) / 2);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .mersad-insights {
    padding: 78px 0 72px;
  }

  .mersad-insights__container {
    width: min(100% - 24px, 560px);
  }

  .mersad-insights__header {
    gap: 28px;

    margin-bottom: 38px;
  }

  .mersad-insights__title {
    font-size:
      clamp(36px, 10vw, 48px);

    line-height: 1.02;
  }

  .mersad-insights__view-all {
    font-size: 11px;
  }

  .mersad-insights__control {
    width: 38px;
    height: 38px;
  }

  .mersad-insights__track {
    grid-auto-columns: 86%;
    gap: 14px;
  }

  .mersad-insight__link {
    min-height: 300px;
  }

  .mersad-insight__top {
    margin-bottom: 26px;
  }

  .mersad-insight__title {
    font-size: 26px;
  }

  .mersad-insight__excerpt {
    font-size: 13px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .mersad-insights__viewport {
    scroll-behavior: auto;
  }

  .mersad-insights__view-all svg,
  .mersad-insights__control,
  .mersad-insight,
  .mersad-insight__title,
  .mersad-insight__footer svg {
    transition-duration:
      0.01ms !important;
  }
}