header {
    border-bottom: 5px solid #54a8dc; /* cbead6 */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.category-box {
    border: 2px solid black;
    padding: 4px;
}

.catlist .sep:last-child {
    display:none;
}

/* recent posts */
.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: var(--bs-card-border-radius);
}

.image-container img {
    width: 100%;
    height: 100%; /* Ensure the image fills the container height */
    object-fit: contain; /* Maintain aspect ratio and cover the container */
    object-position: center;
}

.bento-rounded {
    border-radius: var(--bs-card-border-radius);
}

.bento-rounded-right {
    border-top-right-radius: var(--bs-card-border-radius);
    border-bottom-right-radius: var(--bs-card-border-radius);
}

.article-thumbnail {
    height: 200px;
    overflow: hidden;
    border-radius: var(--bs-card-border-radius);
}

.article-thumbnail img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.thumbnail {
    width: 100%;
}

/* search */

.lunrsearchresult .title {color: #d9230f;}
.lunrsearchresult .url {color: silver;}
.lunrsearchresult a {display: block; color: #777;}
.lunrsearchresult a:hover, .lunrsearchresult a:focus {text-decoration: none;}
.lunrsearchresult a:hover .title {text-decoration: underline;}
#lunrsearch {
    outline: none;
}
#lunrsearch:focus {
    outline-color: transparent;
    outline-style: none;
}

.bd-search {
    max-width: 400px; /* Optional: Limit search bar width */
}

/* highlight section */
.article-highlight {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 2%;
}

/* Image on the left side with fade effect */
.article-highlight .image {
    position: relative;
    flex: 1;
    background-size: cover;
    background-position: center;
    height: 100%;
}

/* Faded overlay */
.article-highlight .image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left,
        rgba(255, 255, 255, 1) 10%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

[data-bs-theme="dark"] .article-highlight .image::after {
    background: linear-gradient(to left,
    rgba(33, 37, 41, 1) 5%,
    rgba(33, 37, 41, 0) 100%
    );
}

/* Title and description */
.article-highlight .content {
    position: relative;
    flex: 1;
    padding: 20px;
    z-index: 2;
}

.article-highlight h2 {
    font-size: 2rem;
    font-weight: bold;
}

.article-highlight p {
    font-size: 1.1rem;
}

a:hover {
    color: rgba(var(--bs-body-color-rgb),var(--bs-text-opacity));
}

/* Generated from 'Write bootstrap updating the primary color etc based on the starting colors: #e8f3ec and #54a8dc in css' */
:root {
    --bs-primary: #54a8dc;
    --bs-primary-rgb: 84, 168, 220;
    --bs-light: #e8f3ec;
    --bs-light-rgb: 232, 243, 236;
    /* Remove blue color on links */
    --bs-link-color-rgb: rgba(var(--bs-body-color-rgb),var(--bs-text-opacity));
    --bs-card-border-radius: 5px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #54a8dc;
    --bs-btn-border-color: #54a8dc;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4790bb;
    --bs-btn-hover-border-color: #4387b0;
    --bs-btn-focus-shadow-rgb: 110, 181, 225;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4387b0;
    --bs-btn-active-border-color: #3f7ea5;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #54a8dc;
    --bs-btn-disabled-border-color: #54a8dc;
}

.btn-outline-primary {
    --bs-btn-color: #54a8dc;
    --bs-btn-border-color: #54a8dc;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #54a8dc;
    --bs-btn-hover-border-color: #54a8dc;
    --bs-btn-focus-shadow-rgb: 84, 168, 220;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #54a8dc;
    --bs-btn-active-border-color: #54a8dc;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #54a8dc;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #54a8dc;
    --bs-gradient: none;
}

.text-primary {
    color: #54a8dc !important;
}

.bg-primary {
    background-color: #54a8dc !important;
}

.border-primary {
    border-color: #54a8dc !important;
}

.bg-light {
    background-color: #e8f3ec !important;
}

.text-light {
    color: #e8f3ec !important;
}

