/*
Theme Name: Barnesville Hutton Memorial Library
Theme URI: https://barnesvillelibrary.org/
Author: 10T Web Design
Author URI: https://10t.co/
Description: 2026 WordPress theme for the Barnesville Hutton Memorial Library
Version: 1.0
Tags: light, one-column, two-columns, flexible-width, featured-images
Text Domain: bhmm2026
*/

/* Navigation */

.navbar-custom {
    background-color: #087C4C;
    font-family: "Lexend Deca", sans-serif;
    border-radius: 1rem;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, .3);
    margin-left: 1rem;
    margin-right: 1rem;
    position: sticky;
    top: 0.75rem;
    z-index: 1030;
    transition:
        padding 0.22s ease,
        box-shadow 0.22s ease,
        border-radius 0.22s ease,
        top 0.22s ease,
        background-color 0.22s ease,
        margin 0.22s ease;
        
}

.navbar-custom.is-sticky {
    padding: 0.55rem 1rem;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
    top: 0.4rem;
    margin-left: 5rem;
    margin-right: 5rem;
}

.navbar-custom .container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.navbar-custom .offcanvas {
    background-color: #087C4C;
    color: #fff;
    border-left: none;
}

.navbar-custom .navbar-brand, .navbar-custom .offcanvas-title {
    color: #fff;
}

.navbar-custom .nav-link, .navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.86);
}

.navbar-custom .navbar-brand {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    margin-right: 1.5rem;
    transition: font-size 0.22s ease;
}

@media screen and (max-width: 1199.98px) {
    .navbar-custom.is-sticky .navbar-brand {
        font-size: 0.8rem;
    }
}

.navbar-custom .nav-link:hover, .navbar-custom .nav-link:focus,
.navbar-custom .navbar-brand:hover, .navbar-custom .navbar-brand:focus {
    color: #d7f5e7;
}
.navbar-custom .dropdown-item:hover, .navbar-custom .dropdown-item:focus {
    color: #087C4C;
}

.navbar-custom .current-menu-item > .nav-link,
.navbar-custom .current-menu-ancestor > .nav-link,
.navbar-custom .active > .nav-link {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
}

