/* ============ ACTIVITIES (Alternating Row Layout) ============ */
.activity-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 20px;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 44px;
}

/* Alternate positioning of images and text for alternating rows */
.activity-card:nth-child(even) {
  flex-direction: row-reverse;
}

.activity-img {
  width: 100%;
  max-width: 530px;
  height: 360px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(38, 36, 31, 0.12);
  transition: all 0.4s ease;
  position: relative;
}

/* Organic fluid shapes for the alternating rows images */
.activity-card:nth-child(odd) .activity-img {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.activity-card:nth-child(even) .activity-img {
  border-radius: 40% 60% 70% 30% / 50% 60% 30% 70%;
}

.activity-card:hover .activity-img {
  transform: scale(1.025);
  box-shadow: 0 20px 48px rgba(38, 36, 31, 0.18);
  border-radius: 50%;
}

.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-text {
  flex: 1;
  text-align: left;
}

.activity-tag-bubble {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.activity-text h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--teal-deep);
  margin: 0 0 12px;
}

.activity-text p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 480px;
}

#activities {
  padding: 40px 0 45px;
}

#activities .section-head {
  margin-bottom: 24px;
  max-width: 900px;
}

/* ============ HOMEPAGE BUTTON HOVER ============ */
.activity-btn-main {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.activity-btn-main:hover {
  background: transparent !important;
  color: var(--teal) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 94, 89, 0.25);
}

/* ============ LEGACY ACTIVITIES GRID (Used on activities.html) ============ */
.activity-grid-legacy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.activity-card-legacy {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 0 22px;
  overflow: hidden;
  text-align: left;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 18px rgba(38, 36, 31, 0.05);
}

.activity-card-legacy:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 36px rgba(38, 36, 31, 0.14);
}

.activity-img-legacy {
  height: 170px;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}
.activity-img-legacy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.activity-tag-legacy {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--brass-light);
  color: var(--chalk-green-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.activity-icon-legacy {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  margin: -22px 0 14px 22px;
  box-shadow: 0 0 0 4px #ffffff;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-weight: 700;
}

.activity-card-legacy h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--teal-deep);
  margin-bottom: 8px;
  padding: 0 24px;
}
.activity-card-legacy p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  padding: 0 24px;
}

@media (max-width: 900px) {
  .activity-grid-legacy {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .activity-grid-legacy {
    grid-template-columns: 1fr;
  }
}
