/*-----------------------------------------*/
/*--- STRUCTURE                     -------*/
/*--- GLOBAL STYLES                 -------*/
/*--- HEADER                        -------*/
/*--- NAVIGATION                    -------*/
/*--- HOME PAGE BANNER              -------*/
/*--- BREADCRUMB                    -------*/
/*--- CONTENT                       -------*/
/*--- FOOTER                        -------*/
/*-----------------------------------------*/

/*--- STRUCTURE ---*/
html {
    position: relative;
    min-height: 100%;
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    font-family: "Frutiger W01", Arial, sans-serif !important;
    background-color: #fff;
    color: #231f20;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    letter-spacing: 0;
}
main {
    margin: 20px auto;
}

/*--- GLOBAL STYLES ---*/
/* SKIP LINK */
.skip-link {
    left: -9999px;
    padding: 8px;
    position: absolute;

    &:active,
    &:focus {
        left: 16px;
        top: 16px;
        z-index: 9999;
        background-color:#fff;
        border-radius: 5px;
    }
}

/* HORIZONTAL DIVIDER */
hr {
    border-top: 3px solid #005EB8;
    opacity: 1;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    color: #425563;
}
h1 {
    font-size: 3.5rem;
    line-height: calc(3.5rem * 1.5);
    word-spacing: calc(3.5rem * 0.16);
    font-weight: bold;
    margin-bottom: 10px;
}
h2 {
    font-size: 2.8rem;
    line-height: calc(2.8rem * 1.5);
    word-spacing: calc(2.8rem * 0.16);
    font-weight: bold;
    margin: 10px 0 0 0;
}
h3{
    font-size: 2.4rem;
    line-height: calc(2.4rem * 1.5);
    word-spacing: calc(2.4rem * 0.16);
    font-weight: bold;
    margin: 10px 0 0 0;
}
h4{
    font-size: 2.2rem;
    line-height: calc(2.2rem * 1.5);
    word-spacing: calc(2.2rem * 0.16);
    margin: 10px 0 0 0;
}
h5{
    font-size: 2rem;
    line-height: calc(2rem * 1.5);
    word-spacing: calc(2rem * 0.16);
    margin: 10px 0 0 0;
}
h6{
    font-size: 1.8rem;
    line-height: calc(1.8rem * 1.5);
    word-spacing: calc(1.8rem * 0.16);
    margin: 10px 0 0 0;
}
p, ul, ol {
    margin-bottom: 1.5rem;
}
strong, b {
    font-weight: bold;
}

/* LINKS */
a {
    text-decoration: underline;
    color: inherit;
    font-weight: bold;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);

    &:hover {
        text-decoration: none;
        color: inherit;
        outline: 0;
    }

    &:focus {
        background: #FFB81C !important;
        color: #231f20 !important;
        outline: 0;
    }

    &:has(img) {
        display: inline-flex;

        &:focus {
            background: transparent !important;
        }
    }

    &:hover, &:focus {
        img {
            outline: 2px solid #ffb81C;
        }
    }
}
main a {
    color: #425563;
    text-decoration: underline;

    &:hover {
        text-decoration: none;
    }
}

/*  LISTS  */
ul, ol{
    margin-left: 30px;
}
ul{
    list-style: circle;
    list-style-position: outside;
}
ol{
    list-style: decimal;
    list-style-position: inside;
}

/* TYPO3 AND TEXT ALIGNMENT */
.ce-headline-center,
.align-center {
    text-align: center;
}

.ce-headline-left,
.align-left {
    text-align: left;
}

.ce-headline-right,
.align-right {
    text-align: right;
}

/* BUTTONS */
button, .blueButton a {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    padding: 12px;
    border: 0px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    background-color: #005EB8;
    color: #fff;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    font-weight: normal;
    margin-bottom: 1.5rem;

    &:hover {
        background-color: #003087;
        box-shadow: none;
        text-decoration: underline;
    }

    &:focus {
        background-color: #ffb81C;
        color: #231f20;
        box-shadow: none!important;
        outline: none;
    }
}

