/* ========================================
   MODERN EPRINTS THEME - COMPLETE
   Repository: UNIDA Gontor
   Optimized & Professional Design
   ======================================== */

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #002b80;
    --primary-blue: #0052cc;
    --accent-blue: #0066ff;
    --light-blue: #3385ff;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-gray: #6C757D;
    --border-gray: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 43, 128, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 43, 128, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 43, 128, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 43, 128, 0.2);
}

body, html {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--text-dark) !important;
    line-height: 1.6 !important;
}

/* ========================================
   MODERN HEADER - BLUE GRADIENT
   ======================================== */
.modern-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: linear-gradient(135deg, #002b80, #0052cc) !important;
    box-shadow: var(--shadow-md) !important;
}

.header-top {
    background: rgba(0, 0, 0, 0.15) !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.header-top-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.top-contact {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.85em !important;
    transition: color 0.3s ease !important;
}

.contact-link:hover {
    color: white !important;
}

.top-actions {
    display: flex !important;
    gap: 10px !important;
}

.top-btn {
    padding: 6px 16px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.top-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.header-main {
    padding: 18px 0 !important;
}

.header-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 30px !important;
}

.brand-section {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.brand-logo {
    height: 55px !important;
    width: auto !important;
}

.brand-info {
    display: flex !important;
    flex-direction: column !important;
}

.brand-title {
    font-size: 1.3em !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: white !important;
}

.brand-subtitle {
    font-size: 0.8em !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

.desktop-nav {
    display: flex !important;
    gap: 25px !important;
    align-items: center !important;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9em !important;
    padding: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.nav-item:hover,
.nav-item.active {
    color: white !important;
    border-bottom-color: white !important;
}

.nav-item.btn-login {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    border-bottom: none !important;
}

.nav-item.btn-login:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Desktop Navbar Dropdown */
.nav-item-dropdown {
    position: relative !important;
    display: inline-block !important;
}

.nav-item-dropdown .nav-item {
    cursor: pointer !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 43, 128, 0.15) !important;
    min-width: 200px !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    color: #1A1A1A !important;
    text-decoration: none !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background: #f8f9fa !important;
    color: #0052cc !important;
    padding-left: 24px !important;
}

.dropdown-item i {
    width: 20px !important;
    color: #0052cc !important;
}

/* Mobile Nav Button Styling */
.mobile-nav-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

/* Mobile Search Modal */
.mobile-search-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.mobile-search-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-search-container {
    background: white !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: 90vh !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 43, 128, 0.3) !important;
    transform: scale(0.9) !important;
    transition: transform 0.3s ease !important;
}

.mobile-search-modal.active .mobile-search-container {
    transform: scale(1) !important;
}

.mobile-search-header {
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%) !important;
    color: white !important;
    padding: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mobile-search-header h3 {
    margin: 0 !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.close-mobile-search {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2em !important;
    transition: all 0.3s ease !important;
}

.close-mobile-search:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) !important;
}

.mobile-search-body {
    padding: 25px !important;
}

.mobile-search-input-group {
    position: relative !important;
    margin-bottom: 15px !important;
}

.mobile-search-input-group i {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6c757d !important;
    font-size: 1.1em !important;
}

.mobile-search-input-group input {
    width: 100% !important;
    padding: 16px 16px 16px 48px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    font-size: 1em !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.mobile-search-input-group input:focus {
    border-color: #0052cc !important;
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1) !important;
}

.mobile-search-btn {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.mobile-search-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.3) !important;
}

.mobile-advanced-btn {
    width: 100% !important;
    padding: 14px !important;
    background: white !important;
    color: #0052cc !important;
    border: 2px solid #0052cc !important;
    border-radius: 12px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.mobile-advanced-btn:hover {
    background: #0052cc !important;
    color: white !important;
}

/* Mobile Sidebar */
.mobile-sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.mobile-sidebar-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    background: white !important;
    z-index: 9999 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
}

.mobile-sidebar.active {
    transform: translateX(0) !important;
}

.mobile-sidebar-header {
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%) !important;
    color: white !important;
    padding: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mobile-sidebar-header h3 {
    margin: 0 !important;
    font-size: 1.2em !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.close-mobile-sidebar {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2em !important;
    transition: all 0.3s ease !important;
}

.close-mobile-sidebar:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) !important;
}

.mobile-sidebar-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 20px !important;
}

.mobile-menu-section {
    margin-bottom: 20px !important;
}

.mobile-menu-title {
    font-size: 0.85em !important;
    font-weight: 700 !important;
    color: #6c757d !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.mobile-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    color: #1A1A1A !important;
    text-decoration: none !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 6px !important;
}

.mobile-menu-item:hover {
    background: #f8f9fa !important;
    color: #0052cc !important;
    padding-left: 20px !important;
}

.mobile-menu-item i {
    width: 20px !important;
    color: #0052cc !important;
    font-size: 1.1em !important;
}

.mobile-menu-divider {
    height: 1px !important;
    background: #e9ecef !important;
    margin: 20px 0 !important;
}

.mobile-login-item {
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%) !important;
    color: white !important;
}

.mobile-login-item:hover {
    color: white !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2) !important;
}

.mobile-login-item i {
    color: white !important;
}

/* ========================================
   HERO SECTION - COMPACT & POWERFUL
   ======================================== */
.ultra-hero {
    background: linear-gradient(135deg, #002b80 0%, #0052cc 50%, #0066ff 100%) !important;
    padding: 60px 20px 70px !important;
    position: relative !important;
    overflow: hidden !important;
}

.ultra-hero::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>') !important;
    opacity: 0.4 !important;
}

.hero-wrapper {
    max-width: 1000px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
}

.animate-up {
    text-align: center !important;
    margin-bottom: 35px !important;
}

.hero-main-title {
    font-size: 2.5em !important;
    font-weight: 900 !important;
    color: white !important;
    margin: 0 0 12px 0 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.hero-main-subtitle {
    font-size: 1.2em !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 0 10px 0 !important;
    font-weight: 600 !important;
}

.hero-description {
    font-size: 0.95em !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
    margin: 0 auto !important;
    max-width: 650px !important;
}

/* ========================================
   ADVANCED SEARCH CARD - PROFESSIONAL
   ======================================== */
.search-card {
    background: white !important;
    border-radius: 16px !important;
    padding: 35px !important;
    box-shadow: 0 20px 60px rgba(0, 43, 128, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.search-tabs {
    margin-bottom: 25px !important;
    display: flex !important;
    gap: 10px !important;
}

.search-tab {
    background: linear-gradient(135deg, #0052cc, #0066ff) !important;
    color: white !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.95em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.search-tab:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3) !important;
}

.search-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

.search-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
}

.input-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.input-label {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: 0.9em !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.input-label i {
    color: var(--primary-blue) !important;
    font-size: 0.95em !important;
}

.modern-input {
    padding: 12px 16px !important;
    border: 2px solid var(--border-gray) !important;
    border-radius: 10px !important;
    font-size: 0.95em !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    background: white !important;
}

.modern-input:focus {
    outline: none !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1) !important;
}

.modern-input::placeholder {
    color: #adb5bd !important;
}

.search-btn-primary {
    background: linear-gradient(135deg, #0052cc, #0066ff) !important;
    color: white !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: 10px !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.search-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.35) !important;
}

.search-btn-primary i {
    font-size: 1em !important;
}

/* ========================================
   LATEST ITEMS SECTION - NEW!
   ======================================== */
.latest-items-section {
    padding: 50px 0 !important;
    background: white !important;
    border-bottom: 1px solid var(--border-gray) !important;
}

.latest-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.latest-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
}

.latest-title {
    font-size: 1.8em !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-blue)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 !important;
}

.view-all-link {
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95em !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: gap 0.3s ease !important;
}

.view-all-link:hover {
    gap: 10px !important;
}

.latest-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.latest-item {
    background: white !important;
    border: 1px solid var(--border-gray) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.latest-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-blue) !important;
}

.item-type {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 102, 255, 0.1)) !important;
    color: var(--primary-blue) !important;
    border-radius: 6px !important;
    font-size: 0.75em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
}

.item-title {
    font-size: 1em !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.item-authors {
    font-size: 0.85em !important;
    color: var(--text-gray) !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.item-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.8em !important;
    color: var(--text-gray) !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--border-gray) !important;
}

