/*
 * Study & Internship hub (study-v2.php): the sections above the open days banner.
 * The hero and media reuse the content page styles (.content-page-wrapper).
 */

.study-hub .placeholder {
  background: #B68A6D;
}

.study-hub .content-page-wrapper .media-wrapper .media video,
.study-hub .content-page-wrapper .media-wrapper .media img {
  display: block;
  width: 100%;
  height: 100%;
}

.study-hub .content-page-wrapper .hero .text-wrapper {
  max-width: 684px;
}

/* Key facts, in the hero under the text */
.study-hub .hub-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
  margin: 30px 0 0;
}

.study-hub .hub-facts .fact {
  padding: 0 20px;
  border-left: 1px solid #D4B8A6;
}

.study-hub .hub-facts .dots {
  display: block;
  float: left;
  margin: 2px 12px 0 0;
}

.study-hub .hub-facts dt {
  font-family: "SimplerPro_Alte-SemiBold", sans-serif;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -0.01em;
}

.study-hub .hub-facts dd {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.01em;
}

/* One program, two tracks */
.study-hub .hub-tracks {
  position: relative;
  padding: 132px 0 0;
}

.study-hub .hub-tracks .intro {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}

.study-hub .hub-tracks .intro .section-title {
  max-width: 436px;
}

.study-hub .hub-tracks .intro .langs {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.study-hub .hub-tracks .intro .text-wrapper {
  max-width: 500px;
  margin: 0;
}

.study-hub .hub-tracks .intro .text-wrapper p.medium {
  font-size: 30px;
  line-height: 32px;
}

.study-hub .hub-tracks .tracks {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  margin: 54px 0 0;
}

.study-hub .hub-tracks .track {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(50% - 10px);
  border-radius: 4px;
  overflow: hidden;
  transition: border-radius 0.26s ease-out;
}

.study-hub .hub-tracks a.track:hover {
  border-radius: 30px;
}

.study-hub .hub-tracks .track .img-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.study-hub .hub-tracks .track .text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
}

.study-hub .hub-tracks .track.blue .text-wrapper {
  background: #CAD7D7;
}

.study-hub .hub-tracks .track.sand .text-wrapper {
  background: #D4B8A6;
}

.study-hub .hub-tracks .track.wine .text-wrapper {
  background: #4E1E29;
  color: #FF6C4A;
}

.study-hub .hub-tracks .track .subtitle {
  font-family: "SimplerPro_Alte-SemiBold", sans-serif;
}

.study-hub .hub-tracks .track h3 {
  margin: 16px 0 0;
  font-family: "SimplerPro_Alte-SemiBold", sans-serif;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.01em;
}

.study-hub .hub-tracks .track h3 + p {
  max-width: 560px;
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.4;
  text-wrap: pretty;
}

.study-hub .hub-tracks .track .button {
  margin: auto 0 0;
  padding: 0 32px;
}

.study-hub .hub-tracks .track .text-wrapper > :nth-last-child(2) {
  margin-bottom: 24px;
}

.study-hub .hub-tracks .track .button svg,
.study-hub .hub-more .item .link svg {
  display: inline-block;
  height: 12px;
  width: auto;
}

.study-hub .hub-tracks .track .button svg {
  margin: 0 0 0 10px;
}

.study-hub .hub-tracks a.track:hover .button.full {
  background: #FF6C4A;
  border-color: #FF6C4A;
  color: #4E1E29;
}

.study-hub .hub-tracks .track.wine .button.full {
  background: #F2EAE1;
  border-color: #F2EAE1;
  color: #4E1E29;
}

/* More about the program */
.study-hub .hub-more {
  position: relative;
  padding: 132px 0;
}

.study-hub .hub-more .items {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin: 54px 0 0;
}

.study-hub .hub-more .item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc((100% - 60px) / 4);
  flex-shrink: 0;
}

.study-hub .hub-more .item .img-wrapper {
  position: relative;
  aspect-ratio: 8 / 5;
  border-radius: 4px;
  overflow: hidden;
  transition: border-radius 0.26s ease-out;
}

.study-hub .hub-more a.item:hover .img-wrapper {
  border-radius: 30px;
}

.study-hub .hub-more .item h3 {
  margin: 20px 0 0;
  font-family: "SimplerPro_Alte-SemiBold", sans-serif;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.study-hub .hub-more .item p {
  margin: 8px 0 0;
}

.study-hub .hub-more .item .link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding: 16px 0 0;
  color: #B68A6D;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -0.01em;
  transition: color 0.26s ease-out;
}

.study-hub .hub-more a.item:hover .link {
  color: #FF6C4A;
}