/* TABLES */
figure.table {
    display: block;
    margin: 0 0 1.5rem;
    overflow-x: auto;

    table {
        width: 100%;
        word-break: keep-all;
        text-align: left;

        tr {
            color: #231f20;

            td,
            th {
                padding: 0.75rem;
                border-bottom: 1px solid #E8EDEE;
            }
        }

        th {
            font-weight: bold;
        }

        thead {
            th {
                border-bottom: 1px solid #E8EDEE;
            }
        }
    }

    /* - TABLE CAPTION - */
    figcaption {
        margin-top: 0.75rem;
        font-size: 1.6rem;
        line-height: calc(1.6rem * 1.5);
        word-spacing: calc(1.6rem * 0.16);
        color: #425563;
    }
}

/* FORMS */
form {
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);

    /* FORM FIELDS */
    fieldset {
        label {
            width: 100%;
            margin-bottom: 5px;
            cursor: text;
            font-weight: bold;
        }

        select,
        input,
        textarea {
            background-color: #fff;
            border: 1px solid #425563;
            width: 100%;
            font-size: 16px;
            line-height: calc(1.6rem * 1.5);
            word-spacing: calc(1.6rem * 0.16);
            margin-bottom: 5px;
            padding: 5px;

            &:hover {
                box-shadow: none;
            }

            &:focus {
                outline: 2px solid #FFB81C;
                box-shadow: none;
            }
        }

        select {
            appearance: base-select;
            border-radius: 10px;

            &:hover {
                cursor: pointer;
            }
        }

        input {
            &::placeholder {
                color: #425563;
            }

            &[type=radio],
            &[type=checkbox] {
                appearance: none;
                -webkit-appearance: none;

                font-size: 16px;
                line-height: calc(1.6rem * 1.5);
                word-spacing: calc(1.6rem * 0.16);

                width: 20px;
                height: 20px;
                min-width: 20px;
                min-height: 20px;
                margin: 0 8px 0 0;
                padding: 0;
                border: 1px solid #425563;
                cursor: pointer;

                &:checked {
                    background-color: #005EB8 !important;
                    box-shadow: inset 0 0 0 4px #fff;
                }

                &:focus-visible,
                &:focus {
                    outline: 2px solid #FFB81C;
                    box-shadow: inset 0 0 0 4px #fff;
                }
            }

            &[type=radio] {
                border-radius: 50%;
            }

            &[type=checkbox] {
                border-radius: 0px
            }

            &::file-selector-button {
                position: relative;
                display: inline-block;
                width: auto;
                cursor: pointer;
                padding: 8px 25px;
                border: 0;
                border-radius: 5px;
                outline: 0;
                background-color: #005EB8;
                color: #fff;
                font-size: 1.6rem;
                line-height: calc(1.6rem * 1.5);
                word-spacing: calc(1.6rem * 0.16);
                text-decoration: none;
            }

            &[type=date] {
                &::-webkit-calendar-picker-indicator {
                    filter: brightness(0) saturate(100%) invert(32%) sepia(12%) saturate(700%) hue-rotate(163deg) brightness(91%) contrast(88%);

                    &:hover {
                        cursor: pointer;
                    }
                }

                &:hover {
                    cursor: pointer;
                }
            }

            &[type=submit] {
                display: inline-block;
                width: 100%;
                background-color: #005EB8;
                color: #fff;
                border: none;
                border-radius: 5px;
                padding: 12px;

                &:hover {
                    background-color: #003087;
                    text-decoration: underline;
                }

                &:focus {
                    background-color: #ffb81C;
                    color: #231f20;
                    box-shadow: none!important;
                    outline: none;
                }
            }

            &[type=search] {
                &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration {
                    appearance: none;
                }
            }
        }
    }
}

