/* Modern color scheme */
:root {
    --primary: #008751;
    --primary-dark: #006b41;
    --primary-light: #e6f4ef;
    --secondary: #2b2b2b;
    --accent: #ffd700;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --border: #e9ecef;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* General Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Footer Styles */
.footer {
    background-color: var(--white);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-light) 100%);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.8rem 1.5rem;
}

.footer-main {
    background-color: var(--secondary);
    color: var(--white);
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

.footer-about {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #b0b0b0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #b0b0b0;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 0.3rem;
}

.footer-bottom {
    background: var(--text-dark);
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: #888;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* RTL Support */
[dir="rtl"] {
    .footer-title::after {
        left: auto;
        right: 0;
    }

    .footer-links a:hover {
        transform: translateX(-5px);
    }

    .back-to-top {
        right: 30px;
        left: auto;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        margin-top: 1.5rem;
    }
}

/* Hero section */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Search box */
.search-form .form-control {
    border: none;
    border-radius: 30px 0 0 30px;
    padding: 1.5rem 2rem;
}

.search-form .btn {
    border-radius: 0 30px 30px 0;
    padding: 0 2rem;
}

/* Stats boxes */
.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    word-wrap: break-word;
    /* overflow: hidden; */
}

.stat-box .display-4 {
    font-size: calc(1.2rem + 1.2vw);
    font-weight: 300;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Journal cards */
.journal-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.journal-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.journal-title {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.journal-title a {
    color: var(--text-dark);
    text-decoration: none;
}

/* Subject cards */
.subject-card {
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.2s;
}

.subject-card:hover {
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }
    
    .stat-box {
        margin-bottom: 1rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    .search-form .form-control {
        border-radius: 0 30px 30px 0;
    }
    
    .search-form .btn {
        border-radius: 30px 0 0 30px;
    }
}

/* Editorial Board Styles */
.editor-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.editor-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.editor-photo-placeholder {
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.editor-name {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.editor-name small {
    font-size: 0.85rem;
    font-weight: normal;
}

.editor-affiliation {
    color: var(--text-light);
    font-size: 0.95rem;
}

.editor-contact a {
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.editor-contact a:hover {
    color: var(--primary);
}

.editor-contact i {
    font-size: 1rem;
    margin-right: 0.3rem;
}

/* RTL Support */
[dir="rtl"] .editor-contact i {
    margin-right: 0;
    margin-left: 0.3rem;
}

/* Institution Cards */
.institution-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.institution-card:hover {
    transform: translateY(-5px);
    color: inherit;
}

.institution-card .card {
    background: #ffffff;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.institution-card:hover .card {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 135, 81, 0.1);
}

.institution-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.institution-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.institution-name {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.institution-name-ar {
    font-size: 0.9rem;
    color: var(--text-light);
}

.journal-count .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

/* RTL Support */
[dir="rtl"] .institution-card:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .institution-logo {
        width: 100px;
        height: 100px;
    }
    
    .institution-name {
        font-size: 1rem;
    }
}

/* Institution View */
.institution-header {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.journal-card .cover-placeholder {
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.journal-card .card {
    transition: transform 0.3s ease;
}

.journal-card .card:hover {
    transform: translateY(-3px);
}

.journal-meta i {
    width: 16px;
    text-align: center;
} 
/* Root Variables */
:root {
    --primary: #008751;
    --primary-dark: #006b41;
    --primary-light: #e6f4ef;
    --secondary: #2b2b2b;
    --accent: #ffd700;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --border: #e9ecef;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.2s ease;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Search Components */
.search-container {
    transition: var(--transition);
    animation: fadeIn 0.3s ease-out;
}

.search-toggle {
    color: var(--white) !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
    backdrop-filter: blur(4px) !important;
}

.search-toggle:hover {
    color: var(--white) !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.search-toggle:active {
    transform: translateY(0) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.search-toggle i {
    font-size: 1em !important;
    opacity: 0.9 !important;
    transition: transform 0.2s ease !important;
}

.search-toggle:hover i {
    transform: translateX(2px) !important;
}

.simple-search .form-control {
    border: none;
    border-radius: 30px 0 0 30px;
    padding: 1.5rem 2rem;
}

.simple-search .btn {
    border-radius: 0 30px 30px 0;
    padding: 0 2rem;
}

/* Advanced Search Form */
.advanced-search-form {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.search-row .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.search-row .form-control,
.search-row .form-select {
    border: 1px solid var(--border);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-row .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 135, 81, 0.15);
}

/* Journal Cards */
.journal-browse-card {
    transition: var(--transition);
}

.journal-browse-card:hover {
    transform: translateY(-3px);
}

.journal-cover-wrapper {
    height: 100%;
    min-height: 180px;
    background: var(--primary-light);
}

.journal-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

/* Stats Section */
.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    word-wrap: break-word;
    overflow: hidden;
}

.stat-box .display-4 {
    font-size: calc(1.2rem + 1.2vw);
    font-weight: 300;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
}

.pagination .page-link {
    border: none;
    padding: 10px 16px;
    color: var(--text-dark);
    background: var(--bg-light);
    border-radius: 8px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 135, 81, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.prev):not(.next) {
        display: none;
    }
} 

/* Subjects Tree Styles */
.subjects-tree {
    padding: 1rem 0;
}

.subject-item {
    margin-bottom: 0.25rem;
}

.subject-content {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.subject-content:hover {
    background-color: var(--bg-light);
}

.tree-indent {
    flex-shrink: 0;
}

.btn-toggle {
    padding: 0.25rem;
    color: var(--text-light);
    background: none;
    border: none;
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle i {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.btn-toggle i.rotate {
    transform: rotate(90deg);
}

.btn-spacer {
    width: 24px;
    margin-right: 0.5rem;
}

.subject-info {
    flex: 1;
}

.subject-name {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.subject-name:hover {
    color: var(--primary);
}

.subject-code {
    color: var(--text-light);
    font-size: 0.85rem;
    font-family: monospace;
    background: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.journal-count {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: auto;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#subjectSearch {
    padding-left: 2.5rem;
    border-radius: 8px;
}

/* Enhanced Navbar Styles */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--primary);
    transition: all 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    color: var(--primary-dark);
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    padding: 0.7rem 1.2rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.nav-icon {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.nav-link.active .nav-icon {
    transform: scale(1.1);
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.8rem 1.2rem !important;
    }

    .nav-link-content {
        justify-content: flex-start;
    }

    .nav-icon {
        width: 24px;
        text-align: center;
    }
}

/* RTL Support */
[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

[dir="rtl"] .nav-link-content {
    flex-direction: row-reverse;
} 

/* Enhanced Top Bar Styles */
.top-bar {
    background: var(--secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1030;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.top-link:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.top-link i {
    font-size: 0.9rem;
    color: var(--primary-light);
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.lang-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.lang-link:hover,
.lang-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.top-bar .divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

/* RTL Support */
[dir="rtl"] .language-switcher {
    justify-content: flex-start;
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .top-bar {
        padding: 0.5rem 0;
    }

    .top-contact {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .language-switcher {
        justify-content: center;
        margin-top: 0.5rem;
    }

    .top-link {
        font-size: 0.85rem;
    }
} 

/* Enhanced Responsive Styles */

/* Mobile First Base Styles */
@media (max-width: 576px) {
    /* Top Bar */
    .top-bar {
        padding: 0.5rem 0;
    }

    .top-contact {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .top-contact .divider {
        display: none;
    }

    .language-switcher {
        margin-top: 0.5rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .stat-box {
        margin-bottom: 1rem;
        padding: 1rem !important;
    }

    .stat-box .display-4 {
        font-size: 1.5rem;
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Search Container */
    .search-container {
        width: 100%;
    }

    .simple-search .form-control {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .search-toggle {
        width: 100%;
        justify-content: center;
    }

    /* Advanced Search Form */
    .advanced-search-form {
        padding: 1rem !important;
    }

    .search-row .input-group {
        flex-direction: column;
    }

    .search-row .form-select {
        max-width: 100% !important;
        margin-top: 0.5rem;
    }

    /* Year Range */
    .year-range .d-flex {
        flex-wrap: wrap;
    }

    .year-range input[type="number"] {
        width: 100% !important;
        margin: 0.5rem 0;
    }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 991px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .stat-box {
        margin-top: 2rem;
        overflow: hidden;
    }

    .stat-box .display-4 {
        font-size: 1.8rem;
        word-break: keep-all;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-row .form-select {
        max-width: 150px !important;
    }
}

/* Desktop and Up */
@media (min-width: 992px) {
    .hero-section {
        min-height: 600px;
        display: flex;
        align-items: center;
    }

    .stat-box {
        height: 100%;
    }
}

/* Common Responsive Fixes */
.navbar-brand img {
    max-height: 45px;
    width: auto;
}

.nav-link {
    white-space: nowrap;
}

.journal-card {
    height: 100%;
}

.journal-cover {
    object-fit: cover;
    height: 200px;
}

/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--white);
        padding: 2rem 1rem;
        transition: all 0.3s ease;
        z-index: 1050;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-nav {
        height: 100%;
        overflow-y: auto;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 1rem !important;
    }
}

/* Improved Grid Layouts */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

.col, [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Better Form Controls */
.form-control, .form-select {
    height: calc(2.5rem + 2px);
}

.form-control-lg {
    height: calc(3rem + 2px);
}

/* Enhanced Card Styles */
.card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Improved Typography */
@media (max-width: 576px) {
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    .display-4 { font-size: 2rem; }
}

/* Better Spacing */
.section-padding {
    padding: 3rem 0;
}

@media (min-width: 992px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* RTL Support Improvements */
[dir="rtl"] {
    .navbar-nav {
        padding-right: 0;
    }

    .nav-link-content {
        flex-direction: row-reverse;
    }

    .search-icon {
        right: 15px;
        left: auto;
    }

    .form-select {
        padding-right: 0.75rem;
        padding-left: 2rem;
        background-position: left 0.75rem center;
    }
} 

/* Enhanced Journal Filters Search Box */
#journalFilters .search-box {
    position: relative;
    margin-bottom: 0;
}

#journalFilters .search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

#journalFilters .search-box .form-control {
    height: 42px;
    padding-left: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

#journalFilters .search-box .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 135, 81, 0.15);
}

#journalFilters .search-box .form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* RTL Support */
[dir="rtl"] #journalFilters .search-box .search-icon {
    left: auto;
    right: 15px;
}

[dir="rtl"] #journalFilters .search-box .form-control {
    padding-left: 1rem;
    padding-right: 40px;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    #journalFilters .search-box {
        margin-bottom: 1rem;
    }
    
    #journalFilters .search-box .form-control {
        height: 46px;
    }
} 

/* Issue View Styles */
.issue-header {
    background: var(--white);
    border-radius: 12px;
}

.issue-cover-placeholder {
    background: var(--primary-light);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.article-number {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
}

.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: var(--bg-light);
}

.article-actions {
    margin-top: 1rem;
}

.article-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* RTL Support */
[dir="rtl"] .article-actions .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
} 