.item-date {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.item-views {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* ========================================
   STATS SECTION - COMPACT & EFFICIENT
   ======================================== */
.stats-section {
    padding: 50px 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.stats-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px !important;
}

.stat-card {
    background: white !important;
    padding: 25px 20px !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
}

.stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(0, 82, 204, 0.2) !important;
}

.stat-icon {
    width: 55px !important;
    height: 55px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6em !important;
    flex-shrink: 0 !important;
}

.stat-icon.blue { background: linear-gradient(135deg, #0052cc, #0066ff) !important; color: white !important; }
.stat-icon.purple { background: linear-gradient(135deg, #6f42c1, #9b59b6) !important; color: white !important; }
.stat-icon.green { background: linear-gradient(135deg, #28a745, #20c997) !important; color: white !important; }
.stat-icon.orange { background: linear-gradient(135deg, #fd7e14, #ff9800) !important; color: white !important; }

.stat-content {
    flex: 1 !important;
}

.stat-number {
    font-size: 1.8em !important;
    font-weight: 800 !important;
    margin: 0 0 4px 0 !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-blue)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1 !important;
}

.stat-label {
    font-size: 0.85em !important;
    color: var(--text-gray) !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

/* ========================================
   COLLECTIONS SECTION - COMPACT
   ======================================== */
.collections-section {
    padding: 50px 0 !important;
    background: white !important;
}

.collections-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.section-title {
    font-size: 1.8em !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-blue)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.section-subtitle {
    text-align: center !important;
    font-size: 0.95em !important;
    color: var(--text-gray) !important;
    margin-bottom: 35px !important;
}

.collection-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 20px !important;
}

.collection-card {
    background: white !important;
    padding: 25px 20px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-gray) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

.collection-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-blue) !important;
}

.collection-icon {
    width: 55px !important;
    height: 55px !important;
    margin: 0 auto 15px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1), rgba(0, 102, 255, 0.1)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.6em !important;
    color: var(--primary-blue) !important;
}

.collection-title {
    font-size: 1.05em !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: var(--text-dark) !important;
}

.collection-desc {
    font-size: 0.85em !important;
    color: var(--text-gray) !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
}

.collection-link {
    color: var(--primary-blue) !important;
    font-weight: 600 !important;
    font-size: 0.85em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

/* ========================================
   FEATURES SECTION - COMPACT
   ======================================== */
.features-section {
    padding: 50px 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.features-wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 20px !important;
}

.feature-card {
    background: white !important;
    padding: 25px 20px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-gray) !important;
    transition: all 0.3s ease !important;
}

.feature-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-blue) !important;
}

.feature-icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4em !important;
    margin-bottom: 15px !important;
}

.feature-icon.blue { background: linear-gradient(135deg, #0052cc, #0066ff) !important; color: white !important; }
.feature-icon.purple { background: linear-gradient(135deg, #6f42c1, #9b59b6) !important; color: white !important; }
.feature-icon.green { background: linear-gradient(135deg, #28a745, #20c997) !important; color: white !important; }
.feature-icon.orange { background: linear-gradient(135deg, #fd7e14, #ff9800) !important; color: white !important; }
.feature-icon.red { background: linear-gradient(135deg, #dc3545, #e74c3c) !important; color: white !important; }
.feature-icon.teal { background: linear-gradient(135deg, #17a2b8, #20c997) !important; color: white !important; }

.feature-card h3 {
    font-size: 1.05em !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: var(--text-dark) !important;
}

.feature-card p {
    font-size: 0.85em !important;
    color: var(--text-gray) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* ========================================
   MODERN FOOTER
   ======================================== */
.modern-footer {
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 50%, #00419e 100%) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 60px 0 30px !important;
    position: relative !important;
    overflow: hidden !important;
}

.modern-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: radial-gradient(circle at 30% 50%, rgba(0, 97, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 204, 255, 0.15) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

.footer-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    position: relative !important;
    z-index: 1 !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 35px !important;
    margin-bottom: 35px !important;
}

.footer-col h4 {
    color: white !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    margin: 0 0 18px 0 !important;
}

.footer-col p {
    line-height: 1.7 !important;
    margin: 0 !important;
    font-size: 0.9em !important;
}

.footer-col a {
    display: block !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    font-size: 0.9em !important;
    padding: 5px 0 !important;
    border-radius: 4px !important;
}

.footer-col a:hover {
    color: white !important;
    padding-left: 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.footer-col a i {
    margin-right: 10px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    width: 18px !important;
    text-align: center !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 25px !important;
    text-align: center !important;
}

.footer-bottom p {
    margin: 0 !important;
    font-size: 0.85em !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-nav {
    display: none !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%) !important;
    box-shadow: 0 -4px 20px rgba(0, 43, 128, 0.3) !important;
    z-index: 1000 !important;
    padding: 10px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mobile-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.mobile-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 8px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.7em !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border-radius: 10px !important;
}

.mobile-nav-item i {
    font-size: 1.4em !important;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .desktop-nav { display: none !important; }
    .mobile-nav { display: block !important; }

    /* Mobile Header - Only Logo Centered */
    .header-top { display: none !important; }
    .brand-section {
        justify-content: center !important;
        width: 100% !important;
    }
    .brand-info { display: none !important; }
    .brand-logo {
        height: 50px !important;
        margin: 0 !important;
    }
    .header-main {
        padding: 15px 0 !important;
    }
    .header-content {
        justify-content: center !important;
    }

    .hero-main-title { font-size: 1.8em !important; }
    .hero-main-subtitle { font-size: 1.1em !important; }
    .hero-description { font-size: 0.9em !important; }

    .search-row { grid-template-columns: 1fr !important; }
    .search-card { padding: 25px 18px !important; }

    .latest-grid { grid-template-columns: 1fr !important; }
    .stats-wrapper { grid-template-columns: repeat(2, 1fr) !important; }
    .collection-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .features-grid { grid-template-columns: 1fr !important; }
}
/* ═══════════════════════════════════════════════════════════
   PREMIUM LATEST PUBLICATIONS SECTION
   ═══════════════════════════════════════════════════════════ */

.latest-publications-premium {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.latest-publications-premium:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0052cc, #0066ff, #3385ff, #0066ff, #0052cc);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.publications-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header - Premium */
.section-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.header-content-left {
  flex: 1;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  border-radius: 30px;
  font-size: 0.85em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.header-badge i {
  animation: fire 1.5s ease-in-out infinite;
}

@keyframes fire {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.section-title-premium {
  font-size: 3em;
  font-weight: 900;
  color: #002b80;
  margin: 0 0 10px 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #002b80, #0052cc, #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.15em;
  color: #6c757d;
  margin: 0;
  font-weight: 500;
}

.btn-view-all-premium {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #002b80, #0052cc);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(0, 43, 128, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-view-all-premium:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-view-all-premium:hover:before {
  left: 100%;
}

.btn-view-all-premium:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 43, 128, 0.35);
  background: linear-gradient(135deg, #0052cc, #0066ff);
}

.btn-view-all-premium i {
  transition: transform 0.3s ease;
}

.btn-view-all-premium:hover i {
  transform: translateX(5px);
}

/* Publications Grid - 3 columns responsive */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  position: relative;
}

/* Premium Publication Card */
.publication-card-premium {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 43, 128, 0.1);
  border: 2px solid transparent;
  position: relative;
}

.publication-card-premium:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0052cc, #0066ff, #3385ff);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.publication-card-premium:hover:before {
  transform: scaleX(1);
}

.publication-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 82, 204, 0.2);
  border-color: #0052cc;
}

/* Card Header */
.card-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
}

.publication-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
  border-radius: 25px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.publication-type i {
  font-size: 1.1em;
}

.publication-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: white;
  color: #002b80;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 700;
  border: 2px solid #dee2e6;
}

/* Card Body */
.card-body-premium {
  padding: 28px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.publication-title-premium {
  font-size: 1.4em;
  font-weight: 800;
  color: #002b80;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.publication-card-premium:hover .publication-title-premium {
  color: #0052cc;
}

.publication-authors {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495057;
  font-size: 1em;
  font-weight: 600;
}

.publication-authors i {
  color: #0052cc;
  font-size: 1.2em;
  flex-shrink: 0;
}

.publication-authors span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.et-al {
  font-style: italic;
  color: #6c757d;
}

.no-author {
  color: #adb5bd;
  font-style: italic;
}

/* Metadata Row */
.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.05), rgba(0, 102, 255, 0.05));
  border-radius: 20px;
  font-size: 0.9em;
  color: #495057;
  font-weight: 600;
}

.meta-item i {
  color: #0052cc;
  font-size: 1.1em;
}

/* Card Footer */
.card-footer-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-top: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.view-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0052cc;
  font-weight: 700;
  font-size: 1em;
}

.view-detail i {
  transition: transform 0.3s ease;
}

.publication-card-premium:hover .view-detail i {
  transform: scale(1.2);
}

.arrow-icon {
  color: #0052cc;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.publication-card-premium:hover .arrow-icon {
  transform: translateX(5px);
}

.publication-card-premium:hover .card-footer-premium {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

/* No Publications State */
.no-publications {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08);
}

.no-publications i {
  font-size: 4em;
  color: #dee2e6;
  margin-bottom: 20px;
}

.no-publications p {
  font-size: 1.2em;
  color: #6c757d;
  margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .publications-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .latest-publications-premium {
    padding: 60px 0;
  }

  .section-header-premium {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 35px;
  }

  .section-title-premium {
    font-size: 2.2em;
  }

  .publications-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .publication-title-premium {
    font-size: 1.25em;
  }

  .btn-view-all-premium {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   PREMIUM LATEST PUBLICATIONS LIST
   ======================================== */

.premium-list-item {
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  gap: 25px;
  background: white;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 2px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 43, 128, 0.06);
  position: relative;
  overflow: hidden;
}

.premium-list-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #0052cc, #0066ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-list-item:hover {
  border-color: #0052cc;
  box-shadow: 0 8px 30px rgba(0, 82, 204, 0.15);
  transform: translateY(-3px);
}

.premium-list-item:hover:before {
  opacity: 1;
}

/* List Number */
.premium-list-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.list-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  font-size: 1.3em;
  font-weight: 800;
  color: #002b80;
  border: 2px solid #dee2e6;
}

/* Content Area */
.premium-list-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header with badges */
.premium-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.year-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: white;
  color: #495057;
  border: 2px solid #e9ecef;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}

/* Title */
.premium-list-title {
  margin: 0;
  padding: 0;
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.4;
}

.title-link {
  color: #002b80;
  text-decoration: none;
  transition: color 0.2s ease;
}

.title-link:hover {
  color: #0052cc;
}

/* Authors */
.premium-list-authors {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #495057;
  font-size: 0.95em;
}

.premium-list-authors i {
  color: #6c757d;
}

.authors-text {
  font-weight: 500;
}

.no-author {
  color: #adb5bd;
  font-style: italic;
}

/* Metadata Badges */
.premium-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  color: #495057;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-badge a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-badge .badge-text {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.meta-badge .badge-text a {
  color: inherit;
  text-decoration: none;
}

.meta-badge i {
  font-size: 0.9em;
  flex-shrink: 0;
}

.faculty-badge {
  background: #e3f2fd;
  color: #1565c0;
}

.subject-badge {
  background: #f3e5f5;
  color: #6a1b9a;
}

.status-badge {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Actions */
.premium-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.view-btn {
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
}

.view-btn:hover {
  background: linear-gradient(135deg, #003d99, #0052cc);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.download-btn {
  background: white;
  color: #28a745;
  border-color: #28a745;
}

.download-btn:hover {
  background: #28a745;
  color: white;
  transform: translateY(-1px);
}

/* Icon/Thumbnail */
.premium-list-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.premium-list-icon img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.premium-list-icon .doc-icon,
.premium-list-icon .default-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dee2e6;
}

.premium-list-icon .doc-icon i,
.premium-list-icon .default-icon i {
  font-size: 2.5em;
  color: #0052cc;
}

.default-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 2px solid #dee2e6;
}

.default-icon i {
  font-size: 3em;
  color: #adb5bd;
}

/* Responsive */
@media (max-width: 992px) {
  .premium-list-item {
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 20px;
  }

  .premium-list-icon {
    display: none;
  }

  .list-number {
    width: 40px;
    height: 40px;
    font-size: 1.1em;
  }

  .premium-list-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .premium-list-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .premium-list-number {
    display: none;
  }

  .premium-list-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .action-btn {
    justify-content: center;
  }
}

/* Latest Tool Container */
.ep_latest_tool_list {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ep_latest_tool_list tbody,
.ep_latest_tool_list tr {
  background: transparent !important;
  border: none !important;
}

.ep_latest_tool_list td {
  padding: 0 !important;
  background: transparent !important;
}


/* ========================================
   TABLE WRAPPER FOR LATEST TOOL PAGE
   ======================================== */

/* Reset table styling completely for premium list */
table.ep_latest_tool_list {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 40px auto !important;
  background: transparent !important;
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  padding: 0 20px !important;
}

table.ep_latest_tool_list tbody {
  background: transparent !important;
}

table.ep_latest_tool_list tr {
  background: transparent !important;
  border: none !important;
}

table.ep_latest_tool_list td {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Table row/cell wrappers for premium list */
.premium-list-row {
  background: transparent !important;
  border: none !important;
}

.premium-list-cell {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}


/* ========================================
   EPRINT DETAIL PAGE - MODERN THEME
   ======================================== */

/* Hero Header Section */
.eprint-detail-header {
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
  color: white;
  padding: 60px 40px;
  margin: -20px -20px 40px -20px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 82, 204, 0.2);
}

.eprint-detail-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.detail-type-badge,
.detail-year-badge,
.detail-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
  color: white;
}

.detail-type-badge i,
.detail-year-badge i,
.detail-status-badge i {
  font-size: 1.1em;
}

.eprint-detail-title {
  font-size: 2.5em;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 20px 0;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.eprint-detail-authors {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.eprint-detail-authors i {
  font-size: 1.3em;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid #0052cc;
}

.section-title i {
  color: #0052cc;
  font-size: 0.9em;
}

/* Notice Card */
.eprint-notice-card {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border-left: 5px solid #ffc107;
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.15);
}

.eprint-notice-card i {
  color: #ff9800;
  font-size: 1.8em;
  flex-shrink: 0;
}

/* No Fulltext Card */
.eprint-no-fulltext-card {
  background: white;
  border: 2px dashed #dee2e6;
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  margin-bottom: 30px;
}

.eprint-no-fulltext-card i {
  font-size: 4em;
  color: #6c757d;
  margin-bottom: 20px;
  display: block;
}

.no-fulltext-content h3 {
  font-size: 1.5em;
  color: #495057;
  margin-bottom: 20px;
}

.request-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.request-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 82, 204, 0.4);
  color: white;
  text-decoration: none;
}

/* Download Section */
.eprint-download-section {
  margin-bottom: 40px;
}

.download-cards-grid {
  display: grid;
  gap: 20px;
  margin-top: 25px;
}

.download-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 25px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 43, 128, 0.08);
}

.download-card:hover {
  border-color: #0052cc;
  box-shadow: 0 8px 30px rgba(0, 82, 204, 0.15);
  transform: translateY(-3px);
}

.download-card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-card-icon i {
  font-size: 2.5em;
  color: #0052cc;
}

.download-card-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-filename {
  font-size: 1.2em;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.download-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3);
}

.download-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
  color: white;
  text-decoration: none;
}

.request-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
}

