main {
  display: block;
  background: #ffffff;
  color: #333333;
  font-family: "Barlow", sans-serif;
}

/* ---------- Shared Buttons + Links ---------- */
.btnRow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Barlow-B", sans-serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background .2s, color .2s, transform .2s;
}

a.btn:hover {
  transform: translateY(-2px);
}

a.btnGreen { background: #00703a; border-color: #00703a; color: #ffffff; }
.btnGreen:hover { background: #004329; border-color: #004329; color: #ffffff; }

a.btnOutline { background: #ffffff; border-color: #222e75; color: #222e75; }
.btnOutline:hover { background: #222e75; color: #ffffff; }

a.btnRed { background: #c1272d; border-color: #c1272d; color: #ffffff; font-size: 17px; padding: 12px 22px; }
.btnRed:hover { background: #9c1c22; border-color: #9c1c22; color: #ffffff; }

a.btnNavy { background: #222e75; border-color: #222e75; color: #ffffff; font-size: 17px; padding: 12px 22px; }
.btnNavy:hover { background: #161f55; border-color: #161f55; color: #ffffff; }

a.btnWhite { background: #ffffff; border-color: #ffffff; color: #004329; }
.btnWhite:hover { background: #eefaf4; color: #004329; }

a.btnWhiteOutline { background: transparent; border-color: #ffffff; color: #ffffff; }
.btnWhiteOutline:hover { background: #ffffff; color: #004329; }

a.textLink {
  font-family: "Barlow-B", sans-serif;
  font-size: 17px;
  font-weight: normal;
  text-decoration: none;
  padding: 12px 6px;
}

a.linkRed { color: #c1272d; }
a.linkRed:hover { color: #9c1c22; text-decoration: underline; }

.eyebrow {
  font-family: "Sniglet", sans-serif;
  color: #00703a;
  font-size: 22px;
  margin: 0;
}

.cardMore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Barlow-B", sans-serif;
  font-size: 16px;
  margin-top: 12px;
  color: #00703a;
}

/* ---------- Slideshow ---------- */
.homeSlider {
  position: relative;
  z-index: 1;
}

/* Lift the slideshow dots and caption above the service cards */
.homeSlider #wowslider-container1 .ws_bullets {
  bottom: 60px;
}

.homeSlider #wowslider-container1 .ws-title {
  bottom: 70px;
}

/* ---------- Service Cards ---------- */
/* margin-top overlaps the slideshow. */
.serviceCards {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: -40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

a.serviceCard {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 10px;
  border-top: 6px solid #009245;
  box-shadow: 0 10px 30px rgba(20, 30, 70, .15);
  padding: 26px 24px;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: normal;
  text-decoration: none;
  color: #333333;
  transition: transform .2s, box-shadow .2s;
}

.serviceCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 30, 70, .2);
}

.cardIcon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.cardBody {
  display: flex;
  flex-direction: column;
}

.cardTitle {
  font-family: "Barlow-B", sans-serif;
  font-size: 21px;
  line-height: 1.2;
}

.cardText {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 6px;
}

.cardGreen { border-top-color: #009245; }
.cardGreen .cardIcon { background: #e6f6ee; color: #00703a; }
.cardGreen .cardTitle,
.cardGreen .cardMore { color: #004329; }

.cardRed { border-top-color: #c1272d; }
.cardRed .cardIcon { background: #fcecec; color: #c1272d; }
.cardRed .cardTitle,
.cardRed .cardMore { color: #c1272d; }

.cardNavy { border-top-color: #222e75; }
.cardNavy .cardIcon { background: #eceefa; color: #222e75; }
.cardNavy .cardTitle,
.cardNavy .cardMore { color: #222e75; }

/* ---------- Welcome / Why Join ---------- */
.welcome {
  max-width: 1600px;
  margin: 0 auto;
  padding: 88px 24px 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.welcomeText {
  flex: 1 1 520px;
  min-width: 0;
}

.welcome h1 {
  font-family: "Gelasio", serif;
  font-weight: normal;
  color: #222e75;
  font-size: 42px;
  line-height: 1.2;
  margin: 10px 0 18px;
}

.welcomeText p {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 16px;
}

.welcomeText p.eyebrow {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
}

.welcomeText .btnRow {
  margin-top: 28px;
}

.benefitGrid {
  flex: 1 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.benefit {
  background: #eefaf4;
  border-radius: 10px;
  padding: 26px 22px;
}

.benefit i {
  font-size: 30px;
  color: #00703a;
}

.benefit h3 {
  font-family: "Barlow-B", sans-serif;
  font-weight: normal;
  color: #004329;
  font-size: 21px;
  margin: 10px 0 4px;
}

.benefit p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Featured Member + News and Events ---------- */
.dbBand {
  background: #f4f6fb;
  border-top: 1px solid #e1e4f0;
  border-bottom: 1px solid #e1e4f0;
}

.dbInner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.dbCard {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 30, 70, .08);
  display: flex;
  flex-direction: column;
}

.dbHead {
  margin: 0;
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow-B", sans-serif;
  font-weight: normal;
  font-size: 20px;
}

.headRed { background: #c1272d; }
.headNavy { background: #222e75; }

.dbBody {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dbButtons {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Featured Member */
.featuredTop {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.featuredLogo {
  flex: none;
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e1e4f0;
  background: #ffffff;
}

/* Stand-in emblem when a member has no logo */
.featuredLogoIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fcecec;
  border-color: #f3c9cb;
  color: #c1272d;
  font-size: 36px;
}

.featuredName {
  font-family: "Gelasio", serif;
  font-weight: normal;
  color: #222e75;
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
}

.featuredText {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

/* News and Events */
.eventList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eventList li {
  margin: 0;
  border-bottom: 1px solid #e5e7f0;
}

.eventList li:last-child {
  border-bottom: none;
}

.eventList a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: normal;
  text-decoration: none;
  color: #333333;
}

.eventIcon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #e6f6ee;
  color: #00703a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.eventList a:hover .eventTitle {
  color: #00703a;
}

.eventInfo {
  display: flex;
  flex-direction: column;
}

.eventTitle {
  font-family: "Barlow-B", sans-serif;
  font-size: 20px;
  color: #222e75;
}

.eventDetails {
  font-size: 16px;
  margin-top: 2px;
}

.noEvents {
  font-size: 18px;
  margin: 10px 0;
}

/* ---------- Explore the Region ---------- */
.explore {
  max-width: 1600px;
  margin: 0 auto;
  padding: 80px 24px;
}

.exploreIntro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.exploreIntro h2 {
  font-family: "Gelasio", serif;
  font-weight: normal;
  color: #222e75;
  font-size: 38px;
  margin: 8px 0 12px;
}

.exploreIntro p {
  font-size: 19px;
  line-height: 1.6;
  margin: 0;
}

.exploreIntro p.eyebrow {
  font-size: 22px;
}

.exploreGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

a.exploreCard {
  display: block;
  border: 1px solid #dfe3ee;
  border-radius: 12px;
  padding: 28px 24px;
  font-family: "Barlow", sans-serif;
  font-size: 16px;
  font-weight: normal;
  text-decoration: none;
  color: #333333;
  background: #ffffff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.exploreCard:hover {
  border-color: #009245;
  box-shadow: 0 10px 24px rgba(20, 30, 70, .1);
  transform: translateY(-3px);
}

.exploreCard i {
  font-size: 32px;
  color: #222e75;
}

.exploreCard h3 {
  font-family: "Barlow-B", sans-serif;
  font-weight: normal;
  font-size: 22px;
  color: #222e75;
  margin: 12px 0 6px;
}

.exploreCard p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.exploreCard .cardMore i {
  font-size: 14px;
  color: #00703a;
}

.countyLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.countyLinks a {
  font-weight: normal;
  text-decoration: none;
  color: #004329;
  background: #e6f6ee;
  font-family: "Barlow-B", sans-serif;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 22px;
  transition: background .2s, color .2s;
}

.countyLinks a:hover {
  background: #00703a;
  color: #ffffff;
}

/* ---------- Call to Action Band ---------- */
.ctaBand {
  background: #004329;
}

.ctaInner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.ctaText {
  flex: 1 1 520px;
  min-width: 0;
}

.ctaText h2 {
  font-family: "Gelasio", serif;
  font-weight: normal;
  color: #ffffff;
  font-size: 34px;
  margin: 0 0 10px;
}

.ctaText p {
  color: #d6efe2;
  font-size: 19px;
  line-height: 1.6;
  margin: 0;
}

.ctaText a {
  color: #ffffff;
  font-family: "Barlow-B", sans-serif;
  font-size: 1em;
  font-weight: normal;
  text-decoration: none;
}

.ctaText a:hover {
  text-decoration: underline;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  /* Call to Action: stack and center once the buttons drop below the text */
  .ctaInner {
    flex-direction: column;
    text-align: center;
  }

  .ctaText {
    flex: none;
    width: 100%;
  }

  .ctaInner .btnRow {
    justify-content: center;
  }

  .serviceCards {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
  }

  .exploreGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dbInner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .welcome {
    padding: 56px 16px;
  }

  .welcome h1 {
    font-size: 32px;
  }

  .benefitGrid,
  .exploreGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dbInner,
  .explore {
    padding: 56px 16px;
  }

  .dbBody {
    padding: 20px;
  }

  .featuredName {
    font-size: 22px;
  }

  .exploreIntro h2,
  .ctaText h2 {
    font-size: 28px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Entrance Animations ---------- */
.homeHide {
  opacity: 0;
}

.homeHide.visible {
  opacity: 1;
}

.serviceCard:nth-child(2),
.benefit:nth-child(2),
.exploreCard:nth-child(2),
.countyLinks a:nth-child(2) {
  animation-delay: .15s;
}

.serviceCard:nth-child(3),
.benefit:nth-child(3),
.exploreCard:nth-child(3),
.countyLinks a:nth-child(3) {
  animation-delay: .3s;
}

.benefit:nth-child(4),
.exploreCard:nth-child(4),
.countyLinks a:nth-child(4) {
  animation-delay: .45s;
}

.eventsCard,
.ctaInner .btnRow {
  animation-delay: .15s;
}

/* Visitors who turn off motion in their device settings
   see everything right away, with no animation. */
@media (prefers-reduced-motion: reduce) {
  .homeHide {
    opacity: 1;
  }

  .homeHide.animated {
    animation: none;
  }
}
