@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;600;700&display=swap');

body {
    font-family: "Exo", sans-serif;
}

body.nav-fixed {
    padding-top: 0 !important;
}

/* --- Navbar: absolute over hero, not fixed/sticky --- */
#quarto-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent !important;
    z-index: 99;
}

#quarto-header.headroom--unpinned {
    transform: none !important;
    top: 0 !important;
}

#quarto-header .navbar {
    background-color: transparent !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#quarto-header .navbar-title {
    display: none !important;
}

#quarto-header .navbar .navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-weight: 600;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#quarto-header .navbar .navbar-nav .nav-link:hover,
#quarto-header .navbar .navbar-nav .nav-link:focus {
    color: #FFFFFF !important;
}

#quarto-header .navbar .navbar-brand .navbar-title {
    color: #fff;
    font-weight: 600;
}

#quarto-header .navbar .navbar-logo {
    max-height: 80px;
}

/* Hamburger: pinned to far right at all widths */
#quarto-header .navbar .navbar-toggler {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

#quarto-search {
    margin-right: 2.5rem !important;
}

/* Dropdowns: light background, dark text (matching ansperformance.eu) */
#quarto-header .navbar .dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
}

#quarto-header .navbar .dropdown-menu .dropdown-item {
    color: #212529;
}

#quarto-header .navbar .dropdown-menu .dropdown-item:hover,
#quarto-header .navbar .dropdown-menu .dropdown-item:focus {
    color: #16181b;
    background-color: #f8f9fa;
}

/* Desktop: force navbar-collapse visible after resize from mobile */
@media (min-width: 1200px) {
    #quarto-header .navbar-collapse {
        display: flex !important;
        position: static !important;
        width: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    #quarto-header .navbar-collapse .nav-link {
        color: #FFFFFF !important;
    }
}

/* Mobile: take navbar-collapse out of flex flow entirely */
@media (max-width: 1199.98px) {
    #quarto-header .navbar-collapse {
        position: absolute !important;
        right: 0;
        top: 100%;
        width: 370px;
    }

    #quarto-header .navbar-collapse.show,
    #quarto-header .navbar-collapse.collapsing {
        background-color: #fff;
        padding: 1rem;
        border-radius: 0.25rem;
        position: absolute;
        right: 0;
        top: 100%;
        width: 370px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    }

    #quarto-header .navbar-collapse.show .nav-link,
    #quarto-header .navbar-collapse.collapsing .nav-link {
        color: #212529 !important;
    }

    #quarto-header .navbar-collapse.show .nav-link:hover,
    #quarto-header .navbar-collapse.show .nav-link:focus {
        color: #007BFF !important;
    }
}

/* Dropdown menus: rounded, wider */
#quarto-header .navbar .dropdown-menu {
    border-radius: 0.5rem;
    min-width: 18rem;
    padding: 0.5rem 0;
}

/* All dropdown items bold, sub-items normal */
#quarto-header .dropdown-item {
    font-weight: 700;
}

.dropdown-submenu-child .dropdown-item {
    font-weight: 400;
}

/* Sub-item bullet indicators */
.dropdown-submenu-child .dropdown-item::before {
    content: '\2022';
    color: #000;
    margin-right: 0.35rem;
    font-size: 1.5rem;
    line-height: 1;
}

/* Collapsible sub-menu chevron */
.dropdown-submenu-chevron {
    float: right;
    font-size: 0.65rem;
    margin-top: 0.35rem;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

/* Hide Quarto's secondary nav entirely — we replace it with a custom toggle */
.quarto-secondary-nav {
    display: none !important;
}

/* Floating sidebar toggle icon */
#aiu-sidebar-toggle {
    display: none;
    position: sticky;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .15);
    color: #212529;
    font-size: 1rem;
    line-height: 1;
}

#aiu-sidebar-toggle:hover {
    background-color: #f8f9fa;
}