.request-doc-btn:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.related-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9em;
  color: #495057;
}

/* Info Card */
.eprint-info-card {
  background: white;
  border-left: 5px solid #0052cc;
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.08);
}

.eprint-info-card i {
  color: #0052cc;
  font-size: 1.8em;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.official-url-link {
  color: #0052cc;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.official-url-link:hover {
  text-decoration: underline;
}

/* Abstract Section */
.eprint-abstract-section {
  background: white;
  border-radius: 16px;
  padding: 35px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08);
  border: 2px solid #e9ecef;
}

.abstract-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #495057;
  text-align: justify;
  margin-top: 20px;
}

/* Metadata Section */
.eprint-metadata-section {
  margin-bottom: 40px;
}

.metadata-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.metadata-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 43, 128, 0.05);
}

.metadata-card:hover {
  border-color: #0052cc;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.12);
  transform: translateY(-2px);
}

.metadata-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.metadata-label i {
  color: #0052cc;
  font-size: 1.2em;
}

.metadata-value {
  font-size: 1.05em;
  color: #1a1a1a;
  font-weight: 500;
  word-wrap: break-word;
}

.uri-card {
  grid-column: 1 / -1;
}

.uri-link {
  color: #0052cc;
  text-decoration: none;
  word-break: break-all;
}

.uri-link:hover {
  text-decoration: underline;
}

/* Stats Section */
.eprint-stats-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08);
  border: 2px solid #e9ecef;
}

/* Versions & Commentary */
.eprint-versions-section,
.eprint-commentary-section {
  background: white;
  border-radius: 16px;
  padding: 35px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08);
  border: 2px solid #e9ecef;
}

.versions-content,
.commentary-content {
  margin-top: 20px;
}

/* Actions Section */
.eprint-actions-section {
  margin-bottom: 40px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.action-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 43, 128, 0.05);
}

.action-card:hover {
  border-color: #0052cc;
  box-shadow: 0 4px 20px rgba(0, 82, 204, 0.15);
  transform: translateY(-2px);
}

.action-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-icon img {
  max-width: 30px;
  max-height: 30px;
}

.action-title {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1.05em;
}

.action-title a {
  color: inherit;
  text-decoration: none;
}

.action-title a:hover {
  color: #0052cc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .eprint-detail-header {
    padding: 40px 25px;
    margin: -15px -15px 30px -15px;
  }

  .eprint-detail-title {
    font-size: 1.8em;
  }

  .section-title {
    font-size: 1.5em;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .metadata-cards-grid {
    grid-template-columns: 1fr;
  }
}



/* ========================================
   LATEST PAGE - COMPACT & ELEGANT
   ======================================== */

/* Container */
.ep_latest_list {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto 20px auto !important;
  padding: 0 !important;
  background: transparent !important;
  display: grid !important;
  gap: 12px !important;
}

/* Compact Latest Card */
.premium-latest-card {
  display: grid;
  grid-template-columns: 45px 1fr 70px;
  gap: 16px;
  background: white;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid #e3e8ef;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 43, 128, 0.04);
  position: relative;
  overflow: hidden;
}

.premium-latest-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #0052cc, #0066ff);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.premium-latest-card:hover {
  border-color: #0052cc;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.12);
  transform: translateY(-2px);
}

.premium-latest-card:hover::before {
  opacity: 1;
}

/* Compact Number Badge */
.latest-card-number {
  display: flex;
  align-items: center;
  justify-content: center;
}

.number-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05em;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 82, 204, 0.25);
}

/* Content Area */
.latest-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Compact Header */
.latest-card-header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.latest-type-badge,
.latest-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.latest-type-badge {
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
}

.latest-year-badge {
  background: #f1f3f5;
  color: #495057;
}

.latest-type-badge i,
.latest-year-badge i {
  font-size: 1em;
}

/* Compact Title */
.latest-card-title {
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.latest-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.latest-card-title a:hover {
  color: #0052cc;
}

/* Compact Authors */
.latest-card-authors {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 0.9em;
}

.latest-card-authors i {
  color: #0052cc;
  font-size: 1.1em;
  flex-shrink: 0;
}

.authors-list {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Compact Metadata */
.latest-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.latest-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.72em;
  font-weight: 600;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-meta-badge.faculty {
  background: #e3f2fd;
  color: #1565c0;
}

.latest-meta-badge.subject {
  background: #fff3e0;
  color: #e65100;
}

.latest-meta-badge.published {
  background: #e8f5e9;
  color: #2e7d32;
}

.latest-meta-badge i {
  font-size: 1em;
  flex-shrink: 0;
}

.latest-meta-badge .badge-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Actions */
.latest-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.latest-view-btn,
.latest-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8em;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.latest-view-btn {
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
}

.latest-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 82, 204, 0.25);
  color: white;
  text-decoration: none;
}

.latest-download-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.latest-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.25);
  color: white;
  text-decoration: none;
}

/* Compact Icon */
.latest-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-icon-wrapper {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #90caf9;
}

.doc-icon-wrapper.no-doc {
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  border-color: #bdbdbd;
}

.doc-icon-wrapper i {
  font-size: 2em;
  color: #0052cc;
}

.doc-icon-wrapper.no-doc i {
  color: #757575;
}

/* Day Headers - Compact */
.page-content-wrapper h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: #0052cc;
  margin: 30px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0052cc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-content-wrapper h2::before {
  content: '\f073';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75em;
}

/* Ruler */
hr.ep_ruler {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dee2e6, transparent);
  margin: 35px 0;
}

/* Responsive */
@media (max-width: 992px) {
  .premium-latest-card {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .latest-card-icon {
    display: none;
  }

  .number-badge {
    width: 38px;
    height: 38px;
    font-size: 0.95em;
  }
}

@media (max-width: 576px) {
  .premium-latest-card {
    padding: 15px 18px;
  }

  .latest-card-title {
    font-size: 1em;
  }

  .latest-card-actions {
    flex-direction: column;
  }

  .latest-view-btn,
  .latest-download-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85em;
  }

  .page-content-wrapper h2 {
    font-size: 1.3em;
  }
}

/* ========================================
   DETAIL PAGE STYLING (Without Changing Structure)
   ======================================== */

/* Summary Page Container */
#ep_summary_page,
.ep_summary_page,
.summary_content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 30px !important;
}

/* Title Styling */
.ep_summary_page h1,
.summary_content h1,
h1.title {
  font-size: 2.5em !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  line-height: 1.3 !important;
  margin: 30px 0 !important;
  padding: 30px !important;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%) !important;
  color: white !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0, 82, 204, 0.2) !important;
}

/* Citation Block */
.ep_summary_page > p:first-of-type,
.summary_content > p:first-of-type {
  font-size: 1.15em !important;
  line-height: 1.8 !important;
  color: #495057 !important;
  background: white !important;
  padding: 25px 30px !important;
  border-radius: 12px !important;
  border-left: 5px solid #0052cc !important;
  box-shadow: 0 4px 15px rgba(0, 43, 128, 0.08) !important;
  margin-bottom: 30px !important;
}

/* Section Headers (h2) */
.ep_summary_page h2,
.summary_content h2 {
  font-size: 1.8em !important;
  font-weight: 700 !important;
  color: #0052cc !important;
  margin: 40px 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid #0052cc !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.ep_summary_page h2::before,
.summary_content h2::before {
  content: '\f0c1' !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  font-size: 0.8em !important;
}

/* Download Table */
.ep_summary_page table,
.summary_content table {
  width: 100% !important;
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 43, 128, 0.08) !important;
  border: none !important;
  margin: 20px 0 !important;
}

.ep_summary_page table td,
.summary_content table td {
  padding: 20px !important;
  border: none !important;
  vertical-align: middle !important;
}

