﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.nav-link:hover {
    color: var(--nva-hover-color) !important;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color:#1b6ec2;
    border-color: #1861ac;
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100vh;
    max-width: 99vw;
}

body {
    min-height: 99vh;
    position: relative;
    margin: 0;
}

body::after {
    content: '';
    display: block;
    height:77px;
}

.main-body {
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    height: 77px;
}


/* BLAZOR Style */


#blazor-error-ui {
    background-color: darkred;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/* Please wait spinner */

.spinner {
    border: 8px solid silver;
    border-top: 8px solid #337AB7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 800ms linear infinite;
    top: 40%;
    left: 50%;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}



/* Do NOT set display on .carousel-item (Bootstrap controls that) */
.testimonial-carousel .carousel-inner {
    overflow: hidden;
}

/* Flex the inner wrapper instead */
.testimonial-carousel .slide-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 360px; /* adjust to taste */
    padding: .5rem 0;
}

/* Clamp comments (unchanged) */
.testimonial-comments {
    --lines: 5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--lines);
    overflow: hidden;
    position: relative;
    margin-bottom: .25rem;
}

.testimonial-comments::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.25));
    pointer-events: none;
}

.testimonial-comments.is-expanded {
    -webkit-line-clamp: unset;
}

.testimonial-comments.is-expanded::after {
    display: none;
    }

/* stack header nicely and reserve consistent vertical rhythm */
.testimonial-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

/* multi-line clamp with ellipsis */
.testimonial-org,
.testimonial-author,
.testimonial-title {
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* tune lines to your design */
.testimonial-org {
    -webkit-line-clamp: 1;
}
/* org: single line */
.testimonial-author {
    -webkit-line-clamp: 1;
}
/* author: single line */
.testimonial-title {
    -webkit-line-clamp: 2;
}
/* title: up to two */


.testimonial-toggle {
    text-decoration: none;
}

.testimonial-toggle:hover, .testimonial-toggle:focus {
    text-decoration: underline;
}


/* never let the carousel container get shorter than this */
.testimonial-carousel .carousel-inner { min-height: 380px; }

@media (min-width: 768px) {
  .testimonial-carousel .carousel-inner { min-height: 440px; }
}

/* keep each slide’s content at least this tall too */
.testimonial-carousel .slide-content {
  min-height: 380px;
}
@media (min-width: 768px) {
  .testimonial-carousel .slide-content {
    min-height: 440px;
  }
}

/* never let the carousel container get shorter than this */
.testimonial-carousel .carousel-inner { min-height: 380px; }

@media (min-width: 768px) {
  .testimonial-carousel .carousel-inner { min-height: 440px; }
}

/* keep each slide’s content at least this tall too */
/* Keep content away from those edges */
.testimonial-carousel .slide-content {
    min-height: 380px;
    padding-left: 2rem;
    padding-right: 2rem;
}
@media (min-width: 768px) {
  .testimonial-carousel .slide-content {
    min-height: 440px;
  }
}

/* Narrow the invisible click areas */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 3rem; /* was ~15% of width */
}

