/* common to all new sites */

:root {
    --bg-light-grey: #F9F9F9;
}

body {
    padding-top: 0 !important;
}
body[data-site="www"],
body[data-site="default"]
 {
    margin-top: 5.6rem !important;
}
main {
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 0 !important;
}
header,
footer {
    position: relative;
}

/* navigation */
.navbar-wrapper .secondary-nav-top {
    margin-top: 1.5rem;
}

.tmpl-layouts-landing > .container.component,
.tmpl-layouts-landing > .container.container--component {
    padding-left: 5%;
    padding-right: 5%;
}
.alert.alert-danger,
.alert.alert-warning {
    visibility: hidden;
}

/* p:first-child, */
p + figure {
    margin-top: 2em;
}

p {
    line-height: 1.5em;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
}

p + p {
    margin-top: 1em;
}
h3 {
    margin-top: 1em;
}
.alert.alert-danger, .alert.alert-warning {
    visibility: hidden;
    display: none;
}


main > div:has(.backgroundImage) .component.component--listing {
    padding-top: 7rem !important;
}

.hero-wrap + .container {
    margin-top: 1rem;
}

.hero-wrap picture img {
    object-fit: cover;
    object-position: 50% 15%;
}

.hero-wrap .hero-container .container {
    padding-left: 4.5%;
    padding-right: 4.5%;
}

.hero-wrap {
    & picture {
        img {
            max-width: unset;
            object-fit: cover;
            object-position: 50% 50%;
        }
    }

    & .figure--caption {
        position: absolute !important;
        bottom: 0;
        right: 0;
    }

    & figure figcaption {
        position: absolute;
        bottom: 0.5rem;
        color: #fff;
        border-radius: 50px;
        -webkit-border-radius: 50px;
        -moz-border-radius: 50px;
        max-width: calc(100% - 3rem);
        right: 3rem;
        left: unset;
        display: flex;
        justify-content: center;
        align-content: center;


        .photo img {
            width: auto;
            position: absolute;
            display: block;
            padding: 0;
            z-index: 2;
            right: 1.25rem;
            bottom: 1.5rem;
            left: unset;
        }

        .photo .caption-text {
            display: block;
            padding: 1.5rem;
            padding-right: 4rem !Important;
            background: rgba(0, 0, 0, 0.75);
            border-radius: 2rem;
            opacity: 0;
            -webkit-transition: 150ms all;
            transition: 150ms all;
            z-index: 0;
        }

    }

}

/*    
        set a reasonable padding here so that its possible for full with cols to fill the screen width, 
        can be overriden using hte layout fields custom classes
*/
.container-fluid.container--component > .row > .col {
    padding-left: 0;
    padding-right :0;
}
.body--main > div > .component.container--component:last-child > .row > .col > [data-block],
.body--main > div > .component.container--component:last-child > .row > .col > [data-block-id]
{
    padding-bottom: 3rem;
}
.relatedEntries--container .card--page-default {
    & picture {
        aspect-ratio: 1.618;

        & img {
            width: 100%;
            height: auto;
        }
    }
}

/* accordions */
.card-body p:first-child {
    margin-top: 1rem;
}
.card-body p {
    margin-bottom: 2rem;
}




/* blogs */
.container.blogListing--container.top-auto.bottom-auto {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
/* end blogs */


/* pages */
.tmpl-default > div[class*="container"]:last-child {
    padding-bottom: 7rem !important;
}




/* a default looking card */
.card {
    & picture {
        aspect-ratio: 1.618;
    }
    & picture img {
        max-width: unset;
        width: 100%;
        height: auto;
    }
}

/* cta-tiles */
.row--cta-tiles{
  & .card--cta-tiles {
    position: relative;

    background-color: #d4e5f4;

    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;

    padding: 18px;

    -moz-transition: 250ms all;
    -webkit-transition: 250ms all;
    transition: 250ms all;

    & .thumb-link{
      z-index: 3;
    }

    &:hover{
      background-color: #b3cee7;

      .right-arrow {
        -moz-transition: all 200ms;
        -webkit-transition: all 200ms;
        transition: all 200ms;
        margin-left: 10px;
      }
    }

    & .right-arrow {
      content: "";
      width: 100%;
      height: 22px;
      display: inline-block;
      background-position: top right;
      background-repeat: no-repeat;
      -moz-background-size: 35px 22px;
      -webkit-background-size: 35px 22px;
      background-size: 35px 22px;
      margin-top: 0;
      margin-left: 0;
      background-image: url(../../base/img/arrow_right_navy.svg);
      -moz-transition: all 300ms;
      -webkit-transition: all 300ms;
      transition: all 300ms;
    }

    & .card__icon{
      background-color: #051d43;
      display: flex;
      justify-content: center;
      -moz-border-radius: 10px;
      -webkit-border-radius: 10px;
      border-radius: 10px;
      width: 36px;
      height: 36px;
      padding: 10px;

      i,
      em{
        color: #FFF;
      }
    }

    & picture{
      display: block;
      height: 50px;
      width: 50px;

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

      @media screen and (max-width: 991px){
          & {
            display: flex;
            height: 36px;
            width: 36px;
          }
      }

    }

    & .card-heading{

      @media screen and (max-width: 991px){
        & {
            display: flex;
            align-items: center;
            justify-content: start;
        }
      }
    }

    & .cta-title{
      font-size: 1.25rem;
      font-weight: 400;
      color: #051d43;

      @media screen and (max-width: 991px){
        & {  
            display: flex;
            margin-top: 0;
            margin-bottom: 0;
            padding-left: 10px;
            width: calc(100% - 60px);
            font-size: 1rem;
        }
      }
    }

    & .cta-description{
      border-top: 1px solid #051d43;
      margin-top: 100px;
      padding-top: 15px;
      padding-bottom: 5px;

      @media screen and (max-width: 991px){
          & {
            margin-top: 0;
            border-top: none;
          }
      }

      p{
        font-size: 0.9rem;
        color: #051d43;
      }

    }

  }
}

.container.snippet-container {
    &:before {
        content: "";
        position: absolute;
        width: 100vw;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
        pointer-events: none;
    }
    &.bg-light-grey {
        position: relative;
    }
    &.bg-light-grey:before {
        background-color: var(--bg-light-grey);
    }
}

/* end cta-tiles */
