/* ====================================================
    Base
    - how it should look no matter where on the page
    - applied directly to element selectors
==================================================== */

:root {
    --bs-spacer: 1rem;
    @media (min-width: 1200px) {
        --bs-spacer: 1.5rem;
    }
    --bs-spacer-1: calc(var(--bs-spacer) * 0.5);
    --bs-spacer-2: calc(var(--bs-spacer));
    --bs-spacer-3: calc(var(--bs-spacer) * 1.5);
    --bs-spacer-4: calc(var(--bs-spacer) * 2.25);
    --bs-spacer-5: calc(var(--bs-spacer) * 3);
    --bs-spacer-6: calc(var(--bs-spacer) * 4.5);


}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    @media (min-width: 1200px) {
        scroll-padding-top: 93px;
    }
}

/* ====================================================
    Layout
    - divides page into major components
==================================================== */

/* Header
--------------------------------------------- */

header.header {
    position: relative;
    z-index: 11;
    background-color: transparent;
    /* Navigation Topbar */
    & nav.topbar {
        background: white;
        min-height: 50px;
        display: flex;
        align-items: center;
        @media (min-width: 1200px) {
            min-height: 60px;
        }
        & .container-fluid {
            display: flex;
            justify-content: end;
        }
    }
    /* Main Navigation */
    & nav.navbar {
        position: fixed;
        top: 50px;
        width: 100%;
        z-index: 100;
        @media (min-width: 1200px) {
            top: 60px;
        }
        & .logo, 
        & button.btn {
            z-index: 1;
        }
        & ul.navbar-nav {
            display: none;
            flex-direction: row;
            @media (min-width: 1200px) {
                display: flex;
                align-self: center;
            }
            @media (min-width: 1400px) {
                align-self: flex-start;
            }
            & li.nav-item {
                display: none;
                @media (min-width: 1200px) {
                    display: list-item;
                }
                margin-bottom: 0;
            }
            & li {
                align-self: center;
            }
            & li:not(:nth-last-of-type(1)) {
                margin-right: 3rem;
            }
            & button.btn {
                position: relative;
                padding: 0;
                border-radius: 0;
            }
        }
        & #mobile-nav-btn {
            padding: 0;
            @media (min-width: 1200px) {
                display: none;
            }
        }
    }
    #offcanvasNavbar {
        .navbar-nav {
            li.menu-separator:first-child hr {
                margin-top: 0;
            }
        }
        .offcanvas-body {
            padding-top: 0;
        }
        .collapse-toggle-split {
            font-size: 1.6rem;
            line-height: 1;
            @media (min-width: 1200px) {
                font-size: 2rem;
            }
            &:after {
                content: none;
            }
            & .bi::before {
                transition: rotate 250ms ease;
            }
            &:not(.collapsed) .bi::before {
                rotate: 45deg;
            }
        }
        .submenu {
            .list-group {
                padding-block: 0.5rem;
                border-radius: 0;
                list-style: none;
                .list-group-item {
                    padding: 0.5rem 1rem;
                    &:not(.active) {
                        background-color: var(--bs-gray-200);
                    }
                }
            }
        }
    }
}

header:not(.hero-header) {
    & .brand-logo-negative {
        display: none;
    }
}

header.hero-header, header.header.text-white {
    & nav.navbar li > a {
        color: white;
    }
    & button.collapsed {
        color: white;
    }   
}

header.header.text-white {
    & .brand-logo-positive {
        display: none;
    }
    & .brand-logo-negative {
        display: block;
    }
}    

/* Hero Header Not Collapsed */
/* Brand Logo White Block, Brand Logo Black None */
.hero-header:not(.collapsed) {
    & .brand-logo-positive {
        display: none;
    }
}
/* Hero Header Collapsed */
/* Brand Logo White None, Brand Logo Black Black */
.hero-header.collapsed {
    & .brand-logo-positive {
        display: block;
    }
    & .brand-logo-negative {
        display: none;
    }
}

@media (min-width: 1200px) {
    .hero-header.collapsed {
        & .brand-logo-positive {
            display: none;
        }
        & .brand-logo-negative {
            display: block;
        }
    }       
}

/* Scrolled Header */

