:root {
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
    }
    body {
        background-color: #ffffff;
        color: #000000;
    }
}

@font-face {
    font-family: 'Charis SIL Regular';
    src: url(../Fonts/Charis-SIL/CharisSIL-Regular.ttf);
}
@font-face {
    font-family: 'Charis SIL Bold';
    src: url(../Fonts/Charis-SIL/CharisSIL-Bold.ttf);
}
@font-face {
    font-family: 'Charis SIL Bold Italic';
    src: url(../Fonts/Charis-SIL/CharisSIL-BoldItalic.ttf);
}
@font-face {
    font-family: 'Charis SIL Italic';
    src: url(../Fonts/Charis-SIL/CharisSIL-Italic.ttf);
}
@font-face {
    font-family: 'Geist';
    src: url(../Fonts/Geist/Geist-VariableFont_wght.ttf);
}
h5 {
    font-family: 'Geist', sans-serif;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 18px;
}
.navbarWrapper {
    width: 100%;
    display: block;
    font-family: 'Geist', sans-serif;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}
.label {
    display: block;
    width: 100%;
    font-family: 'Geist', sans-serif;
    color: #FFFFFF;
    background-color: #FE993C;
    padding: 10px;
    text-align: center;
}
#navbarLogo {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    border-radius: 50%;
}
#navbarBrand {
    display: flex;
    align-items: center;
    gap: 8px;
}
#navbarBrand {
    font-family: 'Charis SIL Regular', serif;
    font-size: 40px;
    color: #000000;
}
#navbarLinks {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
}
#navbarLinks a {
    color: #000000;
    transition: all 0.2s ease-in-out;
}
#navbarLinks a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
#navbarLinks .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.btn-orange {
    background-color: #FE993C;
    border-color: #FE993C;
    color: #ffffff;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.btn-orange:hover,
.btn-orange:focus {
    background-color: #e47c1c;
    border-color: #e47c1c;
    color: #ffffff;
    text-decoration: none;
}

.uniform-modal .modal-header,
.uniform-modal .modal-body,
.uniform-modal .modal-footer {
    text-align: center;
    justify-content: center;
}

.uniform-modal .modal-header {
    border-bottom: none;
}

.uniform-modal .modal-body > * {
    margin-left: auto;
    margin-right: auto;
}

.uniform-modal .modal-footer {
    border-top: none;
    gap: 1rem;
}

.navbar-nav .nav-link[href$="login.php"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.5rem;
    margin-left: 0.5rem;
    border-radius: 8px;
    background-color: #FE993C;
    border: 1px solid #FE993C;
    color: #ffffff !important;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link[href$="login.php"]:hover,
.navbar-nav .nav-link[href$="login.php"]:focus {
    background-color: #e47c1c;
    border-color: #e47c1c;
    color: #ffffff !important;
    text-decoration: none;
}
.footerWrapper {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    margin-top: 50px;
}
#footer {
    width: 100%;
    display: block;
    font-family: 'Geist', sans-serif;
    background-color: #FE993C;
    color: #FFFFFF;
    padding: 10px 0;
    margin: 0;
}
#footerLogo {
    width: 150px;
    height: auto;
    padding: 10px;
}
#footerLink {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 15px;
}
#footerLink:hover {
    text-decoration: underline;
}
.footerText {
    margin: 20px 0;
    color: #FFFFFF;
}
.footerText h5 {
    font-family: 'Geist', sans-serif;
    color: #FFFFFF;
}
@media (max-width: 768px) {
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1100;
    }
    #navbarLogo {
        width: 44px;
        height: 44px;
        margin-right: 6px;
        border-radius: 50%;
    }

    #navbarBrand {
        font-size: 20px;
    }

    #navbarLinks {
        font-size: 18px;
        text-align: center;
    }

    #navbarLinks .nav-item {
        margin: 10px 0;
    }

    .navbar .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .label {
        font-size: 12px;
        padding: 8px;
    }
    #footer .row {
        text-align: center;
    }
    #footer .col,
    #footer .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    #footerLogo {
        width: 95px;
        margin: 0 auto;
        display: block;
    }
    .footerText {
        margin: 8px 0;
    }
    #footerLink {
        font-size: 13px;
        display: inline-block;
        margin: 5px 0;
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        text-align: center;
    }
    #navbarLinks {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #navbarLinks .nav-item {
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
    }
    #navbarLinks .nav-link {
        display: block;
        width: 100%;
        padding: 12px 0;
        text-align: center;
        position: relative;
    }
    #navbarLinks .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 50%;
        height: 1px;
        background-color: rgba(0, 0, 0, 0.15);
        transform: translateX(-50%);
    }
    #navbarLinks .nav-item:last-child .nav-link {
        padding-bottom: 12px;
    }
    #navbarLinks .nav-item:last-child .nav-link::after {
        display: none;
    }
}

/* Ensure shared modal header titles render black */
.modal .modal-header .modal-title,
.modal .modal-header h1,
.modal .modal-header h2,
.modal .modal-header h3,
.modal .modal-header h4,
.modal .modal-header h5,
.modal .modal-header h6 {
  color: #000 !important;
}