/*--- MEDIA ---*/
/* TYPO3 TEXT MEDIA AND TEXT PICTURE OVERRIDES */
.ce-textpic, .ce-image {
    display: flex;
    flex-wrap: wrap;

    .ce-bodytext {
        width: 100%;
    }

    /* - IMAGE POSITIONING - */
    .ce-gallery {
        order: 1;
        width: 100%;

        .ce-column {
            margin-bottom: 1.5rem;

            figure {
                display: flex;
                flex-direction: column;
                margin: 0;
            }
        }
    }

    /* - OVERRIDES ORDER FOR ABOVE POSITIONING - */
    &.ce-above .ce-gallery {
        order: 0;
    }

    /* - IMAGE AND CAPTION ALIGNMENT - */
    &.ce-left .ce-gallery {
        figure {
            align-items: flex-start;
        }
    }

    &.ce-right .ce-gallery {
        figure {
            align-items: flex-end;

            figcaption {
                text-align: right;
            }
        }
    }

    &.ce-center .ce-gallery {
        figure {
            align-items: center;

            figcaption {
                text-align: center;
            }
        }
    }

    /* - DATA COLUMNS ON ABOVE AND BELOW POSITIONING - */
    &.ce-above, &.ce-below {
        .ce-gallery[data-ce-columns] {
            padding-right: 0 !important;

            .ce-row {
                display: flex;
                flex-wrap: wrap;
                gap: 0 10px;

                .ce-column {
                    flex: 1 1 0;

                    figure {
                        height: 100%;

                        a {
                            height: 100%;
                        }

                        img {
                            height: 100%;
                            object-fit: cover;
                        }
                    }
                }
            }
        }
    }
}

/* - TYPO3 TEXT MEDIA AND TEXT PICTURE OVERRIDES MEDIA QUERIES - */
@media (min-width: 768px) {
    .frame-type-textpic, .frame-type-textmedia {
        &:has(.ce-right) > .ce-textpic, &:has(.ce-left) > .ce-textpic {
            align-items: flex-start;
        }

        .ce-textpic {
            /* -- LEFT AND RIGHT ALIGNMENT -- */
            &.ce-left:has(.ce-gallery) > .ce-gallery, &.ce-right:has(.ce-gallery) > .ce-gallery {
                width: 40%;
            }

            &.ce-left:has(.ce-gallery) > .ce-bodytext {
                width: 60%;
            }

            &.ce-right:has(.ce-gallery) > .ce-bodytext {
                width: 60%;
                padding-right: 20px;
            }

            &.ce-left:has(.ce-gallery) > .ce-gallery {
                order: 0;
                padding-right: 20px;
            }

            /* -- INTEXT LEFT AND RIGHT ALIGNMENT -- */
            &.ce-intext:not(.ce-nowrap) {
                display: block;

                .ce-bodytext {
                    width: auto !important;
                    padding-right: 0 !important;
                }

                .ce-gallery {
                    padding-bottom: 10px;
                }

                &.ce-right {
                    .ce-gallery {
                        float: right;
                        padding-left: 10px;
                    }
                }

                &.ce-left {
                    .ce-gallery {
                        float: left;
                        padding-right: 10px;
                    }
                }
            }

            /* -- CENTER ALIGNMENT -- */
            &.ce-left, &.ce-right, &.ce-center {
                &.ce-above, &.ce-below {
                    .ce-gallery, .ce-bodytext {
                        width: 100% !important;
                    }
                }
            }
        }
    }
}
@media (min-width: 991px) {
    .frame-type-textpic, .frame-type-textmedia {
        .ce-textpic {
            /* -- LEFT AND RIGHT ALIGNMENT -- */
            &.ce-left:has(.ce-gallery) > .ce-gallery, &.ce-right:has(.ce-gallery) > .ce-gallery {
                width: 30%;
            }

            &.ce-left:has(.ce-gallery) > .ce-bodytext,
            &.ce-right:has(.ce-gallery) > .ce-bodytext {
                width: 70%;
            }
        }
    }
}
@media (min-width: 1200px) {
    .frame-type-textpic, .frame-type-textmedia {
        .ce-textpic {
            /* -- LEFT AND RIGHT ALIGNMENT -- */
            &.ce-left:has(.ce-gallery) > .ce-gallery, &.ce-right:has(.ce-gallery) > .ce-gallery {
                width: 20%;
            }

            &.ce-left:has(.ce-gallery) > .ce-bodytext,
            &.ce-right:has(.ce-gallery) > .ce-bodytext {
                width: 80%;
            }
        }
    }
}
@media (max-width: 1200px) {
    .ce-textpic, .ce-image {
        /* - DATA COLUMNS ON ABOVE AND BELOW POSITIONING - */
        &.ce-above, &.ce-below {
            .ce-gallery {
                &[data-ce-columns] {
                    .ce-row {
                        .ce-column {
                            flex: 1 1 calc(25% - 7.5px) !important;
                        }
                    }
                }
                &[data-ce-columns="6"] {
                    .ce-row {
                        .ce-column {
                            flex: 1 1 calc(33.333% - 6.667px) !important;
                        }
                    }
                }
            }
        }
    }
}
@media (max-width: 991px) {
    .ce-textpic, .ce-image {
        /* -- RIGHT ALIGNMENT -- */
        &.ce-right .ce-gallery {
            figure {
                align-items: flex-start;
            }
        }
    }
}
@media (max-width: 767px) {
    .ce-textpic, .ce-image {
        /* - DATA COLUMNS ON ABOVE AND BELOW POSITIONING - */
        &.ce-above, &.ce-below {
            .ce-gallery[data-ce-columns] {
                .ce-row {
                    .ce-column {
                        flex: 1 1 calc(50% - 5px) !important;
                    }
                }
            }
        }
    }
}
@media (max-width: 567px) {
    .ce-textpic, .ce-image {
        /* - DATA COLUMNS ON ABOVE AND BELOW POSITIONING - */
        &.ce-above, &.ce-below {
            .ce-gallery[data-ce-columns] {
                .ce-row {
                    gap: 0;

                    .ce-column {
                        flex: 0 0 100% !important;
                        width: 100%;
                    }
                }
            }
        }
    }
}

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

