/*
 * @file
 * Provides overall layout styles.
 */

/*
 * Styling for KLG layouts.
 */
.paragraph--type--layouts {
  position: relative;
  /* Needed to fill background colour to the edge with padding around the element */
  margin: 0 -15px;
  padding: 0 15px;
}

/* Spacing utility classes for layouts and any component */
.paragraph--type--layouts.space-top-small,
.space-top-small {
  padding-top: 10px;
}

.paragraph--type--layouts.space-bottom-small,
.space-bottom-small {
  padding-bottom: 10px;
}

.paragraph--type--layouts.space-top-medium,
.space-top-medium {
  padding-top: 20px;
}

.paragraph--type--layouts.space-bottom-medium,
.space-bottom-medium {
  padding-bottom: 20px;
}

.paragraph--type--layouts.space-top-large,
.space-top-large {
  padding-top: 30px;
}

.paragraph--type--layouts.space-bottom-large,
.space-bottom-large {
  padding-bottom: 30px;
}

.paragraph.space-title-remove .layout__region>[data-component-id^="klg_paragraphs"] {
  margin-top: 0px;
}

.paragraph.space-title-remove .block-content-paragraph-block-full__field-paragraph-item>[data-component-id^="klg_paragraphs"] {
  margin-top: 0px;
}

@media only screen and (min-width: 768px) {

  .paragraph--type--layouts.space-top-small,
  .space-top-small {
    padding-top: 20px;
  }

  .paragraph--type--layouts.space-bottom-small,
  .space-bottom-small {
    padding-bottom: 20px;
  }

  .paragraph--type--layouts.space-top-medium,
  .space-top-medium {
    padding-top: 40px;
  }

  .paragraph--type--layouts.space-bottom-medium,
  .space-bottom-medium {
    padding-bottom: 40px;
  }

  .paragraph--type--layouts.space-top-large,
  .space-top-large {
    padding-top: 60px;
  }

  .paragraph--type--layouts.space-bottom-large,
  .space-bottom-large {
    padding-bottom: 60px;
  }
}

.paragraph-layouts__field-background-image-media {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  * {
    width: 100%;
    height: 100%;
  }

  img {
    object-fit: cover;
  }
}

.layout__region>div:not([class*="space-top-small"]):not([class*="space-top-medium"]):not([class*="space-top-large"]) {
  padding-top: 0;
}

.layout__region {
  container-name: layout__region;
  container-type: inline-size;

  >div {
    margin-top: 0;
  }

  >div[class^='paragraph-'] {
    margin: 0;
  }

  .paragraph-slider,
  .webform-wrapper,
  .paragraph-testimonial,
  .paragraph-hero-section {
    margin: 0;
  }
}

.layout-title-text-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.layout-link {
  display: inline-block;
  padding: 8px 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid #240F6E;
  border-radius: 0;
  font-family: "Open Sans";
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  background-color: transparent;
  color: #240F6E;
  transition: all 0.3s ease-in-out;

  @media only screen and (min-width: 768px) {
    font-size: 16px
  }
}

.layout-link:hover {
  border: 2px solid #240F6E;
  border-radius: 8px;
  padding-right: 10px;
  padding-left: 10px;
  background-color: transparent;
  color: #240F6E;
}

.layout-link:focus {
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 8px;
  background-color: #240F6E;
  color: #ffffff;
}

.layout-link:disabled {
  border-bottom: 2px solid #240F6E;
  border-radius: 0;
  color: #AAAAAA;
  background-color: transparent;
}

/* SITE KAPLAN */
.site-kaplan {

  .paragraph--type--layouts__wrapper {

    @media screen and (min-width: 768px) {
      display: block;
      max-width: 1150px;
      margin: 0 auto;
    }

    &.main-layout-title {
      margin-bottom: 5px;

      @media screen and (min-width: 768px) {
        margin-bottom: 20px;
      }
    }


    h2 {
      &.main-layout-title {
        font-family: 'Merriweather';
        font-size: 30px;
        line-height: 1.3;
        font-weight: 300;

        @media screen and (min-width: 768px) {
          font-size: 36px;
        }
      }
    }

    h3 {
      &.main-layout-title {
        font-family: 'Merriweather';
        font-size: 16px;
        font-weight: 700;
        line-height: 1.5;

        @media screen and (min-width: 768px) {
          font-size: 18px;
        }
      }
    }

    h4 {
      &.main-layout-title {
        font-family: 'Merriweather';
        font-size: 16px;
        line-height: 1.5;

        @media screen and (min-width: 768px) {
          font-size: 20px;
        }
      }
    }

    h5 {
      &.main-layout-title {
        font-family: 'Merriweather';
        font-style: italic;
        font-size: 16px;
        line-height: 1.5;

        @media screen and (min-width: 768px) {
          font-size: 20px;
        }
      }
    }

    .layout-subtitle-description-wrapper {
      margin-bottom: 30px;
    }

    .layout-subtitle,
    .layout-description {
      font-size: 16px;
      line-height: 1.5;
      color: #000000;

      @media screen and (min-width: 768px) {
        font-size: 18px;
      }

      p {
        font-size: 16px;
        line-height: 1.5;
        color: #000000;

        @media screen and (min-width: 768px) {
          font-size: 18px;
        }
      }
    }
  }
}

