.opportunity-section {
  padding-top: 3.75rem;
  padding-bottom: 6.875rem;
}
@media (max-width: 61.99875rem) {
  .opportunity-section {
    padding-top: 3.75rem;
    padding-bottom: 5.625rem;
  }
}

.opportunity-filters {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 0.75rem 2.5rem;
  font-weight: 400;
  font-size: 1rem;
  text-align: center;
  border-radius: 3.125rem;
  --bs-border-width: 0.125rem;
}

.opportunity-listing {
  padding: 3.75rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 6.875rem;
  column-gap: 2.5rem;
  align-items: start;
}

.opportunity-listing > *:first-child {
  grid-column: 1 / -1;

  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 2rem;
  .opportunity-image-container {
    max-width: 41.25rem;
    width: 100%;
    flex: 0 0 auto;
    .opportunity-image {
      aspect-ratio: 660 / 386;
    }
  }
  .opportunity-title {
    font-family: Poppins;
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 2.625rem;
  }
  .opportunity-excerpt {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.875rem;
    color: var(--bs-gray-600);
    margin-top: auto;
  }
}

.opportunity-listing > *:not(:first-child) {
  .opportunity-read-more {
    display: none;
  }
}
.load-more-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 61.99875rem) {
  .opportunity-listing {
    grid-template-columns: 1fr;
    padding: 2.5rem 0;
    row-gap: 3.125rem;
  }

  .opportunity-listing > *:first-child {
    grid-column: 1;
    flex-direction: column;

    .opportunity-image-container {
      max-width: 41.25rem;
      width: 100%;
      flex: 0 0 auto;
      .opportunity-image {
        aspect-ratio: 428 / 310;
      }
    }
  }
  .load-more-section {
    .btn {
      width: 100%;
    }
  }
}

.opportunity-item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.opportunity-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}
.opportunity-category {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  text-transform: uppercase;
  color: var(--bs-gray-500);
}
.opportunity-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 2.125rem;
  color: var(--bs-gray-800);
  margin-bottom: 0;
}
.opportunity-date {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  text-transform: uppercase;
  color: var(--bs-primary-800);
}
.opportunity-image {
  width: 100%;
  height: auto;
  aspect-ratio: 428 / 310;
  border-radius: 1.25rem;
  object-fit: cover;
  object-position: center;
}
.opportunity-excerpt {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--bs-gray-600);
  margin-top: auto;
}
.opportunity-read-more {
  margin-top: 1rem;
}
.opportunity-read-more-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--bs-primary);
  span {
    text-decoration: underline;
  }
  &:hover {
    color: var(--bs-secondary);
    text-decoration: none;
  }

  .opportunity-read-more-icon {
    transform: rotate(-45deg);
  }
}
.opportunity-details-page {
  padding-top: 10rem;
}
.back-to-opportunity-btn-section {
  margin-left: -2rem;
  margin-right: -2rem;
}
.back-to-opportunity-btn {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--bs-primary);
  span {
    text-decoration: underline;
  }
  &:hover {
    color: var(--bs-secondary);
    text-decoration: none;
  }

  .back-to-opportunity-btn-icon {
    transform: rotate(45deg);
  }
}

.opportunity-details-container {
  max-width: 70rem;
  margin: 0 auto;
}
.opportunity-details-header {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  padding: 3.125rem 0;
  .opportunity-category {
    color: var(--bs-primary);
    margin-bottom: 0.875rem;
  }
  .opportunity-title {
    font-size: 2.25rem;
    line-height: 2.625rem;
  }
  .opportunity-excerpt {
    margin-top: 1rem;
  }
}
.opportunity-details-image-container {
  .opportunity-details-image {
    width: 100%;
    height: auto;
    max-height: 33.5rem;
    aspect-ratio: 1120 / 536;
    border-radius: 1.25rem;
    object-fit: cover;
    object-position: center;
  }
}
.opportunity-details-content {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--bs-gray-600);
  p {
    margin-bottom: 1rem;
    &:last-child {
      margin-bottom: 0;
    }
  }
  strong {
    margin-bottom: 0rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2.125rem;
    color: var(--bs-gray-800);
  }
}

.related-opportunity {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 3.75rem 0;
  align-items: center;
  @media (max-width: 61.99875rem) {
    margin: 3.125rem 0;
  }
}
.related-opportunity-title {
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 3.438rem;
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 400;
    font-size: 2.5rem;
    line-height: 3.438rem;
  }
  span {
    color: var(--bs-primary);
  }
  .font-serif {
    font-size: 3.438rem;
    line-height: 3.438rem;
    font-weight: 400;
  }
}
.related-opportunity-listing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  .opportunity-read-more {
    display: none;
  }
}

@media (max-width: 61.99875rem) {
  .related-opportunity-listing {
    grid-template-columns: 1fr;
  }
  .related-opportunity-title {
    font-size: 2.5rem;
    line-height: 3.438rem;
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-size: 2.5rem;
      line-height: 3.438rem;
    }
    .font-serif {
      font-size: 3.438rem;
      line-height: 3.438rem;
    }
  }
}

.opportunities-card {
  padding: 1.5rem 1.875rem;
  border-radius: 1.25rem;
  background: #f7f7ef;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.opportunities-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.opportunities-card-category {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  color: var(--bs-primary);
}
.opportunities-card-title {
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.875rem;
  color: var(--bs-gray-800);
  h5 {
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin-bottom: 0;
  }
  &:hover {
    color: var(--bs-primary);
    text-decoration: none;
  }
}
.opportunities-card-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  li {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    gap: 0.25rem;
    line-height: 1.875rem;
    color: var(--bs-gray-800);
    img {
      width: 1.25rem;
      height: 1.25rem;
      flex: 1 1 auto;
    }
  }
}

.collapse-content {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 1rem;
  border-top: 0.063rem solid var(--bs-gray-500);
  padding-top: 1rem;
}

.collapse-btn {
  border: 0.063rem solid var(--bs-primary);
  background-color: var(--bs-white);
  border-radius: 0.5rem;
  padding: 0.375rem;
  color: var(--bs-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  outline: none;
  transition: var(--bs-transition-slow);
  &:hover {
    background-color: var(--bs-primary);
    color: var(--bs-white);
  }
  i {
    transition: var(--bs-transition-slow);
  }
  &:not(.collapsed) {
    i {
      transform: rotate(180deg);
    }
  }
}

.opportunities-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin-top: 0.875rem;
  li {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.875rem;
    color: var(--bs-gray-800);
    gap: 0.25rem;
    img {
      width: 1.25rem;
      height: 1.25rem;
      flex: 1 1 auto;
    }
  }
}
