/* Blog home hero partial */
.cb-hero {
  background: #fff;
  padding: 28px 0 18px;
  position: relative;
  overflow: hidden;
}

.cb-hero__container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.cb-hero__surface {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  padding: 22px 18px;
}

.cb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(330px, 0.98fr);
  gap: 20px;
  align-items: stretch;
}

.cb-hero-featured {
  position: relative;
  min-height: 332px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  isolation: isolate;
}

.cb-hero-featured__media {
  position: absolute;
  inset: 0;
  display: block;
  background: #e5e7eb;
}

.cb-hero-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cb-hero-featured__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 22%, rgba(255, 255, 255, 0.78) 43%, rgba(255, 255, 255, 0.32) 68%, rgba(255, 255, 255, 0) 96%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.62) 100%);
  pointer-events: none;
}

.cb-hero-featured__badge {
  position: absolute;
  top: 18px;
  left: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 4px 8px;
  background: rgba(0, 130, 76, 0.08);
  border: 1px solid rgba(0, 130, 76, 0.16);
  color: #007a46;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.cb-hero-featured__content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 580px;
  padding: 30px 32px 32px;
}

.cb-hero-featured__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}

.cb-hero-featured__category {
  color: #008b55;
}

.cb-hero-featured__title-link {
  text-decoration: none;
  color: inherit;
}

.cb-hero-featured__title {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 800;
  color: #374151;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0;
  max-width: 510px;
}

.cb-hero-featured__excerpt {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.52;
  margin: 0;
  max-width: 520px;
}

.cb-hero-featured__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.cb-hero-featured__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  object-fit: cover;
  background: #008b55;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.cb-hero-featured__author {
  display: inline-flex;
  align-items: center;
  color: #008b55;
  font-weight: 800;
  text-decoration: none;
}

.cb-hero-featured__date {
  color: #6b7280;
}

.cb-hero-secondary {
  display: grid;
  grid-template-rows: repeat(3, auto);
  align-content: space-between;
  gap: 0;
  min-height: 332px;
  padding: 0 2px;
}

.cb-hero-secondary__card {
  position: relative;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  transition: border-color var(--cb-fast), box-shadow var(--cb-fast), transform var(--cb-fast);
}

.cb-hero-secondary__card + .cb-hero-secondary__card {
  border-top: 0;
}

.cb-hero-secondary__card + .cb-hero-secondary__card::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 2%;
  right: 2%;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.08) 18%, rgba(17, 24, 39, 0.08) 82%, rgba(17, 24, 39, 0) 100%);
  pointer-events: none;
}

.cb-hero-secondary__card:hover {
  box-shadow: none;
  transform: none;
}

.cb-hero-secondary__image {
  position: relative;
  display: block;
  height: 88px;
  min-height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f7;
}

.cb-hero-secondary__card:first-child .cb-hero-secondary__image {
  align-self: start;
}

.cb-hero-secondary__card:last-child .cb-hero-secondary__image {
  align-self: end;
}

.cb-hero-secondary__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-hero-secondary__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: flex-start;
}

.cb-hero-secondary__category {
  color: #007a46;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.cb-hero-secondary__title-link {
  text-decoration: none;
  color: inherit;
}

.cb-hero-secondary__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: #374151;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cb-hero-secondary__time {
  font-size: 11px;
  color: #6b7280;
}

.cb-hero-featured__tag:hover {
  background: var(--cb-green-dark, #009f5d);
  color: #fff;
}

.cb-hero-featured__title-link:hover .cb-hero-featured__title {
  color: #005931;
}

.cb-hero-featured__author:hover {
  color: #005931;
}

.cb-hero-featured__author svg {
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .cb-hero__grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  }

  .cb-hero-featured,
  .cb-hero-secondary {
    min-height: 312px;
  }

  .cb-hero-featured__content {
    padding: 26px;
    gap: 12px;
  }

  .cb-hero-featured__badge {
    left: 26px;
  }

  .cb-hero-secondary__card {
    grid-template-columns: 36% minmax(0, 1fr);
    gap: 12px;
  }

  .cb-hero-secondary__title {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .cb-hero {
    padding: 32px 0 18px;
  }

  .cb-hero__container {
    padding: 0 16px;
  }

  .cb-hero__surface {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .cb-hero__grid {
    grid-template-columns: 1fr;
  }

  .cb-hero-featured {
    min-height: 386px;
  }

  .cb-hero-featured__content {
    padding: 24px;
    gap: 12px;
  }

  .cb-hero-featured__badge {
    left: 24px;
  }

  .cb-hero-featured__title {
    font-size: 26px;
    line-height: 1.16;
  }

  .cb-hero-featured__excerpt {
    font-size: 14px;
  }

  .cb-hero-featured__meta {
    flex-wrap: wrap;
    gap: var(--cb-space-2);
  }

  .cb-hero-secondary {
    min-height: 0;
    grid-template-rows: none;
    align-content: normal;
    gap: 12px;
  }

  .cb-hero-secondary__card {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    min-height: 112px;
    padding: 10px 0;
  }

  .cb-hero-secondary__image {
    height: 90px;
    min-height: 90px;
  }
}

@media (max-width: 480px) {
  .cb-hero-featured {
    min-height: 420px;
  }

  .cb-hero-featured__badge {
    top: 16px;
    left: 20px;
  }

  .cb-hero-featured__content {
    padding: 20px;
    gap: 11px;
  }

  .cb-hero-featured__title {
    font-size: 24px;
  }

  .cb-hero-featured__excerpt {
    display: block;
    font-size: 13px;
  }

  .cb-hero-secondary__card {
    grid-template-columns: 112px minmax(0, 1fr);
    padding: 10px 0;
  }

  .cb-hero-secondary__title {
    font-size: 13px;
  }
}
