/* Journal header flex for right sidebar */


/* Custom Scrollbar Styles - Tiny Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.journal-header-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
}
.journal-main-content {
    flex: 1;
}
.journal-sidemenu {
    min-width: 220px;
    border-radius: 12px;
    padding: 100px 0;
    height: fit-content;
    margin-left: 16px;
}

.wave-image{    
    margin: 0;
    width: 100%;
}

.journal-sidemenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.journal-sidemenu li {
    margin-bottom: 5px;
}
.journal-sidemenu li:last-child {
    margin-bottom: 0;
}
.journal-sidemenu a {
    display: block;
    color: #2d2d2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 2px 24px;
    border-radius: 0 0 12px 0;
    background: #fff;
    border: 2px solid #000;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, color 0.2s;
}
.journal-sidemenu a:hover {
    background: #000000;
    color: #fff;
    border-color: #000;
}

.journal-sidemenu a.active {
    background: #000000;
    color: #fff;
    border-color: #000;
}

/* Submit Article Button */
.journal-sidemenu a.submit-article {
    background: #00214E;
    color: #fff;
    border-color: #00214E;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    padding: 5px 24px;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 33, 78, 0.3);
    transition: all 0.3s ease;
}





/* Base styles for Press Academic Publishing Platform */

/* Year Filter Styles */
.year-filter {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.year-filter h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #333;
}

.year-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.year-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.year-checkbox:hover {
    background: #000000;
    color: #ffffff;
    border-radius: 4px;
}

.year-checkbox input[type="checkbox"] {
    margin: 0;
}

.clear-filter {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clear-filter:hover {
    background: #dc3545;
    color: white;
}

/* Base styles for Press Academic Publishing Platform */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Add box-sizing for better mobile layout */
}

body {
    font-family: 'Geist', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem; /* Add responsive padding */
}

/* Header styles */
header {
    position: relative;
}

.header-banner {
    position: relative;
    width: 100%;
}

.wave-image {    
    margin: 0;
    width: 100%;
    display: block;
}

/* Banner Text Overlay */
.banner-text-overlay {
    position: absolute;
    bottom: 20px;
    left: 150px;
}

.banner-title {
    color: #FF8844;
    font-size: 2.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}