.ep_summary_page table tr,
.summary_content table tr {
  border-bottom: 1px solid #f0f0f0 !important;
  transition: background 0.3s ease !important;
}

.ep_summary_page table tr:hover,
.summary_content table tr:hover {
  background: #f8f9fa !important;
}

.ep_summary_page table tr:last-child,
.summary_content table tr:last-child {
  border-bottom: none !important;
}

/* Download Links */
.ep_document_link,
a.ep_document_link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3) !important;
  margin: 5px 0 !important;
}

.ep_document_link:hover,
a.ep_document_link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4) !important;
  color: white !important;
  text-decoration: none !important;
}

.ep_document_link i,
a.ep_document_link i {
  font-size: 1.1em !important;
}

/* Abstract/Content Paragraphs */
.ep_summary_page p,
.summary_content p {
  line-height: 1.8 !important;
  color: #495057 !important;
  margin: 15px 0 !important;
}

/* Metadata Table */
.ep_summary_page table[cellpadding="3"],
.summary_content table[cellpadding="3"] {
  background: white !important;
  border-radius: 12px !important;
  padding: 20px !important;
}

.ep_summary_page table[cellpadding="3"] th,
.summary_content table[cellpadding="3"] th {
  font-weight: 700 !important;
  color: #6c757d !important;
  text-transform: uppercase !important;
  font-size: 0.85em !important;
  letter-spacing: 0.5px !important;
  padding: 12px 20px !important;
  text-align: right !important;
  vertical-align: top !important;
  width: 200px !important;
}

.ep_summary_page table[cellpadding="3"] td,
.summary_content table[cellpadding="3"] td {
  font-weight: 500 !important;
  color: #1a1a1a !important;
  padding: 12px 20px !important;
}

/* Actions Table */
table.ep_summary_page_actions {
  background: transparent !important;
  box-shadow: none !important;
}

table.ep_summary_page_actions td {
  padding: 10px !important;
}

table.ep_summary_page_actions a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background: white !important;
  color: #0052cc !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: 2px solid #e9ecef !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
}

table.ep_summary_page_actions a:hover {
  border-color: #0052cc !important;
  background: #f8f9fa !important;
  transform: translateX(5px) !important;
}

/* Document Icons */
.ep_summary_page img,
.summary_content img {
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Person Names */
span.person_name {
  font-weight: 600 !important;
  color: #0052cc !important;
}

/* Links */
.ep_summary_page a:not(.ep_document_link):not(.latest-view-btn):not(.latest-download-btn),
.summary_content a:not(.ep_document_link):not(.latest-view-btn):not(.latest-download-btn) {
  color: #0052cc !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.ep_summary_page a:not(.ep_document_link):hover,
.summary_content a:not(.ep_document_link):hover {
  color: #003d99 !important;
  text-decoration: underline !important;
}

/* Divs with margin */
.ep_summary_page > div[style*="margin"],
.summary_content > div[style*="margin"] {
  background: white !important;
  padding: 20px 25px !important;
  border-radius: 12px !important;
  border: 2px solid #e9ecef !important;
  box-shadow: 0 2px 10px rgba(0, 43, 128, 0.05) !important;
}

/* Responsive */
@media (max-width: 768px) {
  #ep_summary_page,
  .ep_summary_page,
  .summary_content {
    padding: 20px 15px !important;
  }

  .ep_summary_page h1,
  .summary_content h1 {
    font-size: 1.8em !important;
    padding: 20px !important;
  }

  .ep_summary_page h2,
  .summary_content h2 {
    font-size: 1.5em !important;
  }

  .ep_summary_page table[cellpadding="3"] th,
  .summary_content table[cellpadding="3"] th {
    width: auto !important;
    text-align: left !important;
    display: block !important;
    padding: 8px 0 !important;
  }

  .ep_summary_page table[cellpadding="3"] td,
  .summary_content table[cellpadding="3"] td {
    display: block !important;
    padding: 8px 0 20px 0 !important;
  }
}



/* ========================================
   ADVANCED SUMMARY PAGE REORGANIZATION (CSS ONLY)
   ======================================== */

/* Hide sidebar wrappers */
.ep_summary_content_left,
.ep_summary_content_right,
.ep_summary_content_top {
  display: none !important;
}

/* Main container */
.ep_summary_content {
  max-width: 100% !important;
  padding: 0 !important;
}

.ep_summary_content_main {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 30px 25px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
}

/* ========== REORGANIZE WITH CSS ORDER ========== */

/* First Citation (order: 1) */
.ep_summary_content_main > p:first-of-type {
  order: 1 !important;
  font-size: 1.6em !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: white !important;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%) !important;
  padding: 35px 40px !important;
  margin: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 30px rgba(0, 82, 204, 0.2) !important;
}

.ep_summary_content_main > p:first-of-type a,
.ep_summary_content_main > p:first-of-type span {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Download section table (order: 2) */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) {
  order: 2 !important;
  background: white !important;
  padding: 25px 30px !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 15px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
  position: relative !important;
}

/* Add "Download Files" heading before table */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions)::before {
  content: '📥 Download Files' !important;
  display: block !important;
  font-size: 1.5em !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-bottom: 18px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #e9ecef !important;
}

/* HORIZONTAL GRID LAYOUT FOR DOWNLOAD FILES */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions),
.download-grid-table {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 18px !important;
  padding: 25px !important;
}

/* Download file cards (rows become cards) */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) tr,
.download-card-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 20px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border: 2px solid #e3e8ef !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 43, 128, 0.06) !important;
  position: relative !important;
  overflow: hidden !important;
}

.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) tr:hover,
.download-card-item:hover {
  border-color: #0052cc !important;
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.15) !important;
  transform: translateY(-4px) !important;
  background: white !important;
}

/* Card cells layout */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td {
  display: block !important;
  padding: 0 !important;
  border: none !important;
  vertical-align: top !important;
}

/* Icon cell - move to top right corner */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:first-child {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  width: auto !important;
}

.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:first-child img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

/* Content cell - full width */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:last-child {
  width: 100% !important;
  padding-right: 60px !important;
}

/* File title/citation in card */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:last-child > cite,
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:last-child > span:first-child {
  display: block !important;
  font-size: 0.95em !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
}

/* Download link button in card */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) .ep_document_link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.9em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25) !important;
  margin-top: 8px !important;
  width: fit-content !important;
}

.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) .ep_document_link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.35) !important;
  background: linear-gradient(135deg, #218838, #1aa179) !important;
}

/* Preview links */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:last-child a:not(.ep_document_link) {
  color: #0052cc !important;
  font-size: 0.88em !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  margin-left: 8px !important;
}

.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:last-child a:not(.ep_document_link):hover {
  text-decoration: underline !important;
}

/* File format badge */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) td:last-child::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  padding: 4px 10px !important;
  background: linear-gradient(135deg, #0052cc, #0066ff) !important;
  color: white !important;
  font-size: 0.7em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border-radius: 6px !important;
  letter-spacing: 0.5px !important;
}

