      /* Custom Theme Variables derived from KV styles */
        :root {
            --kv-blue: #0b2545;
            --kv-gold: #f4c430;
            --kv-teal: #0d9488;
            --kv-teal-hover: #0f766e;
        }

        body {
            background-color: #f8f9fa;
            color: #333333;
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        }

        /* Utility Helpers */
        .bg-kv-blue { background-color: var(--kv-blue) !important; }
        .text-kv-blue { color: var(--kv-blue) !important; }
        .bg-kv-gold { background-color: var(--kv-gold) !important; }
        .text-kv-gold { color: var(--kv-gold) !important; }
        .bg-kv-teal { background-color: var(--kv-teal) !important; }
        .btn-kv-teal {
            background-color: var(--kv-teal);
            color: #fff;
            border: none;
        }
        .btn-kv-teal:hover {
            background-color: var(--kv-teal-hover);
            color: #fff;
        }

        /* Scrollbar Hiding */
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

        /* Hero & Glassmorphism Header */
        .hero-banner {
            background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../images/self-circulation.jpg');
            background-size: cover;
            background-position: center;
        }
        .glass-card {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.25);
        }

        /* Active/Inactive Tab State Styles */
        .tab-btn-active {
            background-color: var(--kv-blue) !important;
            color: #ffffff !important;
        }
        .tab-btn-inactive {
            background-color: #ffffff !important;
            color: #212529 !important;
        }
        .tab-btn-inactive:hover {
            background-color: #fef08a !important;
            color: var(--kv-blue) !important;
        }

        /* Stats & Cards Fine-Tuning */
        .stats-card {
            margin-top: -2rem;
            position: relative;
            z-index: 10;
        }
        .activity-card {
            border-radius: 0.75rem;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .activity-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08) !important;
        }
		/* =========================================================
   LIBRARY DISCOVER SECTION
========================================================= */


/* =========================================================
   CARD GRID
========================================================= */

.library-discover-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   CARD
========================================================= */

.library-discover-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--lib-border);
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.library-discover-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-6px);
    border-color: #b8cad8;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
}


/* =========================================================
   IMAGE
========================================================= */

.library-discover-image {
    position: relative;
    height: 175px;
    overflow: hidden;
    background: #e9eef3;
}

.library-discover-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.library-discover-card:hover .library-discover-image img {
    transform: scale(1.07);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.library-discover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 37, 69, 0.72),
        rgba(11, 37, 69, 0.05) 65%
    );
    pointer-events: none;
}


/* =========================================================
   ICON
========================================================= */

.library-discover-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);

    font-size: 1.25rem;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   CONTENT
========================================================= */

.library-discover-content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px 17px 18px;
}

.library-discover-number {
    display: block;
    margin-bottom: 5px;
    color: #9aa8b5;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.library-discover-content h3 {
    margin: 0 0 8px;
    color: var(--kv-blue);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.library-discover-content p {
    margin: 0 0 15px;
    color: var(--lib-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}


/* =========================================================
   CARD LINK
========================================================= */

.library-discover-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    margin-top: auto;

    color: var(--lib-heading);
    font-size: 0.85rem;
    font-weight: 800;
}

.library-discover-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;
    background: #edf3f7;

    font-size: 0.9rem;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.library-discover-card:hover .library-discover-link span {
    transform: translateX(4px);
    background: var(--kv-blue);
    color: #fff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199.98px) {

    .library-discover-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 767.98px) {

    .library-discover-section {
        padding: 40px 0 45px;
    }

    .library-discover-header {
        margin-bottom: 25px;
    }

    .library-discover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .library-discover-image {
        height: 155px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .library-discover-section {
        padding: 35px 0 40px;
    }

    .library-discover-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .library-discover-card {
        display: grid;
        grid-template-columns: 125px 1fr;
        min-height: 145px;
    }

    .library-discover-image {
        height: 100%;
        min-height: 145px;
    }

    .library-discover-content {
        padding: 14px;
    }

    .library-discover-content h3 {
        font-size: 0.95rem;
    }

    .library-discover-content p {
        font-size: 0.74rem;
        margin-bottom: 10px;
    }

    .library-discover-icon {
        width: 34px;
        height: 34px;
        top: 8px;
        right: 8px;
        font-size: 1rem;
    }

}