/* KSL Blogs - Figma node 667:2944 */

.blogs {
  padding: 80px 0;
}

.blogs__head {
  margin-bottom: 32px;
}

/* Now sits below .blogs__grid rather than beside the heading. Block-level
   + margin:auto (rather than inline-flex) so it actually centers as a
   standalone element in normal flow. */
.blogs__view-all {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 32px auto 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--grey-dark-charcoal);
  white-space: nowrap;
  transition: color 0.15s ease, gap 0.15s ease;
}

.blogs__view-all:hover {
  color: var(--primary-blue);
  gap: 8px;
}

.blogs__view-all-icon {
  width: 24px;
  height: 24px;
}

/* 3-column layout: two large cards + one column of 3 stacked small cards.
   Ratio (378 / 378 / 476) from the design ≈ 1 / 1 / 1.26fr */
.blogs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.26fr;
  align-items: start;
  gap: 24px;
}

/* Shared card chrome */
.blogs__card {
  background: var(--grey-pure-white);
  border: 0.5px solid var(--grey-light-grey);
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blogs__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.blogs__card--large {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  /* No matching Figma variable for this drop-shadow value */
  box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.05);
}

.blogs__thumb {
  width: 100%;
  aspect-ratio: 1920 / 1080;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-lightest-grey);
}

.blogs__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogs__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blogs__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blogs__date {
  font-size: 16px;
  color: var(--grey-medium-light-grey);
  text-transform: uppercase;
  white-space: nowrap;
}

.blogs__tags {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-off-black);
}

.blogs__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blogs__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blogs__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--grey-off-black);
}

.blogs__excerpt {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--grey-dark-grey);
}

.blogs__link-btn {
  align-self: flex-start;
}

/* Column 3: stacked small list items */
.blogs__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blogs__card--small {
  display: flex;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  /* No matching Figma variable for this drop-shadow value */
  box-shadow: 0px 2px 32px rgba(0, 0, 0, 0.05);
}

.blogs__media--small {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.blogs__thumb--small {
  width: 110px;
  height: 76px;
  aspect-ratio: auto;
  flex-shrink: 0;
  border-radius: 8px;
}

.blogs__meta--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.blogs__meta--stacked .blogs__date,
.blogs__meta--stacked .blogs__tags {
  font-size: 10px;
}

.blogs__content--small {
  flex: 1 1 0;
  min-width: 0;
  gap: 14px;
}

.blogs__text--small {
  gap: 6px;
}

.blogs__title--small {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.blogs__excerpt--small {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.25;
}

.blogs__link-text {
  font-size: 14px;
  color: var(--grey-dark-grey);
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .blogs {
    padding: 56px 0;
  }

  .blogs__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .blogs {
    padding: 40px 0;
  }

  /* Below this width the 3 "small" list cards should read identically to
     the 2 "large" cards above them - same full-width thumb, same type
     scale, same outline "Read more" button - instead of the compact
     side-by-side row treatment meant for the desktop 3rd column. */
  .blogs__card--small {
    flex-direction: column;
    gap: 16px;
  }

  .blogs__media--small {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .blogs__thumb--small {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1080;
  }

  .blogs__meta--stacked {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .blogs__meta--stacked .blogs__date,
  .blogs__meta--stacked .blogs__tags {
    font-size: 16px;
  }

  .blogs__meta--stacked .blogs__tags {
    font-size: 14px;
    font-weight: 500;
  }

  .blogs__content--small {
    gap: 24px;
  }

  .blogs__text--small {
    gap: 8px;
  }

  .blogs__title--small {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
  }

  .blogs__excerpt--small {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
  }

  .blogs__link-text {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    background: var(--blue-tint-04);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--primary-blue);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  }

  .blogs__link-text:hover {
    background: var(--primary-blue);
    color: var(--grey-pure-white);
    box-shadow: 0 8px 20px rgba(0, 89, 154, 0.24);
    transform: translateY(-2px);
  }
}