.scrolled header.header, 
.scrolled header.header.hero-header {
    .navbar {
        top: 0;
        background-color: white;
        transition: top .25s ease, background-color .25s ease;
    }
    & .logo {
        width: 2rem;
        transition: width .25s ease;
        @media (min-width: 1200px) {
            width: 3rem;
        }
    }
    & .brand-logo-negative {
        display: none;
    }
    & .brand-logo-positive {
        display: block;
    }
    & nav.navbar {
        & ul.navbar-nav {
            align-self: center;
            & li {
                & a, button.btn {
                    color: black;
                }
            }
        }
    }
    & button#mobile-nav-btn {
        & svg {
            color: black;
            width: 2rem;
        }
    }
}

.sgp.scrolled header.header, 
.sgp.scrolled header.header.hero-header {
    & .logo {
        width: 3.25rem;
        @media (min-width: 1200px) {
            width: 4.5rem;
        }
    }
}

/* Body
--------------------------------------------- */

body:has(.header:not(.hero-header)) main section.main-section:first-child {
    padding-top: 100px;
    @media (min-width: 1200px) {
        padding-top: 220px;
    }
}
body.sgp:has(.header:not(.hero-header)) main section.main-section:first-child {
    padding-top: 70px;
    @media (min-width: 1200px) {
        padding-top: 140px;
    }
}

/* Main Sections
--------------------------------------------- */

main {
    section.grey-section {
        background: var(--bs-light);
    }
    section.blue-section {
        background: var(--bs-secondary);
    }
    .main-section {
        > div[class*="container"]:first-child,
        > div.frame-type-list:first-child,
        > div.frame-type-onewebfluid_newslist,
        > div.frame-type-onewebfluid_events {
            padding-top: var(--bs-spacer-5);
        }
        > .content-container:first-child {
            > .frame:first-child {
                margin-top: 0 !important;
            }
        }
        padding-bottom: 1px;
    }
}

/* Footer
--------------------------------------------- */

footer {
    position: relative;
    z-index: 1;
    padding: 2rem 0;
    & .footer-left-col {
        @media (max-width: 576px) {
            & h2.h1 {
                font-size: 1.25rem;
            }
        }
    }
    & .footer-mid-col {
        & .row > div:first-child {
            padding-right: 0;
        }
        & ul.footer-links {
            font-weight: 300;
        }
    }
    @media (min-width: 576px) {
        padding: 5rem 0;
    }
    & .footer-right-col {
        @media (min-width: 992px) {
            text-align: right;
        }
        & #footer-brand-logo {
            @media (min-width: 576px) {
                max-width: 8rem;
            }
        }
    }
}

/* ====================================================
    Module
    - reusable, moveable components within layout
==================================================== */

.box-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}


/* Container Fluid
--------------------------------------------- */

.container-fluid {
    max-width: 95vw;
    & .row.container-footer {
        justify-content: center;
        & .btn {
            width: fit-content;
        }
    }
}

@media (min-width: 1680px) {
    .container-fluid {
        max-width: 1600px;
    }
}

/* Bootstrap Buttons
--------------------------------------------- */

.btn {
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
}
@media (hover: hover) {
    a.btn.text-bg-info:hover, a:hover .btn.text-bg-info {
        background-color: #036791 !important;
        border-color: #036791;
    }
}

/* Forms
--------------------------------------------- */

.form-floating > .form-control, 
.form-floating > .form-control-plaintext, 
.form-floating > .form-select {
    height: calc(4rem + calc(var(--bs-border-width) * 2));
    min-height: calc(4rem + calc(var(--bs-border-width) * 2));
}
.form-text {
    width: 100%;
}
textarea.form-control {
    height: 140px !important;
}
.input-group:has(.form-text) {
    .form-select {
        border-radius: var(--bs-border-radius) !important;
    }
}

/* Frame Classes
--------------------------------------------- */

.frame-space-before-extra-small {
    margin-top: var(--bs-spacer-2);
}
.frame-space-before-small {
    margin-top: var(--bs-spacer-3);
}
.frame-space-before-medium {
    margin-top: var(--bs-spacer-4);
}
.frame-space-before-large {
    margin-top: var(--bs-spacer-5);
}
.frame-space-before-extra-large {
    margin-top: var(--bs-spacer-6);
}
.frame-space-after-extra-small {
    margin-bottom: var(--bs-spacer-2);
}
.frame-space-after-small {
    margin-bottom: var(--bs-spacer-3);
}
.frame-space-after-medium {
    margin-bottom: var(--bs-spacer-4);
}
.frame-space-after-large {
    margin-bottom: var(--bs-spacer-5);
}
.frame-space-after-extra-large {
    margin-bottom: var(--bs-spacer-6);
}

/* Brand Logo
--------------------------------------------- */

