/* =========================================================
   NEW.CSS — COMMON LIBRARY STYLES
   Shared site-wide styles. Page-specific styles live in
   catalogue.css and points.css.
   ========================================================= */

:root {
    --kv-blue: #0b2545;
    --kv-gold: #f5c542;
    --lib-heading: #123F68;
    --lib-icon: #174E78;
    --lib-text: #111111;
    --lib-secondary: #3F4650;
    --lib-muted: #5B6570;
    --lib-border: #D9E2EA;
    --lib-table-header: #3276A3;
    --lib-table-header-dark: #286589;
    --lib-table-hover: #F4F8FB;
}

.icon-circle {
    width: 40px;
    height: 40px;
}
.news-ticker {
    position: relative;
    height: 32px;
    flex: 1;
    overflow: hidden;
}

.news-ticker .list-group {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-ticker .spl {
    display: none;
    margin: 0;
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-ticker .spl.active {
    display: block;
}

.news-ticker .spl a {
    color: #0b3d91;
    text-decoration: none;
}

.news-ticker .spl a:hover {
    text-decoration: underline;
}

.news-ticker .spl i {
    font-size: 16px !important;
    margin-right: 5px;
}


/* Mobile */
@media (max-width: 767px) {
    .news-ticker {
        height: 30px;
    }

    .news-ticker .spl {
        font-size: 13px;
    }

    .news-ticker .spl i {
        display: none;
    }
}
.content-container {
    max-width: 800px;
}
.spot-img {
	height: 250px
}
.rd-img{
	max-height: 320px;
}
.activity-img{
	width: 80px; height: 105px;
}
.text-kv-gold {
    color: #ffe082 !important;
}
.kv-section-title {
    font-weight: 700;
    font-size: 1rem;
    color: white;
    background-color: #0b2545;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.scrolling-wrapper {
    width: 100%;
    overflow: hidden;
}

.scrolling-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px;
}

.scrolling-content::-webkit-scrollbar {
    height: 6px;
}

.scrolling-content > div {
    flex: 0 0 160px;
}
.books-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.books-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    animation: booksScroll 60s linear infinite;
}

.book-card {
    flex: 0 0 160px;
    width: 160px;
    min-width: 160px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-cover {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.books-marquee:hover .books-track {
    animation-play-state: paused;
}

@keyframes booksScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
.sub-title {
    color: var(--kv-blue);
    font-weight: 800;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 7px;
    position: relative;
}

.sub-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 35%;
    height: 2px;
    background: var(--kv-blue);
    transform: translateX(-50%);
    animation: blinkLine 1.5s ease-in-out infinite;
}
.colorful-line {
    width: 120px;
    height: 4px;
    margin: 12px auto 5px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #ff6b6b,
        #ffc107,
        #20c997,
        #0d6efd,
        #9b59b6
    );
}
.recognition-card {
    position: relative;
    display: block;
    overflow: hidden;
    height: 150px;
    border-radius: 16px;
    text-decoration: none;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recognition-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.recognition-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.05) 70%
    );
}