/* A global community: where participants come from, by region */
.study-hub .gc-wrapper {
  padding: 132px 0;
}

.study-hub .gc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin: 0 0 48px;
}

.study-hub .gc-wrapper .section-title .langs.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.study-hub .gc-stats {
  display: flex;
  align-items: stretch;
}

.study-hub .gc-stats .stat {
  margin: 0;
}

.study-hub .gc-stats .stat + .stat {
  margin: 0 0 0 32px;
  padding: 0 0 0 32px;
  border-left: 1px solid #D4B8A6;
}

.study-hub .gc-stats .n {
  display: block;
  font-family: "SimplerPro_Rounded-Bold", sans-serif;
  font-size: 56px;
  line-height: 56px;
  letter-spacing: -0.01em;
}

.study-hub .gc-stats .l {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 18px;
}

.study-hub .gc-stats .l::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF6C4A;
}

.study-hub .gc-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin: 0 0 24px;
  border-bottom: 1px solid #D4B8A6;
}

.study-hub .gc-regions .region {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 -1px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: #4E1E29;
  font-family: "SimplerPro_Alte-Regular", sans-serif;
  font-size: 16px;
  line-height: 19px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.26s ease-out, border-color 0.26s ease-out;
}

.study-hub .gc-regions .region:hover {
  color: #FF6C4A;
}

.study-hub .gc-regions .region[aria-pressed="true"] {
  border-bottom-color: #FF6C4A;
  font-family: "SimplerPro_Alte-SemiBold", sans-serif;
}

.study-hub .gc-regions .region:focus-visible {
  outline: 2px solid #4E1E29;
  outline-offset: 2px;
}

.study-hub .gc-map {
  position: relative;
}

.study-hub .gc-map .stage {
  position: relative;
  aspect-ratio: 1000 / 383;
  overflow: hidden;
  border-radius: 4px;
}

/* Laid out at 4x and scaled down, so the land stays sharp when zoomed in */
.study-hub .gc-map .zoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  transform: scale(0.25);
  transform-origin: 0 0;
}

.study-hub .gc-map .zoom img {
  display: block;
  width: 100%;
  height: 100%;
}

.study-hub .gc-map .zoom img.copy {
  position: absolute;
  top: 0;
  left: 100%;
}

.study-hub .gc-map .dot {
  position: absolute;
  border: 1.5px solid #FF6C4A;
  border-radius: 50%;
  background: #FF6C4A;
  box-sizing: border-box;
}

.study-hub .gc-map .dot.off {
  border: 1px solid #B68A6D;
  background: #D4B8A6;
}

.study-hub .gc-map .dot.hide {
  opacity: 0;
  pointer-events: none;
}

.study-hub .gc-map .dot:hover,
.study-hub .gc-map .dot.is-open {
  z-index: 500 !important;
}

.study-hub .gc-map .tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 8px 12px;
  border-radius: 4px;
  background: #4E1E29;
  color: #F2EAE1;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.15s;
}

.study-hub .gc-map .tip b {
  display: block;
  font-family: "SimplerPro_Alte-SemiBold", sans-serif;
  font-size: 15px;
  line-height: 18px;
  font-weight: normal;
}

.study-hub .gc-map .tip .breakdown {
  display: block;
  margin: 4px 0 0;
  opacity: 0.8;
}

.study-hub .gc-map .dot:hover .tip,
.study-hub .gc-map .dot.is-open .tip {
  opacity: 1;
}

.study-hub .gc-map .dot.below .tip {
  top: calc(100% + 10px);
  bottom: auto;
}

.study-hub .gc-map .dot.tl .tip {
  left: 0;
  transform: none;
}

.study-hub .gc-map .dot.tr .tip {
  right: 0;
  left: auto;
  transform: none;
}

.study-hub .gc-map .lead {
  position: absolute;
  height: 1px;
  background: #4E1E29;
  transform-origin: 0 0;
}

.study-hub .gc-map .anchor {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #4E1E29;
}

.study-hub .gc-map.is-ready .zoom,
.study-hub .gc-map.is-ready .lead,
.study-hub .gc-map.is-ready .anchor {
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s;
}

.study-hub .gc-map.is-ready .dot {
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.4s, border-color 0.4s, opacity 0.5s;
}

.study-hub .gc-map .reset {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #4E1E29;
  border-radius: 30px;
  background: #F2EAE1;
  color: #4E1E29;
  font-family: "SimplerPro_Alte-Regular", sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.26s ease-out, border-color 0.26s ease-out;
}

.study-hub .gc-map .reset[hidden] {
  display: none;
}