.navbar-custom .current-menu-item > .dropdown-item,
.navbar-custom .current-menu-ancestor > .dropdown-item {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar-custom .dropdown-menu {
    background-color: #0a6b43;
    border: none;
}

.navbar-custom .dropdown-item {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.navbar-custom .dropdown-divider {
    border-top-color: rgba(255,255,255,0.2);
}

.navbar-custom .form-control {
    border-color: rgba(255,255,255,0.35);
}

.navbar-custom .form-control:focus {
    border-color: #d7f5e7;
    box-shadow: 0 0 0 0.2rem rgba(215,245,231,0.2);
}

.navbar-custom .btn-outline-success {
    color: #fff;
    border-color: #fff;
}

.navbar-custom .btn-outline-success:hover {
    background-color: #fff;
    color: #087C4C;
    border-color: #fff;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.65rem;
    border-radius: 0.65rem;
    transition: padding 0.22s ease;
}

.navbar-custom.is-sticky .navbar-toggler {
    padding: 0.32rem 0.55rem;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(215, 245, 231, 0.2);
}

.navbar-custom .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Mobile / offcanvas */
@media (max-width: 991.98px) {
    .navbar-custom {
        padding: 0.75rem 0.95rem;
        top: 0.5rem;
    }

    .navbar-custom.is-sticky {
        padding: 0.52rem 0.85rem;
        top: 0.3rem;
    }

    .navbar-custom .navbar-brand {
        font-size: 0.98rem;
        margin-right: 1rem;
        max-width: calc(100% - 4.5rem);
    }

    .navbar-custom.is-sticky .navbar-brand {
        font-size: 0.92rem;
    }

    .navbar-custom .offcanvas {
        width: min(88vw, 22rem);
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
        box-shadow: -0.5rem 0 1.5rem rgba(0, 0, 0, 0.18);
    }

    .navbar-custom .offcanvas-header {
        padding: 1.1rem 1.1rem 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .navbar-custom .offcanvas-title {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .navbar-custom .offcanvas-body {
        padding: 0.75rem 1.1rem 1.25rem;
    }

    .navbar-custom .navbar-nav {
        gap: 0.15rem;
    }

    .navbar-custom .navbar-nav > .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-custom .navbar-nav > .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-custom .navbar-nav > .nav-item > .nav-link {
        padding: 0.85rem 0.75rem;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 0.5rem;
    }

    .navbar-custom .navbar-nav .dropdown-menu {
        display: none;
        position: static;
        float: none;
        min-width: 100%;
        margin: 0 0 0.5rem;
        padding: 0.35rem 0 0.5rem 0.85rem;
        background-color: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .navbar-custom .navbar-nav .dropdown.show > .dropdown-menu {
        display: block;
    }

    .navbar-custom .dropdown-item {
        padding: 0.65rem 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.92);
        background-color: transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-custom .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar-custom .dropdown-item:hover, .navbar-custom .dropdown-item:focus {
        background-color: transparent;
        color: #d7f5e7;
    }

    .navbar-custom .current-menu-item > .dropdown-item,
    .navbar-custom .current-menu-ancestor > .dropdown-item {
        background-color: transparent;
        color: #fff;
    }

    .navbar-custom .dropdown-toggle::after {
        float: right;
        margin-top: 0.45rem;
    }

    .navbar-custom .btn-close {
        opacity: 1;
    }

    .navbar-custom .btn-close:focus {
        box-shadow: 0 0 0 0.2rem rgba(215, 245, 231, 0.2);
    }
}

@media (min-width: 992px) {
    .navbar-custom .navbar-nav > .nav-item {
        position: relative;
    }

    .navbar-custom .navbar-nav .nav-link {
        transition: color 0.2s ease, padding 0.22s ease;
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .navbar-custom.is-sticky .navbar-nav .nav-link {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar-custom .navbar-nav .dropdown-menu {
        display: block;
        min-width: 14rem;
        margin-top: 0;
        padding: 0.5rem 0;
        border: none;
        border-radius: 0.75rem;
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(0.4rem);
        transition:
            opacity 0.18s ease,
            transform 0.18s ease,
            visibility 0.18s ease;
    }

    .navbar-custom .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-custom .navbar-nav .dropdown:focus-within > .dropdown-menu,
    .navbar-custom .navbar-nav .dropdown.show > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar-custom .navbar-nav .dropdown-toggle::after {
        transition: transform 0.18s ease;
    }

    .navbar-custom .navbar-nav .dropdown:hover > .dropdown-toggle::after,
    .navbar-custom .navbar-nav .dropdown:focus-within > .dropdown-toggle::after,
    .navbar-custom .navbar-nav .dropdown.show > .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .navbar-custom .navbar-nav > .nav-item.dropdown-menu-endfix > .dropdown-menu {
        right: 0;
        left: auto;
    }

    .navbar-custom .current-menu-item > .dropdown-item:hover,
    .navbar-custom .current-menu-item > .dropdown-item:focus,
    .navbar-custom .current-menu-ancestor > .dropdown-item:hover,
    .navbar-custom .current-menu-ancestor > .dropdown-item:focus {
        background-color: #fff;
        color: #087C4C;
    }
}

body.admin-bar .navbar-custom .offcanvas {
  top: 32px;
  height: calc(100vh - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .navbar-custom .offcanvas {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

/* Hero Images */
.page-hero {
    position: relative;
    min-height: 26rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -6.3rem;
    margin-bottom: 1rem;
    
}
.library-front {
    background-image:url('./images/front.webp');
}

/* Footer */
footer {
    background-color: #087C4C;
    color: #fefefe;
}
footer a {
    color: #d7f5e7;
}
footer a:hover {
    color: #ffffff;
}
footer *:last-child {
    margin-bottom: 0;
}

/* Callouts */
.callout {
    color: #1A1A1A;
    background-color: #EFEFEF;
    padding: 0.75em;
    border-radius: 12px;
    border: 1px solid #CDCDCD;
    border-left-width: 4px;
    transition: border 0.5s ease, box-shadow 0.5s ease;
}
.callout.callout-alert {
    border-left-color: #D10700;
}

.callout:hover {
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
    transition: border 0.5s ease, box-shadow 0.5s ease;
}

.callout > *:last-child {
    margin-bottom: 0;
}

/* Typography */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    text-wrap-mode: wrap;
    text-wrap-style: balance;
}
h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    margin-top:1em;
}

article.home-php {
    border-bottom: 1px solid #087C4C;
    padding-bottom: 1em;
}
article.home-php:last-of-type {
    border-bottom: none;
}

.post-meta-container {
    margin-bottom: 0.5em;
}

a, a:hover {
    transition: color 0.42s ease;
}
.wp-block-image a img {
    border: 2px solid #087C4C;
}
.wp-block-image:hover a img {
    border: 2px solid #D10700;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.30);
}
.wp-block-image a img {
    transition: border 0.5s ease, box-shadow 0.5s ease;
}