.recognition-title {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 15px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.recognition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.recognition-card:hover img {
    transform: scale(1.06);
}

@media (max-width: 575.98px) {
    .recognition-card {
        height: 135px;
    }
}
@keyframes blinkLine {
    0%, 100% {
        opacity: 0.25;
        width: 25px;
    }

    50% {
        opacity: 1;
        width: 55px;
    }
}
.reader-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.reader-photo-wrap {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.reader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.reader-card:hover .reader-photo {
    transform: scale(1.05);
}

.winner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffc107, #e5a900);
    color: #5c4300;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 5px 8px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);
    border: 2px solid #fff;
}

.reader-name {
    color: var(--kv-blue);
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0 0 3px;
}

.reader-class {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .reader-photo-wrap {
        height: 120px;
    }

    .winner-badge {
        font-size: 0.55rem;
        padding: 4px 6px;
    }

    .reader-name {
        font-size: 0.8rem;
    }
}
.reading-book-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 9px;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.reading-book-card:hover {
    background: #fff;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* Book cover thumbnail */

.reading-book-cover {
    width: 48px !important;
    height: 68px !important;
    min-width: 48px;
    max-width: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    background: #e9ecef;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}


/* Dummy cover */

.dummy-book-cover {
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-align: center;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
}


/* Right-side information */

.reading-book-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}


/* Clickable title */

.reading-book-link {
    text-decoration: none;
}

.reading-book-title {
    color: var(--kv-blue);
       font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;

    /* Allow title to wrap */
    white-space: normal;
    overflow-wrap: anywhere;
}


/* Reader information */

.reading-book-reader {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.35;
    margin: 0;
}

.reading-book-reader span {
    color: #8F1A03;
    font-weight: 700;
}
/* =========================================================
   USEFUL RESOURCES
   ========================================================= */

.resource-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}


/* Header */

.resource-panel-header {
	    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    color: #ffffff;
}

.resource-panel-header h3 {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0;
}

.resource-panel-header p {
    font-size: 0.9rem;
	font-weight: 400;
    margin: 3px 0 0;
    opacity: 0.85;
}

.librarian-header {
    background: linear-gradient(135deg, #0d6efd, #1554a8);
}

.student-header {
    background: linear-gradient(135deg, #198754, #087f5b);
}

.explore-header {
    background: linear-gradient(135deg, #6f42c1, #563d91);
}

.resource-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 1.25rem;
}


/* Resource list */

.resource-list {
    padding: 8px 10px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    color: #343a40;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    border-radius: 9px;
    transition: all 0.2s ease;
}

.resource-item:hover {
    color: var(--kv-blue);
    background: #f1f5f9;
    transform: translateX(3px);
}

.resource-item-icon {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
}

.resource-item:hover .resource-item-icon {
    background: #ffffff;
}


/* Mobile */

@media (max-width: 767.98px) {

    .resource-panel-header {
        padding: 14px 15px;
    }

    .resource-list {
        padding: 8px;
    }

    .resource-item {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

}
/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--kv-blue, #0b2545);
    color: rgba(255, 255, 255, 0.88);
    padding: 50px 0 22px;
    margin-top: 40px;
}


/* ==================== Brand ==================== */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 62px;
    height: 62px;
    padding: 5px;
    margin-bottom: 14px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 5px;
}

.footer-brand p {
    color: var(--kv-gold, #f5c542);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}


/* ==================== Section Headings ==================== */

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 9px;
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--kv-gold, #f5c542);
    border-radius: 10px;
}


/* ==================== Contact ==================== */

.footer-contact {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.footer-email {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 7px;
}

.footer-email i {
    color: var(--kv-gold, #f5c542);
}

.footer-email a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.footer-email a:hover {
    color: #ffffff;
}


/* ==================== Links ==================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.footer-links a i {
    color: var(--kv-gold, #f5c542);
    font-size: 0.7rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}


/* ==================== Notice ==================== */

.footer-notice {
    padding: 14px 17px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 3px solid var(--kv-gold, #f5c542);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-notice i {
    color: var(--kv-gold, #f5c542);
}


/* ==================== Bottom Bar ==================== */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    line-height: 1.5;
}

.footer-bottom span {
    color: var(--kv-gold, #f5c542);
    font-weight: 600;
}


/* ==================== Mobile ==================== */

@media (max-width: 767.98px) {

    .site-footer {
        padding: 38px 0 20px;
    }

    .footer-brand h3 {
        font-size: 1.2rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-contact {
        font-size: 0.88rem;
    }

    .footer-email {
        font-size: 0.86rem;
    }

    .footer-links a {
        font-size: 0.88rem;
    }

    .footer-notice {
        font-size: 0.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}
.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    color: #343a40;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 100%;
}

.resource-link:hover {
    background: #fff;
    color: #0d6efd;
    border-color: #b6d4fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.resource-link:active {
    transform: translateY(0);
}

.resource-link .link-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    font-size: 1.05rem;
}

.resource-link .link-arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.resource-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}
#searchTabs {
    flex-wrap: nowrap !important;
    width: 100%;
}

#searchTabs .btn {
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
}

/* Mobile */
@media (max-width: 575.98px) {
    #searchTabs {
        gap: 4px !important;
    }

    #searchTabs .btn {
        padding: 7px 6px !important;
        font-size: 0.70rem !important;
        border-radius: 8px !important;
        line-height: 1.2;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    #searchTabs .btn {
        padding: 6px 3px !important;
        font-size: 0.63rem !important;
    }
}
.library-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-panel {
    flex: 0 0 66.666667%;
    min-width: 0;
}


/* Attractive scrollbar */

.resource-cards::-webkit-scrollbar {
    width: 6px;
}

.resource-cards::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

.resource-cards::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

.resource-cards::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}


/* Firefox */

.resource-cards {
    flex: 1 1 auto;
    min-width: 0;

    max-height: 100%;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #adb5bd #f1f3f5;
}


/* Mobile */

@media (max-width: 991.98px) {

    .library-layout {
        display: block;
    }

    .info-panel {
        width: 100%;
        margin-bottom: 1rem;
    }

    .resource-cards {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* =========================================================

/* =====================================================
   Reservation SweetAlert
===================================================== */

.reservation-swal-popup {
    border-radius: 24px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.20) !important;
    overflow: hidden;
}

.reservation-swal-title {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    margin-top: 0.5rem !important;
}

.reservation-swal-content {
    font-size: 0.98rem !important;
    line-height: 1.7 !important;
    color: #495057 !important;
}

.reservation-swal-content strong {
    color: #0d6efd;
    font-weight: 600;
}

.reservation-swal-content .reservation-book {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 15px 0;
    text-align: left;
}

.reservation-swal-content .reservation-book i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #0d6efd;
}

.reservation-swal-content .reservation-info {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 12px 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: left;
}

.reservation-swal-button {
    border: 0 !important;
    border-radius: 10px !important;
    padding: 11px 22px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: #198754 !important;
    transition: all 0.2s ease;
}

.reservation-swal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.25);
}