figure {
    figcaption {
        color: #425563;
        font-size: 1.4rem;
        line-height: calc(1.4rem * 1.5);
        word-spacing: calc(1.4rem * 0.16);
        margin-bottom: 1.5rem;
    }
}

/* VIDEO EMBEDS (YOUTUBE/VIMEO) */
.video {
    .video-embed {
        width: 100%;

        iframe {
            height: 468px;
            border: 0;
            outline: none;
        }
    }
}

/* IFRAME */
iframe {
    width: 100%;
}

/* - REMOVES DUPLICATED MARGIN FROM IFRAME IF INSIDE .CE-GALLERY
   -- MARGIN OF .CE-GALLERY IS WITHIN TYPO3 TEXT MEDIA AND TEXT PICTURE OVERRIDES ABOVE */
.ce-gallery {
    &:has(iframe) {
        iframe {
            margin-bottom: 0;
        }
    }
}

/*--- HEADER ---*/
header {
    .siteLogoSearch {
        padding: 20px;

        .logo, .search {
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            justify-content: center;
        }

        .logo {
            img {
                width: auto;
            }
        }
    }
}

/* HEADER MEDIA QUERIES */
@media screen and (max-width: 767px) {
    header {
        .siteLogoSearch {
            .search {
                order: 2;
            }

            .logo {
                margin-bottom: 20px;

                a {
                    justify-content: center;
                }
            }
        }
    }
}

/*--- NAVIGATION ---*/
nav {
    background-color: #005EB8;

    .navbar {
        padding-top: 0;
        padding-bottom: 0;

        .navbar-nav {
            margin: 0;
            width: 100%;
            justify-content: space-between;

            li.nav-item {
                &:last-child {
                    background-color: #DA291C;
                }

                a {
                    color: #fff;
                    padding: 12px !important;
                    cursor: pointer;

                    &:hover {
                        background-color: #003087;
                        box-shadow: none;
                        text-decoration: underline;
                    }

                    &.active > a, &:active > a {
                        background-color: #003087;
                        color: #fff;
                        text-decoration: underline;
                    }

                    &:focus-visible {
                        box-shadow: none;
                    }
                }
            }
        }

        /* TOGGLE BUTTON */
        .navbar-toggler {
            width: 100%;
            border-color: transparent !important;
            background-color: #005EB8;
            color: #fff;
            padding: 12px 20px;
            margin-bottom: 0;
            text-align: center;
            font-size: 1.6rem;
            line-height: calc(1.6rem * 1.5);
            word-spacing: calc(1.6rem * 0.16);
            outline: none;
            box-shadow: none;
            border-radius: 0;

            &:hover {
                text-decoration: underline;
            }

            &:focus {
                background-color: #ffb81C;
                color: #231f20;
            }

            &.collapsed {
                .close-icon {
                    display: none;
                }
            }

            &:not(.collapsed) {
                background-color: #003087;
                color: #fff;

                .close-icon {
                    display: inline;
                }

                .open-icon {
                    display: none;
                }
            }
        }

        .navbar-collapse {
            li.nav-item {
                padding: 0;
                flex-grow: 1;
                flex-basis: 0;
                text-align: center;

                a {
                    display: flex;
                    width: 100%;
                    height: 100%;
                    align-items: center;
                    justify-content: center;
                }
            }
        }
    }
}

