/* Default Styles
----------------------------------------*/

body {
  overflow-x: hidden;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
p,
ol,
ul,
li {
  padding: 0;
  margin: 0;
}

sub,
sup {
  font-size: 50%;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  font-size: $font-size-22;
  color: $primary-color;
  line-height: $line-height-30;

  @include media-breakpoint-down(xl) {
    font-size: $font-size-20;
    line-height: $line-height-28;
  }

  @include media-breakpoint-down(md) {
    font-size: $font-size-18;
    line-height: $line-height-26;
  }
}

.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.container-xxxl {
  @include media-breakpoint-down(md) {
    --bs-gutter-x: 24px;
  }
}

.frame-type-header p {
  color: $primary-color;
}

.frame-type-text,
.avalex-container,
.frame-type-list,
.frame-type-news_newsdetail {
  header {
    word-break: break-word;
  }

  p,
  li {
    font-family: $font-family-secondary;
    font-size: $font-size-20;
    line-height: $line-height-26;
    font-weight: $font-weight-normal;
    color: #000000;

    a {
      color: inherit;
      font-weight: inherit;
      text-decoration: underline;
    }

    @include media-breakpoint-down(md) {
      font-size: $font-size-16;
      line-height: $line-height-18;
    }
  }
}

.avalex-container {
  font-family: $font-family-secondary;
  font-size: $font-size-20;
  line-height: $line-height-26;
  font-weight: $font-weight-normal;
  color: #000000;

  a {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
  }

  @include media-breakpoint-down(md) {
    font-size: $font-size-16;
    line-height: $line-height-18;
  }
}

/*= Links
=======================================================*/

a {
  font-weight: $font-weight-bold;
  color: $link-color;
  text-decoration: $link-hover-decoration-none;
  cursor: pointer;
  @include transition($btn-transition);

  &:visited {
    text-decoration: $link-hover-decoration-none;
  }
}

a[href^="mailto:"] {
  word-break: break-all;
}

/*= Headings: P, H1, H2, H3, H4, H5, H6 
=======================================================*/

%heading {
  font-weight: $font-weight-medium;
  color: $primary-color;
  padding-bottom: 30px;
  text-shadow: 0px 2px 10px #0000004d;
  text-transform: uppercase;
  letter-spacing: 2.4px;

  a {
    font-weight: inherit;
    font-style: inherit;
    color: inherit;

    &:hover {
      color: $quaternary-color;
      text-decoration: $link-hover-decoration-underline;
    }
  }
}

// h1 {
//   @extend %heading;
//   font-size: $h1-font-size;
//   line-height: $font-size-1;
// }

// h2 {
//   @extend %heading;
//   font-size: $h2-font-size;
//   line-height: $font-size-1;
// }

// h3 {
//   @extend %heading;
//   font-size: $h3-font-size;
//   line-height: $font-size-1-1;
// }

// h4 {
//   @extend %heading;
//   font-size: $h4-font-size;
// }

p {
  padding-bottom: 30px;

  &:last-child {
    padding-bottom: 0;
  }
}

.txt {
  padding-bottom: 60px;

  &:last-child {
    padding-bottom: 0;
  }
}

em.fal,
em.far,
em.fas,
em.fab {
  font-style: normal;
}

@include media-breakpoint-down(xl) {
  %heading {
    padding-bottom: 15px;
  }

  p {
    padding-bottom: 25px;
  }

  .txt {
    padding-bottom: 50px;
  }
}

@include media-breakpoint-down(md) {
  %heading {
    padding-bottom: 10px;
  }

  p {
    padding-bottom: 20px;
  }

  .txt {
    padding-bottom: 40px;
  }
}

/*= Order List 
=======================================================*/

ul,
ol {
  list-style: none;
  padding: 0 0 0 20px;
}



li {
  position: relative;
  padding-left: 20px;
  padding-bottom: 15px;

  &:last-child {
    padding-bottom: 30px;
  }
}

ul,
ol {
  &:last-child {
    li {
      &:last-child {
        padding-bottom: 0;
      }
    }
  }
}

ul {
  li {
    &:before {
      content: "\200B"; // zero-width space — restores list role in Safari VoiceOver when list-style:none is set
      width: 6px;
      height: 6px;
      background: $quaternary-color;
      @include border-radius($border-radius);
      position: absolute;
      top: 13px;
      left: 0;
    }
  }
}

@include media-breakpoint-down(xl) {
  li {
    &:last-child {
      padding-bottom: 25px;
    }
  }

  ul {
    li {
      &:before {
        top: 11px;
      }
    }
  }
}

@include media-breakpoint-down(md) {
  li {
    &:last-child {
      padding-bottom: 20px;
    }
  }

  ul {
    li {
      &:before {
        top: 9px;
      }
    }
  }
}

/*= Order List 
=======================================================*/

// ol {
//   counter-reset: item;

//   li {
//     counter-increment: item;
//     padding-left: 25px;

//     &:before {
//       content: counter(item) ".";
//       font-weight: $font-weight-bold;
//       color: $quaternary-color;
//       position: absolute;
//       top: 0;
//       left: 0;
//       padding: 0;
//       margin: 0;
//     }
//   }
// }

ol {
  list-style: decimal;
  padding: 0 0 0 17px;

  li {
    padding-left: 5px;

    &::marker {
      font-weight: $font-weight-bold;
      color: $quaternary-color;
    }
  }
}

/* Figure */
figure,
.figure {
  vertical-align: top;
}

.break-word {
  word-wrap: break-word;
}

/* #Flying focus
================================================== */

#flying-focus {
  position: absolute;
  margin: 0;
  background: transparent;
  -webkit-transition-property: left, top, width, height, opacity;
  transition-property: left, top, width, height, opacity;
  -webkit-transition-timing-function: cubic-bezier(0, 0.2, 0, 1);
  transition-timing-function: cubic-bezier(0, 0.2, 0, 1);
  visibility: hidden;
  pointer-events: none;
  box-shadow: -webkit-focus-ring-color 0 0 0 2px;
  @include border-radius(0);
}