.navbar .logo {
    width: 3rem;
    transition: none;
    @media (min-width: 576px) {
        width: 4rem;
    }
    @media (min-width: 1200px) {
        width: 6rem;
    }
}
.sgp .navbar .logo {
    width: 5rem;
    transition: none;
    @media (min-width: 576px) {
        width: 7rem;
    }
    @media (min-width: 1200px) {
        width: 8.5rem;
    }
}

/* Scrolled Pixel Anchor
--------------------------------------------- */

#scrolled-pixel-anchor {
    position: absolute;
    width: 1px;
    height: 30px;
    top: 1px;
    left: 0;
}

/* Heading Section
--------------------------------------------- */

.heading-section {
    border-bottom: solid 5px var(--bs-primary);
}

/* Separators
--------------------------------------------- */

.separator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    column-gap: 1.5rem;
    & h2 {
        text-align: center;
        font-size: 1.4rem;
        margin-bottom: 0;
        min-width: fit-content;
        max-width: 100%;
        width: 10vw;
        @media (min-width: 1200px) {
            font-size: 1.75rem;
        }
    }
}

.separator::before, .separator::after {
    content: "";
    display: inline-block;
    height: 4px;
    background-color: #000;
    flex-grow: 1;
}

/* Modal Lightbox Carousel Gallery
--------------------------------------------- */

.modal.lightbox-modal {
    @media (max-width: 1200px) {
        .modal-body {
            display: grid;
            align-items: center;
            padding: 0;
        }
        .carousel {
            .carousel-control-prev, .carousel-control-next {
                align-items: end;
                margin-bottom: 2rem;
            }
        }
    }
    .carousel {
        position: static;
        & .carousel-item {
            display: flex;
            justify-content: center;
            align-items: center;
            & img {
                max-width: 100svw;
                @media (min-width: 1200px) and (max-width: 2560px) {
                    max-width: 75svw;
                }
            }
        }
        & .carousel-item:not(.active) {
            opacity: 0;
            visibility: hidden;
        }
        & .carousel-item.active {
            opacity: 1;
            visibility: visible;
        }
    }
    & .modal-footer {
        justify-content: flex-start;
    }
}

/* Nav & Tabs
--------------------------------------------- */

ul.nav {
    & a.nav-link {
        color: black;
    }
}

/* Hero Slider & Reveal
--------------------------------------------- */

.hero-container {
    .carousel-item {
        height: 100%;
    }
    .carousel-indicators {
        button {
            position: relative;
            height: 16px;
            width: 16px;
            margin-inline: 8px;
            border-radius: 50%;
        }
        button::after {
            content: "";
            width: 40px;
            height: 40px;
            position: absolute;
            inset: -8px;
        }
    }
    .carousel-nav {
        position: absolute;
        bottom: 40px;
        right: 40px;
        button {
            position: static;
            width: 40px;
            height: 40px;
        }
    }
}

/* Hero Image
--------------------------------------------- */
.hero-container,
.hero-inner-wrap {
    height: calc(100svh - 50px);
    min-height: 400px;
    @media (min-width: 1200px) {
        min-height: 600px;
        height: calc(100svh - 60px);
    }
}

.hero-container {
  position: relative;
  & img,
  video {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 100svw;
    object-fit: cover;
    @media (min-width: 1200px) {
      object-position: center;
    }
  }
  .hero-inner-wrap {
    width: 100%;
  }
  .hero_content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
    color: #fff;
    .hero_anchor-btn {
        position: absolute;
        bottom: 0;
        z-index: 2;
        left: 50%;
        transform: translateX(-50%);
        a {
            position: relative;
            width: 100%;
            font-size: 3rem;
            color: white;
            @media (min-width: 1200px) {
                font-size: 4rem;
            }
        }
    }
  }
}
.hero_text-wrapper {
    position: absolute;
    bottom: 100px;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
    .hero-subtitle {
        font-weight: 600;
        text-transform: uppercase;
    }
    @media (min-width: 450px) {
        max-width: 80svw;
    }
    @media (min-width: 992px) {
        width: 50svw;
        max-width: 800px;
    }
    @media (min-width: 1200px) {
        width: 70svw;
    }
    @media (min-width: 1400px) {
        bottom: 120px;
    }
    .lead {
        font-weight: 300;
    }
    .btn {
        margin-bottom: 0.5rem;
    }
    .btn.gallery-btn {
        color: #2A3138;
        background-color: #fff;
        font-size: 1rem;
        letter-spacing: 0.1rem;
        padding: 0.5rem 2.5rem;
        transition: all 0.15s ease-in-out;
    }
    .btn.gallery-btn:hover {
        background-color: #2A3138;
        color: #fff;
    }
}