/*--- HOME PAGE BANNER ---*/
.homepageBanner {
    display: none;
}
.homepageBanner {
    [class*="col-"] {
        display: flex;
        padding: 0 1px;
    }

    a {
        flex-direction: column;
        width: 100%;
        text-decoration: none;

        &:hover, &:focus {
            .ce-gallery figure img {
                outline: 0;
            }
        }

        &:hover {
            .frame:has(.banner-heading) {
                background-color: #0072CE;
                text-decoration: underline;
            }
        }

        &:focus {
            .frame:has(.banner-heading) {
                background-color: #ffb81C;
                color: #231f20;
                box-shadow: none!important;
                outline: none;
            }
        }
    }

    .ce-gallery {
        margin-bottom: 0;

        .ce-column {
            margin-bottom: 0;
        }

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

    .frame:has(.banner-heading) {
        background-color: #003087;
        color: #fff;
        text-align: center;
        padding: 10px 15px;
        height: 100%;
    }

    .banner-heading {
        display: block;
        font-size: 2rem;
        line-height: calc(2rem * 1.5);
        word-spacing: calc(2rem * 0.16);
        margin-bottom: 5px;
    }

    p {
        font-size: 1.4rem;
        line-height: calc(1.4rem * 1.5);
        word-spacing: calc(1.4rem * 0.16);
        font-weight: normal;
        margin-bottom: 0;
    }
}

/* BANNER MEDIA QUERIES */
@media screen and (max-width: 576px) {
    .homepageBanner {
        [class*="col-"] {
            padding: 0 0 2px;
        }
    }
}

/*--- BREADCRUMB ---*/
.breadcrumb {
    list-style: none;
    background-color: #fff;
    margin: 20px 0;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);

    .breadcrumb-item {
        a {
            color: #212529;
            text-decoration: underline;
            font-size: 1.6rem;
            line-height: calc(1.6rem * 1.5);
            word-spacing: calc(1.6rem * 0.16);

            &:hover {
                text-decoration: none;
            }
        }

        & + .breadcrumb-item::before {
            content: var(--bs-breadcrumb-divider, ">");
        }
    }
}

/* REMOVES DUPLICATE HOME LINK ON SPECIFIC PAGES */
/* - NEWS PAGE -*/
.newsPage {
    .breadcrumb .breadcrumb-item:nth-child(2n) {
        display: none;
    }
}

/*--- CONTENT ---*/
/* ALERTS */
.alert-primary {
    background-color: #005EB8;
    color: #fff!important;
    border: 0;
    padding: 10px;
}

/* DETAILS */
details {
    margin-bottom: 1.5rem;
}
details summary {
    color: #231f20;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
    font-weight: bold;
    text-decoration: underline;

    &:hover {
        text-decoration: none;
    }

    &:focus {
        background: #FFB81C!important;
        color: #231F20!important;
        box-shadow: none!important;
        text-decoration: none;
    }
}

