﻿*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

* {
    transition: opacity 0.2s ease;
}


html {
    scroll-behavior: smooth;
    font-family: sans-serif;
    font-size: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;

}

html,
body {
    /* height: 100%; */
    /*width: auto;*/
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    background-color: var(--site-white);
    color: var(--text-color);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    font-kerning: normal;
    text-rendering: optimizeSpeed;
    overflow-y: scroll;
    -webkit-tap-highlight-color: rgba(--site-dark-darkest, 0);
    /* user-select: none; */
    cursor: default;
}

/* Default mobile view */
.header {
    display: flex;
    align-items: center;
    padding: var(--common-margin);
    /* Adjust based on your spacing vars */
    background-color: var(--background-color);
}

.site-admin {
    margin-right: var(--spacing-md, 15px);
    padding-top: var(--spacing-xs, 8px);
}

.logo {
    max-width: 100px;
}

.banner {
    background-color: var(--banner-bg, #ffcc00);
    color: var(--banner-text-color, #333);
    text-align: center;
    padding: 0.5rem;
    font-size: 1rem;
}

.header-info {
    font-size: 0.875rem;
    text-align: right;
}

.user-info,
.guest-links {
    text-align: right;
    font-size: 0.9rem;
}

.version-link {
    color: var(--link-color-primary);
    font-size: 0.8rem;
}

.container {
    max-width: 100%;
    padding: 0 var(--site-gutter-x);
}

.container-fluid {
    max-width: 95%;
}

.jumbotron {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    color: inherit;
    background-color: #eeeeee;
}

.jumbotron h1,
.jumbotron .h1 {
    color: inherit;
}

.jumbotron p {
    margin-bottom: 15px;
    font-size: 21px;
    font-weight: 200;
}

.jumbotron>hr {
    border-top-color: #d5d5d5;
}

.container .jumbotron,
.container-fluid .jumbotron {
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 6px;
}

.jumbotron .container {
    max-width: 100%;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

.video-1150 {
    max-width: 1150px;
    width: 90%;
}

a {
    background-color: transparent;
    color: var(--dark-primary-color);
    text-decoration: none;
}

a:active,
a:hover {
    outline: 0;
    color: var(--dark-primary-color);
    text-decoration: underline;
}

a:focus {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centers last row if fewer than 3 items */
    gap: 2rem;
    /* Space between cards */
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.card {
    flex: 1 1 calc(100% - 2rem);
    /* Full width on mobile, minus gap */
    max-width: calc(100% - 2rem);
    /* Ensures single-column layout on small screens */
    padding: 1rem;
    border: none;
    padding: 2rem;
    background-color: transparent;
}


.text-bg-primary-site {
    color: var(--background-color);
    background-color: var(--primary-color);
}

.text-bg-primary-site a {
    color: var(--background-color);
}

/*
.datatable {
    font-size: var(--table-font-size);
}
*/


.dropdown-item {
    color: var(--primary-dark-color);
}

.dropdown-item:hover {
    /*background-color: var(--dropdown-hover-bg, #495057);*/
    color: var(--link-color-primary);
}


#banner {
    background-color: var(--banner-bg, burlywood);
    color: var(--banner-text-color, red);
    width: 100%;
    margin-bottom: var(--spacing-md, 10px);
    text-align: center;
    font-size: var(--font-size-lg, 14pt);
}

#banner * {
    color: var(--banner-text-color, red);
}

#banner a:hover {
    color: var(--banner-text-color, red);
    font-weight: 600;
}


/* Positioning for version info */
.version-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    padding-right: var(--spacing-sm, 5px);
}