.hero_text-wrapper:has(.btn) {
    bottom: 65px;
    @media (min-width: 1400px) {
        bottom: clamp(50px,100px,200px);
    }
}

.hero-container.carousel .carousel-item::after,
.hero-container:not(.carousel) .hero-inner-wrap::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero-title {
    color: #fff;
    font-weight: 700;
}

/* News
--------------------------------------------- */

.news-container {
  details.main-cat {
    border-top: 1px solid var(--bs-dark);
    summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 500;
    }
    .form-check {
      margin: 0;
      padding-block: 0.25rem;
    }
    .form-check-label {
        padding-left: 0.5rem;
    }
    .sub-cat {
      padding-left: 1.75rem;
    }
  }
  details.main-cat[open] {
    .bi {
      rotate: 90deg;
    }
  }
  details.main-cat:last-child {
    border-bottom: 1px solid var(--bs-dark);
  }

  #news-list.htmx-swapping {
    opacity: 0;
  }
  .loading {
    position: absolute;
    inset: -2rem -0.5rem;
    opacity: 0;
    transition: opacity 150ms ease;
    z-index: 1;
    background-color: var(--bs-white);
    pointer-events: none;
  }
  .loading.htmx-request {
    pointer-events: all;
    opacity: 1;
  }
}

/* Unordered List of Social Media Icons
--------------------------------------------- */

ul.social-media-icons {
    > li {
        margin-right: 1rem !important;
    }
    & i {
        font-size: 1.8rem;
        @media (min-width: 576px) {
            font-size: 2rem;
        }
    }
    & a:hover i {
        color: var(--bs-secondary);
    }
}

.topbar {
    ul.social-media-icons {
        > li.list-inline-item {
            margin-right: 0 !important;
            border-right: none;
            padding: 0;
        }
        margin-bottom: 0;
        padding-right: 0.5rem;
        border-right: 2px solid var(--bs-primary);
        i {
            font-size: 1rem;
            line-height: 1;
            color: var(--bs-primary);
        }
        a {
            display: flex;
            padding: 0 0.5rem;
        }
    }
}
.navbar {
    ul.social-media-icons {
        > li.list-inline-item {
            margin-right: 0 !important;
            border-right: none;
            padding: 0;
        }
        margin-left: auto;
        margin-right: 2rem;
        margin-bottom: 0;
        padding-right: 0;
        a {
            display: flex;
            padding: 0.5rem;
        }
        i {
            font-size: 1.2rem;
            line-height: 1;
            color: var(--bs-primary);
        }
    }
}
body:not(.scrolled):has(.hero-section) {
    .navbar {
        ul.social-media-icons {
            i {
                color: var(--bs-white);
            }
        }
    }
}

/* Anchors with No Text Decoration
--------------------------------------------- */

.anchor-undecorated a, a.anchor-undecorated, .anchor-plain a, a.anchor-plain {
    text-decoration: underline;
    cursor: pointer;
    transition: text-decoration-color 400ms ease;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.1em;
    text-decoration-color: transparent !important;
    @media (min-width: 1200px) {
        text-underline-offset: 0.3em;
    }
}
@media (hover: hover) {
    .anchor-undecorated a:hover, 
    a.anchor-undecorated:hover,
    a.anchor-undecorated.active {
        text-decoration-color: inherit !important;
    }
}

/* Profiles
--------------------------------------------- */

img.sponsor {
    max-width: 340px;
    margin: 0 auto;
}

.profiles-table {
    .accordion-item {
        .accordion-header {
            .infos {
                flex-grow: 1;
                @media (max-width: 575px) {
                    flex-wrap: wrap;
                }
                .name {
                    width: 50%;
                    @media (max-width: 575px) {
                        width: 100%;
                    }
                }
            }

        }
    }
    .accordion-body {
        table tbody tr th {
            width: 1%;
            padding-right: 1rem;
        }
    }
}

@media (max-width: 450px) {
    .profiles-nav {
        a.text-nowrap {
            width: 100%;
        }
        a:first-child {
            order: 1;
        }
        a:last-child {
            order: 2;
        }
    }
}

/* Subpages
--------------------------------------------- */

