@font-face {
    font-family: "LexendDeca-ExtraLight";
    src:
        url(../fonts/LexendDeca-ExtraLight.woff2) format("woff2"),
        url(../fonts/LexendDeca-ExtraLight.ttf) format("ttf"),
        url(../fonts/LexendDeca-ExtraLight.otf) format("otf");
}
@font-face {
    font-family: "LexendDeca-Regular";
    src:
        url(../fonts/LexendDeca-Regular.woff2) format("woff2"),
        url(../fonts/LexendDeca-Regular.ttf) format("ttf"),
        url(../fonts/LexendDeca-Regular.otf) format("otf");
}
@font-face {
    font-family: "Domine-Regular";
    src:
        url(../fonts/Domine-Regular.woff2) format("woff2"),
        url(../fonts/Domine-Regular.ttf) format("ttf"),
        url(../fonts/Domine-Regular.otf) format("otf");
}
:root {
    --pale-blue: #6679bb;
    --dark-blue: #292e6c;
    --green: #c1c822;
    --red: #eb1c1c;
    --magenta: #951b81;
    --pink: #d77da2;
}
body,
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: "LexendDeca-ExtraLight", "Century Gothic", sans-serif;
}
header,
footer {
    width: 100%;
}
footer {
    display: block;
    border-top: 5px solid var(--green);
    background: var(--dark-blue);
    min-height: 100px;
    padding: 10px;
}
footer > * {
    flex: 1 0 auto;
}
footer a {
    color: white;
}
footer a:hover {
    color: var(--green);
}
h1 {
    position: relative;
    font-size: 3rem;
    font-weight: normal;
    font-family: "Domine-Regular", Georgia, serif;
    padding-bottom: 0.5rem;
}
h2,
h3,
h4 {
    font-family: "LexendDeca-Regular";
}
.title h2 {
    color: var(--magenta);
    font-family: "Domine-Regular", Georgia, serif;
    font-size: calc(1.325rem + 0.9vw);
    position: relative;
    margin-bottom: 10px;
    text-align: center;
    padding-bottom: 0.5rem;
    line-height: 1.2;
}
h1::after,
.decorator::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--pink);
}
.space-around {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
p,
li {
    font-size: 1.1rem;
}
.small {
    font-size: 0.75rem;
}
a {
    text-decoration: none;
    color: var(--pale-blue);
    font-weight: bold;
    font-family: "LexendDeca-Regular";
}
a:hover {
    color: var(--dark-blue);
    transition: 0.3s;
}
main {
    display: grid;
    grid-template-columns: 10% 80% 10%;
}
main > * {
    grid-column: 2;
}
section {
    margin-top: 20px;
}
.page-header {
    background: var(--dark-blue);
    color: white;
    grid-column: span 3;
    padding: 0 10%;
    min-height: 350px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right 50px center;
    display: flex;
    justify-content: space-between;
}
.page-header > * {
    margin: 2rem 0;
}
.page-header h1 {
    margin-top: 3rem;
    position: relative;
}
.page-header a {
    color: inherit;
}
.page-header .left {
    flex: 0 1 45%;
}
.page-header .right {
    align-content: center;
    flex: 0 1 45%;
}
.page-header img {
    width: 100%;
    max-height: fit-content;
}
b,
strong {
    font-family: "LexendDeca-Regular";
}
.foi > a > h2 {
    color: var(--magenta);
    font-size: 2rem;
    margin: 0.5rem 0;
}
.foi > a > strong {
    color: var(--dark-blue);
    font-size: 0.75rem;
}
.foi > a > :last-child {
    color: var(--magenta);
    font-size: 1rem;
    font-family: "LexendDeca-ExtraLight";
    margin-top: 1.5rem;
}

/*
    Accessible class for headings, links or any UI elements with no screen readable text
    (eg. the search form uses this for software readable label)
*/
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}
/* *** */