#flying-focus.flying-focus_visible {
  visibility: visible;
  z-index: 9999;
}

.flying-focus_target {
  outline: none !important;
}

.flying-focus_target::-moz-focus-inner {
  border: 0 !important;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  #flying-focus {
    box-shadow: $box-shadow-none;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -3px;
  }
}

/* Skip - Button */
.skip-btn {
  width: 220px;
  height: 40px;
  float: left;
  font-family: $font-family-primary;
  font-weight: $font-weight-bold;
  font-size: $font-size-base;
  color: $primary-color;
  line-height: $line-height-base + 1.25;
  text-decoration: $link-hover-decoration-none;
  text-align: center;
  background: $orange;
  @include border-radius($border-radius);
  -webkit-transition: top 1s ease-out, background 1s linear;
  transition: top 1s ease-out, background 1s linear;
  overflow: hidden;
  z-index: 100;
  position: absolute;
  z-index: 1001;
  top: -40px;
  left: 0;
  opacity: 0;
  padding: 0;
  margin: 0;

  &:hover,
  &:focus,
  &:active {
    top: 0;
    color: $primary-color;
    text-decoration: $link-hover-decoration-none;
    background: $secondary-color;
    -webkit-transition: top 0.1s ease-in, background 0.5s linear;
    transition: top 0.1s ease-in, background 0.5s linear;
    opacity: 1;
  }
}

/*= Container - Main
=======================================================*/

.container-main {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  scroll-margin-top: $header-height;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
  scroll-margin-top: $header-height;
}

.container {
  scroll-margin-top: $header-height;
}

.py-4 {
  @include media-breakpoint-down(md) {
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
  }
}


/* Space */
.frame-space-before-extra-small {
  padding-top: 1em;
  margin-top: 0;

  @include media-breakpoint-down(md) {
    padding-top: 0.5em;
  }
}