/* BLOCKQUOTES */
blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    border-left: 5px solid #0d2240;

    p {
        font-size: 1.6rem;
        line-height: calc(1.6rem * 1.5);
        word-spacing: calc(1.6rem * 0.16);
        font-weight: 300;
        line-height: 1.25;
        margin-bottom: 0;

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

/* IMAGE MAPS */
.imageMap {
    margin: 0 auto 1.5rem;
}

/* SECTION MENU */
.section-menu {
    border-left: 1px solid #E8EDEE;
    padding-left: 10px;

    nav {
        background-color: transparent;

        ul {
            margin-left: 0;
            padding-left: 0;
            list-style: none;

            li {
                width: 100%;
                margin-left: 0;

                &.active {
                    a {
                        background-color: #003087;
                        text-decoration: underline;
                    }
                }

                a {
                    position: relative;
                    display: block;
                    background-color: #0072CE;
                    color: #fff;
                    font-weight: normal;
                    font-size: 1.6rem;
                    line-height: calc(1.6rem * 1.5);
                    word-spacing: calc(1.6rem * 0.16);
                    text-decoration: none;
                    padding: 10px;
                    margin-bottom: 5px;
                    border-radius: 5px;

                    &:hover {
                        background-color: #003087;
                        box-shadow: none;
                        text-decoration: underline;
                    }

                    &:focus {
                        background-color: #ffb81C;
                        color: #231f20;
                        box-shadow: none!important;
                        outline: none;
                    }
                }
            }
        }
    }

    /* - ADDITIONAL BUTTONS -*/
    /* -- FREEDOM TO SPEAK UP -- */
    .FTSU-btn {
        a {
            position: relative;
            display: block;
            background-color: #78BE20;
            color: #212529;
            font-weight: normal;
            font-size: 1.6rem;
            line-height: calc(1.6rem * 1.5);
            word-spacing: calc(1.6rem * 0.16);
            text-decoration: none;
            padding: 10px;
            margin-bottom: 5px;
            border-radius: 5px;

            &:hover {
                background-color: #006747;
                color: #fff;
                box-shadow: none;
                text-decoration: underline;
            }

            &:focus {
                background-color: #ffb81C;
                color: #231f20;
                box-shadow: none!important;
                outline: none;
            }
        }
    }
}

/* - SECTION MENU MEDIA QUERIES - */
@media screen and (max-width: 991px) {
    .section-menu {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #E8EDEE;
        padding-top: 10px;
    }
}

/* FRAMES */
/* - BUTTON GRID FOR MENUS - */
.buttonMenu {
    ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        list-style: none;
        margin-left: 0;
        padding-left: 0;

        li {
            display: flex;
            flex: 0 0 calc((100% / 6) - (8px * (6 - 1) / 6));
            margin: 5px 8px 5px 0;
            text-decoration: none !important;

            &:last-child,
            &:nth-child(6n) {
                margin-right: 0;
            }

            a {
                display: inline-flex;
                width: 100%;
                height: 100%;
                padding: 12px;
                text-align: center;
                text-decoration: none !important;
                align-items: center;
                background-color: #003087;
                color: #fff !important;
                font-weight: normal;
                font-size: 1.6rem;
                line-height: calc(1.6rem * 1.5);
                word-spacing: calc(1.6rem * 0.16);

                &:hover {
                    background: #0072CE;
                    text-decoration: underline !important;
                }

                &:focus {
                    background: #FFB81C !important;
                    color: #231f20 !important;
                }

                span {
                    width: 100%;
                }
            }
        }
    }
}

/* -- SPECIFIC STYLING FOR GRID CONTAINERS -- */
.col-lg-8 {
    .buttonMenu {
        ul {
            li {
                flex: 0 0 calc((100% / 3) - (8px * (3 - 1) / 3));

                &:nth-child(4n) {
                    margin-right: 8px;
                }

                &:nth-child(3n) {
                    margin-right: 0;
                }
            }
        }
    }
}

.col-lg-6,
.col-lg-4 {
    .buttonMenu {
        ul {
            li {
                flex: 0 0 calc((100% / 2) - (8px * (2 - 1) / 2));

                &:nth-child(2n) {
                    margin-right: 0;
                }
            }
        }
    }
}

.col-lg-3 {
    .buttonMenu {
        ul {
            li {
                flex: 0 0 100%;
                margin-right: 0;

                &:nth-child(4n) {
                    margin-right: 0;
                }
            }
        }
    }
}