.header-top {
    display: flex;
    flex-wrap: wrap;
    justify-items: center;
    align-items: center;
    padding: 1em 0;
    background-color: var(--dark-blue);
}
.header-top > * {
    flex: 1 1 auto;
}
.search {
    display: flex;
    align-items: center;
    border-radius: 5px;
    font-weight: bold;
}
.search input {
    color: #666;
    border: 1px solid #ccc;
    width: 200px;
    padding: 8px;
    font-size: 1rem;
    line-height: 1.5;
}
.search button {
    font-size: 1.05em;
    height: 1.5;
    background-color: #b192c4;
    color: black;
    border: none;
    padding: 11.5px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.2s ease;
}
.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}
.search button:hover {
    background-color: #4d64b2;
    transform: scale(1.05);
}
.search-button:focus {
    outline: none;
}
.header-top form {
    float: right;
    margin-right: 10%;
}
.logo-container {
    float: left;
    margin-left: 10%;
}
.logo-container img {
    width: 200px;
}
.banner {
    position: relative;
    overflow: hidden;
    padding: 17px 25px 17px 25px;
    background: var(--green);
    color: var(--dark-blue);
}
/* Base: offscreen right, hidden */
.banner p {
    margin: 0;
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}
/* Active: visible and in place */
.banner p.active {
    position: relative; /* defines banner height */
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.title {
    margin-bottom: 1rem;
}
.richtext-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.richtext-image.left {
    float: left;
    max-width: 200px;
    height: auto;
    max-height: 100%;
    margin-right: 20px;
}
.richtext-image.right,
.title img {
    float: right;
    max-width: 200px;
    height: auto;
    max-height: 100%;
    margin-left: 20px;
}
.right:after,
.left:after,
.title img {
    content: "";
    clear: both;
    display: table;
}
.nav {
    font-weight: 600;
    background-color: var(--dark-blue);
    margin: 0;
    padding: 15px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--pale-blue);
}
.nav ul,
.nav ol {
    list-style: none;
}
.nav li,
.nav > .dropdown-wrapper {
    position: relative;
    display: block;
    list-style-type: none;
    font-size: 1.1rem;
    text-wrap: auto;
}
.nav a {
    text-decoration: none;
    color: white;
}
.dropdown-menu {
    z-index: 1000;
    display: none;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    margin-top: 15px;
    padding: 0;
    background-color: var(--pale-blue);
    text-align: center;
    border-radius: 2px;
    min-height: 30px;
    min-width: fit-content;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}
.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
.dropdown-menu li {
    cursor: pointer;
}
.dropdown-menu li:first-child {
    margin-top: 8px;
}
.dropdown-menu li:last-child {
    margin-bottom: 8px;
}
.dropdown-menu li a {
    padding: 5px 20px;
    display: block;
    cursor: pointer;
}
.dropdown-menu.open {
    display: block;
}