.border-light {
    border-color: #e8f3ec !important;
}

.spanborder {
    border-bottom:1px solid #e8f3ec;
    margin-bottom:2rem;
}
.spanborder span {
    border-bottom:1px solid rgba(0,0,0,0.44);
    display:inline-block;
    padding-bottom:20px;
    margin-bottom:-1px;
}

/* featured list */
ol.list-featured {
    counter-reset:my-awesome-counter;
    list-style:none;
    padding-left:0;
}
ol.list-featured li {
    counter-increment:my-awesome-counter;
    display:flex;
    font-size:0.8rem;
}
ol.list-featured li:before {
    content: "0" counter(my-awesome-counter);
    font-weight: bold;
    font-size: 2rem;
    margin-right: 0.5rem;
    font-family: Arial;
    line-height: 1;
    opacity: .1;
}

/* jumbo sticky thing */
.jumbotron {
    background-size:cover;
}
.jumbotron-home {
    background: linear-gradient(135deg, rgba(232, 243, 236, 0.15) 0%, rgba(84, 168, 220, 0.15) 100%);
    backdrop-filter: blur(10px);
    min-height: 400px;
}

.jumbotron-home .row {
    min-height: 400px;
}

/* Carousel controls styling for jumbotron */
#stickyPostsCarousel {
    min-height: 400px;
}

#stickyPostsCarousel .carousel-item {
    min-height: 400px;
}

#stickyPostsCarousel .carousel-control-prev,
#stickyPostsCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

#stickyPostsCarousel .carousel-control-prev:hover,
#stickyPostsCarousel .carousel-control-next:hover {
    opacity: 1;
}

#stickyPostsCarousel .carousel-indicators {
    margin-bottom: 2rem;
}

#stickyPostsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

#stickyPostsCarousel .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
}
@media (min-width:992px) {
    .jumbotron-lg-withnav {
        padding-bottom:calc(10rem - 69.75px);
    }
    .jumbotron-lg {
        padding:10rem 0;
    }
    .jumbotron-xl {
        padding:15rem 0;
    }
    .jumbotron-xl {
        min-height:100vh;
    }
    .bottom-align-text-absolute {
        position:absolute;
        bottom:30px;
        margin:auto;
        left:0;
        right:0;
    }
    .jumbotron-home h1 {
        font-family: -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 2.4rem;
        font-weight: 700;
        line-height: 1.1;
    }
}

/* article */
article {
    font-size:20px;
    line-height:1.86;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif; /*Lora;*/
}
.article-headline {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.15;
    color: rgba(var(--bs-body-color-rgb));
}
article:first-letter {
    float:left;
    font-size:5em;
    line-height:1;
    margin:0 .2em 0 0;
    vertical-align:top;
}
article h1,article h2,article h3,article h4,article h5,article h6,article .h1,article .h2,article .h3,article .h4,article .h5,article .h6 {
    margin-bottom:2rem;
    margin-top:2rem;
    font-weight:600;
}
article blockquote {
    padding-left:40px;
    margin-left:0px;
    font-style:italic;
    position:relative;
}
article img {
/*    width: 100%; */
    display: block;
    margin: 0 auto;
    transition: 1s ease-in-out;
}

article img:hover {
    cursor: pointer;
}

.alertbar {
    background-color: var(--bs-body-bg);
    box-shadow:0 -3px 10px 0 rgba(0,0,0,.0785);
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    padding:20px 0;
    z-index:1021;
    display:none;
}
.alertbar img {
    border-radius:2px;
    border-radius: 10px;
}
@media (min-width:1400px) {
    article img {
        padding-left: 200px;
        padding-right: 200px;
    }

    article img.zoom {
        padding-left: 50px;
        padding-right: 50px;
    }
}
@media (max-width:1400px) {
    article img {
        max-height: 350px;
    }

    article img.zoom {
        max-height: none;
    }
}
footer {
    z-index: 1022;
    position: relative;
    background-color: var(--bs-body-bg);
}
