/*
 * Original Design Specifications
 * Target: > 1800px
 * Test Resolution: 1920 x 1080
 */
:root {
  /* Cluster Overview Section */
  --cluster-overview-header-max-width: 130rem;
  --cluster-overview-gap: 9rem;
  --cluster-overview-padding-x: var(
    --layout-padding-offset-align-large-content-container
  );
  --cluster-overview-header-margin-y: 0;
  --cluster-overview-padding-y: var(--layout-gap-basis);

  /* Learn More Section */
  --learn-more-header-margin-y: 0;
  --learn-more-card-list-margin-top: 8rem;
  --learn-more-card-list-margin-bottom: 20rem;
  --learn-more-button-list-margin-y: 0;
  --learn-more-participating-universities-margin-bottom: 6rem;
  --learn-more-participating-universities-margin-offset-x: 0;
  --learn-more-news-card-display: block;
  --learn-more-card-list-card-height: auto;

  /* Call to Action and Footer Navigation Section */
  --footer-padding-top: 14rem;
  --footer-padding-bottom: 6rem;
  --footer-call-to-action-flex-direction: row;
  --footer-call-to-action-gap: 0;
  --footer-call-to-action-padding-bottom: var(--layout-gap-basis);
  --footer-header-font-size: 14rem;
  --footer-header-max-width: 60rem;
  --footer-header-font-weight: 800;
  --footer-header-line-height: 1.1;
  --footer-button-list-width: 50rem;
  --footer-contact-and-navigation-padding-y: 6rem;
  --footer-contact-and-navigation-flex-direction: row;
  --footer-contact-flex-basis: var(--footer-contact-width);
  --footer-contact-and-navigation-gap: var(--layout-gap-basis);
  --footer-contact-width: 46rem;
  --footer-list-item-margin-bottom: 1rem;
  --footer-address-margin-top: 2.4rem;
  --footer-credits-privacy-gap: 8rem;
  --footer-nav-flex-direction: row;
  --footer-nav-gap: var(--layout-gap-basis);
  --footer-nav-column-width: 26rem;
  --footer-copyright-credits-privacy-flex-direction: row;
  --footer-credits-privacy-flex-direction: row;
  --footer-copyright-credits-privacy-align-items: center;
  --footer-copyright-credits-privacy-container-align-items: center;
  --footer-copyright-credits-privacy-container-width: auto;
  --footer-credits-privacy-align-items: center;
  --footer-copyright-credits-text-max-width: none;
  --footer-green-hosting-badge-margin-top: 0;
  --footer-green-hosting-badge-width: 26.5rem;
  --footer-green-hosting-badge-height: 8rem;
  --footer-green-hosting-badge-border-radius: 1.6rem;
  --footer-green-hosting-badge-padding: 2rem;
  --footer-green-hosting-badge-gap: 1.5rem;
  --footer-green-hosting-badge-image-width: 5.5rem;
  --footer-green-hosting-badge-image-height: 7rem;
  --footer-green-hosting-badge-text-font-size: 1.4rem;
}

/*
 * 2XL Media Query (1536px)
 * Target: 1799px > 1536px
 * Test Resolution: 1536 x 864
 */
@media screen and (max-width: 1799px) {
  :root {
    /* Cluster Overview Section */
    --cluster-overview-header-max-width: 90rem;
    --cluster-overview-gap: 7rem;

    /* Learn More Section */
    --learn-more-card-list-margin-top: 5rem;
    --learn-more-card-list-margin-bottom: 12rem;
    --learn-more-participating-universities-margin-bottom: 4rem;
    --learn-more-card-list-margin-bottom: 8rem;

    /* Call to Action and Footer Navigation Section */
    --footer-padding-top: 10rem;
    --footer-header-font-size: 10rem;
    --footer-header-max-width: 40rem;
    --footer-button-list-width: 40rem;
    --footer-green-hosting-badge-width: 26rem;
  }
}

/*
 * XL Media Query (1280px)
 * Target: 1535px > 1280px
 * Test Resolution: 1280 x 720
 */
@media screen and (max-width: 1535px) {
  :root {
    /* Cluster Overview Section */
    --cluster-overview-header-max-width: 70rem;
    --cluster-overview-gap: 4.5rem;

    /* Learn More Section */
    --learn-more-card-list-margin-top: 3rem;
    --learn-more-card-list-margin-bottom: 6rem;

    /* Call to Action and Footer Navigation Section */
    --footer-padding-top: calc(6rem - var(--layout-lightbox-margin));
    --footer-header-font-size: 8rem;
    --footer-button-list-width: 35rem;
    --footer-list-item-margin-bottom: 1rem;
    --footer-green-hosting-badge-text-font-size: 1.1rem;
    --footer-padding-bottom: 4rem;
  }
}