/* Responsive grid for download cards */
@media (max-width: 768px) {
  .ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions),
  .download-grid-table {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 20px !important;
  }

  .ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) tr,
  .download-card-item {
    padding: 16px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions),
  .download-grid-table {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Abstract section h2 + p (order: 3 & 4) */
.ep_summary_content_main > h2:first-of-type {
  order: 3 !important;
  font-size: 1.5em !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  padding: 20px 30px 15px 30px !important;
  background: white !important;
  border-radius: 12px 12px 0 0 !important;
  border: 2px solid #e9ecef !important;
  border-bottom: none !important;
  box-shadow: 0 3px 15px rgba(0, 43, 128, 0.08) !important;
  position: relative !important;
}

.ep_summary_content_main > h2:first-of-type::before {
  content: '\f0f6  ' !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  color: #0052cc !important;
  margin-right: 8px !important;
}

.ep_summary_content_main > p[style*="text-align"] {
  order: 4 !important;
  background: white !important;
  padding: 0 30px 25px 30px !important;
  margin: 0 !important;
  border-radius: 0 0 12px 12px !important;
  border: 2px solid #e9ecef !important;
  border-top: none !important;
  box-shadow: 0 3px 15px rgba(0, 43, 128, 0.08) !important;
  font-size: 0.95em !important;
  line-height: 1.6 !important;
  color: #495057 !important;
  text-align: justify !important;
}

/* Compact typography - all headings */
.ep_summary_content_main h2 {
  font-size: 1.3em !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}

.ep_summary_content_main h3 {
  font-size: 1.1em !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

/* Compact spacing for all text */
.ep_summary_content_main p,
.ep_summary_content_main td,
.ep_summary_content_main th {
  font-size: 0.9em !important;
}

/* Metadata table (order: 5) - Make collapsible */
.ep_summary_content_main > table[cellpadding="3"] {
  order: 5 !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 15px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Add clickable header for metadata */
.ep_summary_content_main > table[cellpadding="3"]::before {
  content: '\f05a  Publication Details    \f078' !important;
  font-family: 'Font Awesome 6 Free', -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2em !important;
  display: block !important;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
  padding: 15px 22px !important;
  color: #1a1a1a !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background 0.3s ease !important;
}

.ep_summary_content_main > table[cellpadding="3"]:hover::before {
  background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
}

/* Collapsed state (default) - chevron down */
.ep_summary_content_main > table[cellpadding="3"].metadata-collapsed::before {
  content: '\f05a  Publication Details    \f078' !important;
}

/* Expanded state - chevron up */
.ep_summary_content_main > table[cellpadding="3"].metadata-expanded::before {
  content: '\f05a  Publication Details    \f077' !important;
}

/* Collapsible wrapper styles */
.metadata-collapsible-wrapper {
  display: block !important;
  width: 100% !important;
}

.metadata-collapsible-wrapper tr {
  display: table-row !important;
}

.metadata-collapsible-wrapper td,
.metadata-collapsible-wrapper th {
  display: table-cell !important;
}

/* Metadata table styling */
.ep_summary_content_main > table[cellpadding="3"] {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  padding: 0 25px 25px 25px !important;
}

.ep_summary_content_main > table[cellpadding="3"] tr {
  border-bottom: 1px solid #f0f0f0 !important;
}

.ep_summary_content_main > table[cellpadding="3"] tr:last-child {
  border-bottom: none !important;
}

.ep_summary_content_main > table[cellpadding="3"] th {
  font-weight: 700 !important;
  color: #6c757d !important;
  text-transform: uppercase !important;
  font-size: 0.75em !important;
  letter-spacing: 0.5px !important;
  padding: 12px 15px 12px 0 !important;
  text-align: right !important;
  vertical-align: top !important;
  width: 180px !important;
}

.ep_summary_content_main > table[cellpadding="3"] td {
  font-weight: 500 !important;
  color: #1a1a1a !important;
  padding: 12px 0 12px 15px !important;
  word-wrap: break-word !important;
}

.ep_summary_content_main > table[cellpadding="3"] td a {
  color: #0052cc !important;
  text-decoration: none !important;
}

.ep_summary_content_main > table[cellpadding="3"] td a:hover {
  text-decoration: underline !important;
}

/* Stats section (order: 6) */
.ep_summary_content_main > div[class*="irstats"],
.ep_summary_content_main > div:has([id*="irstats"]) {
  order: 6 !important;
  background: white !important;
  padding: 25px 30px !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 15px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
}

/* Hide "View more statistics" text and all text inside IRSTAT */
.ep_summary_content_main > div[class*="irstats"] a,
.ep_summary_content_main > div[class*="irstats"] p,
.ep_summary_content_main > div[class*="irstats"] > p:last-child,
.ep_summary_content_main > div:has([id*="irstats"]) > p,
.ep_summary_content_main a[href*="irstats2"],
.ep_summary_content_main div[class*="irstats"] > a[href*="irstats"],
.ep_summary_content_main div[id*="irstats"] + p,
.ep_summary_content_main div[id*="irstats"] ~ p {
  display: none !important;
}

/* Hide all H2, H3, divs, and cards below IRSTAT section including "Download files" */
.ep_summary_content_main > div[class*="irstats"] ~ h2,
.ep_summary_content_main > div[class*="irstats"] ~ h3,
.ep_summary_content_main > div[class*="irstats"] ~ div:not(.ep_summary_page_actions),
.ep_summary_content_main > div[class*="irstats"] ~ p:not(.ep_summary_page_actions),
.ep_summary_content_main > div:has([id*="irstats"]) ~ h2,
.ep_summary_content_main > div:has([id*="irstats"]) ~ h3,
.ep_summary_content_main > div:has([id*="irstats"]) ~ div:not(.ep_summary_page_actions),
.ep_summary_content_main > div:has([id*="irstats"]) ~ p:not(.ep_summary_page_actions) {
  display: none !important;
}

/* Actions table (order: 7) */
.ep_summary_page_actions {
  order: 7 !important;
  background: white !important;
  padding: 25px 30px !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 15px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
}

/* Other elements default order */
.ep_summary_content_main > div,
.ep_summary_content_main > p {
  order: 10 !important;
}

/* Enhanced download button */
.ep_summary_content_main .ep_document_link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.95em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 12px rgba(40, 167, 69, 0.3) !important;
  margin-top: 8px !important;
}

.ep_summary_content_main .ep_document_link:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 18px rgba(40, 167, 69, 0.4) !important;
  color: white !important;
  text-decoration: none !important;
}

/* Person names */
span.person_name {
  font-weight: 600 !important;
  color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
  .ep_summary_content_main {
    padding: 20px 15px !important;
    gap: 20px !important;
  }

  .ep_summary_content_main > p:first-of-type {
    font-size: 1.3em !important;
    padding: 25px 22px !important;
  }

  .ep_summary_content_main > table[cellpadding="3"] th {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 8px 0 4px 0 !important;
  }

  .ep_summary_content_main > table[cellpadding="3"] td {
    display: block !important;
    width: 100% !important;
    padding: 4px 0 12px 0 !important;
  }
}


/* =====================================================================
   MODERN DETAIL PAGE - COMPLETE REDESIGN
   Professional, Clean, Dynamic, Fully Responsive
   ===================================================================== */

/* ========== CONTAINER ========== */
.modern-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
  background: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset EPrints default styles */
.modern-detail-page h1,
.modern-detail-page h2,
.modern-detail-page h3,
.modern-detail-page p,
.modern-detail-page div {
  margin: 0;
  padding: 0;
}

/* ========== 1️⃣ TITLE SECTION ========== */
.detail-title-section {
  background: linear-gradient(135deg, #0061FF 0%, #0052cc 100%);
  padding: 50px 45px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 97, 255, 0.25);
  margin-bottom: 30px;
  color: white;
}

.detail-main-title {
  font-size: 2.5em;
  font-weight: 800;
  line-height: 1.25;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-type-badge {
  margin-bottom: 25px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-size: 0.95em;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
}

.type-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.type-badge i {
  font-size: 1.1em;
}

.detail-authors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1.15em;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.95);
}

.detail-authors i {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.9);
}

.author-name {
  font-weight: 600;
}

.author-separator {
  margin: 0 4px;
  color: rgba(255, 255, 255, 0.6);
}

.detail-quick-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
}

.quick-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-info-item i {
  font-size: 1.1em;
}

.quick-info-published {
  padding: 4px 14px;
  background: rgba(40, 167, 69, 0.9);
  border-radius: 15px;
  font-weight: 600;
}

/* ========== 2️⃣ ABSTRACT SECTION (COLLAPSIBLE) ========== */
.detail-abstract-section {
  margin-bottom: 30px;
}

.abstract-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1.05em;
  font-weight: 600;
  color: #0061FF;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.abstract-toggle-btn:hover {
  background: #f8f9fa;
  border-color: #0061FF;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.15);
  transform: translateY(-1px);
}

.abstract-toggle-btn:focus {
  outline: 3px solid rgba(0, 97, 255, 0.3);
  outline-offset: 2px;
}

.toggle-icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.abstract-content {
  margin-top: 15px;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.abstract-card {
  background: white;
  padding: 35px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.abstract-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5em;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0061FF;
}

.abstract-heading i {
  color: #0061FF;
}

.abstract-text {
  font-size: 1.05em;
  line-height: 1.8;
  color: #495057;
  text-align: justify;
}

/* ========== 3️⃣ FILES SECTION (GRID - 4 PER ROW) ========== */
.detail-files-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8em;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 3px solid #0061FF;
}

.section-heading i {
  color: #0061FF;
  font-size: 0.9em;
}

.file-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: linear-gradient(135deg, #0061FF, #0052cc);
  color: white;
  border-radius: 20px;
  font-size: 0.5em;
  font-weight: 700;
  margin-left: auto;
}

/* No Files Message */
.no-files-message {
  text-align: center;
  padding: 60px 30px;
  color: #6c757d;
}

.no-files-message i {
  font-size: 4em;
  color: #dee2e6;
  margin-bottom: 20px;
}

.no-files-message p {
  font-size: 1.15em;
  margin-bottom: 20px;
}

.btn-request-access {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #0061FF, #0052cc);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.btn-request-access:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 97, 255, 0.4);
  text-decoration: none;
  color: white;
}

/* Files Grid - 4 per row (desktop), 2 (tablet), 1 (mobile) */
.files-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.file-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e3e8ef;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.file-card:hover {
  border-color: #0061FF;
  box-shadow: 0 8px 24px rgba(0, 97, 255, 0.15);
  transform: translateY(-4px);
  background: white;
}

.file-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  height: 60px;
}

.file-icon-wrapper img {
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.file-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-title {
  font-size: 0.9em;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 38px;
}

/* Download Button */
.btn-download-file,
.btn-request-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  border: none;
  cursor: pointer;
}

.btn-download-file {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
}

.btn-download-file:hover {
  background: linear-gradient(135deg, #218838, #1aa179);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.35);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.btn-request-file {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  box-shadow: 0 3px 10px rgba(108, 117, 125, 0.25);
}

.btn-request-file:hover {
  background: linear-gradient(135deg, #5a6268, #495057);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.35);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* File Info */
.file-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8em;
  color: #6c757d;
}

.file-size,
.file-format,
.file-restricted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f8f9fa;
  border-radius: 6px;
}

.file-restricted {
  color: #dc3545;
  background: #fff5f5;
}

/* ========== 4️⃣ ADDITIONAL INFORMATION ========== */
.detail-additional-info {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.info-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  padding: 18px 20px;
  background: #f8f9fa;
  transition: background 0.2s ease;
  border-radius: 8px;
}

.info-row:hover {
  background: #e9ecef;
}

.info-label {
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.info-value {
  font-weight: 500;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-word;
}

.uri-link {
  color: #0061FF;
  text-decoration: none;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

.uri-link:hover {
  text-decoration: underline;
}

.btn-copy-uri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-uri:hover {
  background: #0061FF;
  border-color: #0061FF;
  color: white;
}

.btn-copy-uri.copied {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.external-link {
  color: #0061FF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.external-link:hover {
  text-decoration: underline;
}

.external-link i {
  font-size: 0.85em;
}

/* ========== 5️⃣ STATISTICS SECTION ========== */
.detail-stats-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.stats-content {
  margin-bottom: 25px;
}

.stats-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 2px solid #f8f9fa;
}

.btn-view-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #0061FF, #0052cc);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 97, 255, 0.3);
}

.btn-view-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 97, 255, 0.4);
  text-decoration: none;
  color: white;
}

