.research-layout {
    display: flex;
    min-height: 100vh;
    background: #f0f2f5;
}

.research-content {
    flex: 1;
    padding: 30px;
    margin-left: 280px;
    margin-top: 70px;
}

/* Research Sidebar Styles */
.research-sidebar {
    width: 280px;
    background: white;
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100vh - 70px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #506690;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover {
    background: #f8f9fa;
    color: #0047AB;
}

.sidebar-menu li a.active {
    background: #e7f0ff;
    color: #0047AB;
    font-weight: 500;
}

.sidebar-menu li a i {
    width: 24px;
    margin-right: 10px;
}

.sidebar-header {
    padding: 20px 20px 10px;
    color: #8492a6;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Research Nav Adjustments */
.research-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 101;
}

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

.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.paper-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.paper-card:hover {
    transform: translateY(-5px);
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.category {
    color: #0047AB;
    font-weight: 500;
}

.date {
    color: #666;
    font-size: 0.9em;
}

.paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.downloads {
    color: #666;
}

.btn-outline {
    padding: 8px 15px;
    border: 1px solid #0047AB;
    color: #0047AB;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #0047AB;
    color: white;
}

/* Upload Page Styles */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upload-instructions {
    color: #666;
    margin-bottom: 25px;
}

.upload-form .form-group {
    margin-bottom: 20px;
}

.upload-form label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 500;
}

.upload-form input[type="text"],
.upload-form select,
.upload-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.upload-form input[type="file"] {
    padding: 10px 0;
}

.file-help {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
    outline: none;
    border-color: #0047AB;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .research-sidebar {
        transform: translateX(-100%);
    }

    .research-sidebar.active {
        transform: translateX(0);
    }

    .research-content {
        margin-left: 0;
    }

    .btn-primary span {
        display: none;
    }
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.search-filter {
    margin-bottom: 2rem;
}