.frame-type-menu_subpages {
    ul {
        list-style: none;
        margin: 3rem 0 0 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    li {
        color: var(--bs-body-color);
        a {
            display: block;
            background-color: var(--bs-secondary);
            padding: 1rem 1.5rem;
            color: var(--bs-white);
            text-decoration: none;
            font-weight: 600;
        }
        a:hover {
            background-color: color-mix(in srgb, var(--bs-secondary) 90%, transparent);
        }
    }
}


/* Tables
--------------------------------------------- */

table.table {
    font-size: 1.1rem;
}
.table-responsive table.table tbody.border-top {
    border-top-color: rgb(192, 194, 195) !important;
}

.table-responsive, .table-container {
    table {
        a {
            color: unset;
        }
        th:has(a), td:has(a) {
            a {
                display: block;
                width: 100%;
            }
        }
    }
}

.table-container {
    padding: 5rem 0;
}

table.table-data tbody {
    tr:first-child {
        border-top: 1px solid var(--bs-border-color);
    }
    td:last-child {
        font-weight: 600;
    }
    p {
        margin-bottom: 0;
        font-size: inherit;
    }
}

figure.table {
    margin: 0;
    table {
        tr, tr:first-child {
            border: none;
        }
    }
}

/* Matchcenter Table */

.matchcenter-table {
    border-radius: .75rem;
    margin-bottom: 0;
    .fw-bold {
        font-weight: 500 !important;
    }
    td.name {
        white-space: nowrap;
    }
    td.date {
        white-space: nowrap;
        width: fit-content;
        width: 1%;
    }
    tr.hck {
        td {
            background-color: var(--bs-info);
            a {
                color: #FFF;
            }
        }
    }
    th,
    td {
        vertical-align: middle;
    }
    .table-sm {
        font-weight: lighter;
        thead {
            tr {
                border-color: var(--bs-border-color);
            }
        }
    }
    img {
        flex: 1 0 25px;
        width: 100%;
        max-width: 25px;
        height: auto;
        @media (min-width: 1400px) {
            max-width: 35px;
        }
    }
}

.teaser-card.bg-secondary {
    .matchcenter-table {
        --bs-table-bg: transparent;
        --bs-table-color: white;
        --bs-table-hover-color: white; 
    }
}

@media (max-width: 767.99px) {
    table.table {
        font-size: calc(var(--bs-body-font-size) * 0.75);
    }
}

@media (min-width: 768px) and (max-width: 991.99px) {
    table.table {
        font-size: calc(var(--bs-body-font-size) * 0.85);
    }
}

@media (min-width: 1200px) {
    .matchcenter-table {
        padding: 2rem;
    }
    .content-container.container-2col .matchcenter-table {
        padding: 0 2rem 2rem 2rem;
    }
}

/* Inset
--------------------------------------------- */

.inset {
    @media (min-width: 576px) {
        padding: 0 5rem;
    }
    @media (min-width: 1200px) {
        padding: 0 10rem;
    }
    @media (min-width: 1600px) {
        padding: 0 15rem;
    }
}

/* Text Columns
--------------------------------------------- */

.text-columns {
    .text-columns-col {
        .card-subtitle {
            font-size: 1rem;
            font-weight: normal;
        }
    }
    @media (max-width: 576px) {
        /* flex-direction: column; */
        .text-columns-col {
            display: flex;
            flex-direction: column;
            padding-left: 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid black;
            .card-body {
                padding: 0;
            }
            a.btn {
                width: fit-content;
                margin-top: auto;
                margin-bottom: 1.5rem;
            }
        }
        .text-columns-col:last-of-type {
            margin-bottom: 0;
        }
    }
    @media (min-width: 768px) {
        .text-columns-col {
            .card-text {
                font-size: 0.9rem;
            }
        }
    }
    @media (min-width: 992px) {
        .text-columns-col:first-of-type {
            padding-left: 0;
        }
        .text-columns-col:not(:first-of-type) {
            padding-left: 1rem;
        }
    }
}

.white-section {
    .text-columns {
        .text-columns-col:not(:last-of-type) {
            padding-right: 1rem;
            border-right: 1px solid black;
        }
    }
}

.blue-section {
    @media (min-width: 576px) {
        .text-columns-col:first-of-type {
            padding-left: 1rem;
        }
        .text-columns-col {
            padding-right: 1rem;
        }
    }
    @media (min-width: 1200px) {
        .text-columns-col:first-of-type {
            border-left: 1px solid white;
        }
        .text-columns-col {
            border-right: 1px solid white;
        }
    }
}

/* Cards
--------------------------------------------- */

a {
    transition: all 0.2s ease-in-out;
}

a.card {
    will-change: transform;
    text-decoration: none;
}

a.card:hover {
    transform: scale(1.03);
}

a.card.dynamic-card:hover button.btn {
    background-color: #00549e;
}

.card {
    & .card-subtitle {
        text-transform: uppercase;
    }
    & .card-text p {
        letter-spacing: 0.2px;
    }
    & .card-text > *:last-child {
        margin-bottom: 0;
    }
    & .card-footer {
        display: flex;
        flex-direction: row;
        align-items: end;
        /* padding: 0 1.5rem 1.5rem 1.5rem; */
        & .button-url {
            /* padding: 0 0.1rem 0 0; */
            & i {
                font-size: 1.5rem;
            }
        }
    }
    & .d-grid.gap-2 {
        & .card-footer {
            justify-content: center;
            padding: .75rem;
        }
    }
    & a.d-grid.gap-2 {
        text-decoration: none;
    }
}

.card.white-card {
    background-color: white;
}

/* Cards with Shadows */

.card.bg-white, .event-card {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* Teaser Cards
--------------------------------------------- */

.teaser-card {
    border-radius: 0.75rem;
    box-shadow: none;
    overflow: hidden;
    .card-header {
        position: relative;
        height: 100px;
        padding: 0;
        text-transform: uppercase;
        border-radius: 0.75rem;
        background-color: var(--bs-secondary);
        h5, .h5 {
            margin-bottom: 0;
            @media (max-width: 575.99px) {
                font-size: 1rem;
            }
        }
    }
    .card-header::after {
        content: "";
        position: absolute;
        height: 1px;
        width: 100%;
        bottom: 0;
        background-color: white;
    }
    .card-body {
        .teaser-details-row {
            .vs-col span {
                font-size: 0.8rem;
                font-weight: bold;
            }
        }
    }
    .card-footer a {
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 0;
        height: 70px;
        width: 100%;
        font-size: 1.25rem;
        @media (min-width: 1200px) {
            font-size: 1.6rem;
        }
    }
    .teaser-images-row {
        align-items: center;
        justify-content: center;
    }
    h3 {
        margin-bottom: 0;
    }
    .display-2 {
        line-height: 0.8;
    }
    img {
        max-width: 100%;
        max-height: 100px;
        height: auto;
        width: auto;
    }
}

img.white-image {
    filter: saturate(0) contrast(200%) brightness(150%);
}

/* Teaser Highlight Card
--------------------------------------------- */

@media (min-width: 1400px) {
    section.main-section .teaser-highlight .card-footer {
        margin-top: var(--bs-spacer);
    }
}

.teaser-highlight {
    .card-header {
        background: white;
        .horizontal-nav {
            padding: 0;
             @media (max-width: 575.99px) {
                ul.list-inline .list-inline-item:not(:last-child) {
                    padding-right: 0.25rem;
                }
                ul.list-inline li.list-inline-item.h5 {
                    padding-left: 0;
                    font-size: calc(var(--bs-body-font-size) * 0.75);
                }
            }
            ul.list-inline .list-inline-item {
                margin: 0;
            }
        }
    }
    .card-header::after {
        background-color: var(--bs-primary)
    }
    img {
        height: auto;
        @media (max-width: 767.99px) {
            margin-top: var(--bs-spacer-1);
        }
        @media (min-width: 768px) {
            max-height: 130px; 
            max-width: 100px;
        }
    }
}


/* Teaser Cards in Hero Section
--------------------------------------------- */

section.hero-section {
    background: var(--bs-primary);
}

#home-teasers {
    padding-top: 3rem;
}

.container-363col:has(.teaser-highlight) .teaser-highlight {
    height: 100%;
}

/* List Inline
--------------------------------------------- */

ul.list-inline {
    & .list-inline-item:not(:last-child) {
        margin-right: 0.25rem;
        @media (min-width: 992px) {
            margin-right: 0.5rem;
        }
    }
}

/* Horizontal Nav
--------------------------------------------- */

& .horizontal-nav {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
    @media (min-width: 1200px) {
        padding: 1rem 0;
    }
    & ul {
        & li {
            padding: 0 1rem;
            border: none;
            border-radius: 0;
            border-right: 2px solid var(--bs-primary);
            line-height: 1.2;
            &:last-child {
                border-right: 0;
                padding-right: 0;
            }
        }
        & a {
            font-weight: 500;
            display: flex;
        }
    }
}

.horizontal-nav.vert-line-primary li:not(:nth-last-of-type(1))::after {
    color: var(--bs-primary);
}

/* Filter
--------------------------------------------- */

.filter {
    & .nav-tabs {
        border-top: 1px solid black;
        border-bottom: 1px solid black;
        & li {
            position: relative;
            & input {
                position: absolute;
                width: 100%;
                background-color: unset;
                border: none;
                padding-left: 0;
                @media (min-width: 992px) {
                    padding-right: 3rem;
                }
            }
            & label {
                font-weight: 300;
                font-size: 1rem;
                @media (min-width: 1200px) {
                    font-size: 1.25rem;
                }
                text-transform: capitalize;
                border: none;
                padding: 0.5rem 1rem;
            }
        }
        & li:first-child label.btn {
            padding-left: 0;
        }
        & li:has(.active) > label {
            font-weight: 600;
        }
        & li:has(.active) > input {
            background-color: unset;
        }
        & li.nav-item:hover label {
            text-decoration: underline 1.5px;
        }
    }
}

/* News
--------------------------------------------- */

main.detail-page h2, main.detail-page h3, main.detail-page h4, main.detail-page h5, main.detail-page h6 {
    margin-top: var(--bs-spacer-4);
}

main.detail-page .lead {
    margin-bottom: var(--bs-spacer-4);
}


/* Agenda / Events
--------------------------------------------- */

.agenda-container {
    .event-card {
        p {
            margin: 0;
        }
        a:hover {
            text-decoration: none;
        }
        .card-header {
            border-radius: 1rem;
        }
        .card-title {
            line-height: 1;
        }
        .card-body {
            .card-text {
                width: 85%;
            }
        }
        .card-header, .card-body {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }
        @media (max-width: 1199.99px) {
            .card-header {
                padding-bottom: 0;
            }
        }
    }
    .event-card.text-bg-light {
        .card-header {
            background-color: var(--bs-light);
        }
    }
}

/* Partner Row
--------------------------------------------- */

.partner-wrap {
    .fade-container {
        > div {
            flex-wrap: wrap;
            margin: 0 -0.25rem;
            .partner-ele {
                width: 100%;
                padding: 0 0.25rem;
                padding-bottom: 0.5rem;
            }
        }
        &[data-cols="3"] > div {
            .partner-ele {
                width: 33.33%;
            }
        }
    }
}

/* Custom Slider
--------------------------------------------- */


.partner-wrap {
    .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
}



/* Subfooter
--------------------------------------------- */

@media (min-width: 1400px) {
    body:has(.event-container) .subfooter-section {
        margin-top: 0;
    }
}

.subfooter {
    overflow-x: clip;
    & p {
        margin-bottom: 0;
    }
    & a {
        @media (max-width: 576px) {
            font-size: 0.9rem;
        }
    }
    & img {
        position: absolute;
        z-index: 1;
        width: 45vw;
        max-width: 250px;
        height: auto;
        bottom: 0;
        @media (min-width: 480px) {
            width: 40vw;
        }
        @media (min-width: 570px) {
            width: 33vw;
        }
        @media (min-width: 768px) {
            width: 28vw;
        }
        @media (min-width: 992px) {
            width: 24vw;
        }
        @media (min-width: 1200px) {
            width: 22vw;
            left: 10%;
        }
        @media (min-width: 1400px) {
            left: 0;
        }
        @media (min-width: 1500px) {
            width: 20vw;
        }
        @media (min-width: 1600px) {
            left: 5%;
        }
        @media (min-width: 1700px) {
            left: 8%;
        }
        @media (min-width: 1800px) {
            width: 13vw;
            left: 15%;
        }
        @media (min-width: 1900px) {
            left: 17%;
        }
    }
}

/* .subfooter, 
.subfooter .subfooter-mid-col {
    background-repeat: no-repeat;
    background-size: contain;
    @media (min-width: 992px) {
        background-size: cover;
    }
}

.subfooter {
    background-size: 500px;
    background-position: right;
    @media (min-width: 1400px) {
        background-size: initial;
    }
} */


@media (max-width: 991.99px) {
    .subfooter, .subfooter-mid-col, .subfooter-right-col {
        background-image: none !important;
    }
    .subfooter {
        position: relative;
    }
    .subfooter::after {
        display: block;
        position: absolute;
        width: 100%;
        height: 50%;
        content: '';
        right: 0;
        bottom: 0;
        background: var(--bs-secondary);
    }
}

.subfooter .subfooter-mid-col {
    min-height: 300px;
    position: relative;
    background-position: 1px 0;
    @media (min-width: 992px) {
        background-position: bottom bottom;
    }
    @media (min-width: 1400px) {
        background-size: cover;
    }
}

.subfooter .subfooter-right-col {
    .text-wrap {
        z-index: 1;
    }
}
@media (min-width: 992px) {
    .subfooter .subfooter-right-col {
        position: relative;
        background: var(--bs-secondary);
    }
    .subfooter .subfooter-right-col::before {
        position: absolute;
        content: "";
        background: var(--bs-secondary);
        width: 400px;
        height: calc(100% + 1px);
        transform: skewX(-25deg);
        transform-origin: left;
        top: 0;
        left: -100px
    }
    .subfooter .subfooter-right-col::after {
        position: absolute;
        content: "";
        background: var(--bs-secondary);
        width: 100vw;
        height: 100%;
        left: 100%;
    }
}

/* Formular
--------------------------------------------- */

div.frame-type-form_formframework form div.form-check {
    margin-top: var(--bs-spacer);
}


/* ====================================================
    State
    - how module will look in specific state
==================================================== */

/* Media Queries
 */

@media (max-width: 575.99px) {
    small, .small {
        font-size: calc(var(--bs-body-font-size) * 0.6);
    }
    p, .p, .btn, li {
        font-size: calc(var(--bs-body-font-size) * 0.8);
    }
    .lead p, .lead .p, .lead {
        font-size: calc(var(--bs-body-font-size) * 1.05);
    }
    h5, .h5 {
        font-size: 1rem;
    }
    h4, .h4 {
        font-size: calc(var(--bs-body-font-size) + 0.15vw);
    }
    .fs-2, .fs-2 p, .fs-2 .p {
        font-size: calc(var(--bs-body-font-size) + 1.5vw);
    }
    .display-2 {
        font-size: calc(var(--bs-body-font-size) + 4.5vw);
    }
}

@media (min-width: 576px) and (max-width: 1199.99px) {
    small, .small {
        font-size: calc(var(--bs-body-font-size) * 0.75);
    }
    p, .p, .btn, li {
        font-size: calc(var(--bs-body-font-size) * 0.85);
    }
    .lead p, .lead .p, .lead {
        font-size: calc(var(--bs-body-font-size) * 1.2);
    }
    h5, .h5 {
        font-size: calc(var(--bs-body-font-size) * 0.8);
    }
    h4, .h4 {
        font-size: calc(var(--bs-body-font-size) + 0.25vw);
    }
    h2, .h2 {
        font-size: calc(var(--bs-body-font-size) * 1.55);
    }
    .fs-2, .fs-2 p, .fs-2 .p {
        font-size: calc(var(--bs-body-font-size) + 1vw);
    }
}

@media (min-width: 992px) and (max-width: 1199.99px) {
    h1, .h1 {
        font-size: 3.25rem;
    }
    h3, .h3 {
        font-size: 1.75rem;
    }
    .display-1 {
        font-size: 5rem;
    }
    .display-2 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1200px) {
    h2, .h2 {
        font-size: 2.25rem;
    }
    h3, .h3 {
        font-size: 1.9rem;
    }
    .display-1 {
        font-size: 6rem;
    }
    .display-2 {
        font-size: 4rem;
    }
    .fs-5 {
        font-size: calc(var(--bs-body-font-size) * 1.2) !important;
    }
    .lead p, .lead .p, .lead {
        font-size: calc(var(--bs-body-font-size) * 1.3);
    }
}

.w-xxl-75 {
    width: 100%;
    @media (min-width: 1400px) {
        width: 75%;
    }
}

/* When hover is supported
--------------------------------------------- */

@media (hover: hover) {

}

/* ====================================================
    Theme
    - defines colour scheme and typography
==================================================== */


/* Fonts
--------------------------------------------- */

/* inter-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('../Fonts/inter-v13-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../Fonts/inter-v13-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    src: url('../Fonts/inter-v13-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../Fonts/inter-v13-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('../Fonts/inter-v13-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Typography
--------------------------------------------- */

body,
button,
input,
select,
optgroup,
textarea {
    font-family: 'Inter', 'Helvetica', 'Arial', sans-serif;
}

.lead {
    font-weight: 300;
}
b, strong {
    font-weight: 600;
}

span.vertical-bar {
    font-weight: 600;
    font-size: 1.2rem;
    vertical-align: middle;
}

.uppercase {
    text-transform: uppercase;
}

.no-break {
    white-space: nowrap;
}