:root {
    --library-green: var(--sumait-green, #0d6638);
    --library-green-dark: var(--sumait-green-dark, #074b30);
    --library-gold: var(--sumait-gold, #f4b41a);
    --library-border: var(--sumait-border, #e3e8ee);
    --library-muted: var(--sumait-muted, #64748b);
}

.library-hero {
    background:
        linear-gradient(135deg, rgba(3, 70, 45, .98), rgba(13, 102, 56, .88));
    color: #fff;
}

.library-hero .breadcrumb-item,
.library-hero .breadcrumb-item::before,
.library-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, .84);
}

.library-hero .breadcrumb-item.active,
.library-hero-subtitle {
    color: #fff;
}

.library-eyebrow {
    display: inline-flex;
    padding: 6px 11px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.library-hero-icon {
    display: inline-grid;
    place-items: center;
    width: 145px;
    height: 145px;
    background: rgba(255, 255, 255, .12);
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 28px;
    font-size: 74px;
}

.library-stat-wrap {
    position: relative;
    z-index: 5;
    margin-top: -22px;
}

.library-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: var(--library-green-dark);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, .16);
}

.library-stat-card {
    display: grid;
    place-items: center;
    min-height: 130px;
    padding: 18px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .13);
    text-align: center;
}

.library-stat-card:last-child {
    border-right: 0;
}

.library-stat-card i {
    color: var(--library-gold);
    font-size: 27px;
}

.library-stat-card strong {
    margin-top: 7px;
    font-size: 26px;
    line-height: 1;
}

.library-stat-card span {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
}

.library-sidebar {
    position: sticky;
    top: 100px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--library-border);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .06);
}

.library-side-nav .list-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: #253142;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    font-weight: 700;
}

.library-side-nav .list-group-item:last-child {
    border-bottom: 0;
}

.library-side-nav .list-group-item:hover {
    background: #edf7f1;
    color: var(--library-green);
    border-radius: 8px;
}

.library-content-card,
.library-leader-card,
.library-service-card,
.library-section-card,
.library-resource-card,
.library-hours-card,
.library-document-card {
    background: #fff;
    border: 1px solid var(--library-border);
    border-radius: 15px;
    box-shadow: 0 9px 24px rgba(15, 23, 42, .05);
}

.library-content-card,
.library-leader-card,
.library-service-card {
    height: 100%;
    padding: 24px;
}

.library-service-card,
.library-section-card,
.library-resource-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.library-service-card:hover,
.library-section-card:hover,
.library-resource-card:hover {
    transform: translateY(-3px);
    border-color: #badcca;
    box-shadow: 0 15px 30px rgba(15, 23, 42, .09);
}

.library-label,
.library-login-badge {
    display: inline-flex;
    padding: 5px 10px;
    background: #edf7f1;
    color: var(--library-green);
    border: 1px solid #cce6d7;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.library-login-badge {
    background: #fff8e5;
    color: #8a5b00;
    border-color: #efd48b;
}

.library-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
    background: #f8fafc;
    border-left: 4px solid var(--library-green);
    border-radius: 10px;
}

.library-note > i {
    color: var(--library-green);
    font-size: 24px;
}

.library-leader-card {
    background: linear-gradient(180deg, #fff, #f4faf7);
}

.library-leader-photo {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-bottom: 18px;
    overflow: hidden;
    background: #dcefe4;
    color: var(--library-green);
    border-radius: 50%;
    font-size: 46px;
}

.library-leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 10px;
    color: #475569;
    font-size: 14px;
}

.library-contact-line i {
    color: var(--library-green);
}

.library-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.library-card-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    background: #edf7f1;
    color: var(--library-green);
    border-radius: 14px;
    font-size: 26px;
}

.library-section-card,
.library-resource-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 21px;
}

.library-section-card .library-card-icon {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.library-resource-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    background: #edf7f1;
    color: var(--library-green);
    border-radius: 14px;
    font-size: 28px;
}

.library-hours-card {
    overflow: hidden;
}

.library-hours-row {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 1.2fr;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--library-border);
}

.library-hours-row:last-child {
    border-bottom: 0;
}

.library-hours-day {
    display: flex;
    align-items: center;
    gap: 10px;
}

.library-hours-day i {
    color: var(--library-green);
}

.library-hours-time {
    color: #253142;
    font-weight: 700;
}

.library-hours-note {
    color: var(--library-muted);
    font-size: 13px;
}

.library-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    background: #fff8e5;
    border: 1px solid #efd48b;
    border-left: 5px solid var(--library-gold);
    border-radius: 12px;
}

.library-warning i {
    color: #a66b00;
}

.library-document-card {
    display: flex;
    gap: 15px;
    height: 100%;
    padding: 18px;
}

.library-document-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    background: #fff0f0;
    color: #b42318;
    border-radius: 11px;
    font-size: 23px;
}

.library-empty-state {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    background: #f8fafc;
    color: var(--library-muted);
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
}

.library-empty-state > i {
    color: var(--library-green);
    font-size: 29px;
}

.library-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(135deg, var(--library-green-dark), var(--library-green));
    color: #fff;
    border-radius: 16px;
}

@media (max-width: 991.98px) {
    .library-sidebar {
        position: static;
    }

    .library-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .library-stat-card:nth-child(2) {
        border-right: 0;
    }

    .library-stat-card:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .library-cta,
    .library-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .library-hours-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .library-section-card,
    .library-resource-card {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .library-stat-grid {
        grid-template-columns: 1fr;
    }

    .library-stat-card {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .library-stat-card:last-child {
        border-bottom: 0;
    }
}