/* - BUTTON MENU MEDIA QUERIES - */
@media screen and (max-width: 1200px) {
    .buttonMenu {
        ul {
            li {
                flex: 0 0 calc((100% / 4) - (8px * (4 - 1) / 4));

                &:nth-child(6n) {
                    margin-right: 8px;
                }

                &:nth-child(4n) {
                    margin-right: 0;
                }
            }
        }
    }

    /* -- SPECIFIC STYLING FOR GRID CONTAINERS -- */
    .col-lg-4 {
        .buttonMenu ul li {
            flex: 0 0 100%;
            margin-right: 0;

            &:nth-child(4n) {
                margin-right: 0;
            }
        }
    }
}
@media screen and (max-width: 991px) {
    .buttonMenu {
        ul {
            li {
                flex: 0 0 calc((100% / 3) - (8px * (3 - 1) / 3));

                &:nth-child(4n) {
                    margin-right: 8px;
                }

                &:nth-child(3n) {
                    margin-right: 0;
                }
            }
        }
    }

    /* -- SPECIFIC STYLING FOR GRID CONTAINERS -- */
    .col-lg-8,
    .col-lg-6 {
        .buttonMenu {
            ul {
                li {
                    flex: 0 0 calc((100% / 2) - (8px * (2 - 1) / 2));

                    &:nth-child(3n) {
                        margin-right: 8px;
                    }

                    &:nth-child(2n) {
                        margin-right: 0;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .buttonMenu {
        ul {
            li {
                flex: 0 0 calc((100% / 2) - (8px * (2 - 1) / 2));

                &:nth-child(3n) {
                    margin-right: 8px;
                }

                &:nth-child(2n) {
                    margin-right: 0;
                }
            }
        }
    }

    /* -- SPECIFIC STYLING FOR GRID CONTAINERS -- */
    .col-lg-8,
    .col-lg-6 {
        .buttonMenu {
            ul {
                li {
                    flex: 0 0 100%;
                    margin-right: 0;
                }
            }
        }
    }
}
@media screen and (max-width: 576px) {
    .buttonMenu {
        ul {
            li {
                flex: 0 0 100%;
                margin-right: 0;
            }
        }
    }
}

/* - IMAGE QUICK LINKS - */
.img-quicklinks {
    .ce-textpic, .ce-image {
        &.ce-above, &.ce-below {
            & .ce-gallery[data-ce-columns] {
                & .ce-row {
                    .ce-column {
                        flex: unset !important;
                    }
                }
            }
        }
    }
}

/* -- IMAGE QUICK LINKS MEDIA QUERIES -- */
@media (max-width: 767px) {
    .img-quicklinks {
        .ce-textpic, .ce-image {
            &.ce-above, &.ce-below {
                & .ce-gallery[data-ce-columns] {
                    & .ce-row {
                        .ce-column {
                            flex: 1 1 calc(25% - 7.5px) !important;
                        }
                    }
                }
            }
        }
    }
}
@media (max-width: 567px) {
    .img-quicklinks {
        .ce-textpic, .ce-image {
            &.ce-above, &.ce-below {
                & .ce-gallery[data-ce-columns] {
                    & .ce-row {
                        .ce-column {
                            flex: 1 1 calc(50% - 5px) !important;
                        }
                    }
                }
            }
        }
    }
}

/*--- FOOTER ---*/
footer {
    section {
        padding: 20px;

        a {
            color: inherit;
            text-decoration: underline;

            &:hover {
                color: #231f20;
                text-decoration: none;
            }
        }
    }

    /* QUICKLINKS AND ACCREDITATIONS */
    #quickLinks-Accreds {
        background-color: #005EB8;
        color: #fff;

        /* - QUICKLINKS - */
        .quicklinks {
            display: flex;
            margin-bottom: 2.5rem;

            a {
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 100%;
                height: fit-content;
                padding: 10px;
                border-radius: 5px;

                &:hover {
                    background-color: #003087;
                    color: inherit;
                }

                &:focus {
                    background-color: #003087 !important;
                    color: inherit !important;
                    outline: 2px solid #ffb81C;
                    text-decoration: none;
                }

                &:hover, &:focus {
                    img {
                        outline: 0;
                    }
                }

                img {
                    margin-bottom: 1.5rem;
                }

                p {
                    color: #fff;
                    text-align: center;
                    margin-bottom: 0;
                }
            }
        }

        /* - ACCREDITATIONS - */
        .accreditations {
            margin-bottom: 2.5rem;

            [class*="col-"]  {
                display: flex;
                align-content: space-between;

                &:first-child {
                    img {
                        flex: 0 0 calc((100% / 1) - (20px * (1 - 1) / 1));
                    }
                }

                &:last-child  {
                    flex-wrap: wrap;
                    align-items: center;

                    img  {
                        flex: 0 0 calc((100% / 4) - (20px * (4 - 1) / 4));

                        &:nth-child(4n)  {
                            margin-right: 0;
                        }

                        &:last-child  {
                            flex: 0 0 calc((100% / 2) - (20px * (2 - 1) / 2));
                            margin-right: 0;
                        }
                    }
                }

                img {
                    display: inline-flex;
                    margin-right: 20px;
                    width: 0;
                }

                .align-right:has(.compcare-logo) {
                    text-align: right !important;
                }
            }
        }
    }

    /* CONTACT */
    #contactDetails {
        a {
            color: #425563;
        }

        /* - SOCIAL ICONS - */
        .social-icons {
            a {
                img {
                    &:hover {
                        border-radius: 50px;
                    }
                }

                &:focus {
                    img {
                        border-radius: 50px;
                    }
                }
            }
        }
    }

    /* COPYRIGHT */
    #copyrightInfo {
        background-color: #e8eced;
        color: #231f20;

        a {
            color: #425563;
        }

        /* - SITE POLICIES - */
        .site-polices {
            a {
                margin: 5px;
            }
        }

        /* - COPYRIGHT TEXT - */
        .copyright {
            p {
                margin-top: 1.5rem;
            }
        }
    }
}

/* FOOTER MEDIA QUERIES */
@media screen and (max-width: 991px) {
    footer {
        .align-right {
            text-align: left;
        }

        /* - QUICKLINKS AND ACCREDITATIONS - */
        #quickLinks-Accreds {
            /* -- QUICKLINKS -- */
            .quicklinks {
                flex-direction: row;
                flex-wrap: wrap;

                a {
                    display: inline-flex;
                    flex: 0 0 calc(100% / 4);
                }
            }
        }

        /* - COPYRIGHT - */
        #copyrightInfo {
            .site-polices {
                a {
                    display: block;
                    margin: 10px 0;
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    footer {
        /* - QUICKLINKS AND ACCREDITATIONS - */
        #quickLinks-Accreds {
            /* -- QUICKLINKS -- */
            .quicklinks a {
                flex: 0 0 calc(100% / 2);
            }

            /* -- ACCREDITATIONS -- */
            .accreditations {
                .col-2 {
                    width: 33.33333333%;
                }

                .col-10 {
                    width: 66.66666667%;
                }

                [class*="col"] {
                    &:last-child {
                        img {
                            flex: 0 0 calc((100% / 2) - (20px * (2 - 1) / 2));

                            &:nth-child(2n) {
                                margin-right: 0;
                            }

                            &:last-child {
                                flex: 0 0 calc((100% / 1) - (20px * (1 - 1) / 1));
                            }
                        }
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 576px) {
    footer {
        /* - QUICKLINKS AND ACCREDITATIONS-  */
        #quickLinks-Accreds {
            /* -- QUICKLINKS -- */
            .quicklinks {
                a {
                    flex: 0 0 calc(100% / 1);
                }
            }

            /* -- ACCREDITATIONS -- */
            .accreditations {
                [class*="col"] {
                    width: 50%;
                    margin: 0 auto;

                    &:last-child {
                        img {
                            flex: 0 0 calc((100% / 1) - (20px * (1 - 1) / 1));
                            margin-right: 0;
                        }
                    }
                }

                img {
                    margin-bottom: 1.5rem;
                }
            }
        }
    }
}