/*-----------------------------------------*/
/*--- STRUCTURE                     -------*/
/*--- GLOBAL STYLES                 -------*/
/*--- HEADER                        -------*/
/*--- NAVIGATION                    -------*/
/*--- PAGE BANNER                   -------*/
/*--- 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;
    letter-spacing: 0;
    line-height: calc(1.6rem * 1.5);
    word-spacing: calc(1.6rem * 0.16);
}
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:1px solid #E6007D;
    opacity: 1;
}

/* TYPOGRAPHY */
h1 {
    font-family: "Indie Flower", Arial, sans-serif;
    font-size: 4.8rem;
    line-height: calc(4.8rem * 1.5);
    word-spacing: calc(4.8rem * 0.16);
    font-weight: bold;
    text-transform: uppercase;
}
h2 {
    font-size: 2.4rem;
    line-height: calc(2.4rem * 1.5);
    word-spacing: calc(2.4rem * 0.16);
    font-weight: bold;
    margin: 10px 0 5px 0;
}
h3{
    font-size: 2.2rem;
    line-height: calc(2.2rem * 1.5);
    word-spacing: calc(2.2rem * 0.16);
    font-weight: bold;
    margin: 10px 0 5px 0;
}
h4{
    font-size: 2.2rem;
    line-height: calc(2.2rem * 1.5);
    word-spacing: calc(2.2rem * 0.16);
    font-weight: bold;
    margin: 10px 0 5px 0;
}
h5{
    font-size: 2rem;
    line-height: calc(2rem * 1.5);
    word-spacing: calc(2rem * 0.16);
    font-weight: bold;
    margin: 10px 0 0 0;
}
h6{
    font-size: 1.8rem;
    line-height: calc(1.8rem * 1.5);
    word-spacing: calc(1.8rem * 0.16);
    font-weight: bold;
    margin: 10px 0 0 0;
}
.largeText {
    font-size: 1.8rem;
    line-height: calc(1.8rem * 1.5);
    word-spacing: calc(1.8rem * 0.16);
    margin-bottom: 1.5rem;
}
p, ul, ol {
    margin-bottom: 1.5rem;
}
strong, b {
    font-weight: bold;
}