/*
 * M Media Query (768px)
 * Target: 1023px > 768px
 * Test Resolution: 768 x 1024
 */
@media screen and (max-width: 1023px) {
  :root {
    /* Cluster Overview Section */
    --cluster-overview-header-margin-y: 1rem;

    /* Learn More Section */
    --learn-more-card-list-margin-top: 4.5rem;
    --learn-more-card-list-margin-bottom: 5rem;
    --learn-more-participating-universities-margin-bottom: 3rem;
    --learn-more-news-card-display: none;

    /* Call to Action and Footer Navigation Section */
    --footer-padding-top: calc(6rem - var(--layout-lightbox-margin));
    --footer-header-font-size: 7rem;
    --footer-credits-privacy-gap: 3.5rem;
    --footer-green-hosting-badge-padding: 0.8rem;
    --footer-green-hosting-badge-gap: 0.5rem;
    --footer-green-hosting-badge-width: 20rem;
    --footer-green-hosting-badge-height: 6rem;
  }
}

/*
 * S Media Query (640px)
 * Target: < 767px
 * Test Resolution: 390 x 844
 */
@media screen and (max-width: 767px) {
  :root {
    /* Cluster Overview Section */
    --cluster-overview-gap: 3rem;
    --cluster-overview-padding-x: var(--layout-gap-basis);

    /* Learn More Section */
    --learn-more-header-margin-y: 2rem;
    --learn-more-card-list-card-height: var(--card-height);
    --learn-more-card-list-margin-top: 3rem;
    --learn-more-card-list-margin-bottom: 3rem;
    --learn-more-button-list-margin-y: 0.5rem;
    --learn-more-participating-universities-margin-offset-x: -20rem;
    --learn-more-news-card-display: block;

    /* Call to Action and Footer Navigation Section */
    --footer-call-to-action-flex-direction: column;
    --footer-padding-bottom: 2.5rem;
    --footer-header-font-size: 4.8rem;
    --footer-header-max-width: 50%;
    --footer-call-to-action-gap: 2.5rem;
    --footer-call-to-action-padding-bottom: 3.5rem;
    --footer-contact-and-navigation-padding-y: 3rem;
    --footer-contact-and-navigation-flex-direction: column;
    --footer-contact-flex-basis: auto;
    --footer-contact-and-navigation-gap: 4rem;
    --footer-nav-flex-direction: column;
    --footer-nav-column-width: 100%;
    --footer-green-hosting-badge-width: 100%;
    --footer-nav-gap: 4rem;
    --footer-copyright-credits-privacy-flex-direction: column;
    --footer-credits-privacy-flex-direction: column;
    --footer-copyright-credits-privacy-align-items: flex-start;
    --footer-copyright-credits-privacy-container-align-items: flex-start;
    --footer-credits-privacy-align-items: flex-end;
    --footer-copyright-credits-privacy-container-width: 100%;
    --footer-copyright-credits-text-max-width: 13rem;
    --footer-credits-privacy-gap: 0rem;
    --footer-green-hosting-badge-margin-top: 2rem;
    --footer-green-hosting-badge-padding: 1rem;
    --footer-green-hosting-badge-gap: 1rem;
  }
}

.cluster-overview {
  padding: var(--cluster-overview-padding-y) var(--cluster-overview-padding-x);
}

.cluster-overview-header {
  color: var(--theme-color-white);
  max-width: var(--cluster-overview-header-max-width);
  margin: var(--cluster-overview-header-margin-y) auto;
}

.cluster-overview-header + .cluster-card-list {
  margin-top: var(--cluster-overview-gap);
}

.learn-more-light-box {
  margin-top: var(--layout-gap-basis);
  overflow-x: hidden;
}

.learn-more-header {
  margin-top: var(--learn-more-header-margin-y);
  margin-bottom: var(--learn-more-header-margin-y);
  color: var(--theme-color-primary);
}

.learn-more-card-list {
  margin-top: var(--learn-more-card-list-margin-top);
  margin-bottom: var(--learn-more-card-list-margin-bottom);
}

.learn-more-card-list .card {
  height: var(--learn-more-card-list-card-height);
}

.learn-more-card-list .learn-more-news-card {
  display: var(--learn-more-news-card-display);
}

.learn-more-button-list {
  margin: var(--learn-more-button-list-margin-y) 0;
}

.learn-more-participating-universities {
  color: var(--theme-color-primary);
  text-align: center;
  margin-bottom: var(--learn-more-participating-universities-margin-bottom);
  margin-left: var(--learn-more-participating-universities-margin-offset-x);
  margin-right: var(--learn-more-participating-universities-margin-offset-x);
}