.study-hub .gc-map .reset:hover {
  border-color: #FF6C4A;
  color: #FF6C4A;
}

.study-hub .gc-map .capline {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 20px;
}

.study-hub .gc-map .capline b {
  margin: 0 8px 0 0;
  font-family: "SimplerPro_Alte-SemiBold", sans-serif;
  font-weight: normal;
}

.study-hub .gc-map .key {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 15px;
}

.study-hub .gc-map .key .label {
  align-self: center;
  margin: 0 4px 0 0;
}

.study-hub .gc-map .key .sample {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.study-hub .gc-map .key .sample i {
  border: 1.5px solid #FF6C4A;
  border-radius: 50%;
  background: #FF6C4A;
  box-sizing: border-box;
}

.study-hub .gc-map .key [data-gc-sample="1"] i {
  width: 7.5px;
  height: 7.5px;
}

.study-hub .gc-map .key [data-gc-sample="100"] i {
  width: 21px;
  height: 21px;
}

.study-hub .gc-map .key [data-gc-sample="500"] i {
  width: 39.5px;
  height: 39.5px;
}

@media (prefers-reduced-motion: reduce) {
  .study-hub .gc-map.is-ready .zoom,
  .study-hub .gc-map.is-ready .lead,
  .study-hub .gc-map.is-ready .anchor,
  .study-hub .gc-map.is-ready .dot {
    transition: none;
  }
}

@media (min-width: 1025px) {
  .study-hub .hub-more.thirds .item {
    width: calc((100% - 40px) / 3);
  }
}

@media (max-width: 1024px) {
  .study-hub .hub-facts {
    gap: 24px 16px;
    margin: 32px 0 0;
  }

  .study-hub .hub-facts dd {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 20px;
  }

  .study-hub .hub-tracks {
    padding: 68px 0 0;
  }

  .study-hub .hub-tracks .intro {
    display: block;
  }

  .study-hub .hub-tracks .intro .text-wrapper {
    margin: 24px 0 0;
  }

  .study-hub .hub-tracks .intro .text-wrapper p.medium {
    font-size: 22px;
    line-height: 24px;
  }

  .study-hub .hub-tracks .tracks {
    gap: 16px;
    margin: 32px 0 0;
  }

  .study-hub .hub-tracks .track {
    width: 100%;
  }

  .study-hub .hub-tracks .track .text-wrapper {
    padding: 24px 16px;
  }

  .study-hub .hub-tracks .track h3 {
    margin: 12px 0 0;
    font-size: 22px;
    line-height: 24px;
  }

  .study-hub .hub-tracks .track h3 + p {
    margin: 12px 0 0;
    font-size: 17px;
  }

  .study-hub .hub-tracks .track .text-wrapper > :nth-last-child(2) {
    margin-bottom: 32px;
  }

  .study-hub .hub-more {
    padding: 68px 0 72px;
  }

  .study-hub .hub-more .items {
    gap: 16px;
    margin: 32px -16px 0;
    padding: 0 16px;
    overflow: auto;
    scrollbar-width: none;
  }

  .study-hub .hub-more .items::-webkit-scrollbar {
    display: none;
  }

  .study-hub .hub-more .item {
    width: 272px;
  }

  .study-hub .hub-more .item .link {
    font-size: 16px;
    line-height: 19px;
  }

  .study-hub .gc-wrapper {
    padding: 96px 0 124px;
  }

  .study-hub .gc-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin: 0 0 40px;
  }

  .study-hub .gc-stats .stat + .stat {
    margin: 0 0 0 24px;
    padding: 0 0 0 24px;
  }

  .study-hub .gc-stats .n {
    font-size: 44px;
    line-height: 44px;
  }

  .study-hub .gc-regions {
    flex-wrap: nowrap;
    margin: 0 -16px 24px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .study-hub .gc-regions::-webkit-scrollbar {
    display: none;
  }

  .study-hub .gc-map .reset {
    position: static;
    height: 36px;
    margin: 12px 0 0;
    padding: 0 12px;
    font-size: 14px;
  }

  .study-hub .gc-map .capline {
    font-size: 14px;
    line-height: 18px;
  }

  .study-hub .gc-map .key {
    gap: 16px;
  }

  .study-hub .gc-map .key [data-gc-sample="1"] i {
    width: 4.85px;
    height: 4.85px;
  }

  .study-hub .gc-map .key [data-gc-sample="100"] i {
    width: 12.5px;
    height: 12.5px;
  }

  .study-hub .gc-map .key [data-gc-sample="500"] i {
    width: 23px;
    height: 23px;
  }
}
