    @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

    /* Variables mapped to your brand's palette */
    :root {
        --primary-green: #08a363;
        --primary-dark: #037435;
        --primary-light: #e6f6ef;
        --chat-bg: #f8fafc;
        --text-dark: #1e293b;
        --text-muted: #64748b;
        --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    }

    /* Enhanced Hero Search Bar */
    #hero .btn-get-started {
        background: var(--primary-green);
        color: white;
        padding: 12px 30px;
        border-radius: 50px;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        box-shadow: 0 4px 14px rgba(8, 163, 99, 0.3);
    }

    #hero .btn-get-started:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(8, 163, 99, 0.4);
    }

    #hero .form-control {
        border-radius: 50px;
        padding: 12px 24px;
        border: 2px solid #e2e8f0;
        font-size: 1rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    }

    #hero .form-control:focus {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 4px rgba(8, 163, 99, 0.15);
        outline: none;
    }

    /* Modernized Chat Container */
    .chat-container {
        position: fixed;
        bottom: 100px;
        right: 30px;
        background: #ffffff;
        width: 380px;
        max-width: 90vw;
        height: 520px;
        border-radius: 20px;
        box-shadow: var(--shadow-xl);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        z-index: 1000;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 1;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transform-origin: bottom right;
    }

    .chat-container.hidden {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.8) translateY(40px);
    }

    /* Chat Header */
    .chat-container h2 {
        background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
        color: white;
        margin: 0;
        padding: 20px 24px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .chat-container h2::before {
        content: '';
        width: 8px;
        height: 8px;
        background: #4ade80;
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 0 8px #4ade80;
    }

    /* Message Area */
    #chat {
        flex-grow: 1;
        padding: 20px;
        overflow-y: auto;
        background: var(--chat-bg);
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    /* Sleek Message Bubbles */
    .message {
        background: #ffffff;
        padding: 12px 16px;
        border-radius: 16px;
        border-top-left-radius: 4px;
        max-width: 80%;
        word-wrap: break-word;
        font-size: 0.9rem;
        color: var(--text-dark);
        line-height: 1.5;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.02);
        animation: slideIn 0.3s ease-out;
    }

    /* Sent vs Received styles (assuming you add classes dynamic or static) */
    .message.sent {
        align-self: flex-end;
        background: var(--primary-green);
        color: white;
        border-radius: 16px;
        border-top-right-radius: 4px;
        border-top-left-radius: 16px;
    }

    .message.sent .username {
        color: rgba(255, 255, 255, 0.85);
    }

    .username {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        color: var(--primary-green);
        margin-bottom: 4px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Chat Input Form */
    .input {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
        background: #ffffff;
        border-top: 1px solid #f1f5f9;
    }

    .input-row {
        display: flex;
        gap: 10px;
    }

    .input input[type="text"] {
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1.5px solid #e2e8f0;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        color: var(--text-dark);
    }

    .input input[type="text"]::placeholder {
        color: #94a3b8;
    }

    .input input[type="text"]:focus {
        outline: none;
        border-color: var(--primary-green);
        box-shadow: 0 0 0 3px rgba(8, 163, 99, 0.12);
    }

    .input button {
        background: var(--primary-green);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 0 20px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .input button:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    /* Clean Custom Scrollbar */
    #chat::-webkit-scrollbar {
        width: 6px;
    }

    #chat::-webkit-scrollbar-track {
        background: transparent;
    }

    #chat::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 20px;
    }

    #chat::-webkit-scrollbar-thumb:hover {
        background-color: #94a3b8;
    }

    /* Floating Rounded Action Toggle Button */
    .toggle-button {
        position: fixed;
        right: 30px;
        bottom: 30px;
        background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
        border: none;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        box-shadow: 0 8px 24px rgba(8, 163, 99, 0.4);
        color: white;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .toggle-button:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 10px 28px rgba(8, 163, 99, 0.5);
    }

    .toggle-button:active {
        transform: scale(0.95);
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* --- History Timeline Styles --- */
    .history-section {
        padding: 80px 0;
        overflow-hidden: clip;
    }

    .timeline-container {
        position: relative;
        max-width: 1000px;
        margin: 40px auto 0 auto;
        padding: 20px 0;
    }

    /* Central vertical timeline track line */
    .timeline-line {
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, rgba(8, 163, 99, 0.1) 0%, #08a363 15%, #08a363 85%, rgba(8, 163, 99, 0.1) 100%);
        transform: translateX(-50%);
        z-index: 1;
    }

    /* Individual timeline row structure */
    .timeline-item {
        position: relative;
        width: 50%;
        margin-bottom: 50px;
        z-index: 2;
    }

    /* Left-positioned items */
    .timeline-item.left {
        left: 0;
        padding-right: 50px;
        text-align: right;
    }

    /* Right-positioned items */
    .timeline-item.right {
        left: 50%;
        padding-left: 50px;
        text-align: left;
    }

    /* Central timeline icons */
    .timeline-badge {
        position: absolute;
        top: 15px;
        width: 46px;
        height: 46px;
        background: #ffffff;
        border: 3px solid #08a363;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #08a363;
        font-size: 1.1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
        transition: all 0.3s ease;
    }

    .timeline-item.left .timeline-badge {
        right: -23px;
    }

    .timeline-item.right .timeline-badge {
        left: -23px;
    }

    /* Interactive zoom effects */
    .timeline-item:hover .timeline-badge {
        background: #08a363;
        color: #ffffff;
        transform: scale(1.15);
        box-shadow: 0 0 15px rgba(8, 163, 99, 0.4);
    }

    /* Beautiful Paper Content Cards */
    .timeline-content {
        background: #ffffff;
        padding: 28px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.02);
        transition: all 0.3s ease;
        position: relative;
    }

    .timeline-content::after {
        content: '';
        position: absolute;
        top: 25px;
        width: 12px;
        height: 12px;
        background: #ffffff;
        transform: rotate(45deg);
        border-top: 1px solid rgba(0, 0, 0, 0.02);
        border-left: 1px solid rgba(0, 0, 0, 0.02);
    }

    .timeline-item.left .timeline-content::after {
        right: -6px;
        box-shadow: 2px -2px 5px rgba(0, 0, 0, 0.015);
    }

    .timeline-item.right .timeline-content::after {
        left: -6px;
        box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.015);
    }

    .timeline-item:hover .timeline-content {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(8, 163, 99, 0.08);
        border-color: rgba(8, 163, 99, 0.15);
    }

    /* Timeline Typography */
    .timeline-date {
        display: inline-block;
        color: #08a363;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 8px;
        background: rgba(8, 163, 99, 0.08);
        padding: 4px 12px;
        border-radius: 20px;
    }

    .timeline-content h3 {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 700;
        font-size: 1.25rem;
        color: #1e293b;
        margin-bottom: 12px;
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #64748b;
        margin-bottom: 0;
    }

    /* --- Responsive Adaptability for Mobile Screens --- */
    @media (max-width: 768px) {
        .timeline-line {
            left: 30px;
            /* Align timeline to the left margin on mobile */
        }

        .timeline-item {
            width: 100%;
            margin-bottom: 40px;
            padding-left: 70px !important;
            padding-right: 0 !important;
            text-align: left !important;
        }

        .timeline-item.right {
            left: 0;
        }

        .timeline-badge {
            left: 7px !important;
        }

        .timeline-content::after {
            left: -6px !important;
        }
    }

        /* --- Modernized Services Section Styles --- */
        .services-section {
            padding: 80px 0;
            background-color: #f8fafc;
            /* Subtle off-white to make cards pop */
        }
    
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }
    
        /* Base card styling */
        .service-card {
            background: #ffffff;
            padding: 40px 30px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
            border: 1px solid rgba(226, 232, 240, 0.8);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1;
        }
    
        /* Dynamic background hover glow */
        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(8, 163, 99, 0.03) 0%, rgba(3, 116, 53, 0.05) 100%);
            opacity: 0;
            z-index: -1;
            transition: opacity 0.4s ease;
        }
    
        /* Icon Container */
        .service-icon-wrapper {
            width: 60px;
            height: 60px;
            background: rgba(8, 163, 99, 0.08);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #08a363;
            font-size: 1.6rem;
            margin-bottom: 24px;
            transition: all 0.4s ease;
        }
    
        /* Title & Description */
        .service-info h3 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 1.25rem;
            color: #1e293b;
            margin-bottom: 12px;
            transition: color 0.3s ease;
        }
    
        .service-info p {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #64748b;
            margin-bottom: 20px;
        }
    
        /* Modern Text Link */
        .service-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            color: #08a363;
            text-decoration: none;
            transition: all 0.3s ease;
        }
    
        .service-link i {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }
    
        /* --- Hover State Animations --- */
        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(8, 163, 99, 0.06);
            border-color: rgba(8, 163, 99, 0.25);
        }
    
        .service-card:hover::before {
            opacity: 1;
        }
    
        .service-card:hover .service-icon-wrapper {
            background: #08a363;
            color: #ffffff;
            transform: scale(1.05) rotate(4deg);
            box-shadow: 0 8px 20px rgba(8, 163, 99, 0.2);
        }
    
        .service-card:hover .service-info h3 {
            color: #037435;
        }
    
        .service-card:hover .service-link {
            color: #037435;
        }
    
        .service-card:hover .service-link i {
            transform: translateX(4px);
        }
    
        /* Custom responsiveness settings */
        @media (max-width: 576px) {
            .service-card {
                padding: 30px 20px;
            }
        }

                /* --- Redesigned Hero Section & Librarian Slider --- */
                .hero.section {
                    padding: 80px 0;
                }
        
                /* Fix/align action input and buttons */
                .hero-action-bar {
                    align-items: center;
                }
        
                .hero-action-bar input {
                    max-width: 280px;
                    border-radius: 8px;
                    height: 48px;
                    border: 1px solid #ced4da;
                }
        
                .hero-action-bar .btn-get-started {
                    background-color: #08a363;
                    color: white;
                    padding: 10px 24px;
                    border-radius: 8px;
                    font-weight: 600;
                    height: 48px;
                    display: inline-flex;
                    align-items: center;
                    transition: all 0.3s ease;
                }
        
                .hero-action-bar .btn-get-started:hover {
                    background-color: #06824f;
                    color: #fff;
                }
        
                .hero-action-bar .btn-watch-video {
                    font-weight: 600;
                    color: #212529;
                    transition: 0.3s;
                    text-decoration: none;
                }
        
                .hero-action-bar .btn-watch-video i {
                    font-size: 2rem;
                    margin-right: 8px;
                    color: #08a363;
                    line-height: 0;
                }
        
                .hero-action-bar .btn-watch-video:hover,
                .hero-action-bar .btn-watch-video:hover i {
                    color: #06824f;
                }
        
                /* Slideshow Container */
                .hero-slideshow-wrapper {
                    position: relative;
                    width: 100%;
                    max-width: 520px;
                    margin: 0 auto;
                }
        
                .hero-slideshow-container {
                    position: relative;
                    background: #ffffff;
                    border-radius: 18px;
                    overflow: hidden;
                    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
                    border: 1px solid rgba(226, 232, 2 slate, 0.5);
                    min-height: 430px;
                }
        
                .hero-slide {
                    display: none;
                    width: 100%;
                    height: 100%;
                    animation: slideFade 0.6s cubic-bezier(0.25, 1, 0.5, 1);
                }
        
                .hero-slide.active {
                    display: block;
                }
        
                /* Librarian Card Structure */
                .librarian-card {
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                }
        
                .librarian-img {
                    position: relative;
                    width: 100%;
                    height: 240px;
                    overflow: hidden;
                }
        
                .librarian-img img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: transform 0.6s ease;
                }
        
                .hero-slide:hover .librarian-img img {
                    transform: scale(1.06);
                }
        
                /* Campus Badges */
                .campus-badge {
                    position: absolute;
                    top: 15px;
                    left: 15px;
                    background-color: #08a363;
                    color: #ffffff;
                    font-size: 0.72rem;
                    font-weight: 700;
                    text-transform: uppercase;
                    padding: 5px 12px;
                    border-radius: 50px;
                    box-shadow: 0 4px 8px rgba(8, 163, 99, 0.25);
                }
        
                /* Librarian Details Area */
                .librarian-info {
                    padding: 24px 28px;
                    background-color: #ffffff;
                    flex-grow: 1;
                }
        
                .librarian-info h3 {
                    font-size: 1.25rem;
                    font-weight: 700;
                    color: #1e293b;
                    margin-bottom: 4px;
                }
        
                .librarian-info .role {
                    font-size: 0.85rem;
                    font-weight: 600;
                    color: #08a363;
                    text-transform: uppercase;
                    margin-bottom: 12px;
                    letter-spacing: 0.5px;
                }
        
                .librarian-info .bio {
                    font-size: 0.9rem;
                    line-height: 1.5;
                    color: #64748b;
                    margin-bottom: 0;
                }
        
                /* Sliding Navigation Arrows */
                .hero-nav-btn {
                    position: absolute;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 38px;
                    height: 38px;
                    border-radius: 50%;
                    background: rgba(255, 255, 255, 0.9);
                    border: 1px solid rgba(0, 0, 0, 0.05);
                    color: #333333;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    z-index: 5;
                    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
                    transition: all 0.3s ease;
                }
        
                .hero-nav-btn:hover {
                    background-color: #08a363;
                    color: #ffffff;
                    border-color: #08a363;
                }
        
                .hero-nav-btn.prev {
                    left: -18px;
                }
        
                .hero-nav-btn.next {
                    right: -18px;
                }
        
                /* Navigation Indicator Dots */
                .hero-dots {
                    display: flex;
                    justify-content: center;
                    gap: 8px;
                    margin-top: 15px;
                }
        
                .hero-dot {
                    width: 7px;
                    height: 7px;
                    border-radius: 50%;
                    background-color: #cbd5e1;
                    cursor: pointer;
                    transition: all 0.3s ease;
                }
        
                .hero-dot.active {
                    background-color: #08a363;
                    width: 18px;
                    border-radius: 8px;
                }
        
                @keyframes slideFade {
                    from {
                        opacity: 0.6;
                        transform: translateY(8px);
                    }
        
                    to {
                        opacity: 1;
                        transform: translateY(0);
                    }
                }
        
                /* Mobile Adjustments */
                @media (max-width: 991px) {
                    .hero-slideshow-wrapper {
                        margin-top: 30px;
                    }
        
                    .hero-nav-btn.prev {
                        left: 10px;
                    }
        
                    .hero-nav-btn.next {
                        right: 10px;
                    }
                }


                                /* --- Browse Books Button Theme Style --- */
                                .btn-browse-books {
                                    background-color: #e6f6ef;
                                    color: #08a363;
                                    padding: 10px 24px;
                                    border-radius: 8px;
                                    font-weight: 600;
                                    height: 48px;
                                    border: 1px solid rgba(8, 163, 99, 0.2);
                                    transition: all 0.3s ease;
                                }
                
                                .btn-browse-books:hover {
                                    background-color: #08a363;
                                    color: white;
                                    box-shadow: 0 4px 12px rgba(8, 163, 99, 0.2);
                                }
                
                                /* --- Full-Width Koha Modal Stylings --- */
                                .koha-modal-content {
                                    background-color: #f8fafc;
                                    border: none;
                                    border-radius: 0;
                                }
                
                                .koha-modal-header {
                                    background: linear-gradient(135deg, #08a363 0%, #037435 100%);
                                    color: white;
                                    border-bottom: none;
                                    padding: 18px 30px;
                                }
                
                                .koha-modal-header .modal-title {
                                    font-family: 'Plus Jakarta Sans', sans-serif;
                                    font-weight: 700;
                                    font-size: 1.25rem;
                                }
                
                                .koha-modal-body {
                                    padding: 30px;
                                    overflow-y: auto;
                                }
                
                                /* Sidebar filter layout card */
                                .filter-sidebar-card {
                                    background: #ffffff;
                                    border-radius: 16px;
                                    padding: 24px;
                                    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
                                    border: 1px solid rgba(226, 232, 240, 0.8);
                                    position: sticky;
                                    top: 10px;
                                }
                
                                .filter-sidebar-card h4 {
                                    font-size: 1.1rem;
                                    font-weight: 700;
                                    color: #1e293b;
                                }
                
                                .btn-koha-filter {
                                    background-color: #08a363;
                                    color: white;
                                    font-weight: 600;
                                    padding: 12px;
                                    border-radius: 10px;
                                    transition: all 0.2s ease;
                                }
                
                                .btn-koha-filter:hover {
                                    background-color: #037435;
                                    color: white;
                                }
                
                                /* --- Dynamic Book Item Cards --- */
                                .koha-book-card {
                                    background: #ffffff;
                                    border-radius: 16px;
                                    border: 1px solid rgba(226, 232, 240, 0.8);
                                    overflow: hidden;
                                    height: 100%;
                                    display: flex;
                                    flex-direction: column;
                                    transition: all 0.3s ease;
                                    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
                                }
                
                                .koha-book-card:hover {
                                    transform: translateY(-5px);
                                    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
                                    border-color: rgba(8, 163, 99, 0.2);
                                }
                
                                .book-cover-wrap {
                                    background: #f1f5f9;
                                    height: 220px;
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                    position: relative;
                                    overflow: hidden;
                                    border-bottom: 1px solid #f1f5f9;
                                }
                
                                .book-cover-wrap img {
                                    height: 90%;
                                    object-fit: contain;
                                    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                                    transition: transform 0.3s ease;
                                }
                
                                .koha-book-card:hover .book-cover-wrap img {
                                    transform: scale(1.05);
                                }
                
                                .book-badge-location {
                                    position: absolute;
                                    bottom: 10px;
                                    right: 10px;
                                    background-color: rgba(30, 41, 59, 0.85);
                                    color: white;
                                    font-size: 0.68rem;
                                    font-weight: 700;
                                    padding: 4px 10px;
                                    border-radius: 4px;
                                }
                
                                .book-card-details {
                                    padding: 20px;
                                    display: flex;
                                    flex-direction: column;
                                    flex-grow: 1;
                                }
                
                                .book-card-details h5 {
                                    font-size: 1rem;
                                    font-weight: 700;
                                    color: #1e293b;
                                    margin-bottom: 6px;
                                    line-height: 1.4;
                                    display: -webkit-box;
                                    -webkit-line-clamp: 2;
                                    -webkit-box-orient: vertical;
                                    overflow: hidden;
                                }
                
                                .book-author-text {
                                    font-size: 0.85rem;
                                    color: #64748b;
                                    margin-bottom: 12px;
                                }
                
                                .btn-view-details {
                                    margin-top: auto;
                                    background-color: #f8fafc;
                                    border: 1px solid #e2e8f0;
                                    color: #475569;
                                    font-weight: 600;
                                    font-size: 0.82rem;
                                    width: 100%;
                                    padding: 8px;
                                    border-radius: 8px;
                                    transition: all 0.2s ease;
                                }
                
                                .btn-view-details:hover {
                                    background-color: #e6f6ef;
                                    color: #08a363;
                                    border-color: rgba(8, 163, 99, 0.2);
                                }

                                                                /* --- OPAC Reservation Button Styling --- */
                                                                .btn-opac-reserve {
                                                                    background-color: #08a363;
                                                                    color: #ffffff;
                                                                    font-weight: 600;
                                                                    padding: 8px 16px;
                                                                    border-radius: 8px;
                                                                    border: 1px solid transparent;
                                                                    text-decoration: none;
                                                                    transition: all 0.2s ease;
                                                                }
                                
                                                                .btn-opac-reserve:hover {
                                                                    background-color: #037435;
                                                                    color: #ffffff;
                                                                    box-shadow: 0 4px 10px rgba(8, 163, 99, 0.25);
                                                                }

                                                                /* ==========================================
   Hero Featured Books Spotlight Styling
============================================= */
.book-spotlight-card {
  display: flex;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 290px;
}

.book-spotlight-img {
  position: relative;
  width: 40%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.book-spotlight-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keeps book dimensions precise without stretching */
  border-radius: 4px;
  box-shadow: 3px 5px 15px rgba(0, 0, 0, 0.15);
}

.book-spotlight-img .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #08a363;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(8, 163, 99, 0.2);
}