.footer-container {
  padding-top: calc(var(--footer-padding-top) - var(--layout-lightbox-margin));
  padding-left: var(--layout-padding-offset-align-large-content-container);
  padding-right: var(--layout-padding-offset-align-large-content-container);
  padding-bottom: var(--footer-padding-bottom);
  max-width: calc(
    var(--layout-content-container-max-width) +
      (var(--layout-padding-offset-align-large-content-container) * 2)
  );
}

.footer-call-to-action {
  display: flex;
  flex-direction: var(--footer-call-to-action-flex-direction);
  gap: var(--footer-call-to-action-gap);
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--footer-call-to-action-padding-bottom);
}

.footer-header {
  font-family: var(--typography-header-font-family);
  font-size: var(--footer-header-font-size);
  font-weight: var(--footer-header-font-weight);
  max-width: var(--footer-header-max-width);
  line-height: var(--footer-header-line-height);
  color: var(--theme-color-accent);
}

.footer-button-list {
  width: var(--footer-button-list-width);
}

.footer-contact-and-navigation {
  padding-top: var(--footer-contact-and-navigation-padding-y);
  padding-bottom: var(--footer-contact-and-navigation-padding-y);
  border-top: 1px solid var(--theme-color-orange);
  display: flex;
  flex-direction: var(--footer-contact-and-navigation-flex-direction);
  justify-content: space-between;
  gap: var(--footer-contact-and-navigation-gap);
}

.footer-contact {
  flex-basis: var(--footer-contact-flex-basis);
}

.footer-text-header,
.footer-text-emphasis {
  color: var(--theme-color-white);
}

.footer-text-header,
.footer-nav-item {
  margin-bottom: var(--footer-list-item-margin-bottom);
}

.footer-address:not(:first-child) {
  margin-top: var(--footer-address-margin-top);
}

.footer-address-line {
  display: block;
  color: inherit;
}

.footer-nav {
  display: inline-flex;
  flex-direction: var(--footer-nav-flex-direction);
  gap: var(--footer-nav-gap);
  flex: 0 1 calc((var(--footer-nav-column-width) * 2) + var(--layout-gap-basis));
}

.footer-nav-item .footer-text {
  color: var(--theme-color-primary-40);
}

.footer-text a {
  color: inherit;
}

.footer-nav-column {
  flex: 1 1 var(--footer-nav-column-width);
}

.footer-copyright-credits-privacy {
  display: flex;
  flex-direction: var(--footer-copyright-credits-privacy-flex-direction);
  justify-content: space-between;
  gap: var(--footer-credits-privacy-gap);
  align-items: var(--footer-copyright-credits-privacy-align-items);
}

.footer-copyright-credits-privacy-container {
  display: flex;
  gap: var(--layout-gap-basis);
  align-items: var(--footer-copyright-credits-privacy-container-align-items);
  justify-content: space-between;
  flex: 1;
  width: var(--footer-copyright-credits-privacy-container-width);
}

.footer-copyright-credits-text {
  max-width: var(--footer-copyright-credits-text-max-width);
}

.footer-credits-privacy {
  display: flex;
  flex-direction: var(--footer-credits-privacy-flex-direction);
  gap: var(--footer-credits-privacy-gap);
  align-items: var(--footer-credits-privacy-align-items);
}

.footer-green-hosting-badge {
  position: relative;
  width: var(--footer-green-hosting-badge-width);
  height: var(--footer-green-hosting-badge-height);
  border: 1px solid var(--theme-color-accent);
  border-radius: var(--footer-green-hosting-badge-border-radius);
  margin: var(--footer-green-hosting-badge-margin-top) 0 0 0;
  padding: var(--footer-green-hosting-badge-padding);
  padding-left: calc(
    var(--footer-green-hosting-badge-padding) +
      var(--footer-green-hosting-badge-image-width) +
      var(--footer-green-hosting-badge-gap)
  );
  overflow: hidden;
  display: flex;
  align-items: center;
}

.footer-green-hosting-badge-text {
  color: var(--theme-color-accent);
  font-size: var(--footer-green-hosting-badge-text-font-size);
  line-height: 1.5;
}

.footer-green-hosting-badge-image {
  position: absolute;
  width: var(--footer-green-hosting-badge-image-width);
  height: calc(
    var(--footer-green-hosting-badge-height) -
      var(--footer-green-hosting-badge-padding)
  );
  bottom: -0.2rem;
  left: var(--footer-green-hosting-badge-padding);
}

.footer-green-hosting-badge-image > svg > path {
  fill: var(--theme-color-accent);
}
