/**
 * Homepage: distinctive cards for News & Events and Learning Resource sections.
 */

/* —— News & Events: briefing / field-update list —— */
.vc-home-section-news {
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.vc-home-news-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.vc-home-news-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 4px solid #f59e0b;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vc-home-news-card a:hover {
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.vc-home-news-card__media {
  position: relative;
  flex-shrink: 0;
}

.vc-home-news-card__media img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  display: block;
}

.vc-home-news-card__date {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.vc-home-news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.125rem 1.125rem;
}

.vc-home-news-card__kicker {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d97706;
  margin-bottom: 0.375rem;
}

.vc-home-news-card__body h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-home-news-card__body p {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-home-news-card__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0369a1;
}

.vc-home-news-card a:hover .vc-home-news-card__cta {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .vc-home-news-card a {
    flex-direction: row;
  }

  .vc-home-news-card__media {
    width: 38%;
    max-width: 14rem;
  }

  .vc-home-news-card__media img {
    height: 100%;
    min-height: 9.5rem;
  }
}

@media (max-width: 767px) {
  .vc-home-news-card__body p {
    display: none;
  }

  .vc-home-news-card__body {
    padding: 0.625rem 0.75rem 0.75rem;
  }

  .vc-home-news-card__body h3 {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }

  .vc-home-news-card__media img {
    height: 7.5rem;
    aspect-ratio: 16 / 10;
  }
}

/* —— Learning Resource: module / workshop cards —— */
.vc-home-section-learning {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.04) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(3, 105, 161, 0.03) 100%);
}

.vc-home-learning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .vc-home-learning-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .vc-home-learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

.vc-home-learning-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px dashed rgba(6, 182, 212, 0.35);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.vc-home-learning-card a:hover {
  border-color: rgba(6, 182, 212, 0.65);
  border-style: solid;
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.15);
  transform: translateY(-3px);
}

.vc-home-learning-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.12) 0%, rgba(3, 105, 161, 0.06) 100%);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.vc-home-learning-card__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0891b2;
}

.vc-home-learning-card__date {
  font-size: 0.625rem;
  color: #64748b;
  white-space: nowrap;
}

.vc-home-learning-card__img-wrap {
  padding: 0.5rem 0.5rem 0;
}

.vc-home-learning-card__img-wrap img {
  width: 100%;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.vc-home-learning-card__body {
  padding: 0.75rem 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vc-home-learning-card__body h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-home-learning-card__body p {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #64748b;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-home-learning-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369a1;
  background: rgba(3, 105, 161, 0.08);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.vc-home-learning-card a:hover .vc-home-learning-card__cta {
  background: rgba(3, 105, 161, 0.14);
}

@media (max-width: 767px) {
  .vc-home-learning-card__body p {
    display: none;
  }

  .vc-home-learning-card__img-wrap {
    padding: 0.375rem 0.375rem 0;
  }

  .vc-home-learning-card__img-wrap img {
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 0.375rem;
  }

  .vc-home-learning-card__body {
    padding: 0.5rem 0.5rem 0.625rem;
  }

  .vc-home-learning-card__body h3 {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }

  .vc-home-learning-card__header {
    padding: 0.375rem 0.5rem;
  }

  .vc-home-learning-card__cta {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
}
