
:root {
    /* Modern Color Palette */
    --metric-blue: #2563eb;
    --metric-green: #059669;
    --metric-amber: #d97706;
    --metric-red: #dc2626;
    --metric-cyan: #0891b2;
    --metric-gray-50: #f9fafb;
    --metric-gray-100: #f3f4f6;
    --metric-gray-200: #e5e7eb;
    --metric-gray-300: #d1d5db;
    --metric-gray-400: #9ca3af;
    --metric-gray-500: #6b7280;
    --metric-gray-600: #4b5563;
    --metric-gray-700: #374151;
    --metric-gray-800: #1f2937;
    /* Ultra Compact Spacing */
    --space-xxs: 0.125rem; /* 2px */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.375rem; /* 6px */
    --space-md: 0.5rem; /* 8px */
    --space-lg: 0.75rem; /* 12px */
    --space-xl: 1rem; /* 16px */
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    color: var(--metric-gray-700);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== METRICS BLOCK ===== */
.metrics-block {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--metric-gray-200);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

    .metrics-block:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    }

/* Header */
.metrics-header {
    background: linear-gradient(135deg, var(--metric-gray-800) 0%, var(--metric-gray-900) 100%);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metrics-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.metrics-title-text {
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.metrics-title-icon {
    opacity: 0.8;
}

.metrics-subtitle {
    color: var(--metric-gray-400);
    margin-top: var(--space-xs);
    line-height: 1.3;
}

/* Metrics Container */
.metrics-container {
    padding: var(--space-sm);
}

/* Individual Metric Item */
.metric-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--metric-gray-200);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .metric-item:last-child {
        margin-bottom: 0;
    }

    .metric-item:hover {
        border-color: var(--metric-gray-300);
        transform: translateX(4px);
        box-shadow: var(--shadow-md);
    }

/* Image Column */
.metric-image-col {
    flex-shrink: 0;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: var(--space-sm);
}

.metric-image-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--metric-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--metric-gray-200);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.metric-item:hover .metric-image-wrapper {
    transform: scale(1.08);
    border-color: var(--metric-gray-300);
}

.metric-image {
    max-height: 48px;
    max-width: 48px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter var(--transition-fast);
}

.metric-item:hover .metric-image {
    filter: grayscale(0);
}