.frame-space-before-small {
  padding-top: 2em;
  margin-top: 0;

  @include media-breakpoint-down(md) {
    padding-top: 1em;
  }
}

.frame-space-before-medium {
  padding-top: 3em;
  margin-top: 0;

  @include media-breakpoint-down(md) {
    padding-top: 1.5em;
  }
}

.frame-space-before-large {
  padding-top: 4em;
  margin-top: 0;

  @include media-breakpoint-down(md) {
    padding-top: 2em;
  }
}

.frame-space-before-extra-large {
  padding-top: 5em;
  margin-top: 0;

  @include media-breakpoint-down(md) {
    padding-top: 2.5em;
  }
}

.frame-space-after-extra-small {
  padding-bottom: 1em;
  margin-bottom: 0;

  @include media-breakpoint-down(md) {
    padding-bottom: 0.5em;
  }
}

.frame-space-after-small {
  padding-bottom: 2em;
  margin-bottom: 0;

  @include media-breakpoint-down(md) {
    padding-bottom: 1em;
  }
}

.frame-space-after-medium {
  padding-bottom: 3em;
  margin-bottom: 0;

  @include media-breakpoint-down(md) {
    padding-bottom: 1.5em;
  }
}

.frame-space-after-large {
  padding-bottom: 4em;
  margin-bottom: 0;

  @include media-breakpoint-down(md) {
    padding-bottom: 2em;
  }
}

.frame-space-after-extra-large {
  padding-bottom: 5em;
  margin-bottom: 0;

  @include media-breakpoint-down(md) {
    padding-bottom: 2.5em;
  }
}

/* Image alignment @desktop */
@media(min-width: 990px) {
  .ce-image.ce-right figure.image {
    display: flex;
    justify-content: right;
  }

  .ce-image.ce-center figure.image {
    display: flex;
    justify-content: center;
  }
}

/***************************/

.container {
  &.mobile-no-padding {
    @include media-breakpoint-down(md) {
      max-width: unset;
      padding: 0px;

      .container {
        max-width: unset;
        padding: 0px;
      }

      h1,
      .h1,
      h2,
      .h2,
      h3,
      .h3,
      h4,
      .h4,
      h5,
      .h5,
      h6,
      .h6 {
        padding: 0px 30px;
      }

      .row>* {
        padding-left: 0px;
        padding-right: 0px;
      }
    }
  }
}

@include media-breakpoint-up(lg) {

  .row-cols-lg-8>* {
    flex: 0 0 auto;
    width: 12.5%;
  }

  .row-cols-lg-12>* {
    flex: 0 0 auto;
    width: 8.333333333%;
  }

  .row-cols-xl-8>* {
    flex: 0 0 auto;
    width: 12.5%;
  }

  .row-cols-xl-12>* {
    flex: 0 0 auto;
    width: 8.333333333%;
  }
}

.flex-column-reverse {
  @include media-breakpoint-down(md) {
    .row {
      flex-direction: column-reverse !important;
    }
  }
}

.flex-column {
  @include media-breakpoint-down(md) {
    .row {
      flex-direction: column !important;
    }
  }
}

.container.vertical-center {

  >.row,
  >div>.row {
    align-items: center;
  }
}


.force-col-12 {
  .col-sm-6 {
    @include media-breakpoint-down(lg) {
      flex: 0 0 auto;
      width: 100%;
    }
  }
}

.ce-gallery iframe {
  @include media-breakpoint-down(md) {
    width: 100%;
    height: 100%;
  }
}

.section-bg-image .container-fluid .py-4 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;

  .row {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;

    @include media-breakpoint-down(md) {
      padding-top: 1rem !important;
      padding-bottom: 1rem !important;
    }
  }
}


@include media-breakpoint-down(md) {
  .row .item.h-100 {
    height: auto !important;
  }

  .container-fluid .container-full.twocol-50-50 .frame-type-text,
  .container-fluid .container-full.twocol-50-50 .btn {
    margin: 0 20px;
  }
}