@charset "UTF-8";

/* CSS Document */
/* Pillar page function */
/* Pillar page inner 2 column continuous stucture with words on the left-hand side, extra info on the right-hand side*/
.extra-info {
    background: #f9f9f9;
    padding: 20px 20px 20px 20px;
    margin-bottom: 24px;
    cursor: pointer;
}

.extra-info.extra-info__close>p {
    display: none;
    margin: 0;
}

.extra-info.extra-info__close {
    padding: 10px 20px 10px 20px;
    border-radius: 50px;
    position: relative;
}

.extra-info.extra-info__close:after {
    content: "+";
    position: absolute;
    display: block;
    bottom: -10px;
    right: 20px;
    font-size: 30px;
    line-height: 70px;
    font-weight: bold;
    color: #a9d8ef;
    font-family: arial;
}

/* two-grid */
.two-grid {
    margin-bottom: 1rem;
}

.two-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 24px;
}

@media screen and (min-width: 900px) {

    /* two-grid */
    .two-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Pillar page inner 2 column continuous stucture with words on the left-hand side, extra info on the right-hand side*/
    .two-column {
        column-count: 2;
        column-gap: 30px;
    }

    .two-button {
        max-width: 500px;
        margin: 0 auto 10px auto;
    }

    .two-column p:empty {
        display: none;
    }

    .two-grid p:empty {
        display: none;
    }

    .two-column>div {
        break-inside: avoid-column;
    }

    .extra-info {
        width: 100%;
        display: block;
        z-index: 10;
    }

    .extra-info.extra-info__close:nth-child(2) {
        margin-top: 20px;
    }
}

/* Inner 2 column cards with unlimited rows*/
.card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0 15px;
    margin: 5px;
    border: 3px #f9f9f9 solid;
    transition: background 0.5s ease;
}

@media screen and (min-width: 900px) {

    /* Inner 2 column cards with unlimited rows*/
    .masonry {
        display: flex;
        flex-flow: column wrap;
        flex-direction: row;
    }

    .masonry>div:nth-child(n+1) {
        order: 1;
    }

    .masonry>div:nth-child(n) {
        order: 2;
    }

    .card {
        width: calc(50% - 10px);
        margin: 5px 5px;
    }

    .masonry>.card:hover {
        background: none;
    }
}


/* Highlighting h2 when anchor link is clicked */
@keyframes highlightscs {
    0% {
      border-left-color: #00aafb;
      transform: translateX(0);
      background: #c0ebff;
    }
    20% {
      border-left-color: #00aafb;
      transform: translateX(20px);
      margin-bottom: 10px;
      margin-top: 20px;
    }
    90% {
      border-left-color: #00aafb;
      transform: translateX(20px);
      margin-bottom: 10px;
      margin-top: 20px;
    }
    100% {
      border-left-color: white;
      transform: translateX(0);
      background: white;
    }
  }
:target {
    animation: highlightscs 5s ease;
    scroll-margin-top: 2em;
}


/* when full-page, cag email subscription widget will be transformed to full width */
.full-width-widget {
    position: relative;
}

.full-width-widget::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    background: #086a9c;
}

.full-width-widget::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: calc(100% - 1px);
    background: #086a9c;
}