html {
  scroll-behavior: smooth;
}

.volunteerNetwork,
.volunteerNetwork * {
  box-sizing: border-box;
}

.volunteerNetwork {
  font-family: "Montserrat", Arial, sans-serif;
  color: #111111;
}

.volunteerNetwork,
.volunteerNetwork__heroPill,
.volunteerNetwork__sectionHeading h2,
.volunteerNetwork__cardName,
.volunteerNetwork__cardRole,
.volunteerNetwork__cardMediaText {
  font-family: "Montserrat", Arial, sans-serif;
}

/* Original card styles retained from BJSVolunteerNetwork.css */
.volunteerNetwork__heroPill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 10px 24px;
  border: 2px solid #2cbfef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.volunteerNetwork__item {
  width: 300px;
  max-width: 300px;
  padding: 0;
}

.volunteerNetwork__card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 130px;
  padding: 14px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 0px 3px 0px #00000040;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.volunteerNetwork__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.volunteerNetwork__cardMedia {
  flex: 0 0 98.13px;
  width: 98.13px;
  height: 98.13px;
  border-radius: 10px;
  background: #c7eeff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.volunteerNetwork__cardImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 10px;
}

.volunteerNetwork__cardContent {
  min-width: 0;
  flex: 1 1 auto;
}

.volunteerNetwork__cardName {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.05;
  font-weight: 700;
  color: #000000;
}

.volunteerNetwork__cardRole {
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  color: #434343;
}

/* BJS Head Office Team page */
.volunteerNetwork--headOffice {
  min-height: 100vh;
  background: #ffffff;
}

.headOfficeTeam {
  min-height: 100vh;
  padding: 88px 0 118px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fcff 100%);
}

.headOfficeTeam__container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.headOfficeTeam__header {
  display: flex;
  justify-content: center;
  text-align: center;
}

.headOfficeTeam__title {
  width: 300px;
  min-width: 300px;
  min-height: 45px;
  margin: 0;
  padding: 6px 2px;
  border-radius: 10px;
}

.headOfficeTeam__leader {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.headOfficeTeam__topGrid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 14px 24px;
  margin-top: 22px;
}

.headOfficeTeam__columns {
  display: grid;
  grid-template-columns: repeat(4, 300px);
  justify-content: center;
  column-gap: 40px;
  margin-top: 22px;
}

.headOfficeTeam__column {
  position: relative;
  display: grid;
  gap: 18px;
}

.headOfficeTeam__column + .headOfficeTeam__column::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #c0c0c0;
}

.headOfficeTeam__item,
.headOfficeTeam__card {
  width: 300px;
}

.headOfficeTeam__card {
  min-height: 130px;
}

.headOfficeTeam__media--blue {
  background: #cde1ff;
}

.headOfficeTeam__media--orange {
  background: #ffe3c7;
}

.headOfficeTeam__media--sky {
  background: #c7eeff;
}

.headOfficeTeam__media--green {
  background: #c8ffdd;
}

.headOfficeTeam__media--pink {
  background: #ffd3d4;
}

.headOfficeTeam__media--yellow {
  background: #f0f6c0;
}

/* Optional crop helpers for individual photos if needed */
.headOfficeTeam__image--top25 {
  object-position: center 25%;
}

.headOfficeTeam__image--top35 {
  object-position: center 35%;
}

.headOfficeTeam__image--zoom {
  transform: scale(1.15);
  transform-origin: center top;
}


@media (max-width: 1300px) {
  .headOfficeTeam__columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .headOfficeTeam__column::before {
    display: none;
  }
}

@media (max-width: 1230px) {
  .headOfficeTeam__columns {
    grid-template-columns: repeat(3, 300px);
  }

  .headOfficeTeam__column:nth-child(4) {
    padding-top: 20px;
  } 
}

@media (max-width: 1079px) {
  .headOfficeTeam {
    padding-top: 64px;
  }

  .headOfficeTeam__topGrid,
  .headOfficeTeam__columns {
    grid-template-columns: repeat(2, 300px);
  }

  .headOfficeTeam__column:nth-child(3) {
    padding-top: 20px;
  } 

  .headOfficeTeam__column::before,
  .headOfficeTeam__column + .headOfficeTeam__column::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .headOfficeTeam {
    padding: 36px 0 54px;
  }

  .headOfficeTeam__container {
    padding: 0 14px;
  }

  .headOfficeTeam__title {
    width: 100%;
    min-width: auto;
    max-width: 360px;
    font-size: 20px;
  }

  .headOfficeTeam__topGrid,
  .headOfficeTeam__columns {
    grid-template-columns: minmax(0, 420px);
    gap: 12px;
  }

  .headOfficeTeam__column {
    gap: 12px;
  }

  .volunteerNetwork__item,
  .headOfficeTeam__item,
  .headOfficeTeam__card {
    width: 100%;
    max-width: 420px;
  }

  .volunteerNetwork__card {
    min-height: inherit;
  }

  .volunteerNetwork__cardMedia {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
  }

  .volunteerNetwork__cardRole {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .volunteerNetwork__card {
    gap: 12px;
    padding: 12px;
  }

  .volunteerNetwork__cardName {
    font-size: 14px;
  }

  .volunteerNetwork__cardRole {
    font-size: 11px;
  }
}

@media (min-width: 1300px) {
  .headOfficeTeam__container {
    max-width: 1400px;
  }

}