/* Content Column */
.metric-content-col {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.metric-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.metric-title {
    font-weight: 600;
    color: var(--metric-gray-800);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.badge-crossref {
    background: rgba(37, 99, 235, 0.15);
    color: var(--metric-blue);
}

.badge-scholar {
    background: rgba(5, 150, 105, 0.15);
    color: var(--metric-green);
}

.badge-issn {
    background: rgba(217, 119, 6, 0.15);
    color: var(--metric-amber);
}

.badge-sjiif {
    background: rgba(220, 38, 38, 0.15);
    color: var(--metric-red);
}

.badge-hindex {
    background: rgba(8, 145, 178, 0.15);
    color: var(--metric-cyan);
}

.metric-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
    text-decoration: none;
    color: var(--metric-gray-600);
    transition: color var(--transition-fast);
    padding: var(--space-xxs) var(--space-xs);
    border-radius: var(--radius-sm);
    background: var(--metric-gray-50);
    width: fit-content;
}

.metric-item:hover .metric-link {
    color: var(--metric-gray-800);
    background: var(--metric-gray-100);
}

.metric-link-icon {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.metric-item:hover .metric-link-icon {
    opacity: 1;
}

.metric-description {
    color: var(--metric-gray-500);
    line-height: 1.3;
    margin-top: var(--space-xs);
    display: none; /* Hidden by default for compactness */
}

.metric-item:hover .metric-description {
    display: block;
    animation: fadeIn var(--transition-normal) ease-out;
}

/* Hover Indicator */
.metric-hover-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background var(--transition-fast);
}

.metric-item[data-metric="crossref"]:hover .metric-hover-indicator {
    background: var(--metric-blue);
}

.metric-item[data-metric="googleScholar"]:hover .metric-hover-indicator {
    background: var(--metric-green);
}

.metric-item[data-metric="issn"]:hover .metric-hover-indicator {
    background: var(--metric-amber);
}

.metric-item[data-metric="sjiif"]:hover .metric-hover-indicator {
    background: var(--metric-red);
}

.metric-item[data-metric="hindex"]:hover .metric-hover-indicator {
    background: var(--metric-cyan);
}

/* Footer */
.metrics-footer {
    padding: var(--space-sm) var(--space-md);
    background: var(--metric-gray-50);
    border-top: 1px solid var(--metric-gray-200);
    text-align: center;
}

.metrics-note {
    color: var(--metric-gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.metrics-note-icon {
    font-size: 0.625rem;
    opacity: 0.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.metric-item {
    animation: fadeIn 0.3s ease-out backwards;
}

    .metric-item:nth-child(1) {
        animation-delay: 0.05s;
    }

    .metric-item:nth-child(2) {
        animation-delay: 0.1s;
    }

    .metric-item:nth-child(3) {
        animation-delay: 0.15s;
    }

    .metric-item:nth-child(4) {
        animation-delay: 0.2s;
    }

    .metric-item:nth-child(5) {
        animation-delay: 0.25s;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    body {
        padding: var(--space-sm);
        align-items: flex-start;
    }

    .metrics-block {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .metrics-header {
        padding: var(--space-sm) var(--space-md);
    }

    .metric-image-col {
        width: 56px;
    }

    .metric-image-wrapper {
        width: 48px;
        height: 48px;
    }

    .metric-image {
        max-height: 40px;
        max-width: 40px;
    }

    .metric-title {
        font-size: 0.75rem;
    }

    .metric-link {
        font-size: 0.6875rem;
    }

    .metrics-footer {
        padding: var(--space-xs) var(--space-sm);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .metrics-block {
        box-shadow: none;
        border: 1px solid #ddd;
        max-width: 100%;
    }

    .metric-item:hover {
        transform: none;
        box-shadow: none;
        border-color: #ddd;
    }

    .metric-link {
        color: #000;
        text-decoration: underline;
        background: none;
    }

    .metrics-footer {
        display: none;
    }
}
      /* Ultra-Compact Academic Metrics Block */
        .metrics-block {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            max-width: 100%;
            margin: 0 auto;
        }
        
        .metrics-header {
            background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .metrics-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: white;
        }
        
        .metrics-title-text {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .metrics-title-text::before {
            content: "📊";
            font-size: 16px;
        }
        
        .metrics-title-icon::before {
            content: "ℹ️";
            font-size: 14px;
            opacity: 0.7;
        }
        
        .metrics-subtitle {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 4px;
            line-height: 1.3;
        }
        
        .metrics-container {
            padding: 8px;
        }
        
        .metric-item {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            background: white;
            border-radius: 6px;
            border: 1px solid #e5e7eb;
            margin-bottom: 6px;
            transition: all 0.2s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }
        
        .metric-item:last-child {
            margin-bottom: 0;
        }
        
        .metric-item:hover {
            border-color: #d1d5db;
            transform: translateX(3px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .metric-hover-indicator {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: transparent;
            transition: background 0.2s ease;
        }
        
        .metric-item[data-metric="crossref"]:hover .metric-hover-indicator { background: #2563eb; }
        .metric-item[data-metric="googleScholar"]:hover .metric-hover-indicator { background: #059669; }
        .metric-item[data-metric="issn"]:hover .metric-hover-indicator { background: #d97706; }
        .metric-item[data-metric="sjiif"]:hover .metric-hover-indicator { background: #dc2626; }
        .metric-item[data-metric="hindex"]:hover .metric-hover-indicator { background: #0891b2; }
        
        .metric-image-col {
            flex-shrink: 0;
            width: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-right: 12px;
        }
        
        .metric-image-wrapper {
            width: 48px;
            height: 48px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: bold;
            transition: all 0.2s ease;
        }
        
        .metric-item[data-metric="crossref"] .metric-image-wrapper {
            background: #eff6ff;
            color: #2563eb;
            border: 2px solid #dbeafe;
        }
        
        .metric-item[data-metric="googleScholar"] .metric-image-wrapper {
            background: #ecfdf5;
            color: #059669;
            border: 2px solid #d1fae5;
        }
        
        .metric-item[data-metric="issn"] .metric-image-wrapper {
            background: #fffbeb;
            color: #d97706;
            border: 2px solid #fef3c7;
        }
        
        .metric-item[data-metric="sjiif"] .metric-image-wrapper {
            background: #fef2f2;
            color: #dc2626;
            border: 2px solid #fee2e2;
        }
        
        .metric-item[data-metric="hindex"] .metric-image-wrapper {
            background: #ecfeff;
            color: #0891b2;
            border: 2px solid #cffafe;
        }
        
        .metric-item:hover .metric-image-wrapper {
            transform: scale(1.1);
        }
        
        .metric-content-col {
            flex: 1;
            min-width: 0;
        }
        
        .metric-title-row {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 4px;
        }
        
        .metric-title {
            font-size: 13px;
            font-weight: 600;
            color: #1f2937;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .metric-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            font-size: 10px;
            font-weight: 700;
        }
        
        .badge-crossref { background: rgba(37, 99, 235, 0.15); color: #2563eb; }
        .badge-scholar { background: rgba(5, 150, 105, 0.15); color: #059669; }
        .badge-issn { background: rgba(217, 119, 6, 0.15); color: #d97706; }
        .badge-sjiif { background: rgba(220, 38, 38, 0.15); color: #dc2626; }
        .badge-hindex { background: rgba(8, 145, 178, 0.15); color: #0891b2; }
        
        .metric-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 500;
            text-decoration: none;
            color: #4b5563;
            transition: color 0.2s ease;
            padding: 4px 8px;
            border-radius: 4px;
            background: #f9fafb;
            width: fit-content;
        }
        
        .metric-item:hover .metric-link {
            color: #1f2937;
            background: #f3f4f6;
        }
        
        .metric-link::before {
            content: "🔗";
            font-size: 10px;
            opacity: 0.7;
        }
        
        .metric-description {
            font-size: 11px;
            color: #6b7280;
            line-height: 1.3;
            margin-top: 4px;
            display: none;
        }
        
        .metric-item:hover .metric-description {
            display: block;
            animation: fadeIn 0.2s ease-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-4px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .metrics-footer {
            padding: 8px 12px;
            background: #f9fafb;
            border-top: 1px solid #e5e7eb;
            text-align: center;
        }
        
        .metrics-note {
            font-size: 11px;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .metrics-note::before {
            content: "🔄";
            font-size: 10px;
            opacity: 0.6;
        }
        
        /* Mobile Responsive */
        @media (max-width: 480px) {
            .metrics-block {
                border-radius: 6px;
            }
            
            .metrics-header {
                padding: 10px 12px;
            }
            
            .metrics-title-text {
                font-size: 12px;
            }
            
            .metric-image-col {
                width: 48px;
                padding-right: 8px;
            }
            
            .metric-image-wrapper {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            
            .metric-title {
                font-size: 12px;
            }
            
            .metric-link {
                font-size: 11px;
                padding: 3px 6px;
            }
            
            .metrics-footer {
                padding: 6px 8px;
            }
        }
		
		        .journal-stats-block {
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            background: #ffffff;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            max-width: 100%;
        }
        
        .stats-header {
            background: #2c3e50;
            padding: 12px 16px;
            border-bottom: 1px solid #1a252f;
            color: white;
        }
        
        .stats-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .stats-title-text {
            font-size: 14px;
            font-weight: bold;
            text-transform: uppercase;
        }
        
        .stats-title-badge {
            background: #3498db;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: bold;
        }
        
        .stats-subtitle {
            font-size: 12px;
            color: #bdc3c7;
        }
        
        .stats-container {
            padding: 8px 0;
        }
        
        .stat-item {
            padding: 12px 16px;
            border-bottom: 1px solid #f1f1f1;
            transition: background 0.2s;
        }
        
        .stat-item:last-child {
            border-bottom: none;
        }
        
        .stat-item:hover {
            background: #f8f9fa;
        }
        
        .stat-icon-col {
            float: left;
            width: 36px;
            height: 36px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            margin-right: 12px;
        }
        
        .stat-item:nth-child(1) .stat-icon-col {
            background: #e3f2fd;
            color: #1976d2;
        }
        
        .stat-item:nth-child(2) .stat-icon-col {
            background: #e8f5e9;
            color: #388e3c;
        }
        
        .stat-item:nth-child(3) .stat-icon-col {
            background: #fff3e0;
            color: #f57c00;
        }
        
        .stat-item:nth-child(4) .stat-icon-col {
            background: #f3e5f5;
            color: #7b1fa2;
        }
        
        .stat-content-col {
            overflow: hidden;
        }
        
        .stat-main-text {
            font-size: 13px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 2px;
        }
        
        .stat-label {
            color: #34495e;
        }
        
        .stat-value {
            font-weight: bold;
            background: #ecf0f1;
            padding: 1px 6px;
            border-radius: 3px;
            font-size: 12px;
            margin-left: 6px;
        }
        
        .stat-details {
            font-size: 11px;
            color: #7f8c8d;
            margin-top: 2px;
        }
        
        .price-values {
            margin-top: 4px;
        }
        
        .price-value {
            display: block;
            font-size: 12px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 3px;
            margin-bottom: 2px;
        }
        
        .stats-footer {
            padding: 10px 16px;
            background: #f8f9fa;
            border-top: 1px solid #eee;
            text-align: center;
            font-size: 11px;
            color: #7f8c8d;
        }
        
        @media (max-width: 480px) {
            .stats-header {
                padding: 10px 12px;
            }
            
            .stat-item {
                padding: 10px 12px;
            }
            
            .stat-icon-col {
                width: 32px;
                height: 32px;
                font-size: 14px;
                margin-right: 10px;
            }
        }
		
		        /* ===== ELITE ACADEMIC NAVIGATION - REFINED DESIGN ===== */
               /* ===== ELITE ACADEMIC NAVIGATION - REFINED DESIGN ===== */
        .academic-nav {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'SF Pro Display', system-ui, sans-serif;
        }
        
        .academic-nav > ul {
            list-style: none;
            padding: 0;
            margin: 0;
            background: #ffffff;
            border-radius: 16px;
            border: 1px solid rgba(0, 0, 0, 0.06);
            box-shadow: 
                0 4px 20px rgba(0, 0, 0, 0.05),
                0 1px 3px rgba(0, 0, 0, 0.03);
            overflow: hidden;
            position: relative;
        }
        
        .academic-nav > ul::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(0, 0, 0, 0.05) 20%, 
                rgba(0, 0, 0, 0.1) 50%, 
                rgba(0, 0, 0, 0.05) 80%, 
                transparent);
        }
        
        /* Navigation Header */
        .nav-header {
            padding: 20px 24px;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #ffffff;
            position: relative;
            overflow: hidden;
        }
        
        .nav-header::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, 
                transparent 30%, 
                rgba(255, 255, 255, 0.03) 50%, 
                transparent 70%);
            animation: gentleShine 8s infinite linear;
        }
        
        @keyframes gentleShine {
            0% { transform: translateX(-100%) skewX(-15deg); }
            100% { transform: translateX(100%) skewX(-15deg); }
        }
        
        .nav-title {
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            z-index: 1;
        }
        
        .nav-title::before {
            content: "📚";
            font-size: 20px;
            opacity: 0.9;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
        }
        
        .nav-badge {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            color: #ffffff;
            padding: 6px 14px;
            border-radius: 24px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.8px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            position: relative;
            z-index: 1;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        /* Subtitle */
        .nav-subtitle {
            padding: 16px 24px;
            font-size: 14px;
            color: #475569;
            line-height: 1.5;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
            font-weight: 500;
            letter-spacing: -0.1px;
        }
        
        /* Categories Container */
        .category-items-container {
            padding: 8px;
        }
        
        /* Individual Category Item */
        .category-item {
            margin: 4px 8px 8px;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
            position: relative;
            border: 1px solid transparent;
			display:flex;
        }
        
        .category-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            border-color: rgba(0, 0, 0, 0.05);
        }
        
        .category-item::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: transparent;
            transition: background 0.35s ease;
        }
        
        /* Category Colors */
        .category-agriculture { --cat-color: #10b981; --cat-light: rgba(16, 185, 129, 0.08); }
        .category-engineering { --cat-color: #3b82f6; --cat-light: rgba(59, 130, 246, 0.08); }
        .category-sciences { --cat-color: #8b5cf6; --cat-light: rgba(139, 92, 246, 0.08); }
        .category-computer { --cat-color: #f59e0b; --cat-light: rgba(245, 158, 11, 0.08); }
        .category-physics { --cat-color: #ef4444; --cat-light: rgba(239, 68, 68, 0.08); }
        .category-chemistry { --cat-color: #06b6d4; --cat-light: rgba(6, 182, 212, 0.08); }
        .category-biology { --cat-color: #84cc16; --cat-light: rgba(132, 204, 22, 0.08); }
        .category-mathematics { --cat-color: #8b5cf6; --cat-light: rgba(139, 92, 246, 0.08); }
        
        .category-item:hover::before {
            background: var(--cat-color);
        }
        
        /* Category Link Container */
        .category-item > div {
            display: flex;
            align-items: center;
            background: #ffffff;
            transition: all 0.35s ease;
            position: relative;
            cursor: pointer;
        }
        
        .category-item:hover > div {
            background: var(--cat-light);
            padding-left: 24px;
        }
        
        /* Category Icon - Refined Design */
        .category-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 18px;
            font-size: 22px;
            transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .category-icon::before {
            content: "";
            position: absolute;
            inset: 0;
            background: inherit;
            opacity: 0.1;
        }
        
        .category-icon::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.8) 0%, 
                rgba(255, 255, 255, 0.2) 50%, 
                transparent 100%);
            -webkit-mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            mask: 
                linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }
        
        .category-item:hover .category-icon {
            transform: scale(1.08) rotate(3deg);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        /* Icon Backgrounds with Refined Gradients */
        .category-agriculture .category-icon {
            background: linear-gradient(135deg, #10b981 0%, #0d9c6e 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
        }
        
        .category-engineering .category-icon {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
        }
        
        .category-sciences .category-icon {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
        }
        
        .category-computer .category-icon {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
        }
        
        .category-physics .category-icon {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
        }
        
        .category-chemistry .category-icon {
            background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
        }
        
        .category-biology .category-icon {
            background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(132, 204, 22, 0.25);
        }
        
        .category-mathematics .category-icon {
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
        }
        
        /* Category Content */
        .category-content {
            flex: 1;
            min-width: 0;
            padding-right: 12px;
        }
        
        .category-title {
            font-size: 15px;
            font-weight: 700;
            color: #1e293b;
            line-height: 1.3;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.1px;
        }
        
        .category-description {
            font-size: 13px;
            color: #64748b;
            line-height: 1.5;
            opacity: 0;
            max-height: 0;
            transform: translateY(-5px);
            transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
            overflow: hidden;
            letter-spacing: -0.1px;
        }
        
        .category-item:hover .category-description {
            opacity: 1;
            max-height: 40px;
            transform: translateY(0);
        }
        
        /* Category Badge */
        .category-badge {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: var(--cat-color);
            padding: 5px 12px;
            border-radius: 14px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.8px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            text-transform: uppercase;
        }
        
        /* Arrow Indicator */
        .category-arrow {
            color: #94a3b8;
            font-size: 18px;
            font-weight: 300;
            opacity: 0;
            transform: translateX(-8px) scale(0.8);
            transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
            flex-shrink: 0;
        }
        
        .category-item:hover .category-arrow {
            opacity: 1;
            transform: translateX(0) scale(1);
            color: var(--cat-color);
        }
        
        /* Footer */
        .nav-footer {
            padding: 16px 24px;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border-top: 1px solid #e2e8f0;
        }
        
        .nav-note {
            font-size: 12px;
            color: #64748b;
            font-weight: 500;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            text-align: center;
            line-height: 1.4;
        }
        
        .nav-note::before {
            content: "✨";
            font-size: 14px;
            opacity: 0.8;
        }
        
        /* Loading Animation */
        @keyframes subtleFadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .category-item {
            animation: subtleFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
        }
        
        .category-item:nth-child(1) { animation-delay: 0.05s; }
        .category-item:nth-child(2) { animation-delay: 0.1s; }
        .category-item:nth-child(3) { animation-delay: 0.15s; }
        .category-item:nth-child(4) { animation-delay: 0.2s; }
        .category-item:nth-child(5) { animation-delay: 0.25s; }
        .category-item:nth-child(6) { animation-delay: 0.3s; }
        .category-item:nth-child(7) { animation-delay: 0.35s; }
        .category-item:nth-child(8) { animation-delay: 0.4s; }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .academic-nav > ul {
                border-radius: 14px;
            }
            
            .nav-header {
                padding: 18px 20px;
            }
            
            .nav-title {
                font-size: 15px;
            }
            
            .nav-badge {
                padding: 5px 12px;
                font-size: 11px;
            }
            
            .nav-subtitle {
                padding: 14px 20px;
                font-size: 13.5px;
            }
            
            .category-item > div {
                padding: 16px 18px;
            }
            
            .category-icon {
                width: 44px;
                height: 44px;
                font-size: 20px;
                margin-right: 16px;
            }
            
            .category-title {
                font-size: 14.5px;
            }
            
            .category-badge {
                padding: 4px 10px;
                font-size: 10.5px;
            }
            
            .category-item:hover > div {
                padding-left: 22px;
            }
        }
        
        /* Ultra-Compact for Small Screens */
        @media (max-width: 480px) {
            .nav-header {
                padding: 16px 18px;
            }
            
            .nav-title {
                font-size: 14px;
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .nav-badge {
                align-self: flex-start;
            }
            
            .category-item > div {
                padding: 14px 16px;
            }
            
            .category-icon {
                width: 40px;
                height: 40px;
                font-size: 18px;
                margin-right: 14px;
            }
            
            .category-title {
                font-size: 14px;
                flex-wrap: wrap;
            }
        }
        
        /* Hover State Refinements */
        .category-item:hover {
            z-index: 10;
        }
        
        .category-item:hover .category-icon {
            filter: brightness(1.05);
        }
        
 