/* ========== VERSIONS & COMMENTARY ========== */
.detail-versions-section,
.detail-commentary-section {
  background: white;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.subsection-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4em;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.subsection-heading i {
  color: #0061FF;
  font-size: 0.9em;
}

/* ========== ACTIONS SECTION ========== */
.detail-actions-section {
  background: white;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-item:hover {
  background: #e9ecef;
  border-color: #0061FF;
  transform: translateY(-2px);
}

.action-item img {
  width: 24px;
  height: 24px;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .modern-detail-page {
    padding: 30px 20px;
  }

  .detail-title-section {
    padding: 40px 35px;
  }

  .detail-main-title {
    font-size: 2em;
  }

  .section-heading {
    font-size: 1.5em;
  }

  .files-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .info-row {
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 15px 18px;
  }

  .detail-files-section,
  .detail-additional-info,
  .detail-stats-section {
    padding: 30px 25px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .modern-detail-page {
    padding: 20px 15px;
  }

  .detail-title-section {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .detail-main-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }

  .detail-authors {
    font-size: 1em;
  }

  .detail-quick-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-heading {
    font-size: 1.3em;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .file-count-badge {
    margin-left: 0;
  }

  .files-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .file-card {
    padding: 16px;
  }

  .detail-files-section,
  .detail-additional-info,
  .detail-stats-section,
  .detail-versions-section,
  .detail-commentary-section,
  .detail-actions-section {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px;
  }

  .info-label {
    font-size: 0.75em;
  }

  .info-value {
    font-size: 0.95em;
  }

  .abstract-card {
    padding: 25px 20px;
  }

  .abstract-heading {
    font-size: 1.2em;
  }

  .abstract-text {
    font-size: 1em;
  }

  .abstract-toggle-btn {
    padding: 14px 20px;
    font-size: 0.95em;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .detail-main-title {
    font-size: 1.4em;
  }

  .detail-authors {
    font-size: 0.9em;
  }

  .type-badge {
    font-size: 0.85em;
    padding: 6px 16px;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .modern-detail-page {
    background: white;
    padding: 0;
  }

  .detail-title-section {
    background: white;
    color: black;
    box-shadow: none;
    border: 2px solid #000;
  }

  .detail-main-title,
  .detail-authors,
  .type-badge {
    color: black;
  }

  .abstract-toggle-btn,
  .btn-download-file,
  .btn-request-file,
  .btn-copy-uri,
  .stats-actions {
    display: none;
  }

  .abstract-content {
    display: block !important;
  }

  .files-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   MODERN SUMMARY PAGE - CLEAN & PROFESSIONAL REDESIGN
   Applied directly to EPrints default structure
   ===================================================================== */

/* Hide default summary sidebar wrappers */
.ep_summary_content_left,
.ep_summary_content_right,
.ep_summary_content_top,
.ep_summary_content_bottom,
.ep_summary_content_after {
  display: none !important;
}

/* Main summary container */
.ep_summary_content {
  max-width: 100% !important;
  background: #f8f9fa !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ep_summary_content_main {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 30px !important;
}

/* ========== 1. TITLE SECTION - First paragraph ========== */
.ep_summary_content_main > p:first-of-type {
  order: 1 !important;
  background: linear-gradient(135deg, #0061FF 0%, #0052cc 100%) !important;
  color: white !important;
  padding: 50px 45px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 97, 255, 0.25) !important;
  font-size: 1.6em !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.ep_summary_content_main > p:first-of-type a,
.ep_summary_content_main > p:first-of-type span,
.ep_summary_content_main > p:first-of-type .person_name {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* ========== 2. ABSTRACT SECTION ========== */
.ep_summary_content_main > h2:first-of-type {
  order: 2 !important;
  font-size: 1.5em !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 !important;
  padding: 20px 35px 15px 35px !important;
  background: white !important;
  border-radius: 16px 16px 0 0 !important;
  border: 2px solid #e9ecef !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ep_summary_content_main > h2:first-of-type::before {
  content: '\f0f6' !important;
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  color: #0061FF !important;
  font-size: 0.9em !important;
}

.ep_summary_content_main > p[style*="text-align"] {
  order: 3 !important;
  background: white !important;
  padding: 0 35px 30px 35px !important;
  margin: 0 !important;
  border-radius: 0 0 16px 16px !important;
  border: 2px solid #e9ecef !important;
  border-top: none !important;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08) !important;
  font-size: 1.05em !important;
  line-height: 1.8 !important;
  color: #495057 !important;
  text-align: justify !important;
}

/* ========== 3. FILES SECTION - Download table ========== */
.ep_summary_content_main > table:not([cellpadding]):not(.ep_summary_page_actions) {
  order: 4 !important;
  background: white !important;
  padding: 35px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  border-collapse: collapse !important;
}

.ep_summary_content_main > table:not([cellpadding])::before {
  content: '📥 Download Files' !important;
  display: block !important;
  font-size: 1.8em !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-bottom: 20px !important;
  padding-bottom: 15px !important;
  border-bottom: 3px solid #0061FF !important;
}

/* HIDE OLD BADGES */
.ep_summary_content_main .document_format,
.ep_summary_content_main .document_filename,
.ep_summary_content_main span[style*="background-color"] {
  display: none !important;
}

/* File rows as GRID - 4 columns on desktop - HOMEPAGE STYLE */
.ep_summary_content_main > table:not([cellpadding]) tbody {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
}

/* File Card - Match Homepage Publication Card Premium Style */
.ep_summary_content_main > table:not([cellpadding]) tr {
  background: white !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 6px 20px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid transparent !important;
  min-height: 180px !important;
  position: relative !important;
}

.ep_summary_content_main > table:not([cellpadding]) tr:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 50px rgba(0, 82, 204, 0.2) !important;
  border-color: #0052cc !important;
}

.ep_summary_content_main > table:not([cellpadding]) td {
  padding: 0 !important;
  border: none !important;
  display: block !important;
}

/* File Icon Cell - Card Header Style */
.ep_summary_content_main > table:not([cellpadding]) td:first-child {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 15px !important;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
  border-bottom: 1px solid #dee2e6 !important;
  min-height: 80px !important;
}

.ep_summary_content_main > table:not([cellpadding]) td:first-child img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
}

/* File Content Cell - Card Body Style */
.ep_summary_content_main > table:not([cellpadding]) td:last-child {
  padding: 18px 16px !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

/* Hide UL that creates empty space in cards */
.ep_summary_content_main > table:not([cellpadding]) ul {
  display: none !important;
}

/* Hide all blue badge labels inside file cards */
.ep_summary_content_main > table:not([cellpadding]) span[style*="background"],
.ep_summary_content_main > table:not([cellpadding]) span[style*="color: rgb"],
.ep_summary_content_main > table:not([cellpadding]) .document_format,
.ep_summary_content_main > table:not([cellpadding]) .document_filename {
  display: none !important;
}

/* Citation text in file card - Homepage style */
.ep_summary_content_main > table:not([cellpadding]) .ep_document_citation {
  font-size: 0.85em !important;
  color: #6c757d !important;
  line-height: 1.4 !important;
  flex: 1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Download button - Homepage Card Footer Style */
.ep_summary_content_main .ep_document_link,
.ep_summary_content_main a.ep_document_link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, #0052cc, #0066ff) !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
  font-size: 0.75em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 10px rgba(0, 82, 204, 0.25) !important;
  width: fit-content !important;
  margin-top: auto !important;
}

.ep_summary_content_main .ep_document_link:hover,
.ep_summary_content_main a.ep_document_link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 20px rgba(0, 82, 204, 0.35) !important;
  background: linear-gradient(135deg, #0066ff, #0052cc) !important;
  color: white !important;
  text-decoration: none !important;
}

.ep_summary_content_main .ep_document_link i {
  font-size: 1em !important;
}

/* Responsive file grid */
@media (max-width: 1200px) {
  .ep_summary_content_main > table:not([cellpadding]) tbody {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .ep_summary_content_main > table:not([cellpadding]) tbody {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .ep_summary_content_main > table:not([cellpadding]) tbody {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ep_summary_content_main > table:not([cellpadding]) tr {
    padding: 10px !important;
    min-height: 80px !important;
  }
}

/* ========== 4. METADATA TABLE - Additional Information - CLEAN & COMPACT ========== */
.ep_summary_content_main > table[cellpadding="3"] {
  order: 5 !important;
  background: white !important;
  padding: 25px 30px !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 15px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  box-sizing: border-box !important;
}

.ep_summary_content_main > table[cellpadding="3"]::before {
  content: '\f05a  Additional Information' !important;
  font-family: 'Font Awesome 6 Free', -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.3em !important;
  display: block !important;
  color: #002b80 !important;
  margin-bottom: 15px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #0061FF !important;
}

.ep_summary_content_main > table[cellpadding="3"] tbody {
  display: table-row-group !important;
}

.ep_summary_content_main > table[cellpadding="3"] tr {
  display: table-row !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: background 0.2s ease !important;
}

.ep_summary_content_main > table[cellpadding="3"] tr:hover {
  background: #f8f9fa !important;
}

.ep_summary_content_main > table[cellpadding="3"] tr:last-child {
  border-bottom: none !important;
}

.ep_summary_content_main > table[cellpadding="3"] th {
  display: table-cell !important;
  font-weight: 700 !important;
  color: #6c757d !important;
  text-transform: uppercase !important;
  font-size: 0.7em !important;
  letter-spacing: 0.5px !important;
  padding: 12px 15px 12px 0 !important;
  text-align: right !important;
  vertical-align: top !important;
  width: 180px !important;
}

.ep_summary_content_main > table[cellpadding="3"] td {
  display: table-cell !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  font-size: 0.85em !important;
  padding: 12px 0 12px 15px !important;
  word-wrap: break-word !important;
  vertical-align: top !important;
  line-height: 1.6 !important;
}

.ep_summary_content_main > table[cellpadding="3"] td a {
  color: #0052cc !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  font-weight: 600 !important;
  border-bottom: 1px solid transparent !important;
}

.ep_summary_content_main > table[cellpadding="3"] td a:hover {
  color: #0066ff !important;
  border-bottom-color: #0066ff !important;
}

/* ========== 5. STATISTICS SECTION ========== */
.ep_summary_content_main > div[class*="irstats"],
.ep_summary_content_main > div:has([id*="irstats"]) {
  order: 6 !important;
  background: white !important;
  padding: 35px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
}

/* ========== 6. ACTIONS TABLE ========== */
.ep_summary_page_actions {
  order: 7 !important;
  background: white !important;
  padding: 35px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
}

/* Other elements fallback */
.ep_summary_content_main > div,
.ep_summary_content_main > p {
  order: 10 !important;
}

/* Ensure all sections have proper display */
.ep_summary_content_main > div:not([class*="irstats"]),
.ep_summary_content_main > p:not(:first-of-type):not([style*="text-align"]) {
  background: white !important;
  padding: 25px 30px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 43, 128, 0.08) !important;
  border: 2px solid #e9ecef !important;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1023px) {
  .ep_summary_content_main {
    padding: 30px 20px !important;
  }

  .ep_summary_content_main > p:first-of-type {
    font-size: 1.4em !important;
    padding: 40px 35px !important;
  }

  .ep_summary_content_main > table[cellpadding="3"] th {
    width: 180px !important;
  }
}

@media (max-width: 767px) {
  .ep_summary_content_main {
    padding: 20px 15px !important;
    gap: 25px !important;
  }

  .ep_summary_content_main > p:first-of-type {
    font-size: 1.2em !important;
    padding: 30px 25px !important;
    border-radius: 16px !important;
  }

  .ep_summary_content_main > h2:first-of-type,
  .ep_summary_content_main > table:not([cellpadding])::before,
  .ep_summary_content_main > table[cellpadding="3"]::before {
    font-size: 1.3em !important;
    padding: 15px 25px !important;
  }

  .ep_summary_content_main > p[style*="text-align"],
  .ep_summary_content_main > table:not([cellpadding]),
  .ep_summary_content_main > table[cellpadding="3"],
  .ep_summary_page_actions,
  .ep_summary_content_main > div[class*="irstats"] {
    padding: 25px 20px !important;
    border-radius: 12px !important;
  }

  /* Files grid - 1 column on mobile */
  .ep_summary_content_main > table:not([cellpadding]) tbody {
    grid-template-columns: 1fr !important;
  }

  .ep_summary_content_main > table:not([cellpadding]) tr {
    padding: 16px !important;
  }

  /* Additional info - stack on mobile */
  .ep_summary_content_main > table[cellpadding="3"] th {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 12px 0 4px 0 !important;
    font-size: 0.75em !important;
  }

  .ep_summary_content_main > table[cellpadding="3"] td {
    display: block !important;
    width: 100% !important;
    padding: 4px 0 16px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
}

@media (max-width: 480px) {
  .ep_summary_content_main > p:first-of-type {
    font-size: 1.1em !important;
    padding: 25px 20px !important;
  }
}


/* ========================================================================
   ULTRA MODERN HERO SECTION - PREMIUM EDITION
   ======================================================================== */

.ultra-hero-premium {
  position: relative;
  min-height: 700px;
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 50%, #00419e 100%);
  overflow: hidden;
  padding: 80px 0 20px;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 97, 255, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 204, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-animated-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-animated-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 20s infinite ease-in-out;
}

.hero-animated-shapes .shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.hero-animated-shapes .shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
  animation-delay: 5s;
}

.hero-animated-shapes .shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: -50px;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Text Section */
.hero-text-section {
  color: white;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
  text-align: left;
}

.animate-fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
  font-size: 1.1em;
}

.hero-title-ultra {
  font-size: 3.2em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: white;
}

.hero-subtitle-small {
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a8d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-ultra {
  font-size: 1.05em;
  line-height: 1.7;
  opacity: 0.95;
  margin: 0 0 30px;
  max-width: 550px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
  font-size: 2em;
  color: #a8d5ff;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1;
  color: white;
}

.stat-label {
  font-size: 0.8em;
  color: white;
  opacity: 0.95;
  margin-top: 4px;
}

/* Premium Search Box */
.search-box-premium {
  background: white;
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
}

.animate-slide-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.search-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.search-box-icon {
  font-size: 1.8em;
  color: #0052cc;
}

.search-box-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.premium-search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-input-container {
  position: relative;
}

.search-icon-wrapper {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.2em;
  pointer-events: none;
  z-index: 2;
}

.search-input-premium {
  width: 100%;
  padding: 18px 20px 18px 55px;
  font-size: 1em;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  transition: all 0.3s ease;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.search-input-premium:focus {
  border-color: #0052cc;
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

.search-input-premium::placeholder {
  color: #aaa;
}

.search-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.btn-search-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-search-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
  background: linear-gradient(135deg, #0066ff, #0052cc);
}

.btn-advanced-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: white;
  color: #0052cc;
  border: 2px solid #0052cc;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-advanced-search:hover {
  background: #0052cc;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.quick-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
}

.filter-label {
  font-size: 0.9em;
  font-weight: 600;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-filter-btn:hover {
  background: #0052cc;
  color: white;
  border-color: #0052cc;
  transform: translateY(-1px);
}

.quick-filter-btn i {
  font-size: 1em;
}

/* ========================================================================
   ADVANCED SEARCH MODAL
   ======================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(30px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 35px;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 24px 24px 0 0;
}

.modal-title-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-icon {
  font-size: 2em;
  color: #0052cc;
}

.modal-title {
  font-size: 1.8em;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.modal-close {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
  font-size: 1.3em;
}

.modal-close:hover {
  background: #dc3545;
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 35px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.95em;
  font-weight: 700;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label i {
  color: #0052cc;
  font-size: 1.1em;
}

.form-control-premium {
  padding: 14px 18px;
  font-size: 0.95em;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-control-premium:focus {
  border-color: #0052cc;
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

.form-control-premium::placeholder {
  color: #aaa;
}

textarea.form-control-premium {
  resize: vertical;
  min-height: 80px;
}

select.form-control-premium {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230052cc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  appearance: none;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
  margin-top: 30px;
}

.btn-reset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-reset:hover {
  background: #e9ecef;
  color: #495057;
  transform: translateY(-2px);
}

.btn-submit-premium {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-submit-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
  background: linear-gradient(135deg, #0066ff, #0052cc);
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 1200px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-text-section {
    text-align: left !important;
  }

  .hero-title-ultra {
    font-size: 2.8em;
  }

  .search-box-premium {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .ultra-hero-premium {
    padding: 60px 0 40px;
    min-height: auto;
  }

  /* Mobile hero - hide badge and stats, show only title and search */
  .hero-badge {
    display: none;
  }

  .hero-stats {
    display: none;
  }

  .quick-filters {
    display: none !important;
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-text-section {
    text-align: center;
  }

  .hero-title-ultra {
    font-size: 2.2em;
  }

  .hero-subtitle-small {
    font-size: 1em;
  }

  .hero-subtitle-ultra {
    font-size: 0.95em;
    max-width: 100%;
  }

  .search-box-premium {
    padding: 30px 25px;
    max-width: 100%;
    width: 100%;
  }

  .search-actions {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-body {
    padding: 25px 20px;
  }

  .modal-title {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .hero-content-wrapper {
    padding: 0 15px;
  }

  .hero-title-ultra {
    font-size: 1.6em;
  }

  .hero-subtitle-small {
    font-size: 0.9em;
  }

  .hero-subtitle-ultra {
    font-size: 0.85em;
  }

  .search-box-premium {
    padding: 25px 20px;
  }

  .search-box-title {
    font-size: 1.2em;
  }

  .quick-filters {
    display: none !important;
  }

  .btn-advanced-search {
    background: #0052cc !important;
    color: white !important;
    border-color: #0052cc !important;
  }

  .btn-advanced-search span {
    display: none;
  }
}

/* ============================================
   ADDED: Compact Search Results Styling
   Added on: 20251109_181450
   ============================================ */
/* ============================================
   COMPACT SEARCH RESULTS STYLING
   Professional, Comprehensive, Space-Efficient
   ============================================ */

/* Search Result Card - Compact */
.search-result-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  background: white;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 43, 128, 0.04);
  position: relative;
}

.search-result-card:hover {
  border-color: #0052cc;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.12);
  transform: translateY(-2px);
}

.search-result-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0052cc, #0066ff);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 10px 0 0 10px;
}

.search-result-card:hover::before {
  opacity: 1;
}

/* Number Badge - Compact */
.result-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.number-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f0f4ff, #e3ecff);
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: 700;
  color: #0052cc;
  border: 1px solid #d0e0ff;
}

/* Main Content Area */
.result-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Allow text truncation */
}

/* Header: Type + Year + Status (Inline) */
.result-header-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8em;
}

.result-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.9em;
}

.result-type-badge i {
  font-size: 0.9em;
}

.result-divider {
  color: #adb5bd;
  font-weight: 400;
}

.result-year {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #495057;
  font-weight: 600;
}

.result-year i {
  font-size: 0.9em;
  color: #6c757d;
}

.result-status-pub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #28a745;
  font-weight: 600;
}

.result-status-pub i {
  font-size: 0.9em;
}

/* Title - Compact but Readable */
.result-title-compact {
  margin: 0;
  padding: 0;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.4;
  color: #002b80;
}

.result-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.result-title-link:hover {
  color: #0052cc;
  text-decoration: underline;
}

/* Authors - Compact One Line */
.result-authors-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #495057;
  font-size: 0.9em;
  font-weight: 500;
}

.result-authors-compact i {
  color: #6c757d;
  font-size: 0.95em;
  flex-shrink: 0;
}

.text-muted {
  color: #adb5bd;
  font-style: italic;
}

/* Abstract Preview - NEW Feature */
.result-abstract-preview {
  font-size: 0.875em;
  line-height: 1.5;
  color: #6c757d;
  margin: 4px 0;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #dee2e6;
}

/* Metadata Grid - Compact Multiple Info */
.result-metadata-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.result-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
  color: #6c757d;
  padding: 3px 8px;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: 500;
}

.result-meta-item i {
  font-size: 0.9em;
  color: #8898aa;
  flex-shrink: 0;
}

.meta-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Actions - Compact Vertical Buttons */
.result-actions-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  min-width: 80px;
}

.result-actions-compact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  border: 1px solid transparent;
}

.result-actions-compact a i {
  font-size: 1em;
}

.btn-text {
  display: inline-block;
}

.result-btn-view {
  background: linear-gradient(135deg, #0052cc, #0066ff);
  color: white;
}

.result-btn-view:hover {
  background: linear-gradient(135deg, #003d99, #0052cc);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 82, 204, 0.25);
}

.result-btn-download {
  background: white;
  color: #28a745;
  border-color: #28a745;
}

.result-btn-download:hover {
  background: #28a745;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.25);
}

.result-btn-external {
  background: white;
  color: #6c757d;
  border-color: #dee2e6;
}

.result-btn-external:hover {
  background: #f8f9fa;
  color: #495057;
  border-color: #adb5bd;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
  .search-result-card {
    grid-template-columns: 35px 1fr auto;
    gap: 14px;
    padding: 14px 16px;
  }

  .number-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85em;
  }

  .result-title-compact {
    font-size: 1.05em;
  }

  .result-actions-compact {
    min-width: 70px;
  }

  .meta-text {
    max-width: 150px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .search-result-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .result-number {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .number-badge {
    width: 26px;
    height: 26px;
    font-size: 0.75em;
  }

  .result-content {
    padding-right: 35px; /* Space for number badge */
  }

  .result-title-compact {
    font-size: 1em;
  }

  .result-abstract-preview {
    font-size: 0.85em;
    padding: 6px 10px;
  }

  .result-metadata-grid {
    gap: 8px;
  }

  .result-meta-item {
    font-size: 0.75em;
    padding: 2px 6px;
  }

  .result-actions-compact {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    min-width: auto;
  }

  .result-actions-compact a {
    flex: 0 0 auto;
  }

  .btn-text {
    display: none; /* Icon only on mobile */
  }

  .result-actions-compact a {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .result-actions-compact a i {
    font-size: 1.1em;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .result-header-compact {
    font-size: 0.75em;
  }

  .result-type-badge {
    padding: 3px 8px;
    font-size: 0.85em;
  }

  .result-authors-compact {
    font-size: 0.85em;
  }

  .meta-text {
    max-width: 120px;
  }
}

/* ============================================
   COMPATIBILITY WITH EXISTING LAYOUT
   ============================================ */

/* Remove table borders/spacing if present */
.search-result-row {
  border: none !important;
}

.search-result-cell {
  padding: 0 !important;
  border: none !important;
}

/* List container adjustments */
.ep_search_results,
.ep_sr_results_list {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* ============================================
   FIXES: Author Color + Card Tint + Mobile
   ============================================ */

/* Fix 1: Card with subtle blue tint - readable text */
.search-result-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%) !important;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #d0e0ff !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 82, 204, 0.08) !important;
  position: relative;
}

.search-result-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
  border-color: #0052cc !important;
  box-shadow: 0 4px 16px rgba(0, 82, 204, 0.15) !important;
  transform: translateY(-2px);
}

.search-result-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0052cc, #0066ff);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 10px 0 0 10px;
}

.search-result-card:hover::before {
  opacity: 1;
}

/* Fix 2: Author color - FORCE dark color */
.result-authors-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2c3e50 !important; /* Dark blue-gray */
  font-size: 0.9em;
  font-weight: 500;
}

.result-authors-compact * {
  color: #2c3e50 !important; /* Force all children */
}

.result-authors-compact i {
  color: #5a6c7d !important;
  font-size: 0.95em;
  flex-shrink: 0;
}

/* Make sure author links are visible */
.result-authors-compact a {
  color: #2c3e50 !important;
  text-decoration: none;
}

.result-authors-compact a:hover {
  color: #0052cc !important;
  text-decoration: underline;
}

/* Fix 3: Enhanced abstract preview box */
.result-abstract-preview {
  font-size: 0.875em;
  line-height: 1.5;
  color: #495057 !important;
  margin: 4px 0;
  padding: 8px 12px;
  background: rgba(248, 251, 255, 0.7) !important;
  border-radius: 6px;
  border-left: 3px solid #0052cc;
}

/* Fix 4: Ensure all text is readable on blue tint */
.result-title-compact {
  margin: 0;
  padding: 0;
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.4;
  color: #002b80 !important;
}

.result-title-link {
  color: #002b80 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.result-title-link:hover {
  color: #0052cc !important;
  text-decoration: underline;
}

/* Ensure metadata is readable */
.result-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
  color: #495057 !important;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid rgba(0, 82, 204, 0.1);
}

.meta-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #495057 !important;
}

