@import url("https://assets.baywsf.com/wsf-fonts/Rethink-sans/style.css");

body,
.mdc-typography--body1 {
  font-family: Rethink Sans !important;
}

.mdc-typography {
  font-family: Rethink Sans;
  [class*="text_text"],
  [class*="rich-text-renderer"] {
    font-family: Rethink Sans;
  }
}

/* Space in CTA section */
.paragraph-item--call_to_action {
  margin-bottom: unset !important;
}

/* Heading 2 has no margin in the column layout */
.paragraph-item--column_layout {
  margin-top: 16px !important;
  margin-bottom: 0px !important;
  .paragraph-item--text_block {
    h2 {
      margin-bottom: 0px;
    }
  }
}

/* Hide shadow button */
.mdc-button--raised {
  box-shadow: none !important;
}

/* To set space between section */
article > .lmnt:not(.lmnt-padding) {
  display: flex;
  flex-direction: column;
}

#leading_media_card_block,
#section_block {
  margin-top: 64px;
  margin-bottom: 64px;
}

h1 {
  [class*="text_text"],
  [class*="rich-text-renderer"] {
    font-size: 96px;
    font-weight: 600;
    line-height: 90px;
    @media (max-width: 768px) {
      font-size: 48px;
      font-weight: 700;
      line-height: 46px;
    }
  }
}

h2 {
  [class*="text_text"],
  [class*="rich-text-renderer"] {
    font-size: 56px;
    font-weight: 700;
    line-height: 50px;
    @media (max-width: 768px) {
      font-size: 38px;
      font-weight: 700;
      line-height: 37px;
    }
  }
}

h3 {
  [class*="text_text"],
  [class*="rich-text-renderer"] {
    font-size: 32px;
    font-weight: 700;
    line-height: 24px;
    @media (max-width: 768px) {
      font-size: 24px;
      font-weight: 700;
      line-height: 36px;
    }
  }
}

/* Modify Button Styles */
.lmnt-button--filled-primary,
.lmnt-button--outlined-primary,
.lmnt-button--filled-secondary {
  border-radius: 44px !important;
  border: none !important;
  padding-left: 24px !important;
  padding-right: 24px !important;

  .mdc-button__label {
    color: #ffffff !important;
  }
}

.inputFieldWrapper {
  .inputLabel {
    display: none !important;
  }
}

/* Modify Button Styles */
nav {
  .lmnt-button--filled-secondary {
    background: #c8e951 !important;
    border-radius: 44px !important;
    border: none !important;
    padding: 8px 12px !important;

    .mdc-button__label {
      font-family: Open Sans !important;
      color: #1c4650 !important;
      font-size: 14px !important;
      font-weight: 480;
    }
  }
  a [class*="rich-text-renderer"] {
    font-family: Open Sans !important;
    font-size: 14px !important;
    font-weight: 480;
    color: #000000 !important;
    &:hover {
      color: #1c4650 !important;
    }
  }
}

.inputFieldWrapper {
  .lmnt-button--filled-primary,
  .lmnt-button--outlined-primary {
    background: #c8e951 !important;
  }
}

.paragraph-item--section_block > .lmnt {
  padding: 80px 0 !important;
}

/* Spesific Magazine Section */
[class*="with-magazine-layout"] {
  .mdc-typography--subtitle1 [class*="rich-text-renderer"] {
    font-family: Rethink Sans;
    font-size: 22px;
    font-weight: 600;
    line-height: 32px;
  }
}

/* Text Block */
.paragraph-item--text_block {
  .mdc-typography--body1 {
    font-family: Rethink Sans;
    font-weight: 480;
    line-height: 28px !important;
  }
}
.paragraph-item--text_block {
  margin-bottom: 48px !important;
}

.gridColumnlayout > .wsf-m-xxl {
  margin-bottom: 48px;
}

.lmnt-card-title__overlineText {
  [class*="rich-text-renderer"] {
    letter-spacing: 4px;
  }
  letter-spacing: 8px;
}

/* Text Media Block */
[class*="text-media-block_cardBodyWrapper"] {
  .mdc-typography {
    font-weight: 480;
  }
}

/* Webform */

.formWrapper {
  border-radius: 40px !important;
  .inputFieldWrapper {
    .mdc-typography--body1 {
      font-weight: 480;
    }
    sup {
      font-size: 12px !important;
      line-height: 16px !important;
      font-weight: 480;
    }
  }
  .mdc-button__label {
    color: #1c4650 !important;
  }
}

.paragraph-item--webform {
  .lmnt-layout-grid__cell--vertical-align-top {
    margin: auto;
  }
}

/* End Webform */

.lmnt-footer {
  background-color: #f5f5f5 !important;
  .lmnt-footer__content {
    .lmnt-footer__column {
      .mdc-typography,
      .mdc-typography > a {
        color: #1c4650 !important;
        font-family: Open Sans !important;
        font-weight: 480 !important;
      }
    }

    .lmnt-footer__column:first-of-type {
      .mdc-typography,
      .mdc-typography > a {
        color: #000000de !important;
        font-family: Rethink Sans !important;
        font-weight: 480 !important;
      }
    }
  }

  [class*="footer_logoTitle"] {
    img {
      display: none;
    }
  }

  footer {
    .lmnt-footer__bottom-group {
      margin-top: unset !important;
    }
    .lmnt-footer__bottom-group:nth-last-child(1) {
      display: none;
    }
  }
}

@media (max-width: 768px) {
  [class*="columns-block_gridContainer"] {
    .paragraph-item--text_block {
      [class*="text-block_wrapper"] {
        padding: 0 !important;
      }
    }
  }
}

[class^="text-media-block_cardBody__"] {
  max-height: unset !important;
}

[class*="with-magazine-layout_header"] > div {
  margin: 0 auto !important;
  width: 100% !important;
}

[class*="text-media-block_cardImage"] {
  img {
    object-fit: unset !important;
  }
}

[class*="teaser-card-list_wrappedHeight"] {
  [class*="document-card_documentCardTitleWrapper"] {
    min-height: unset !important;
    margin-bottom: 0px !important;
    .mdc-typography {
      font-family: Rethink Sans !important;
    }
  }

  .mdc-card__actions {
    min-height: unset !important;
    padding: 0 8px !important;
  }

  .mdc-card__action-buttons {
    .lmnt-button__icon--trailing,
    .mdc-button__label {
      color: #00804d !important;
    }
  }
  .mdc-button .mdc-button__ripple::after,
  .mdc-button .mdc-button__ripple::before {
    background-color: #00804ddf;
  }

  .mdc-button--touch {
    margin: 0px !important;
  }
}

[class*="direct-link-item_directLinkItem"] {
  [class*="elevated-list_listItemElevation"] {
    background-color: white !important;
    svg path {
      fill: #00804d !important;
    }
  }
}

[class*="title_titleWrapper"] {
  .mdc-layout-grid {
    margin: unset;
  }

  h1 {
    max-width: 500px;
    font-family: Rethink Sans !important;
    font-size: 96px !important;
    font-weight: 600 !important;
    line-height: 90px !important;
    @media (max-width: 768px) {
      max-width: 250px;
      font-size: 48px !important;
      font-weight: 700 !important;
      line-height: 46px !important;
    }
  }
}
