.programs-v2 {
  width: 100%;
  padding: 112px 40px;
  display: flex;
  justify-content: center;
  border-top: 1px solid #ded7d1;
  border-bottom: 1px solid #ded7d1;
  background-color: #f2f2f2;
  color: #171717;
}

.programs-v2-inner {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
}

.programs-v2-top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 56px;
}

.programs-v2-head {
  width: 58%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.programs-v2-head .section-title {
  max-width: 650px;
}

.programs-v2-media {
  width: 42%;
  min-width: 360px;
  min-height: 330px;
  overflow: hidden;
  background-color: #171717;
}

.programs-v2-media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
}

.programs-v2-body {
  width: 100%;
  min-width: 0;
  margin-top: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.programs-v2-level {
  width: 100%;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #ffffff;
}

.programs-v2-level-head {
  width: 100%;
  min-width: 0;
  padding: 38px 32px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid #ded7d1;
  text-align: center;
}

.programs-v2-level-head span {
  display: block;
  color: #a50f0f;
  font-family: "PT Serif", Georgia, serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 72px;
}

.programs-v2-level-head h3 {
  margin-top: 6px;
  color: #171717;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.programs-v2-level-head p {
  max-width: 260px;
  color: #6f6f6f;
  font-size: 18px;
  line-height: 24px;
}

.programs-v2-list {
  width: 100%;
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.programs-v2-group {
  width: 100%;
  min-width: 0;
}

.programs-v2-group-head {
  margin: 6px 0 22px;
  padding: 18px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 2px solid #a50f0f;
  border-bottom: 1px solid #d8d0c9;
  background: #f7f3ef;
}

.programs-v2-group-head h4 {
  margin: 0;
  color: #171717;
  font-size: 18px;
  font-weight: 600;
  line-height: 23px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.programs-v2-group-head span {
  max-width: 100%;
  flex: 0 1 auto;
  padding: 0;
  color: #171717;
  background-color: transparent;
  border-left: 0;
  font-family: "PT Serif", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 31px;
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.programs-v2-group--alternate .programs-v2-group-head span {
  background-color: transparent;
}

.programs-v2-group--alternate .programs-v2-group-head {
  border-top-color: #171717;
}

.programs-v2-group-list {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.program-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #ded7d1;
  background-color: #ffffff;
  color: #6f6f6f;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.program-card:hover,
.program-card:focus-within {
  border-color: #a50f0f;
  box-shadow: 0 18px 34px rgba(23, 23, 23, 0.08);
  transform: translateY(-3px);
}

.program-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center;
  background-color: #171717;
}

.program-card__content {
  width: 100%;
  min-width: 0;
  min-height: 224px;
  padding: 18px 18px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.program-card h4 {
  max-width: 100%;
  margin: 0;
  color: #171717;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}

.program-card__accent {
  max-width: 100%;
  margin: 7px 0 0;
  color: #565656;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  overflow-wrap: break-word;
}

.program-card small {
  display: block;
  margin-top: 8px;
  color: #a50f0f;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.program-card a,
.program-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid #a50f0f;
  background-color: #a50f0f;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 1.1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.program-card a:hover,
.program-card a:focus-visible,
.program-card button:hover,
.program-card button:focus-visible {
  border-color: #171717;
  background-color: #171717;
}

.program-card a:focus-visible,
.program-card button:focus-visible {
  outline: 2px solid #e4a428;
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .programs-v2 {
    padding: 96px 32px;
  }

  .programs-v2-top,
  .programs-v2-body {
    flex-direction: column;
    gap: 42px;
  }

  .programs-v2-head,
  .programs-v2-media,
  .programs-v2-level-head {
    width: 100%;
    min-width: 0;
  }

  .programs-v2-level-head p {
    max-width: 620px;
  }

  .programs-v2-group-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .programs-v2 {
    max-width: 100vw;
    padding: 64px 16px;
    display: block;
    overflow-x: clip;
  }

  .programs-v2 .reveal {
    opacity: 1;
    transform: none;
  }

  .programs-v2-inner,
  .programs-v2-top,
  .programs-v2-body,
  .programs-v2-level,
  .programs-v2-list,
  .programs-v2-group,
  .programs-v2-group-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .programs-v2-top {
    display: block;
  }

  .programs-v2-head .section-title {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .programs-v2-media {
    width: 100%;
    min-height: 0;
    margin-top: 24px;
  }

  .programs-v2-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .programs-v2-body {
    margin-top: 32px;
    display: block;
  }

  .programs-v2-level {
    background: transparent;
    padding: 0;
  }

  .programs-v2-level-head {
    padding: 22px 18px;
    background: #ffffff;
    border: 1px solid #ded7d1;
  }

  .programs-v2-list {
    padding: 22px 0 0;
    gap: 38px;
  }

  .programs-v2-group {
    padding-top: 4px;
  }

  .programs-v2-group + .programs-v2-group {
    padding-top: 18px;
    border-top: 1px solid #d8d0c9;
  }

  .programs-v2-group-head {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 0 18px;
    padding: 17px 16px 15px;
    border-top: 4px solid #a50f0f;
    border-bottom: 1px solid #cfc5bd;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #eadfda;
  }

  .programs-v2-group--alternate .programs-v2-group-head {
    border-top-color: #171717;
  }

  .programs-v2-group-head span {
    width: 100%;
    padding: 0;
    text-align: left;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0;
  }

  .program-card__content {
    min-height: 0;
    padding: 14px;
  }

  .programs-v2-group-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .program-card {
    display: flex;
    flex-direction: column;
    border-color: #d5ccc4;
  }

  .program-card img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .program-card h4 {
    font-size: 17px;
    line-height: 21px;
  }

  .program-card__accent {
    font-size: 14px;
    line-height: 18px;
  }

  .program-card small {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.5px;
  }

  .program-card a,
  .program-card button {
    min-height: 40px;
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 12px;
    letter-spacing: 0.4px;
  }
}
@media (max-width: 520px) {
  .programs-v2 {
    padding: 58px 14px;
  }

  .programs-v2-body {
    margin-top: 28px;
  }

  .programs-v2-media {
    min-height: 0;
  }

  .programs-v2-media img {
    height: auto;
  }

  .programs-v2-level-head {
    padding: 20px 16px;
  }

  .programs-v2-list {
    padding-top: 20px;
  }

  .programs-v2-group + .programs-v2-group {
    padding-top: 16px;
  }

  .programs-v2-group-list {
    gap: 16px;
  }

  .program-card__content {
    padding: 16px 14px;
  }

  .program-card h4 {
    font-size: 17px;
    line-height: 21px;
  }

  .program-card a,
  .program-card button {
    min-height: 44px;
    font-size: 13px;
    letter-spacing: 0.4px;
  }

  .programs-v2-level-head span {
    font-size: 52px;
    line-height: 56px;
  }

  .programs-v2-level-head h3 {
    font-size: 20px;
    line-height: 26px;
  }

  .programs-v2-group-head {
    padding: 16px 14px 14px;
  }

  .programs-v2-group-head span {
    font-size: 22px;
    line-height: 26px;
  }
}

@media (max-width: 360px) {
  .program-card {
    display: flex;
  }

  .program-card img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}