/* ============================================
   MOBILE ULTRA COMPACT + MARGINS
   ============================================ */

/* Tablet - Add side margins */
@media (max-width: 992px) {
  .search-result-card {
    grid-template-columns: 35px 1fr auto;
    gap: 14px;
    padding: 14px 16px;
    margin-left: 8px;
    margin-right: 8px;
  }

  .number-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85em;
  }

  .result-title-compact {
    font-size: 1.05em;
  }

  .result-actions-compact {
    min-width: 70px;
  }

  .meta-text {
    max-width: 150px;
  }
}

/* Mobile - ULTRA COMPACT with proper margins */
@media (max-width: 768px) {
  .search-result-card {
    grid-template-columns: 1fr;
    gap: 10px !important;
    padding: 12px 14px !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 8px;
  }

  .result-number {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
  }

  .number-badge {
    width: 26px;
    height: 26px;
    font-size: 0.75em;
    background: linear-gradient(135deg, #0052cc, #0066ff) !important;
    color: white !important;
    border: 1px solid #003d99;
  }

  .result-content {
    padding-right: 35px; /* Space for number badge */
  }

  /* Ultra compact header */
  .result-header-compact {
    font-size: 0.75em;
    gap: 6px;
  }

  .result-type-badge {
    padding: 3px 8px;
    font-size: 0.85em;
  }

  /* Ultra compact title */
  .result-title-compact {
    font-size: 0.95em !important;
    line-height: 1.3;
  }

  /* Ultra compact authors */
  .result-authors-compact {
    font-size: 0.8em;
    gap: 5px;
  }

  /* Ultra compact abstract */
  .result-abstract-preview {
    font-size: 0.8em;
    padding: 6px 10px;
    margin: 3px 0;
  }

  /* Ultra compact metadata */
  .result-metadata-grid {
    gap: 6px;
    margin-top: 3px;
  }

  .result-meta-item {
    font-size: 0.7em;
    padding: 2px 6px;
  }

  /* Ultra compact actions */
  .result-actions-compact {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    min-width: auto;
    margin-top: 6px;
  }

  .result-actions-compact a {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .btn-text {
    display: none; /* Icon only on mobile */
  }

  .result-actions-compact a i {
    font-size: 1em;
  }

  .meta-text {
    max-width: 100px;
  }
}

/* Small Mobile - Even more compact */
@media (max-width: 480px) {
  .search-result-card {
    padding: 10px 12px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    gap: 8px !important;
  }

  .result-header-compact {
    font-size: 0.7em;
  }

  .result-type-badge {
    padding: 2px 6px;
    font-size: 0.8em;
  }

  .result-title-compact {
    font-size: 0.9em !important;
  }

  .result-authors-compact {
    font-size: 0.75em;
  }

  .result-abstract-preview {
    font-size: 0.75em;
    padding: 5px 8px;
  }

  .result-metadata-grid {
    gap: 5px;
  }

  .result-meta-item {
    font-size: 0.65em;
    padding: 2px 5px;
  }

  .meta-text {
    max-width: 80px;
  }

  .result-actions-compact {
    gap: 6px;
  }

  .result-actions-compact a {
    width: 34px;
    height: 34px;
  }

  .number-badge {
    width: 24px;
    height: 24px;
    font-size: 0.7em;
  }
}

/* ============================================
   CONTAINER MARGINS (Search Results Page)
   ============================================ */

/* Add margins to search results container on mobile */
@media (max-width: 768px) {
  .ep_search_results,
  .ep_sr_results_list {
    padding: 0 !important;
  }

  /* Ensure table doesn't overflow */
  .ep_sr_results_list table {
    margin: 0 !important;
    width: 100% !important;
  }
}

/* ============================================
   ENHANCED VISUAL SEPARATION
   ============================================ */

/* Add subtle alternating background for even more clarity */
.search-result-row:nth-child(even) .search-result-card {
  background: linear-gradient(135deg, #fafcff 0%, #f5f9ff 100%) !important;
}

.search-result-row:nth-child(even) .search-result-card:hover {
  background: linear-gradient(135deg, #f5f9ff 0%, #ebf4ff 100%) !important;
}

/* ============================================
   HERO SINGLE SEARCH BOX
   ============================================ */
.hero-search-container {
    max-width: 700px;
    margin: 0 auto;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-search-box:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.hero-search-box > i {
    color: #6c757d;
    font-size: 1.2em;
    margin-right: 15px;
}

.hero-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1em;
    padding: 12px 0;
    background: transparent;
    color: #1a1a1a;
}

.hero-search-box input::placeholder {
    color: #a0aec0;
}

.hero-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0052cc, #0066ff);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #003d99, #0052cc);
    transform: scale(1.02);
}

.advanced-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.advanced-search-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ADVANCED SEARCH MODAL
   ============================================ */
.advanced-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.advanced-search-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 60, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.advanced-search-modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #002b80;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1a1a1a;
}

.advanced-search-form {
    padding: 25px;
}

.advanced-search-form .form-group {
    margin-bottom: 18px;
}

.advanced-search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #002b80;
    font-size: 0.9em;
}

.advanced-search-form label i {
    margin-right: 8px;
    color: #0052cc;
}

.advanced-search-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.advanced-search-form input:focus {
    border-color: #0052cc;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
    outline: none;
}

.advanced-search-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.modal-actions .btn-cancel {
    flex: 1;
    padding: 14px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-actions .btn-cancel:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
}

.modal-actions .btn-search {
    flex: 2;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #0052cc, #0066ff);
    border-radius: 10px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.modal-actions .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 82, 204, 0.3);
}