/* LINKS */
a {
    text-decoration: underline;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    word-spacing: inherit;

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

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

    &:focus-visible {
        outline: 0;
    }

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

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

    &:hover, &:focus {
        img {
            outline: 3px solid #ffb81C;
        }
    }
}
main {
    a {
        color: #231F20;
        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, .sexualHealth-btn {
    position: relative;
    display: inline-block;
    width: auto;
    cursor: pointer;
    padding: 8px 12px;
    border: 0;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    background-color: #E6007D;
    color: #fff;
    margin-bottom: 1.5rem;

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

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

/* 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: 1px solid #231f20;
            }
        }

        th {
            font-weight: bold;
        }

        thead {
            th {
                background-color: #D80D45;
                color: #fff;
            }
        }
    }

    /* - TABLE CAPTION - */
    figcaption {
        font-size: 1.4rem;
        line-height: calc(1.4rem * 1.5);
        word-spacing: calc(1.4rem * 0.16);
        color: #28314E;
    }
}

/* 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: 10px;
            cursor: text;
            font-weight: bold;
        }

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

            &:hover {
                box-shadow: none;
            }

            &:focus {
                outline: 3px 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: 1.6rem;
                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 #231f20;
                cursor: pointer;

                &:checked {
                    background-color: #E6007D !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: 5px;
            }

            &::file-selector-button {
                position: relative;
                display: inline-block;
                width: auto;
                cursor: pointer;
                padding: 12px;
                border: 0;
                border-radius: 5px;
                outline: 0;
                background-color: #E6007D;
                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: #E6007D;
                color: #fff;
                border: none;
                border-radius: 5px;
                padding: 12px;

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

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

            &[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: #28314E;
        font-size: 1.4rem;
        line-height: calc(1.4rem * 1.5);
        word-spacing: calc(1.4rem * 0.16);
    }
}

/* 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 {
    padding: 20px 0;

    .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 {
        .logo {
            margin-bottom: 20px;

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

/*--- NAVIGATION ---*/
nav {
    background-color: #fff;
    margin-top: 1.5rem;

    .navbar {
        padding-top: 0;
        padding-bottom: 0;
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);

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

                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;
                        font-family: "Indie Flower", Arial, sans-serif;
                        font-size: 2rem;
                        line-height: calc(2rem * 1.5);
                        word-spacing: calc(2rem * 0.16);
                        font-weight: bold;
                        text-transform: uppercase;
                        color: #231f20;
                        padding-top: 0 !important;
                        padding-bottom: 0 !important;
                        cursor: pointer;

                        &:hover {
                            text-decoration: underline;
                            box-shadow: none !important;
                            outline: none;
                        }

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

                    &.active > a, &:active > a {
                        text-decoration: underline;
                    }
                }
            }
        }

        /* TOGGLE BUTTON */
        .navbar-toggler {
            width: 100%;
            border-color: transparent !important;
            background-color: #28314E;
            color: #fff;
            padding: 12px 20px;
            text-align: center;
            font-family: "Indie Flower", Arial, sans-serif;
            font-size: 2rem;
            line-height: calc(2rem * 1.5);
            word-spacing: calc(2rem * 0.16);
            font-weight: bold;
            text-transform: uppercase;
            outline: none;
            box-shadow: none;
            border-radius: 5px;
            margin-bottom: 0;

            &:hover {
                text-decoration: underline;
            }

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

            &[aria-expanded="true"] {
                background-color: #ffb81C;
                color: #231f20;
                border-radius: 5px 5px 0 0;
            }

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

            &:not(.collapsed) {
                .close-icon {
                    display: inline;
                }

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

/* NAVIGATION MEDIA QUERIES */
@media screen and (max-width: 991px) {
    nav {
        .navbar {
            .navbar-collapse {
                .navbar-nav {
                    margin: 0;
                    text-align: center;

                    li.nav-item {
                        a {
                            color: #fff;
                            line-height: 4.5rem;
                            padding-right: 12px;
                            padding-left: 12px;
                        }

                        &:nth-child(odd) {
                            background-color: #28314E;
                        }

                        &:nth-child(even) {
                            background-color: #333B57;
                        }
                    }
                }
            }
        }
    }
}

/*--- PAGE BANNER ---*/
.banner {
    display: flex;
    background-color: #D80D45;
    color: #fff;
    width: 100%;
    margin-bottom: 20px;

    .page-title, .banner-image {
        flex: 0 0 calc((100% / 2));
    }

    .page-title {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .banner-image {
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
}

/* BANNER MEDIA QUERIES */
@media screen and (max-width: 767px) {
    .banner {
        display: block;

        .banner-image {
            display: none;
        }
    }
}

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

/* DETAILS */
details {
    margin-bottom: 1.5rem;

    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 #E6007D;

    p, li {
        font-family: "Indie Flower", Arial, sans-serif;
        font-size: 2rem;
        line-height: calc(2rem * 1.5);
        word-spacing: calc(2rem * 0.16);
        font-weight: bold;
    }

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

/* SECTION MENU */
.section-menu {
    nav {
        margin-top: 0;

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

            li {
                a {
                    display: inline-block;
                    color: #231f20;
                    font-family: "Indie Flower", Arial, sans-serif;
                    font-size: 1.8rem;
                    line-height: calc(1.8rem * 1.5);
                    word-spacing: calc(1.8rem * 0.16);
                    font-weight: bold;
                    text-transform: uppercase;
                    text-decoration: none;
                    margin: 5px 0;

                    &:hover {
                        text-decoration: underline;
                    }

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

                &.active {
                    text-decoration: underline;
                }
            }
        }
    }
}

/* - SECTION MENU MEDIA QUERIES - */
@media screen and (max-width: 991px) {
    [class*="col-"]:has(.section-menu) {
        order: 1;
    }
}

/* CARD BUTTON GRID */
.cardButtonGrid {
    display: none;
    background-color: #E6E7E9;
    margin-bottom: 1.5rem;

    .cardButtons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        list-style: none;
        width: 100%;
        padding: 0 10px;

        .default {
            display: block;
            width: 100%;

            h2, h3, h4 {
                margin: 0;
            }

            .ce-image .ce-gallery figure {
                align-items: center;
            }
        }

        [class*="-custom_card"] {
            display: inline-flex;
            flex: 0 0 calc((100% / 3) - (8px*(3 - 1) / 3));
            margin-right: 8px;
            margin-top: 10px;
            margin-bottom: 10px;

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

            a {
                width: 100%;
                align-items: center;
                text-decoration: none;

                &:hover, &:focus {
                    outline: 4px solid #ffb81C;

                    img {
                        outline: none;
                    }
                }

                &:hover {
                    h2, h3, h4 {
                        text-decoration: underline;
                    }
                }

                [data-label="header"] {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    flex: 0 50%;
                    text-align: center;
                    height: 100%;
                    padding: 20px;
                    word-break: break-word;

                    * {
                        font-family: "Indie Flower", Arial, sans-serif;
                        font-size: 2rem;
                        line-height: calc(2rem * 1.5);
                        word-spacing: calc(2rem * 0.16);
                        font-weight: bold;
                        text-transform: uppercase;
                        margin: 0;
                    }
                }

                .ce-image {
                    display: flex;
                    flex: 0 50%;
                    align-items: center;
                    height: 100%;

                    .ce-gallery{
                        margin: 0;
                    }
                }
            }
        }
    }
}

/* -- CARD COLOURS --*/
.red-custom_card {
    [data-label="header"] {
        background-color: #C9152A;
        color: #fff;
    }
    .ce-image {
        background-color: #E48994;
    }
}
.brightRed-custom_card {
    [data-label="header"] {
        background-color: #D31419;
        color: #fff;
    }
    .ce-image {
        background-color: #de9093;
    }
}
.pink-custom_card {
    [data-label="header"] {
        background-color: #C8217B;
        color: #fff;
    }
    .ce-image {
        background-color: #E390BD;
    }
}
.fuchsia-custom_card {
    [data-label="header"] {
        background-color: #DB005B;
        color: #fff;
    }
    .ce-image {
        background-color: #e188ae;
    }
}
.purple-custom_card {
    [data-label="header"] {
        background-color: #33006F;
        color: #fff;
    }
    .ce-image {
        background-color: #997FB7;
    }
}
.lilac-custom_card {
    [data-label="header"] {
        background-color: #975680;
        color: #fff;
    }
    .ce-image {
        background-color: #c4aabd;
    }
}
.green-custom_card {
    [data-label="header"] {
        background-color: #006747;
        color: #fff;
    }
    .ce-image {
        background-color: #B6CEA0;
    }
}
.navy-custom_card {
    [data-label="header"] {
        background-color: #28314E;
        color: #fff;
    }
    .ce-image {
        background-color: #485069;
    }
}
.blue-custom_card {
    [data-label="header"] {
        background-color: #233A87;
        color: #fff;
    }
    .ce-image {
        background-color: #7F97C3;
    }
}
.aqua-custom_card {
    [data-label="header"] {
        background-color: #4294D7;
        color: #231f20;
    }
    .ce-image {
        background-color: #95C0E4;
    }
}
.orange-custom_card {
    [data-label="header"] {
        background-color: #F47935;
        color: #231f20;
    }
    .ce-image {
        background-color: #F9BC9A;
    }
}
.tan-custom_card {
    [data-label="header"] {
        background-color: #FAA026;
        color: #231f20;
    }
    .ce-image {
        background-color: #FCCF92;
    }
}
.yellow-custom_card {
    [data-label="header"] {
        background-color: #FAC51D;
        color: #231f20;
    }
    .ce-image {
        background-color: #FCE28E;
    }
}

/* - CARD BUTTON GRID MEDIA QUERIES - */
@media screen and (max-width: 991px) {
    .cardButtonGrid {
        .cardButtons {
            [class*="-custom_card"] {
                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) {
    .cardButtonGrid {
        .cardButtons {
            [class*="-custom_card"] {
                flex: 0 0 100%;
                margin-right: 0;

                a {
                    [data-label="header"] {
                        padding: 10px;
                    }
                }
            }
        }
    }
}

/* FRAMES */
/* - COLOURED CONTENT - */
.colouredContent {
    text-align: center;
    margin-bottom: 1.5rem;

    .frame {
        padding: 20px;

        h2, h3, h4 {
            margin: 0;
        }

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

.grid-container:has(.cardButtonGrid) {
    .colouredContent {
        margin-bottom: 0;
    }
}

/* -- CONTENT COLOURS --*/
.colouredContent {
    .default {
        background-color: #D80D45;

        * {
            color: #fff!important;
        }
    }

    .navy-custom_content {
        background-color: #28314E;

        * {
            color: #fff!important;
        }
    }
}

/*--- FOOTER ---*/
footer {
    background-color:#28314E;
    color: #fff;
    padding: 20px;

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

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

    .contact-details, .created-by {
        p {
            &:first-child {
                margin-bottom: 0;
            }
        }
    }

    .site-polices {
        a {
            margin: 5px;

            &:first-child {
                margin-left: 0;
            }
        }
    }

    .social-icons {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

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

        .site-polices {
            margin-bottom: 1.5rem;

            a {
                display: block;
                margin: 0 0 10px;
            }

            span {
                display: none;
            }
        }
    }
}