.banner-subtitle{
    color: white;
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .banner-text-overlay {
        bottom: 15px;
        left: 15px;
    }
    
    .banner-title {
        font-size: 1.8rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .banner-text-overlay {
        bottom: 10px;
        left: 10px;
    }
    
    .banner-title {
        font-size: 1.4rem;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
}

.navbar {
    width: 100%;
}

.navbar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: transparent;
    pointer-events: none;
}

.navbar-overlay * {
    pointer-events: auto;
}

.navbar-container {
    max-width: 1100px;
    display: flex;
    padding-top: 20px;
    justify-content: space-between;
    align-items: center;
}

/* Desktop: navbar-header contains logo and login/profile, spans full width */
.navbar-header {
    display: contents; /* On desktop, behave as if the div doesn't exist */
}

.navbar-left, .navbar-right {
    flex: 0 0 auto;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-height: 70px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-left: 15px;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}


/* Search bar styles */
.search-container {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.search-form {
    display: flex;
    align-items: center;
    border-radius: 20px;
    padding: 0.25rem 0.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}


.search-input {
    border: none;
    outline: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #333;
    width: 200px;
    transition: width 0.3s;
}

.search-input::placeholder {
    color: #6c757d;
}

.search-input:focus {
    width: 250px;
}

.search-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s;
}



/* Login and User Authentication Buttons */
.login-btn, .register-btn, .logout-btn, .admin-btn {
    background-color: #00214E;
    color: white;
    border: none;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.register-btn {
    background-color: #1976d2;
}

.logout-btn {
    background-color: #dc3545;
}

.admin-btn {
    background-color: #28a745;
}

.login-btn:hover, .register-btn:hover, .logout-btn:hover, .admin-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.login-btn:active, .register-btn:active, .logout-btn:active, .admin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-greeting {
    color: #333;
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Profile Dropdown Menu */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background-color: #00214E;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: auto;
}

.profile-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.profile-btn .fas.fa-user-circle {
    font-size: 1.2rem;
}

.profile-name {
    display: inline-block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.profile-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

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

.dropdown-header {
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.dropdown-header strong {
    display: block;
    color: #2d2d2d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.dropdown-header small {
    color: #6c757d;
    font-size: 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #2d2d2d;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6c757d;
}

.dropdown-item.logout-item {
    color: #dc3545;
}

.dropdown-item.logout-item:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.dropdown-item.logout-item i {
    color: #dc3545;
}

.dropdown-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 0.25rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-name {
        display: none;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
}

/* Alert Messages */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}



/* Main content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #fff;
    color: #667eea;
}



.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.feature-link:hover {
    color: #764ba2;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Recent Publications Section */
.recent-section {
    padding: 5rem 0;
    background-color: white;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.publication-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.publication-category {
    background-color: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.publication-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.publication-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.publication-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.welcome-section {
    text-align: center;
    padding: 3rem 0;
    background: white;
    
    margin: 2rem 0;
}

.welcome-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.welcome-section p {
    color: #666;
    font-size: 1.2rem;
}

/* Journals Section */
.journalssection {
    padding: 4rem 0;
}

.journalssection h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.journals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.journal-item {
    background: white;
    overflow: hidden;
}



.journal-image {
    width: 100%;
    height: auto;
    display: block;
}

.journal-item a {
    display: block;
    text-decoration: none;
}

/* Journal Categories Section */
.journal-categories {
    margin: 4rem 0;
}

.journal-categories h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-3px);
}

.category-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-item p {
    color: #666;
    line-height: 1.6;
}

/* Featured Articles Section */
.featured-articles {
    margin: 4rem 0;
}

.featured-articles h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-item {
    background: white;
    padding: 2rem;
}

.article-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.article-meta {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a6fd8;
}

/* Submission Guidelines Section */
.submission-guidelines {
    margin: 4rem 0;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.submission-guidelines h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guideline-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guideline-item ul {
    list-style: none;
    padding: 0;
}

.guideline-item li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.guideline-item li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Messages */
.messages {
    margin: 1rem 0;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

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

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Responsive design */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    /* Mobile header layout: logo left, login/profile right */
    .navbar-header {
        display: flex; /* Override desktop 'contents' */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        order: 1;
    }
    
    .navbar-left {
        order: 1;
        flex: 0 0 auto;
    }
    
    .navbar-right {
        order: 2;
        flex: 0 0 auto;
    }
    
    /* Navigation links below header */
    .nav-links {
        order: 3;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #eee;
    }
    
    /* Search container below nav links */
    .search-container {
        order: 4;
        margin: 0.5rem 0 0 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .search-form {
        width: 100%;
        max-width: 300px;
    }
    
    .search-input {
        width: 100%;
        min-width: 200px;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .navbar-logo {
        height: 60px;
    }
    
    .page-title {
        font-size: 1rem;
        margin-left: 10px;
        margin-top: 0;
    }
    
    .login-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    /* Profile button adjustments for mobile */
    .profile-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .profile-name {
        max-width: 60px;
    }
    
    /* Hero Section Responsive */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    /* Sections Responsive */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid, .publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .journals-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Articles layout mobile adjustments */
    .articles-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-sidebar {
        flex: none;
        order: 2;
        padding: 1rem;
    }
    
    .articles-content {
        order: 1;
    }
    
    .categories-grid, .articles-grid, .guidelines-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .submission-guidelines {
        padding: 2rem;
    }
    
    .journal-categories h2, .featured-articles h2, .submission-guidelines h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .publication-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .welcome-section h2 {
        font-size: 2rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }
    
    /* Footer Responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile styles for very small screens */
@media (max-width: 480px) {
    /* Navigation adjustments */
    .navbar-container {
        padding: 0.3rem 0.5rem;
    }
    
    .navbar-logo {
        height: 50px;
    }
    
    .page-title {
        font-size: 0.9rem;
        margin-left: 8px;
    }
    
    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
    }
    
    .login-btn, .profile-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Journal grid - single column */
    .journals-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .journalssection h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    /* Articles mobile layout */
    .allarticles {
        padding: 1rem 0 2rem 0;
    }
    
    .allarticles h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .articles-list.scopus-style .article-item {
        padding: 0.8rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .article-title a {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .article-authors {
        font-size: 0.75rem;
    }
    
    .journal-link {
        font-size: 0.7rem;
    }
    
    .year-citations {
        font-size: 0.65rem;
    }
    
    .article-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Filter sidebar on mobile */
    .filter-sidebar {
        padding: 0.8rem;
        margin: 0.5rem 0;
    }
    
    .filter-sidebar h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .filter-group h4 {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    /* Enhanced Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding-left: 0.8rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    .contact-info p {
        font-size: 0.85rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
    }
}

/* Enhanced Article Styles - Scopus-like Professional Layout */
.allarticles {
    padding: 2rem 0 4rem 0;
}

.allarticles h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 400;
    color: #2c3e50;
}

/* Articles Layout with Sidebar */
.articles-layout {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Sidebar */
.filter-sidebar {
    flex: 0 0 280px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

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

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #34495e;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}



.filter-group input[type="checkbox"] {
    margin-right: 0.6rem;
    transform: scale(1.1);
}

.filter-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    border-color: #3498db;
    outline: none;
}

/* Articles Content */
.articles-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.articles-results-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.results-count {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Articles Header with View All Button */
.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.articles-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #2d2d2d;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 1.5rem;
    color: #00214E;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;

}



.articles-list.scopus-style {
    display: flex;
    flex-direction: column;
}

/* Individual Article Item - Scopus Style */
.articles-list.scopus-style .article-item {
    display: flex;
    padding: 1.5rem;
    background: white;
}



.articles-list.scopus-style .article-item:last-child {
    border-bottom: none;
}

/* Article Index Number */
.article-index {
    flex: 0 0 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #7f8c8d;
    margin-top: 0.2rem;
}

/* Article Content Wrapper */
.article-content-wrapper {
    flex: 1;
    margin-left: 1rem;
}

/* Article Header Row */
.article-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.document-type {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    text-decoration: none;
    background: white;
    color: #555;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}


.action-btn .icon {
    font-size: 0.8rem;
}

.action-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}



/* Article Title */
.article-title {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
}

.article-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Authors */
.article-authors {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

/* Journal and Year/Citations Row */
.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.journal-info {
    flex: 1;
}

.journal-link {
    color: #3498db;
    text-decoration: none;
    font-style: italic;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.journal-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.year-citations {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: #000000;
    white-space: nowrap;
}

.year {
    font-weight: 600;
}

.citations {
    color: #000000;
    font-weight: 500;
}

/* Abstract Container */
.article-abstract-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
}

.abstract-content strong {
    color: #2c3e50;
    font-size: 0.9rem;
}

.abstract-content p {
    margin: 0.5rem 0 0 0;
    line-height: 1.6;
    text-align: justify;
    font-size: 0.9rem;
    color: #444;
}

/* DOI */
.article-doi {
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.article-doi small {
    color: #888;
    font-size: 0.8rem;
}

/* No Articles Message */
.no-articles {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .articles-layout {
        gap: 1.5rem;
    }
    
    .filter-sidebar {
        flex: 0 0 260px;
    }
}

@media (max-width: 768px) {
    .articles-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-sidebar {
        flex: none;
        order: 2;
        padding: 1rem;
        margin: 0;
    }
    
    .articles-content {
        order: 1;
    }
    
    .articles-list.scopus-style .article-item {
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .article-index {
        flex: none;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
    }
    
    .article-content-wrapper {
        margin-left: 0;
    }
    
    .article-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .article-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .article-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .year-citations {
        margin-top: 0.2rem;
    }
    
    .action-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Journal detail mobile styles */
    .journal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .journal-logo {
        margin-right: 0;
        margin-bottom: 1rem;
        max-width: 100%;
        width: auto;
        height: auto;
    }
    
    .journal-info h1 {
        font-size: 1.5rem;
    }
    
    .journal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Enhanced mobile layout for journal header */
    .journal-header-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .journal-main-content {
        order: 1;
        width: 100%;
    }
    
    .journal-sidemenu {
        order: 2;
        min-width: 100%;
        margin-left: 0;
        padding: 1rem 0;
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .journal-sidemenu a {
        margin-bottom: 0.5rem;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .allarticles {
        padding: 1rem 0 2rem 0;
    }
    
    .allarticles h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .articles-list.scopus-style .article-item {
        padding: 0.8rem;
    }
    
    .article-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Journal Detail Page Styles */
.journal-detail {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.journal-header {
    display: flex;
    margin-bottom: 2rem;
}

.journal-logo {
    width: 400px;
    height: auto;
    object-fit: contain;
    margin-right: 2rem;
}

.journal-info h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.journal-subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.back-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
}

.back-link:hover {
    color: #2980b9;
}

.journal-content {
    background: white;
    padding: 2rem;
}

.journal-description h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.journal-description h3 {
    color: #34495e;
    margin: 1.5rem 0 1rem 0;
}

.journal-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.journal-description ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.journal-description li {
    margin-bottom: 0.5rem;
    color: #555;
}

.publication-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.publication-info p {
    margin-bottom: 0.5rem;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}





.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Responsive adjustments for journal detail */
@media (max-width: 768px) {
    .journal-header {
        flex-direction: column;
        text-align: center;
    }
    
    .journal-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .journal-info h1 {
        font-size: 1.5rem;
    }
    
    .journal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* News Grid Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-card {
    background: white;
    padding: 2rem;
    border: 1px solid #000000;
}



.news-category {
    background-color: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.news-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.8rem;
}

.news-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.news-link:hover {
    color: #4f46e5;
}

/* Responsive adjustments for news grid */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .news-card {
        padding: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .news-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
    
    .news-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .news-card {
        padding: 1rem;
    }
    
    .news-card h3 {
        font-size: 1rem;
    }
    
    .news-card p {
        font-size: 0.8rem;
    }
}

/* Load More Button Styles */
.load-more-container {
    margin: 2rem 0;
}

.load-more-btn {
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 32px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.load-more-btn:active {
    transform: translateY(0);
}

.loading-spinner {
    color: #667eea;
    font-weight: 500;
    margin: 1rem 0;
}

.loading-spinner p {
    margin: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive adjustments for load more button */
@media (max-width: 768px) {
    .load-more-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}