.hero {
  background-image:
    linear-gradient(90deg, rgba(13, 52, 42, 0.86), rgba(13, 52, 42, 0.22)),
    url("../images/imageSlide/jessica-palomo-l7LmUdkrANQ-unsplash.jpg");
  background-position: center 38%;
  background-size: cover;
}
.hero:before {
  background: linear-gradient(
    90deg,
    rgba(13, 52, 42, 0.08),
    rgba(13, 52, 42, 0.12)
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero h1 {
  max-width: 900px;
  text-transform: none;
}
.hero .eyebrow {
  max-width: 780px;
}
.ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker .pill {
  padding: 11px 18px;
}
.stats .stat strong {
  font-size: 1.8rem;
}
.about .mission h3 {
  color: var(--green);
}
.section.dark .section-head h2 {
  color: #fff;
}
.source-content figure img {
  width: 100%;
}

/* Homepage polish: clearer hero hierarchy, horizontal news feature, and balanced membership cards. */
.hero {
  min-height: 620px;
  height: min(710px, 72vw);
  background-position: center 36%;
}
.hero-inner {
  width: min(1180px, 86%);
  margin-left: max(7%, calc((100% - 1180px) / 2));
  padding: 64px 0 80px;
}
.hero h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.01;
  letter-spacing: -0.045em;
  max-width: 850px;
  margin: 16px 0 20px;
}
.hero p {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  max-width: 650px;
}
.hero .actions {
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero .btn {
  min-height: 52px;
  padding: 15px 22px;
  font-size: 0.95rem;
}
.hero .slide-dots {
  left: max(7%, calc((100% - 1180px) / 2));
  bottom: 34px;
}
.news-grid > .news-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 170px;
  border-radius: 14px;
  padding: 26px 30px;
}
.news-grid > .news-card > div {
  min-width: 0;
}
.news-grid > .news-card h3 {
  max-width: 520px;
}
.news-grid > .news-card > .arrow {
  white-space: nowrap;
  align-self: center;
}
.news-grid > .news-card:hover {
  border-color: #9bb3a7;
  box-shadow: 0 12px 28px rgba(18, 59, 52, 0.08);
}
.membership-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.membership-heading .section-head {
  flex: 1;
  margin-bottom: 0;
  align-items: flex-end;
}
.membership-heading > .btn {
  flex: none;
  margin-bottom: 42px;
}
.section.members .membership-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: transparent;
  border: 0;
  margin-top: 0;
}
.section.members .member-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 24px;
  background: #fff;
  border: 1px solid #e0e5df;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(18, 59, 52, 0.045);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.section.members .member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(18, 59, 52, 0.1);
}
.section.members .member-card h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}
.section.members .member-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}
.section.members .member-card > a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 18px;
}
.home-gallery {
  background: #f6f5f0;
}
.home-photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.home-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
  margin: 0;
  min-width: 0;
}
.home-photo-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.home-photo-card:hover img {
  transform: scale(1.04);
}
.home-photo-card figcaption {
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
@media (max-width: 1000px) {
  .section.members .membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-photo-card img {
    height: 240px;
  }
  .membership-heading {
    align-items: flex-start;
  }
  .membership-heading > .btn {
    margin: 0 0 0 auto;
  }
}
@media (max-width: 700px) {
  .hero {
    height: auto;
    min-height: 590px;
    background-position: 57% center;
  }
  .hero-inner {
    width: 88%;
    margin: 0 auto;
    padding: 75px 0 82px;
  }
  .hero h1 {
    font-size: clamp(40px, 9vw, 58px);
    max-width: 600px;
  }
  .hero p {
    font-size: 16px;
    max-width: 540px;
  }
  .hero .slide-dots {
    left: 6%;
    bottom: 25px;
  }
  .membership-heading {
    display: block;
  }
  .membership-heading .section-head {
    display: block;
  }
  .membership-heading > .btn {
    margin: 20px 0 26px;
  }
  .section.members .membership-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .section.members .member-card {
    min-height: 225px;
    padding: 19px 17px;
  }
  .news-grid > .news-card {
    padding: 21px;
    min-height: 0;
  }
}
@media (max-width: 520px) {
  .news-grid > .news-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .news-grid > .news-card > .arrow {
    align-self: flex-start;
  }
  .section.members .membership-grid {
    grid-template-columns: 1fr;
  }
  .section.members .member-card {
    min-height: unset;
  }
  .home-photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .home-photo-card img {
    height: 190px;
  }
  .home-photo-card figcaption {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
}

/* Keep association news features stacked vertically. */
.news-grid > .news-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.news-grid > .news-card > .arrow {
  align-self: flex-start;
}
@media (max-width: 520px) {
  .news-grid > .news-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Improve visibility of key homepage section links. */
.home-gallery .section-head > a.kicker,
#connect .section-head > a.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #b9cdbf;
  border-radius: 999px;
  background: #fff;
  color: #14583c;
  font:
    700 0.9rem/1.2 Figtree,
    Arial,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(18, 59, 52, 0.06);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.home-gallery .section-head > a.kicker:hover,
#connect .section-head > a.kicker:hover {
  background: #176b45;
  color: #fff;
  border-color: #176b45;
  transform: translateY(-2px);
}
@media (max-width: 700px) {
  .home-gallery .section-head > a.kicker,
  #connect .section-head > a.kicker {
    margin-top: 8px;
  }
}

/* Stack homepage section links directly below their heading copy. */
.home-gallery .section-head,
#connect .section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.home-gallery .section-head > a.kicker,
#connect .section-head > a.kicker {
  margin-top: 0;
}

/* EAPEAN source-site photos for the homepage hero slider. */
.hero {
  background-image:
    linear-gradient(90deg, rgba(13, 52, 42, 0.84), rgba(13, 52, 42, 0.24)),
    url("../images/library/2024/10/DSC_0049b-768x512-2.jpg");
}
.hero.slide-two {
  background-image:
    linear-gradient(90deg, rgba(13, 52, 42, 0.84), rgba(13, 52, 42, 0.24)),
    url("../images/library/2024/10/DSC_0053-768x512-1.jpg");
}
.hero.slide-three {
  background-image:
    linear-gradient(90deg, rgba(13, 52, 42, 0.84), rgba(13, 52, 42, 0.24)),
    url("../images/library/2024/10/DSC_0280-min-1-1024x683.jpg");
}