/* Sidebar panel: mimics navbar hamburger dropdown */
@media (max-width: 1199.98px) {
    #aiu-sidebar-toggle {
        display: block;
    }

    #quarto-sidebar {
        display: none !important;
    }

    #quarto-sidebar.aiu-sidebar-open {
        display: block !important;
        position: fixed !important;
        width: auto !important;
        max-width: fit-content !important;
        height: auto !important;
        max-height: fit-content !important;
        overflow: visible !important;
        background-color: #fff;
        border-radius: 0.25rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
        z-index: 101;
        padding: 1rem !important;
    }

    #quarto-sidebar.aiu-sidebar-open .sidebar-menu-container {
        padding: 0;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    #quarto-sidebar.aiu-sidebar-open ul {
        margin-bottom: 0 !important;
    }

    #quarto-sidebar.aiu-sidebar-open .sidebar-item .sidebar-item-text {
        color: #212529;
        font-weight: 400;
    }

    #quarto-sidebar.aiu-sidebar-open .sidebar-item .sidebar-item-text:hover {
        color: #007BFF;
    }
}


/* --- Hero banner --- */
.aiu-hero {
    position: relative;
    background-image: url('../assets/images/header/background.jpg');
    background-size: cover;
    background-position: right;
    background-color: #0f1120;
    padding-top: 7rem;
    padding-bottom: 4rem;
    overflow: hidden;
}

.aiu-hero .bg-overlay {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.5;
    background-color: #000000;
}

.aiu-hero .zi-2 {
    z-index: 2 !important;
}

.aiu-hero h1 {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: .5rem;
    margin-top: 0;
    color: #fff !important;
}

.aiu-hero .lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #fff !important;
}

.aiu-hero .btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1.25rem;
    margin-right: 0.5rem;
}

.aiu-hero .btn-primary {
    background-color: #007BFF;
    border-color: #007BFF;
    color: #fff;
}

.aiu-hero .btn-secondary {
    background-color: #6C757D;
    border-color: #6C757D;
    color: #fff;
}

.aiu-hero-content {
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .aiu-hero {
        padding-top: 5rem;
        padding-bottom: 2.5rem;
    }
    .aiu-hero .display-5 {
        font-size: 1.75rem;
    }
}

/* --- Cards --- */
.card {
    border-radius: 1rem;
}

.card-body p {
    margin-bottom: 0;
}

.card-footer {
    border-top-width: 0;
    background: none;
}

.card-img-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

/* --- Nav segment tabs --- */
.nav-segment {
    position: relative;
    background-color: #f8f9fa;
    padding: .25rem .25rem;
    border-radius: .5rem;
}

.nav-fill .nav-item, .nav-fill > .nav-link {
    flex: 1 1 auto;
    text-align: center;
}

.nav-segment .nav-link {
    font-size: .8125rem;
    padding: .5rem .8125rem;
    border-radius: .5rem;
}

.nav-segment .nav-link.active {
    background-color: #fff;
    box-shadow: 0 .1875rem .375rem 0 rgba(140, 152, 164, .25);
}

.nav-tabs {
    padding-bottom: .125rem;
}

/* --- Footer --- */
.aiu-footer {
    background-color: black;
    color: white;
    padding: 0;
    margin-top: 2rem;
    width: 100%;
}

.aiu-footer a {
    color: white !important;
    text-decoration: underline;
}

.aiu-footer .text-white {
    color: white;
}

.aiu-footer .pop-out {
    transition: transform .3s;
}

.aiu-footer .pop-out:hover {
    transform: scale(1.1);
}

/* --- Value boxes --- */
.bslib-value-box {
    height: 150px;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

/* --- Responsive layout --- */
@media (max-width: 991.98px) {
    .sidebar.sidebar-navigation {
        min-height: auto !important;
    }
}

@media (max-width: 767.98px) {
    .quarto-layout-row {
        flex-direction: column;
    }
}
