:root {
  --ink: #07183c;
  --muted: #71809c;
}


/* =========================================================
   BLOG PAGE
========================================================= */

.blog-page {
  background: #f8f9fc;
  min-height: 100vh;
      margin-top: 200px;
}


/* =========================================================
   BLOG HERO
========================================================= */

.blog-hero {
  padding: 30px 20px 48px;
  text-align: center;
  background: #f0f3ff;
}

.blog-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 13px;
  border: 1px solid #b7c6ff;
  border-radius: 99px;
  background: #eaf0ff;
  color: #2455d6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.blog-hero h1 {
  margin: 12px 0 9px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.blog-hero h1 span {
  color: #6045ee;
}

.blog-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: #62708b;
  font-size: 15px;
  line-height: 1.6;
}


/* =========================================================
   INSIGHTS SECTION
========================================================= */

.insights {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px 60px;
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}


/* =========================================================
   INSIGHT CARD
========================================================= */

.insight-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #edf0f6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(31, 41, 55, 0.07);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.12);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.insight-card__image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #dbe4f7;
}

.insight-card__image::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    130deg,
    rgba(9, 23, 59, 0.08),
    transparent 60%
  );

  pointer-events: none;
}

.insight-card__image img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.insight-card:hover .insight-card__image img {
  transform: scale(1.04);
}


/* =========================================================
   ARTICLE TAG
========================================================= */

.article-tag {
  position: absolute;
  z-index: 1;

  top: 14px;
  left: 14px;

  padding: 6px 11px;

  border-radius: 6px;

  color: #ffffff;

  font-size: 10px;
  font-weight: 700;

  line-height: 1.2;
}

.article-tag--ai {
  background: #9c39ee;
}

.article-tag--commerce {
  background: #fb5e16;
}

.article-tag--development {
  background: #2477ee;
}

.article-tag--design {
  background: #ed3a9a;
}

.article-tag--analytics {
  background: #ecad09;
}


/* =========================================================
   CARD BODY
========================================================= */

.insight-card__body {
  padding: 17px 18px 19px;
}


/* =========================================================
   ARTICLE META
========================================================= */

.article-meta {
  overflow: hidden;

  white-space: nowrap;

  color: #9ba8c0;

  font-size: 9px;
  line-height: 1.5;

  text-overflow: ellipsis;
}

.article-meta i {
  display: inline-block;

  width: 3px;
  height: 3px;

  margin: 0 5px 2px;

  border-radius: 50%;

  background: currentColor;
}


/* =========================================================
   ARTICLE TITLE
========================================================= */