/* Reusable version link styling */
.version-link {
    font-weight: 400;
    cursor: pointer;
    color: var(--link-color-primary, #025380);
    font-size: var(--font-size-sm, 10pt);
}

.version-link:hover {
    text-decoration: underline;
    font-weight: 600;
    text-decoration-color: var(--link-color-primary, #025380);
}

.glyphicon.help-icon {
    color: var(--icon-color, white);
    font-size: var(--icon-size-lg, 2em);
}

a.remove_underline {
    text-decoration: none;
}

.icon-stack {
    position: relative;
}

.icon-stack .glyphicon {
    position: absolute;
}

.dot {
    height: 35px;
    width: 35px;
    background-color: #383838;
    border-radius: 50%;
    display: inline-block;
}

.jumbotron {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 0px;
}

.jumbotron>.container {
    color: var(--site-white);
    text-shadow: 0px 0px 5px var(--site-black);
    min-height: 150px;
    padding-left: var(--spacing-sm);
}

.container-1024 {
    width: 100%;
    max-width: 1024px;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.container-1024 h3 {
    color: var(--site-white);
}

.contact-card {
    display: flex;
    width: 100%;
    padding: 1rem;
    max-width: 600px;
}

.testimonial-container {
    max-width: 700px;
}

.testimonial-quote {
    font-style: italic;
    background-color: var(--site-light-gray);
    padding: 1rem;
    position: relative;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: center;
    margin: 1rem 0;
}

.testimonial-quote::before,
.testimonial-quote::after {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    top: -10px;
}

.testimonial-quote::before {
    content: "“";
    left: 1.1rem;
    top: 0.1rem;
    transform: translateX(-100%);
}

.testimonial-quote::after {
    content: "”";
    right: 1rem;
    bottom: -1rem;
    top: auto;
    /* Position it slightly outside the box */
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.testimonial-author {
    font-weight: bold;
    font-size: 1.1em;
}

.contact-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

#spinner {
    display: none;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.card {
    border-radius: 8px;
    border: 1px solid var(--site-gray);
    background-color: var(--background-color);
}

.card-header {
    background-color: var(--background-color);
    border-bottom: none;
    padding: 0.5rem 1rem;
}

.card-footer,
.card-footer:last-child{
    border-top: none;
    background-color: transparent;
}

.sticker {
    color: var(--site-white);
    background-color: var(--site-light-black);
    padding: 0.6em;
    border-radius: 1em;
    font-size: 0.7em;
}

.sticker.bg-primary {
    background-color: var(--primary-color);
}

.sticker.bg-danger {
    background-color: var(--danger);
}

.card-body p {
    margin: 0.5rem 0;
}

.help-icon {
    color: white;
    font-size: 2em;
    padding-top: 5px;
}

a#id-version {
    cursor: pointer;
}

    a#id-version:hover {
        text-decoration: underline;
        font-weight: 600;
        text-decoration-color: #025380;
    }

.card-div {
    padding: 10px;
    border: solid 1px var(--site-light-black);
    border-radius: 5px 5px;
    background-color: var(--background-color);
}

/*offsets*/
.pl-zero {
    padding-left: 0;
}

@media (max-width: 768px) {
    .mm-spread {
        line-height: 3.0em;
    }

}

    /* Tablet: 2 cards per row */
    @media (min-width: 576px) {

        .card-container {
            justify-content: center;
        }

        .card {
            flex: 1 1 calc(50% - 2rem);
            max-width: calc(50% - 2rem);
        }
    }

    @media screen and (min-width: 768px) {
        .jumbotron {
            padding-top: 48px;
            padding-bottom: 48px;
        }

        .container .jumbotron,
        .container-fluid .jumbotron {
            padding-right: 60px;
            padding-left: 60px;
        }

        .jumbotron h1,
        .jumbotron .h1 {
            font-size: 63px;
        }
    }

    /* Larger screens */
    @media (min-width: 768px) {

        .mm-padding {
            margin-right: 10px;
        }

        .navbar-toggler {
            display: none;
        }

        .logo {
            max-width: 150px;
        }

        .header-nav {
            display: flex;
            /* Adjust nav layout as needed */
        }

        .header-info,
        .user-info,
        .guest-links {
            font-size: 1rem;
            text-align: right;
        }
    }


    @media (min-width: 992px) {

        .header-info {
            font-size: 1rem;
        }

        .mm-padding {
            margin-right: 10px;
        }

        .card {
            flex: 1 1 calc(33.333% - 2rem);
            max-width: calc(33.333% - 2rem);
        }
    }

    @media (min-width: 1200px) {
        .mm-padding {
            margin-right: 10px;
        }

        .card {
            flex: 1 1 342px;
            max-width: 342px;
        }
    }