/* QUADRILLE PROGRAMS PAGE */

.programs-page {
  overflow: hidden;
  background: #fff;
}

.programs-arena,
.programs-showcase {
  background-image: url("../../assets/images/quadrille/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.programs-arena {
  height: 520px;
}

.programs-intro {
  position: relative;
  z-index: 2;
  min-height: 790px;
  padding: 265px 0 180px;
  background: #fff;
  color: #111;
}

.programs-intro::before,
.programs-intro::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  width: 100%;
  height: 78px;
  background-image: var(--quadrille-torn-top);
  background-position: center bottom;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.programs-intro::before {
  top: -62px;
}

.programs-intro::after {
  bottom: -59px;
  transform: rotate(180deg);
}

.programs-ribbon-row {
  position: absolute;
  z-index: 5;
  top: -2px;
  left: 50%;
  width: 121%;
  height: 190px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
  pointer-events: none;
}

.programs-ribbon-row img {
  display: block;
  width: calc(100% + 4px);
  max-width: none;
  height: auto;
  object-fit: fill;
}

.programs-ribbon-row img:nth-child(2),
.programs-ribbon-row img:nth-child(3) {
  margin-left: -4px;
}

.programs-intro-inner {
  position: relative;
  z-index: 6;
  width: min(1760px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px minmax(640px, 820px) 350px;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.programs-round-picture {
  position: relative;
  width: 330px;
  height: 330px;
  align-self: center;
}

.programs-round-picture-left {
  justify-self: start;
}

.programs-round-picture-right {
  justify-self: end;
}

.programs-round-photo,
.programs-round-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.programs-round-photo {
  z-index: 1;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(0.88);
}

.programs-round-frame {
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.programs-copy {
  text-align: center;
  font-family: "Quicksand", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.programs-heading {
  position: relative;
  width: max-content;
  margin: 0 auto 52px;
}

.programs-heading h1 {
  margin: 0;
  color: #a7b9aa;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
}

.programs-heading span {
  position: absolute;
  top: 32px;
  left: 54%;
  color: #d2ad72;
  font-family: "Dancing Script", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.programs-copy p {
  margin: 0;
}

.programs-copy-note {
  margin-top: 22px !important;
  font-style: italic;
}

.programs-showcase {
  position: relative;
  z-index: 1;
  color: #fff;
}

.programs-international::before,
.programs-club::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 275px;
  background: linear-gradient(
    to bottom,
    rgba(214, 183, 130, 0) 0%,
    rgba(214, 183, 130, 0.12) 25%,
    rgba(214, 183, 130, 0.38) 55%,
    rgba(214, 183, 130, 0.68) 78%,
    rgba(214, 183, 130, 0.9) 100%
  );
  pointer-events: none;
}

.programs-section-heading,
.programs-grid,
.programs-club-content {
  position: relative;
  z-index: 2;
}

.programs-international {
  min-height: 2550px;
  padding: 0 0 170px;
}

.programs-section-heading {
  position: relative;
  height: 300px;
  padding-top: 180px;
  text-align: center;
}

.programs-section-heading h2 {
  position: relative;
  z-index: 5;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.programs-gold-rim {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 28px;
  width: 100%;
  height: 38px;
  background-image: url("../../assets/images/quadrille/advanced/frame-gold.png");
  background-size: auto 38px;
  background-position: center;
  background-repeat: repeat-x;
}

.programs-double-bow {
  position: absolute;
  z-index: 4;
  bottom: -38px;
  width: 215px;
  height: 190px;
  pointer-events: none;
}

.programs-double-bow-left {
  left: 14%;
  transform: translateX(-50%);
}

.programs-double-bow-right {
  right: 14%;
  transform: translateX(50%);
}

.programs-double-bow-gold,
.programs-double-bow-green {
  position: absolute;
  left: 50%;
  height: auto;
  transform: translateX(-50%);
}

.programs-double-bow-gold {
  top: 0;
  width: 210px;
}

.programs-double-bow-green {
  z-index: 2;
  top: 45px;
  width: 180px;
}

.programs-grid {
  width: min(1800px, 96vw);
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 118px 44px;
  align-items: start;
}

.program-card {
  min-width: 0;
  text-align: center;
}

.program-card-centered {
  grid-column: 1 / -1;
  width: min(878px, 48vw);
  justify-self: center;
}

.program-card-heading {
  margin-bottom: 22px;
  font-family: "Quicksand", sans-serif;
}

.program-card-heading h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1.4px;
}

.program-card-heading p {
  margin: 8px 0 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

/* VIDEO FRAME TEMPLATE - used by every program video */

.program-video-frame {
  position: relative;
  width: 100%;
  margin-left: 0;
  aspect-ratio: 16 / 9;
  overflow: visible;
}

.program-video-embed {
  position: absolute;
  z-index: 1;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border: 0;
  background: #000;
}

.program-video-frame-side {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  object-fit: fill;
}

/* TOP + BOTTOM */
.program-video-frame-top,
.program-video-frame-bottom {
  z-index: 4;
  left: 0;
  width: 100%;
  height: 36px;
}

.program-video-frame-top {
  top: 0;
}

.program-video-frame-bottom {
  bottom: 0;
  transform: rotate(180deg);
}

/* LEFT + RIGHT */
.program-video-frame-left,
.program-video-frame-right {
  z-index: 3;
  top: calc(50% - 18px);
  width: 56.25%;
  height: 36px;
  transform-origin: center;
}

.program-video-frame-left {
  left: calc(18px - 28.125%);
  transform: rotate(-90deg);
}

.program-video-frame-right {
  right: calc(18px - 28.125%);
  transform: rotate(90deg);
}

.programs-club {
  min-height: 1220px;
  padding-bottom: 170px;
}

.programs-section-heading-club {
  height: 330px;
  padding-top: 190px;
}

.programs-club-content {
  width: min(878px, 48vw);
  margin: 70px auto 0;
}

.program-card-club {
  width: 100%;
}

.program-card-heading-club {
  max-width: 760px;
  margin: 0 auto 28px;
}

.program-card-heading-club p {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.programs-club::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 86px;
  background: #392d25;
  -webkit-mask-image: var(--quadrille-torn-top);
  mask-image: var(--quadrille-torn-top);
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}