.swal2-close {
    color: #6c757d !important;
    font-size: 1.6rem !important;
}

.swal2-close:hover {
    color: #212529 !important;
}
.reservation-result-page {
    max-width: 900px;
    margin: 30px auto;
}

.reservation-result-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--rn-border);
    box-shadow: 0 10px 30px rgba(24,49,70,.09);
}

.reservation-result-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    font-size: 32px;
}

.reservation-success .reservation-result-icon {
    background: #e8f7ef;
    color: #22965d;
}

.reservation-error .reservation-result-icon {
    background: #fff0f0;
    color: #dc3545;
}

.reservation-result-content {
    flex: 1;
}

.reservation-result-content h1 {
    margin: 0 0 16px;
    color: var(--rn-primary);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 750;
}

.reservation-result-message {
    color: var(--rn-text);
    font-size: 16px;
    line-height: 1.7;
}

/* Override Bootstrap's small text inside reservation result */
.reservation-result-message .small {
    font-size: 13px !important;
    line-height: 1.4;
}

/* Make secondary text readable */
.reservation-result-message .text-secondary,
.reservation-result-message .text-muted {
    font-size: 15px;
}

.reservation-success-book {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 22px;
    padding: 16px 18px;

    background: #f5f9fb;
    border: 1px solid #e1eaee;
    border-radius: 12px;
}

.reservation-success-book > i {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: var(--rn-accent-soft);
    color: var(--rn-accent);
    font-size: 23px;
}

.reservation-success-book strong {
    color: var(--rn-primary);
    font-size: 17px;
    line-height: 1.4;
}