.book-spotlight-info {
  width: 60%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-spotlight-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-spotlight-info .author-label {
  font-size: 14px;
  color: #08a363;
  font-weight: 600;
  margin-bottom: 8px;
}

.book-spotlight-info .location-tag {
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 12px;
  font-weight: 500;
}

.book-spotlight-info .book-summary {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Keeps slider layout consistent by limiting content size */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive optimization for smaller screen spaces */
@media (max-width: 576px) {
  .book-spotlight-card {
    flex-direction: column;
  }
  .book-spotlight-img, .book-spotlight-info {
    width: 100%;
  }
  .book-spotlight-img {
    height: 220px;
    padding: 20px;
  }
}

/* ==========================================================================
   FIXED: Hero Featured Books Spotlight Core Overrides
   ========================================================================== */

.hero-slideshow-container {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
    /* Fixed broken 'slate' string syntax typo here */
    min-height: 300px;
    /* Reduced from 430px to perfectly match book proportion metrics */
}

/* Force the slide wrapper to use structural display properties instead of disappearing heights */
.hero-slide {
    display: none;
    width: 100%;
}

.hero-slide.active {
    display: block !important;
}

/* Re-engineered Spotlight Container Rules */
.book-spotlight-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    min-height: 290px;
    border: none;
    /* Inherits background container styling cleanly */
}

.book-spotlight-img {
    position: relative;
    width: 40%;
    min-width: 140px;
    /* Prevents text blocks from compressing the layout frame zone */
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.book-spotlight-img img {
    width: 100%;
    height: auto;
    /* Changed from 100% to auto to honor object-fit parameters cleanly */
    max-height: 240px;
    /* Guarantees standard graphic framework scale metrics */
    object-fit: contain !important;
    border-radius: 4px;
    box-shadow: 3px 5px 15px rgba(0, 0, 0, 0.15);
    display: block;
}

.book-spotlight-info {
    width: 60%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Prevent horizontal overflow on right-aligned dropdowns */
.navmenu .dropdown-right ul {
    right: 0 !important;
    left: auto !important;
}

/* If you have nested sub-dropdowns inside it, force them to open to the left too */
.navmenu .dropdown-right ul ul {
    right: 100% !important;
    left: auto !important;
}