/* SITE ESL */
.site-esl {

  @media only screen and (max-width: 1200px) {
    .layout-title-text-wrapper, 
    .layout-subtitle-description-wrapper {
      padding: 0;
    }
  }

  .paragraph--type--layouts {
    max-width: 100%;
  }

  .paragraph--type--layouts:not([class*="space-"]) {
    padding-top: 0;
    padding-bottom: 0;
  }

  .paragraph--type--layouts__wrapper {

    @media screen and (min-width: 768px) {
      display: block;
      max-width: 1150px;
      margin: 0 auto;
    }

    .main-layout-title {
      margin-bottom: 5px;
      font-size: 18px;
      line-height: 1.5;
      font-weight: 800;
      color: #000000;

      @media screen and (min-width: 768px) {
        font-size: 68px;
        font-weight: 700;
      }
    }

    h1 {
      &.main-layout-title {
        font-size: 40px;
        line-height: 1.3;
        font-weight: 800;

        @media screen and (min-width: 768px) {
          font-size: 68px;
          font-weight: 700;
        }
      }
    }

    h2 {
      &.main-layout-title {
        font-size: 24px;
        line-height: 1.5;
        font-weight: 700;

        @media screen and (min-width: 768px) {
          font-size: 36px;
        }
      }
    }

    h3 {
      &.main-layout-title {
        font-size: 18px;
        line-height: 1.5;
        font-weight: 700;

        @media screen and (min-width: 768px) {
          font-size: 18px;
        }
      }
    }

    h4 {
      &.main-layout-title {
        font-size: 16px;
        line-height: 1.5;
        font-weight: 700;

        @media screen and (min-width: 768px) {
          font-size: 24px;
        }
      }
    }

    .layout-subtitle,
    .layout-description {
      font-size: 16px;
      line-height: 1.5;
      color: inherit;

      @media screen and (min-width: 768px) {
        font-size: 18px;
      }

      p {
        font-size: 16px;
        line-height: 1.5;
        color: inherit;

        @media screen and (min-width: 768px) {
          font-size: 18px;
        }
      }
    }

    .layout-link {
      display: inline-block;
      padding: 12px 30px;
      border: 0;
      border-radius: 30px;
      background-color: #0046b4;
      color: #ffffff;
      font-size: 14px;
      text-decoration: none;
      text-align: center;
      cursor: pointer;

      &:hover {
        background-color: #336bc3;
      }
    }

    .paragraph-layouts__field-background-image-media {
      z-index: -1;
    }

  }
}

/* SITE ALPADIA */
.site-alpadia {

  .paragraph--type--layouts:not([class*="space-"]) {
    padding-top: 0;
    padding-bottom: 0;
  }

  .paragraph--type--layouts__wrapper {

    @media screen and (min-width: 768px) {
      display: block;
      max-width: 1150px;
      margin: 0 auto;
    }

    .main-layout-title {
      margin-bottom: 5px;
      font-size: 24px;
      line-height: 1.5;
      font-weight: 700;
      color: #000000;

      @media screen and (min-width: 768px) {
        font-size: 32px;
        font-weight: 700;
      }
    }

    h1 {
      &.main-layout-title {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.3;

        @media screen and (min-width: 768px) {
          font-size: 46px;
        }
      }
    }

    h2 {
      &.main-layout-title {
        margin-bottom: 10px;
        font-size: 24px;
        line-height: 1.5;
        font-weight: 700;

        @media screen and (min-width: 768px) {
          font-size: 32px;
        }
      }
    }

    h3 {
      &.main-layout-title {
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.5;
        font-weight: 700;

        @media screen and (min-width: 768px) {
          font-size: 18px;
        }
      }
    }

    h4 {
      &.main-layout-title {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.5;
        font-weight: 400;

        @media screen and (min-width: 768px) {
          font-size: 20px;
        }
      }
    }

    .layout-link {
      display: inline-block;
      padding: 5px 15px;
      border: 1px solid #EC0928;
      background-color: #EC0928;
      color: #ffffff;
      font-size: 15px;
      text-decoration: none;
      text-align: center;
      cursor: pointer;
      border-radius: 0;

      &:hover {
        background-color: #C20822;
      }
    }

    .layout-description p {
      font-size: 16px;
      line-height: 1.5;
      font-weight: 400;

      @media screen and (min-width: 768px) {
        font-size: 18px;
      }
    }

    .paragraph-layouts__field-background-image-media {
      z-index: -1;
    }

  }
}