.reservation-success-book .small {
    font-size: 13px !important;
    margin-bottom: 2px;
}

.reservation-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 14px 16px;
    margin-top: 18px;

    background: #eef8fa;
    color: #45636c;

    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.reservation-info i {
    color: var(--rn-accent);
    margin-top: 3px;
    font-size: 16px;
}

.reservation-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.reservation-result-actions .btn {
    font-size: 14px;
    padding: 9px 16px;
}

.reservation-empty {
    text-align: center;
    background: #fff;
    border: 1px solid var(--rn-border);
    border-radius: 20px;
    padding: 55px 25px;
    box-shadow: 0 8px 25px rgba(24,49,70,.06);
}

.reservation-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    background: var(--rn-accent-soft);
    color: var(--rn-accent);
    font-size: 30px;
}

.reservation-empty h2 {
    color: var(--rn-primary);
    font-size: 25px;
    font-weight: 750;
    margin-bottom: 9px;
}

.reservation-empty p {
    color: var(--rn-muted);
    font-size: 15px;
    margin-bottom: 22px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .reservation-result-page {
        margin: 20px auto;
    }

    .reservation-result-card {
        flex-direction: column;
        padding: 22px;
        gap: 15px;
    }

    .reservation-result-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        font-size: 26px;
    }

    .reservation-result-content h1 {
        font-size: 23px;
    }

    .reservation-result-message {
        font-size: 15px;
    }

    .reservation-success-book strong {
        font-size: 16px;
    }

    .reservation-info {
        font-size: 13px;
    }

}
#imageModal .modal-dialog {
    max-width: 95vw;
}

#imageModal .modal-content {
    background: transparent;
}

#imageModal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-out;
}

#imageModal .btn-close {
    z-index: 10;
    opacity: 1;
    filter: brightness(0) invert(1);
}
/* =========================================================
   LIBRARY HIGHLIGHTS
========================================================= */

.library-highlights {
    width: 100%;

    margin: 30px 0;

    padding: 24px 0;

    background: linear-gradient(
        135deg,
        #f8fafc,
        #eef7ff
    );

    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.library-highlights-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
    box-sizing: border-box;
}


/* Three UOM photos in the left column */


/* Three videos in the right column */

/* =========================================================
   HEADINGS
========================================================= */

.highlight-heading {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 14px;
}


.highlight-heading h3 {
    margin: 0;

    color: #1e293b;

    font-size: 1.05rem;

    font-weight: 700;
}


.highlight-heading p {
    margin: 2px 0 0;

    color: #64748b;

    font-size: .72rem;
}


.highlight-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eaf4ff;

    color: #0d6efd;

    font-size: 1rem;
}


.video-icon {
    background: #fff0f0;

    color: #dc3545;
}


/* =========================================================
   USER OF THE MONTH
========================================================= */

.uom-highlight {
    min-width: 0;

    padding-right: 10px;
}


.uom-highlight-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}


.uom-highlight-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.uom-highlight-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, .11);
}


.uom-highlight-image {
    display: block;

    width: 100%;

    height: 145px;

    object-fit: cover;

    cursor: pointer;
}


.uom-highlight-name {
    padding: 7px 5px 8px;

    text-align: center;

    color: #334155;

    font-size: .83rem;

    font-weight: 700;

    line-height: 1.2;
}


.uom-highlight-name span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: .75rem;

    font-weight: 600;
}


/* =========================================================
   VIDEOS
========================================================= */

.library-video-highlight {
    min-width: 0;
}


.library-video-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}


.library-video-card {
    display: block;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, .06);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.library-video-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 9px 22px rgba(15, 23, 42, .12);
}


/* Equal thumbnail height */

.library-video-thumbnail {
    position: relative;

    width: 100%;

    height: 190px;

    overflow: hidden;

    background: #e2e8f0;
}


.library-video-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}