.search-filter form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-filter .form-control {
    min-width: 200px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.draft {
    background-color: #fef3c7;
    color: #92400e;
}

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

/* Content Header Improvements */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header .text-muted {
    width: 100%;
    margin-top: 0.5rem;
    color: #6c757d;
}

/* Enhanced Search Filter Styles */
.search-filter {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-filter form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.search-filter .form-control {
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.search-filter select.form-control {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-filter .btn {
    height: 42px;
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.search-filter .btn-outline {
    border-color: #e2e8f0;
    color: #64748b;
}

.search-filter .btn-outline:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.search-filter .btn i {
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-filter form {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Paper Detail Page Styles */
.paper-detail {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.paper-header {
    margin-bottom: 2rem;
}

.paper-header h1 {
    font-size: 2rem;
    color: #1a202c;
    margin: 1rem 0;
}

.paper-info {
    display: flex;
    gap: 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

.paper-info i {
    margin-right: 0.5rem;
}

.paper-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.paper-content {
    margin-bottom: 2rem;
}

.paper-content h2 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.abstract {
    line-height: 1.8;
    color: #4a5568;
}

.paper-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Make sure btn styles are consistent */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0047AB;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #003380;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFade 0.3s ease;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 {
    margin: 0;
    padding-right: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

/* Mobile-friendly styles */
.btn-mobile {
    padding: 0.5rem;
    min-width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .papers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .paper-card {
        padding: 1rem;
    }

    .paper-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .actions {
        justify-content: flex-start;
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }

    .search-filter form {
        flex-direction: column;
    }

    .search-filter .form-control {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Improved touch targets */
.btn-mobile {
    min-height: 2.5rem;
}

.form-control {
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
}

/* Helper classes */
.flex-grow {
    flex: 1 1 auto;
}

.flex-grow-sm {
    flex: 0 1 auto;
    min-width: 150px;
}

.gap-2 {
    gap: 0.5rem;
}

/* Show/hide button text based on screen size */
@media (max-width: 576px) {
    .btn-text {
        display: none;
    }
    
    .btn-mobile i {
        margin: 0;
    }
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #0047AB;
    color: white;
    border-color: #0047AB;
}

.btn-primary:hover {
    background-color: #003380;
    border-color: #003380;
}

.btn-secondary {
    background-color: #6B7280;
    color: white;
    border-color: #6B7280;
}

.btn-secondary:hover {
    background-color: #4B5563;
    border-color: #4B5563;
}

.btn-danger {
    background-color: #DC2626;
    color: white;
    border-color: #DC2626;
}

.btn-danger:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
}

.btn-outline {
    background-color: transparent;
    border-color: #D1D5DB;
    color: #374151;
}

.btn-outline:hover {
    background-color: #F3F4F6;
    border-color: #9CA3AF;
    color: #111827;
}

.btn-outline.btn-primary {
    border-color: #0047AB;
    color: #0047AB;
}

.btn-outline.btn-primary:hover {
    background-color: #0047AB;
    color: white;
}

.btn-outline.btn-danger {
    border-color: #DC2626;
    color: #DC2626;
}

.btn-outline.btn-danger:hover {
    background-color: #DC2626;
    color: white;
}

/* Active state for buttons */
.btn:active {
    transform: translateY(1px);
}

/* Disabled state */
.btn:disabled, .btn.disabled {
    opacity: 0.65;
    pointer-events: none;
}

/* Mobile-friendly adjustments */
@media (max-width: 576px) {
    .btn-mobile {
        padding: 0.625rem;
    }

    .btn-mobile.btn-primary {
        padding: 0.625rem 1rem;
    }
}

/* Compact action buttons */
.paper-footer .actions .btn-mobile {
    padding: 0.5rem;
    min-width: 2rem;
    height: 2rem;
}

.paper-footer .actions .btn-mobile i {
    font-size: 0.875rem;
}

.paper-footer .actions .btn-text {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .paper-footer .actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .paper-footer .actions .btn-mobile {
        flex: 0 0 auto;
    }
}

/* Edit Form Styles */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.form-group .file-help {
    display: block;
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Categories Table Styles */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #e2e8f0;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e2e8f0;
    background-color: #f8fafc;
    color: #2d3748;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.bg-info {
    background-color: #3498db;
    color: white;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0047AB;
    color: white !important;
    border-color: #0047AB;
}

/* Page Hero Styles */
.page-hero {
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.9), rgba(0, 42, 92, 0.9)), url('../images/research-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 20px 80px;
    color: white;
    text-align: center;
    position: relative;
}

.page-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Update papers container margin for hero */
.papers-container {
    margin-top: 40px;
}

/* Research Hero Section */
.research-hero {
    min-height: 60vh; /* Shorter than home hero */
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.9), rgba(0, 42, 92, 0.9)), url('../images/research-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px; /* Space for navbar */
    margin-top: 0; /* Remove top margin */
}

.research-hero .hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.research-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.research-hero .herosub {
    color: #F4A100;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.research-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 auto;
    max-width: 600px;
}

/* Adjust papers container spacing */
.papers-container {
    margin-top: -50px; /* Pull content up into hero section */
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.papers-filters {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .research-hero h1 {
        font-size: 2.5rem;
    }
    
    .research-hero .herosub {
        font-size: 1.5rem;
    }
    
    .papers-container {
        margin-top: -30px;
    }
}

/* Updated Filters Form */
.filters-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group select {
    min-width: 150px;
    flex: 1;
}

/* Language Badge Styles */
.header-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.language-badge {
    background: rgba(0, 71, 171, 0.1);
    color: #0047AB;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.language-badge.en {
    background: rgba(255, 0, 0, 0.1);
    color: #dc2626;
}

.language-badge.fr {
    background: rgba(0, 0, 255, 0.1);
    color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-box, 
    .filter-group,
    .filter-group select {
        width: 100%;
    }

    .header-badges {
        flex-direction: column;
        gap: 5px;
    }
}

/* Updated Filters Form */
.filters-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filters-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-apply {
    background: #0047AB;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background: #003380;
    transform: translateY(-1px);
}

.btn-clear {
    color: #dc2626;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #dc2626;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #dc2626;
    color: white;
}

@media (max-width: 768px) {
    .filters-wrapper {
        flex-direction: column;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-apply,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }
}

/* Paper View Styles */
.paper-view-container {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #0047AB;
    text-decoration: none;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #94a3b8;
}

.paper-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

.role-badge {
    background: #0047AB;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.paper-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0047AB;
    font-weight: 500;
}

.paper-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.abstract h2 {
    color: #0047AB;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.abstract p {
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 30px;
}

.paper-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.related-papers {
    margin-top: 60px;
}

.related-papers h2 {
    color: #0047AB;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .paper-view-container {
        margin-top: 100px;
        padding: 0 15px;
    }

    .paper-header h1 {
        font-size: 2rem;
    }

    .paper-meta {
        flex-direction: column;
        gap: 15px;
    }

    .paper-content {
        padding: 20px;
    }
}

/* View Page Hero */
.view-hero {
    padding-top: 60px; /* Reduced from original value */
    min-height: 200px; /* Reduced height for better spacing */
    margin-top: 0; /* Remove any top margin */
    min-height: 300px; /* Reduced from 400px */
    position: relative;
    display: flex;
    padding-bottom: 60px;
    padding-top: 100px; /* Reduced from 120px */
    margin-bottom: 40px;
}

.view-hero .breadcrumbs {
    margin-bottom: 20px;
    margin-top: 10px;
}

.view-hero .breadcrumbs a,
.view-hero .breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.view-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.view-hero .paper-meta {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Paper Details Layout */
.paper-details-container {
    margin-top: -40px; /* Adjust overlap with hero section */
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: -60px auto 40px; /* Adjust overlap with hero */
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Sidebar Styles */
.paper-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.paper-info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.paper-info-card h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.paper-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.paper-details-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.paper-details-list li:last-child {
    border-bottom: none;
}

.paper-details-list i {
    width: 20px;
    color: #0047AB;
    margin-right: 10px;
}

.detail-label {
    color: #64748b;
    margin-right: 8px;
}

.detail-value {
    color: #1e293b;
    margin-left: auto;
    font-weight: 500;
}

.btn-download {
    width: 100%;
    justify-content: center;
    padding: 12px;
}

/* Main Content Styles */
.paper-main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.paper-section {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.paper-section:last-child {
    border-bottom: none;
}

.paper-section h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.paper-abstract {
    color: #475569;
    line-height: 1.8;
    font-size: 1.1rem;
}

.related-papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .paper-details-container {
        grid-template-columns: 1fr;
    }

    .paper-sidebar {
        position: static;
        order: 2;
    }

    .paper-main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .view-hero {
        min-height: 300px;
        padding: 100px 20px 40px;
    }

    .view-hero h1 {
        font-size: 2rem;
    }

    .paper-meta {
        flex-direction: column;
        gap: 10px;
    }

    .paper-section {
        padding: 20px;
    }
}
