.volunteer-offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.volunteer-offer-list--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.volunteer-offer-list--rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.85rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.volunteer-offer-card-wrap--rail,
.volunteer-offer-card-wrap--grid,
.volunteer-offer-card-wrap--stay {
  min-width: 0;
}

.volunteer-offer-card-wrap--rail {
  flex: 0 0 min(19rem, 82vw);
  scroll-snap-align: start;
}

.volunteer-offer-card-wrap--stay {
  height: 100%;
}

.volunteer-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 15px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.volunteer-offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgb(0 127 139 / 0.14);
}

.volunteer-offer-card--rail,
.volunteer-offer-card--grid,
.volunteer-offer-card--stay {
  min-height: 100%;
}

.volunteer-offer-card--stay {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 0.7rem;
}

.volunteer-offer-card--stay:hover {
  transform: none;
  box-shadow: none;
}

.volunteer-offer-card--stay .volunteer-offer-card__media {
  overflow: hidden;
  border-radius: 0.95rem;
  background: #eef2f0;
}

.volunteer-offer-card--stay .volunteer-offer-card__cover {
  height: auto;
  aspect-ratio: 1 / 1;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.volunteer-offer-card--stay:hover .volunteer-offer-card__cover {
  transform: scale(1.04);
}

.volunteer-offer-card--stay .volunteer-offer-card__cover--fallback,
.volunteer-offer-card--stay .volunteer-offer-card__cover--logo {
  aspect-ratio: 1 / 1;
  height: auto;
}

.volunteer-offer-card--stay .volunteer-offer-card__body {
  gap: 0.2rem;
  padding: 0.1rem 0.15rem 0;
}

.volunteer-offer-card--stay .volunteer-offer-card__title {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.volunteer-offer-card__stay-meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.3;
}

.volunteer-offer-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef6f4;
}

.volunteer-offer-card__cover {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
  object-position: center top;
  background: #fff8eb;
}

.volunteer-offer-card--communique .volunteer-offer-card__cover {
  height: auto;
  aspect-ratio: 680 / 350;
}

.volunteer-offer-card--rail .volunteer-offer-card__cover,
.volunteer-offer-card--grid .volunteer-offer-card__cover {
  height: 9rem;
}

.volunteer-offer-card--communique.volunteer-offer-card--rail .volunteer-offer-card__cover,
.volunteer-offer-card--communique.volunteer-offer-card--grid .volunteer-offer-card__cover {
  height: auto;
  aspect-ratio: 680 / 350;
}

.volunteer-offer-card__cover--fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #e8f6f4 0%, #50bac7 45%, #007f8b 100%);
  color: #fff;
  font-family: var(--ds-font-display, "Inter", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.volunteer-offer-card--communique .volunteer-offer-card__cover--fallback {
  aspect-ratio: 680 / 350;
  height: auto;
}

.volunteer-offer-card__cover--logo {
  display: block;
  padding: 0;
  background: #fff8eb;
}

.volunteer-offer-card__cover--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.volunteer-offer-card__media-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem 0.28rem;
  border-radius: 999px;
  background: rgb(16 35 26 / 0.9);
  color: #fff;
  font-family: var(--ds-font-display, "Inter", sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.volunteer-offer-card__body {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem 1.25rem;
}

.volunteer-offer-card--communique .volunteer-offer-card__body {
  gap: 0.7rem;
  padding: 0.95rem 1rem 1.05rem;
}

.volunteer-offer-card__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
}

.volunteer-offer-card__title {
  margin: 0;
  font-family: var(--ds-font-display, "Inter", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #171717;
}

.volunteer-offer-card--rail .volunteer-offer-card__title,
.volunteer-offer-card--grid .volunteer-offer-card__title {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.volunteer-offer-card--communique .volunteer-offer-card__title {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.volunteer-offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: auto;
}

.volunteer-offer-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem 0.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rm-teal-deep, #007f8b) 12%, #fff);
  color: var(--rm-teal-deep, #007f8b);
  font-family: var(--ds-font-display, "Inter", sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.volunteer-offer-card__meta time {
  font-size: 0.78rem;
  font-weight: 600;
  color: #696b7e;
  line-height: 1;
}

.volunteer-offer-card__excerpt {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
}

.volunteer-offer-card--rail .volunteer-offer-card__excerpt,
.volunteer-offer-card--grid .volunteer-offer-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.volunteer-offer-card__date {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.volunteer-offer-card__cta {
  margin-top: 0.55rem;
  font-family: var(--ds-font-button, var(--ds-font-accent, "Poppins", sans-serif));
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: var(--ds-button-line-height, 1.2);
  color: #b45309;
}

.volunteer-offer-card:hover .volunteer-offer-card__cta {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .volunteer-offer-card--stay .volunteer-offer-card__cover {
    transition: none;
  }

  .volunteer-offer-card--stay:hover .volunteer-offer-card__cover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .volunteer-offer-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .volunteer-offer-list--grid {
    grid-template-columns: 1fr;
  }
}