.library-video-card:hover
.library-video-thumbnail img {
    transform: scale(1.04);
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.video-play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(220, 53, 69, .94);

    color: #fff;

    font-size: 1.5rem;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .25);

    transition:
        transform .2s ease;
}


.library-video-card:hover
.video-play-button {
    transform:
        translate(-50%, -50%) scale(1.1);
}


.library-video-title {
    padding: 10px 12px;

    color: #334155;

    font-size: .8rem;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .library-highlights-container {
        grid-template-columns: 1fr;
    }

    .uom-highlight {
        padding-right: 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .library-highlights {
        padding: 18px 0;
    }

    .library-highlights-container {
        padding: 0 12px;

        gap: 22px;
    }

    .uom-highlight-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 6px;
    }

    .uom-highlight-image {
        height: 120px;
    }

    .uom-highlight-name {
        font-size: .65rem;
    }

    .library-video-grid {
        grid-template-columns: 1fr;
    }

    .library-video-thumbnail {
        height: 190px;
    }

}
/* ==========================================
   LIBRARY STATISTICS
   ========================================== */

.library-stats {
    margin-top: 10px;
    margin-bottom: 10px;
}


/* Main card */

.library-stat-card {
    position: relative;
    height: 100%;
    min-height: 155px;

    padding: 22px 12px 18px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* Hover */

.library-stat-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.11);

    border-color: rgba(0, 70, 140, 0.15);
}


/* Icon */

.stat-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 25px;

    transition:
        transform 0.25s ease;
}


.library-stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-3deg);
}


/* Different soft icon backgrounds */

.books-icon {
    background: #e8f1ff;
}

.members-icon {
    background: #eaf8f0;
}

.circulation-icon {
    background: #fff4df;
}

.reservation-icon {
    background: #f1eaff;
}

.newbooks-icon {
    background: #e7f8fb;
}

.periodicals-icon {
    background: #fff0f0;
}


/* Number */

.stat-number {
    font-size: 1.65rem;

    line-height: 1.1;

    font-weight: 800;

    color: #0756a5;

    letter-spacing: -0.5px;

    margin-bottom: 6px;
}


/* Label */

.stat-label {
    font-size: 0.78rem;

    font-weight: 600;

    color: #000;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}


/* Bottom accent */

.stat-accent {
    position: absolute;

    left: 15%;
    right: 15%;

    bottom: 0;

    height: 3px;

    border-radius: 10px 10px 0 0;

    background: #0756a5;

    opacity: 0.75;

    transition:
        left 0.25s ease,
        right 0.25s ease;
}


.library-stat-card:hover .stat-accent {
    left: 8%;
    right: 8%;
}


/* Individual accent colours */

.library-stat-card:nth-child(1) .stat-accent {
    background: #1769aa;
}

.library-stat-card:nth-child(2) .stat-accent {
    background: #198754;
}

.library-stat-card:nth-child(3) .stat-accent {
    background: #e09b16;
}

.library-stat-card:nth-child(4) .stat-accent {
    background: #7652c7;
}

.library-stat-card:nth-child(5) .stat-accent {
    background: #0797a7;
}

.library-stat-card:nth-child(6) .stat-accent {
    background: #dc3545;
}


/* Tablet */

@media (max-width: 991.98px) {

    .library-stat-card {
        min-height: 145px;
        padding: 18px 10px 16px;
    }

    .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .stat-number {
        font-size: 1.45rem;
    }

}


/* Mobile */

@media (max-width: 575.98px) {

    .library-stat-card {
        min-height: 135px;
        padding: 16px 8px 14px;
		
        border-radius: 14px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;

        margin-bottom: 9px;

        font-size: 20px;

        border-radius: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.68rem;
        letter-spacing: 0.2px;
    }

}

@media (max-width: 767.98px) {
    .badge.bg-primary-subtle {
        white-space: normal !important;
        max-width: calc(100vw - 30px);
        overflow-wrap: break-word;
        line-height: 1.4;
    }
}