.insight-card h2 {
  display: -webkit-box;

  overflow: hidden;

  margin: 10px 0 9px;

  color: #081632;

  font-size: 15px;
  font-weight: 700;

  line-height: 1.4;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* =========================================================
   ARTICLE EXCERPT
========================================================= */

.article-excerpt {
  display: -webkit-box;

  overflow: hidden;

  min-height: 42px;

  color: #6c7b96;

  font-size: 12px;
  line-height: 1.6;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* =========================================================
   READ MORE
========================================================= */

.read-more {
  display: inline-block;

  margin-top: 13px;

  font-size: 12px;
  font-weight: 600;

  text-decoration: none;

  transition: opacity 0.2s ease;
}

.read-more:hover {
  opacity: 0.75;
}

.read-more span {
  padding-left: 3px;
}

.read-more--ai {
  color: #9d3eea;
}

.read-more--commerce {
  color: #fb5e16;
}

.read-more--development {
  color: #138bcf;
}

.read-more--design {
  color: #ef3b9a;
}

.read-more--analytics {
  color: #efad00;
}


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1000px) {

  .blog-hero {
    padding: 28px 20px 44px;
  }

  .insights {
    max-width: 900px;
    padding: 44px 22px 52px;
  }

  .insights__grid {
    gap: 20px;
  }

  .insight-card__image {
    height: 175px;
  }

  .insight-card__body {
    padding: 16px 17px 18px;
  }

  .insight-card h2 {
    font-size: 14px;
  }

  .article-excerpt {
    font-size: 11px;
  }

  .read-more {
    font-size: 11px;
  }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

  .blog-hero {
    padding-top: 32px;
  }

  .blog-hero h1 {
    font-size: clamp(32px, 6vw, 40px);
  }

  .blog-hero p {
    font-size: 14px;
  }

  .insights {
    padding-top: 34px;
  }

  .insights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .insight-card__image {
    height: 175px;
  }

  .insight-card__body {
    padding: 15px 16px 17px;
  }

  .insight-card h2 {
    font-size: 14px;
  }

  .article-excerpt {
    font-size: 11px;
  }

  .read-more {
    font-size: 11px;
  }
}


/* =========================================================
   PHONE — 2 CARDS PER ROW
========================================================= */

@media (max-width: 520px) {

  .blog-hero {
    padding: 36px 16px 32px;
  }

  .blog-hero__inner {
    max-width: 100%;
  }

  .blog-eyebrow {
    min-height: 23px;
    padding: 0 10px;
    font-size: 8px;
  }

  .blog-hero h1 {
    margin: 10px 0 8px;

    font-size: 30px;

    line-height: 1.1;
  }

  .blog-hero p {
    font-size: 12px;
    line-height: 1.55;
  }

  .desktop-break {
    display: none;
  }


  /* -----------------------------------------
     INSIGHTS
  ----------------------------------------- */

  .insights {
    width: 100%;
    max-width: none;

    padding: 22px 12px 32px;
  }


  /* -----------------------------------------
     TWO CARDS PER ROW
  ----------------------------------------- */

  .insights__grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 13px;
  }


  /* -----------------------------------------
     MOBILE CARD
  ----------------------------------------- */

  .insight-card {
    border-radius: 11px;

    box-shadow:
      0 4px 13px rgba(31, 41, 55, 0.07);
  }

  .insight-card:hover {
    transform: translateY(-3px);

    box-shadow:
      0 8px 18px rgba(31, 41, 55, 0.11);
  }


  /* -----------------------------------------
     MOBILE IMAGE
  ----------------------------------------- */

  .insight-card__image {
    height: 125px;
  }


  /* -----------------------------------------
     MOBILE TAG
  ----------------------------------------- */

  .article-tag {
    top: 8px;
    left: 8px;

    padding: 4px 7px;

    border-radius: 4px;

    font-size: 7px;
  }


  /* -----------------------------------------
     MOBILE BODY
  ----------------------------------------- */

  .insight-card__body {
    padding: 10px 10px 12px;
  }


  /* -----------------------------------------
     MOBILE META
  ----------------------------------------- */

  .article-meta {
    font-size: 7px;

    line-height: 1.4;
  }

  .article-meta i {
    width: 2px;
    height: 2px;

    margin: 0 3px 1px;
  }


  /* -----------------------------------------
     MOBILE TITLE
  ----------------------------------------- */

  .insight-card h2 {
    margin: 7px 0 6px;

    font-size: 11px;

    line-height: 1.4;
  }


  /* -----------------------------------------
     MOBILE DESCRIPTION
  ----------------------------------------- */

  .article-excerpt {
    min-height: 30px;

    font-size: 8px;

    line-height: 1.5;
  }


  /* -----------------------------------------
     MOBILE READ MORE
  ----------------------------------------- */

  .read-more {
    margin-top: 8px;

    font-size: 8px;
  }

  .read-more span {
    padding-left: 2px;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .blog-hero {
    padding: 32px 14px 28px;
  }

  .blog-hero h1 {
    font-size: 27px;
  }

  .blog-hero p {
    font-size: 11px;
  }


  .insights {
    padding: 20px 10px 28px;
  }

  .insights__grid {
    gap: 10px;
  }


  .insight-card {
    border-radius: 10px;
  }


  .insight-card__image {
    height: 112px;
  }


  .article-tag {
    top: 7px;
    left: 7px;

    padding: 3px 6px;

    font-size: 6.5px;
  }


  .insight-card__body {
    padding: 9px 9px 11px;
  }


  .article-meta {
    font-size: 6.5px;
  }


  .insight-card h2 {
    margin: 6px 0 5px;

    font-size: 10px;
  }


  .article-excerpt {
    min-height: 27px;

    font-size: 7.5px;
  }


  .read-more {
    margin-top: 7px;

    font-size: 7.5px;
  }
}