.dropdown-menu li a:hover {
    background-color: white;
    color: var(--pale-blue);
    transition: 0.3s ease;
}
#understand-btn {
    width: auto;
    background-color: white;
    padding: 6 12px;
    border-radius: 6px;
    color: black;
}
#exit-btn {
    display: flex;
    padding: 0 4px;
}
#exit-btn span {
    align-content: center;
}
.exit-btn-x {
    font-weight: 100;
    font-size: 3rem;
}
.inner {
    margin: 0;
    padding: 0;
}
.inner img {
    margin-bottom: 20px;
}
.footer-contacts {
    color: white;
    width: 33%;
}
.footer-contacts h3 {
    margin-top: 0;
}
.footer-contacts p a {
    font-family: "LexendDeca-ExtraLight";
}
.footer-upper {
    display: flex;

    margin-top: 30px;
    justify-content: space-between;
}
.footer-upper .logo-container {
    margin-left: 0;
    min-width: 40%;
    text-align: center;
}
.misc {
    width: 33%;
    margin-top: 23px;
}
.misc ul {
    line-height: 1.7;
}
.misc ul li a {
    font-family: "LexendDeca-ExtraLight";
}
.social ul {
    display: flex;
    gap: 70px;
}
.social {
    width: 33%;
}
.footer ul {
    display: flex;
    gap: 15%;
}
.footer {
    justify-items: space-between;

    width: 33%;
}
.footer ul li a {
    font-family: "LexendDeca-ExtraLight";
    text-wrap-mode: nowrap;
}
.placeholder-left {
    width: 40%;
    color: white;
    align-content: center;
    text-align: center;
}
.placeholder-right {
    width: 33%;
}
.footer-lower {
    display: flex;
    margin-top: 40px;
}
.footer-lower a {
    margin-right: 30px;
}
#screen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: block;
}
.hide-overlay {
    display: none !important;
}
.floating-box {
    position: fixed;
    right: 0;
    top: 5%;
    width: 300px;
    background-color: var(--red);
    color: white;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.floating-text {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.floating-box button {
    width: 100%;
    padding: 8px;
    border: none;
    background: var(--red);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.floating-box.compact {
    width: 150px;
    padding: 6px 8px;
    background: var(--red);
    box-shadow: none;
}

.floating-box.compact a {
    padding: 12px 16px;
    color: white;
}

/* image, video and tile sections */
.tile-container {
    display: grid;
    list-style: none;
    gap: 10px;
    padding: 0;
    justify-content: space-around;
    margin-bottom: 15px;
}
.tile-container--two {
    grid-template-columns: repeat(2, 1fr);
}

.tile-container--three {
    grid-template-columns: repeat(3, 1fr);
}
.tile {
    background: var(--dark-blue);
    color: white;
}
.small-tile-section .tile a > * {
    margin: 0;
}
.small-tile-section .tile img {
    bottom: 10px;
    right: 10px;
    position: absolute;
}
.small-tile img {
    position: absolute;
    right: 5%;
    bottom: 5%;
    max-width: 100px;
}
.large-tile {
    min-height: 300px;
}
.large-tile .richtext {
    margin-bottom: 120px;
}
.large-tile > img {
    position: absolute;
    right: 20px;
    bottom: 20px;
    max-width: 100px !important;
}
.small-tile-section .tile {
    display: table;
    padding: 10px;
    margin: 10px;
    height: 250px;
    width: 250px;
    position: relative;
    flex-grow: 0;
}
.small-tile-section .tile a {
    position: relative;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding: 20px;
    font-family: "LexendDeca-Regular";
}
.small-tile-section .tile-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.video-section .tile-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: flex-end;
}
.large-tile-section .decorator::after,
.small-tile-section .decorator::after {
    display: none;
}
.large-tile-section .tile,
.video-section .tile .tile {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
}
.tile a {
    text-decoration: underline;
    color: white;
    margin: 0;
    font-weight: normal;
    font-family: "LexendDeca-Regular";
}
.responsive-object {
    position: relative;
}
.responsive-object iframe,
.responsive-object object,
.responsive-object embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video h2 {
    min-height: 80px;
    width: 100%;
    text-wrap: wrap;
}

.flat-menu ul {
    list-style: none;
    color: white;
    padding: 0;
}

/* blog posts */
.post-list a,
.news a {
    text-decoration: none;
    font-family: "Calibri", sans-serif;
    color: black;
    font-weight: normal;
}
.flex {
    display: grid;
    gap: 20px;
    justify-content: space-around;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.post-list .flex .posts figure,
.news .flex .posts figure {
    margin: 0;
}
figure img {
    width: 100%;
    height: auto;
}

/* admin selectable styles */
main > .grey-background,
main > .teal-background,
main > .pale-blue-background,
main > .magenta-background,
main > .lilac-background,
main > .pink-background,
main > .dark-blue-background {
    grid-column: 1 / span 3;
    padding-left: 10%;
    padding-right: 10%;
}
.grey-background {
    background: rgb(236, 236, 237);
}
.magenta-background {
    color: white;
    background: var(--magenta);
}
.lilac-background {
    background: #cbb4d8;
    color: var(--dark-blue);
}
.pink-background {
    color: white;
    background: var(--pink);
}
.teal-background {
    color: white;
    background: #058b8e;
}
.pale-blue-background {
    color: white;
    background: var(--pale-blue);
}
.dark-blue-background {
    color: white;
    background: var(--dark-blue);
}
.btn {
    font-size: 0.85em;
    background: var(--pale-blue);
    color: white;
    border: 1px solid var(--pale-blue);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
}
.pale-blue-background .btn {
    background: white;
    color: var(--pale-blue);
}
.magenta-background .btn {
    color: var(--dark-blue);
    background: white;
    border: 1px solid white;
    border-radius: 6px;
    padding: "0.3em 0.65em";
    font-weight: 600;
}
.dark-blue-background .btn {
    background: white;
    color: var(--dark-blue);
}
.pale-blue-background .title > *,
.teal-background .title > *,
.magenta-background .title > *,
.pink-background .title > *,
.lilac-background .title > *,
.dark-blue-background .title > * {
    color: inherit;
    text-align: left;
}
.pale-blue-background h2:after,
.teal-background h2:after,
.magenta-background h2:after,
.pink-background h2:after,
.lilac-background h2:after,
.dark-blue-background h2:after {
    display: none;
}
.steps .inner {
    border: solid var(--magenta) 3px;
    border-radius: 20px;
    padding: 20px;
}
.steps h2 {
    margin-bottom: 1rem;
    color: var(--magenta);
    text-align: left;
}
.steps h2::after {
    display: none;
}
.steps h3 {
    color: var(--magenta);
    margin-bottom: 0.5rem;
}
:nth-last-child(1 of .steps) {
    margin-bottom: 100px;
}
:nth-last-child(1 of .steps) .inner {
    border: solid #cbb5d8 3px;
}
:nth-last-child(1 of .steps) h3,
:nth-child(1 of .steps) h3,
:nth-last-child(1 of .steps) h2,
:nth-child(1 of .steps) h2 {
    color: #657abb;
}
:nth-child(1 of .steps) .inner {
    border: solid #cbb5d8 3px;
}
.teal-background a,
.pale-blue-background a {
    color: inherit;
}
/* button style links */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

.rotating-gallery {
    position: relative;
    width: 100%;
    min-height: 450px;
}

.rotating-slides {
    display: grid;
    gap: 1rem;
}
.rotating-slides:last-child {
    position: absolute;
}
.rotating-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 3rem;
  cursor: pointer;
}

.rotating-arrow--prev {
  left: -3rem;
}

.rotating-arrow--next {
  right: -3rem;
}

.rotating-arrow.is-disabled {
  opacity: 0;
  pointer-events: none;
}
/* Responsive columns */
@media (max-width: 639px) {
    .rotating-slides {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .rotating-slides {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .rotating-slides {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Slides */
.rotating-slide {
    display: none;
    pointer-events: auto;
    margin-bottom: 1rem;
    padding: 1rem;
}

.rotating-slide.active {
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    transform: translateY(0);
}
.rotating-slide.active p:last-of-type {
    margin-top: auto;
}
/* Controls */
.rotating-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rotating-dot {
    width: 12px;
    height: 16px;
    border-radius: 50%;
    border: none;
    border: 2px solid var(--pale-blue);
    background: transparent;
    cursor: pointer;
}

.rotating-dot:focus {
    outline: 2px solid var(--pale-blue);
    outline-offset: 2px;
}

.rotating-dot.active {
    background: var(--pale-blue);
}

/* responsive media queries */
@media only screen and (min-width: 1200px) {
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    h4 {
        font-size: 1.5rem;
    }
    .misc {
        margin-top: 49px;
    }
}
@media only screen and (max-width: 650px) {
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    .header-top form {
        margin-right: 0;
    }
    .logo-container {
        margin-left: 0;
    }
    .page-header .left {
        flex: 1;
    }
    .page-header .right {
        display: none;
    }
}
@media only screen and (max-width: 450px) {
    .nav {
        flex-direction: column;
        gap: 10px;
    }
    .video-section{
        padding:0 !important;
    }
    
}
@media only screen and (max-width: 340px) {
    main > section,
    main > div,
    main .page-header,
    footer,
    header > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    main > section,
    main > div {
        grid-column: span 3;
    }
    .responsive-object iframe,
    .responsive-object object,
    .responsive-object embed {
        max-width: 300px;
    }
}
@media only screen and (max-width: 770px) {
    .footer-upper .logo-container {
        width: 100%;
    }
    .footer-contacts {
        width: 100%;
        justify-items: center;
    }
    .footer {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-self: center;
        justify-content: center;
    }
    .footer ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .placeholder-left {
        width: 100%;
        justify-content: center;
    }
    .placeholder-right {
        width: 0;
    }
    .footer ul li {
        margin: 5px;
    }
    .social {
        width: 100%;
        justify-items: center;
    }
    .misc {
        width: 100%;
        text-align: center;
        justify-items: center;
    }
    .footer-lower {
        display: block;
        text-align: center;
    }
    .footer-upper {
        display: block;
    }
    .tile-container--two,
    .tile-container--three {
        grid-template-columns: 1fr;
    }
}
/* Accessbility - respect reduced motion browser setting */
@media (prefers-reduced-motion: reduce) {
    .banner p {
        transition: none;
        transform: none;
        position: relative;
    }
}