@media (max-width: 600px) {
    .hero-search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }
    
    .hero-search-box > i {
        display: none;
    }
    
    .hero-search-box input {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .hero-search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .advanced-search-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* ============================================
   MODAL ADVANCED SEARCH - IMPROVED
   ============================================ */
.advanced-search-modal .modal-content {
    width: 95% !important;
    max-width: 650px !important;
    max-height: 85vh !important;
    margin: 20px !important;
}

.advanced-search-modal .modal-header {
    padding: 22px 30px !important;
}

.advanced-search-modal .advanced-search-form {
    padding: 25px 30px 30px !important;
}

.advanced-search-modal .form-group {
    margin-bottom: 20px !important;
}

.advanced-search-modal .form-group label {
    font-size: 0.95em !important;
    margin-bottom: 10px !important;
}

.advanced-search-modal .form-group input {
    padding: 14px 18px !important;
    font-size: 1em !important;
}

.advanced-search-modal .form-row {
    gap: 20px !important;
}

.advanced-search-modal .modal-actions {
    margin-top: 28px !important;
    padding-top: 22px !important;
}

.advanced-search-modal .btn-search,
.advanced-search-modal .btn-cancel {
    padding: 15px 20px !important;
    font-size: 1em !important;
}

@media (max-width: 700px) {
    .advanced-search-modal .modal-content {
        width: 100% !important;
        max-width: none !important;
        margin: 10px !important;
        border-radius: 16px !important;
    }
    
    .advanced-search-modal .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   MODAL FIX - FULL WIDTH RESPONSIVE
   ============================================ */
.advanced-search-modal {
    padding: 15px !important;
    box-sizing: border-box !important;
}

.advanced-search-modal .modal-content {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.advanced-search-modal .advanced-search-form {
    padding: 20px 25px 25px !important;
}

.advanced-search-modal .form-group input {
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 650px) {
    .advanced-search-modal {
        padding: 10px !important;
    }
    
    .advanced-search-modal .modal-content {
        max-width: 100% !important;
        border-radius: 14px !important;
        max-height: 90vh !important;
    }
    
    .advanced-search-modal .modal-header {
        padding: 18px 20px !important;
    }
    
    .advanced-search-modal .advanced-search-form {
        padding: 18px 20px 22px !important;
    }
    
    .advanced-search-modal .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
}

/* ============================================
   SIDEBAR FIX - ENSURE VISIBILITY
   ============================================ */
.sidebar-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 9998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.main-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 300px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: white !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 5px 0 30px rgba(0,0,0,0.2) !important;
    overflow-y: auto !important;
}

body.sidebar-open .sidebar-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

body.sidebar-open .main-sidebar {
    transform: translateX(0) !important;
}

body.sidebar-open {
    overflow: hidden !important;
}
