/*
Theme Name: المجلة السودانية لبحوث الانتاج الحيواني
Author: المجلة السودانية لبحوث الانتاج الحيواني
Description: قالب مخصص للمجلة السودانية لبحوث الانتاج الحيواني
Version: 1.2
Text Domain: sudanjab2
*/

/* خطوط عربية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #2e5e2e;
    --secondary-color: #3a7ca5;
    --accent-color: #d9a62e;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-arabic: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-arabic);

    
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.7;
    /* direction: rtl; */
    /* text-align: right; */
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}
.top-bar a{
    color: white;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 700;
}






/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/hero-optimized.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
    position: relative;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* أزرار موحدة */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
	margin-bottom:5px;
}

.btn:hover {
    background-color: #255225;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #2c6190;
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #c2911b;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.features {
    padding: 60px 0;
}

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

.feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.feature-content {
    padding: 15px;
}

.feature-content .area{
    text-align: center;
}

.feature-content a{
        color: var(--dark-color);
        text-decoration: none;
        transition: color 0.3s;
        border-bottom: 2px solid transparent;
    }
.feature-content a:hover {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
}



.issue-image{
    width: 100%;
    display: block;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* News Section */
.news {
    background-color: #f0f4f7;
    padding: 60px 0;
}

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

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 40px;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #aaa;
}

/* تنسيقات الصفحات الداخلية */
.single-post-content,
.page-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 40px 0;
    line-height: 1.8;
}

.entry-header,
.page-header {
    margin-bottom: 25px;
    /* text-align: right; */
    box-shadow: none;
}

.entry-title,
.page-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.entry-meta {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.entry-meta span {
    display: flex;
    align-items: center;
}

.entry-meta i {
    margin-left: 5px;
    color: var(--secondary-color);
}

.post-thumbnail,
.page-thumbnail {
    margin-bottom: 25px;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card .feature-icon{
	
    text-align: center;
    padding-top: 10px;
    font-size: 35px;
	color: var(--accent-color);

}

.entry-content,
.page-entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    /* text-align: right; */
}

.entry-content p,
.page-entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-weight: 600;
}

.entry-content blockquote,
.page-entry-content blockquote {
    border-right: 4px solid var(--accent-color);
    padding-right: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-links a {
    background: #f0f4f7;
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tags-links a:hover {
    background: var(--secondary-color);
    color: white;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 250px;
}

.nav-previous a,
.nav-next a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--primary-color);
}

.nav-previous i {
    margin-left: 5px;
}

.nav-next i {
    margin-right: 5px;
}

/* تنسيقات الأرشيف */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.archive-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.archive-thumbnail {
    position: relative;
    overflow: hidden;
}

.archive-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.archive-item:hover .archive-image {
    transform: scale(1.05);
}

.archive-item-content {
    padding: 25px;
}

.archive-item-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.archive-item-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.archive-item-title a:hover {
    color: var(--primary-color);
}

.archive-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.archive-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.archive-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.archive-read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.archive-read-more:hover {
    color: var(--primary-color);
}

/* تنسيقات صفحة 404 */
.error-404-content {
    padding: 60px 0;
    text-align: center;
}

.error-404-inner {
    max-width: 800px;
    margin: 0 auto;
}

.error-image {
    margin-bottom: 40px;
}

.error-image img {
    max-width: 300px;
    height: auto;
}

.error-text {
    margin-bottom: 40px;
}

.error-text h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.error-text p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.error-code {
    margin: 30px 0;
}

.error-code span {
    font-size: 8rem;
    font-weight: bold;
    color: #f0f4f7;
    line-height: 1;
    display: inline-block;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* تنسيقات البحث */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form label {
    flex-grow: 1;
    margin-bottom: 0;
}

.search-form .search-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
}

.search-form .search-submit {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form .search-submit:hover {
    background: #c2911b;
}

/* تحسينات القائمة للهواتف */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}

.menu-toggle .hamburger-line {
    width: 24px;
    height: 3px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid,
    .news-grid,
    .archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        left: 15px;
        top: 20px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 5px 0;
        width: 100%;
    }
    
    nav ul li a {
        padding: 12px 15px;
        border-radius: 4px;
        background-color: #f5f5f5;
    }
    
    .hero {
        padding: 70px 20px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-code span {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .news-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post-content,
    .page-content {
        padding: 20px;
    }
    
    .entry-title,
    .page-title {
        font-size: 1.6rem;
    }
    
    .error-code span {
        font-size: 4rem;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* تحسينات الأداء */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* طباعة */
@media print {
    .top-bar,
    nav,
    .menu-toggle,
    .hero,
    .error-actions,
    .search-form,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .section-title:after {
        background-color: #000;
    }
}



/* أنماط صفحة الأرشيف - المجلة السودانية لبحوث الإنتاج الحيواني */
.archive-content {
    padding: 40px 0;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.archive-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.archive-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.archive-filters h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f7;
    font-size: 1.2rem;
}

.archive-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-filters li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f4f7;
}

.archive-filters li:last-child {
    border-bottom: none;
}

.archive-filters a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    padding: 5px 0;
}

.archive-filters a:hover {
    color: var(--primary-color);
}

.archive-filters span {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 30px;
    text-align: center;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.archive-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.archive-item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.archive-thumbnail {
    position: relative;
    overflow: hidden;
}

.archive-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.archive-item:hover .archive-image {
    transform: scale(1.05);
}

.archive-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.archive-category a {
    color: white;
    text-decoration: none;
}

.archive-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.archive-item-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.archive-item-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.archive-item-title a:hover {
    color: var(--primary-color);
}

.archive-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.archive-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.archive-meta i {
    color: var(--secondary-color);
}

.archive-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.archive-read-more {
    align-self: flex-start;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.archive-read-more:hover {
    color: var(--primary-color);
}

.archive-pagination {
    text-align: center;
    margin-top: 40px;
}

.navigation.pagination {
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
}

.page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-numbers:hover:not(.current) {
    background: #f0f4f7;
    border-color: #ccc;
}

.page-numbers.dots {
    border: none;
}

.page-numbers.prev,
.page-numbers.next {
    display: flex;
    align-items: center;
    gap: 5px;
}

.no-posts-found {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.no-posts-found h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.no-posts-found p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .archive-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .archive-filters {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .archive-item-content {
        padding: 20px;
    }
    
    .archive-item-title {
        font-size: 1.2rem;
    }
    
    .archive-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-links {
        gap: 5px;
    }
    
    .page-numbers {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .archive-content {
        padding: 15px 0;
    }
    
    .archive-header {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .archive-filters {
        padding: 15px;
    }
}


/* تنسيق الصفحة الرئيسية - المجلة السودانية لبحوث الإنتاج الحيواني */

/* أنماط الهيرو */
.hero {
    background: linear-gradient(135deg, rgba(46, 94, 46, 0.9) 0%, rgba(58, 124, 165, 0.85) 100%), 
                url('<?php echo get_template_directory_uri(); ?>/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 60px;
    position: relative;
}

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

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero .btn {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero .btn:hover {
    background-color: #c2911b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* أنماط الأقسام العامة */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* أنماط مجالات النشر */
.features {
    background-color: #fff;
}

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

.feature-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-content {
    /* padding: 25px; */
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

/* أنماط الأعداد الأخيرة */
.latest-issues {
    background-color: #f9f9f9;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.issue-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.issue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.issue-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.issue-content {
    padding: 10px;
}

.issue-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.issue-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    line-height: 1.4;
}

.issue-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.issue-content .btn {
    background-color: var(--secondary-color);
    padding: 10px 20px;
    font-size: 0.95rem;
}

.issue-content .btn:hover {
    background-color: #2c6190;
}

.issue-title a{
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.issue-title a:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
}


/* أنماط الأخبار والفعاليات */
.news {
    background-color: #fff;
}

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

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid #f5f5f5;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 500;
}

.news-content h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--dark-color);
}

.news-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-content .btn {
    background-color: var(--primary-color);
    padding: 10px 20px;
    font-size: 0.95rem;
}

.news-content .btn:hover {
    background-color: #255225;
}

/* أنماط الأزرار العامة */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #255225;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .features-grid,
    .issues-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 35px;
    }
    
    .features-grid,
    .issues-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .issue-card,
    .news-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-content,
    .issue-content,
    .news-content {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* تأثيرات خاصة للصفحة الرئيسية */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.issue-card,
.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2),
.issue-card:nth-child(2),
.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3),
.issue-card:nth-child(3),
.news-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* تحسينات للعرض على متصفحات مختلفة */
.feature-card,
.issue-card,
.news-card {
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ضمان توافق RTL للعناصر */
.hero,
.section-title,
.feature-content,
.issue-content,
.news-content {
    /* direction: rtl;
    text-align: right; */
}


/* تحسينات الطباعة */
@media print {
    .hero {
        background: none !important;
        color: black !important;
        padding: 30px 0 !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .feature-card,
    .issue-card,
    .news-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
}


/* تنسيق صفحة 404 المبسطة */
.error-404-content {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: #f9f9f9;
}

.error-404-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.error-image {
    margin-bottom: 30px;
}

.error-image img {
    width: 200px;
    height: auto;
}

.error-text h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.error-text p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.error-code span {
    font-size: 5rem;
    font-weight: bold;
    color: #f0f0f0;
    display: block;
    margin: 20px 0;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #255225;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #2c6190;
    transform: translateY(-2px);
}

.error-search {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.error-search h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.error-search p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.search-form .search-submit {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.important-pages {
    margin-top: 30px;
}

.important-pages h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.page-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
}

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

.page-link i {
    font-size: 1.2rem;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .error-404-inner {
        padding: 30px 20px;
    }
    
    .error-image img {
        width: 150px;
    }
    
    .error-text h1 {
        font-size: 1.7rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form .search-field {
        border-radius: 5px;
        border-right: 1px solid #ddd;
        margin-bottom: 10px;
    }
    
    .search-form .search-submit {
        border-radius: 5px;
        padding: 12px;
    }
}



/* تنسيق صفحة اتصل بنا - المجلة السودانية لبحوث الإنتاج الحيواني */

.contact-page {
    padding: 60px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.contact-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info-card p {
    color: #666;
    line-height: 1.6;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #255225;
    transform: translateY(-2px);
}

.contact-departments {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.contact-departments h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

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

.department-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border-right: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.department-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.department-card p {
    color: #666;
    line-height: 1.6;
}

.contact-instructions {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-instructions h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

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

.instruction-item {
    text-align: center;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
}

.instruction-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.instruction-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

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

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-header,
    .contact-form-container,
    .contact-departments,
    .contact-instructions {
        padding: 30px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-header,
    .contact-form-container,
    .contact-departments,
    .contact-instructions {
        padding: 25px 20px;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .departments-grid,
    .instructions-content {
        grid-template-columns: 1fr;
    }
}


/* تنسيق صفحة خريطة الموقع - المجلة السودانية لبحوث الإنتاج الحيواني */

.sitemap-page {
    padding: 40px 0;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
}

.sitemap-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.sitemap-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.sitemap-search {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    text-align: center;
}

.sitemap-search h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.sitemap-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sitemap-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: block;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4f7;
}
.section-title{
    text-align: center;
    display: block;
}


.section-title i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

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

.sitemap-list > li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4f7;
}

.sitemap-list > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sitemap-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.sitemap-list a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.sitemap-sublist {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 20px;
}

.sitemap-sublist li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
    position: relative;
}

.sitemap-sublist li:before {
    content: "→";
    position: absolute;
    right: -15px;
    color: var(--secondary-color);
}

.sitemap-sublist li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sitemap-sublist a {
    color: #666;
    font-size: 0.95rem;
}

.sitemap-sublist a:hover {
    color: var(--secondary-color);
}

.count {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-right: 5px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: #f0f4f7;
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tag-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.tag-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.sitemap-footer {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sitemap-footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.sitemap-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .sitemap-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sitemap-header {
        padding: 20px;
    }
    
    .sitemap-title {
        font-size: 2rem;
    }
    
    .sitemap-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .tags-cloud {
        gap: 8px;
    }
    
    .tag-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sitemap-page {
        padding: 20px 0;
    }
    
    .sitemap-title {
        font-size: 1.8rem;
    }
    
    .sitemap-description {
        font-size: 1rem;
    }
    
    .sitemap-search {
        padding: 20px;
    }
    
    .sitemap-sublist {
        margin-right: 15px;
    }
    
    .sitemap-sublist li:before {
        right: -12px;
    }
}




.issue-card{
    max-height: max-content;
}


.issue-card .feature-content{
    display: inline-flex;
}


.wpra-item-list{
    text-decoration: none;
    display: grid;
    list-style: none;
    
   



}

.sud-rss a{
    text-decoration: none;
    color :var(--primary-color);
    font-weight: bold;
    transition: color 0.3s;
}

.sud-rss a:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
}


.sud-rss .feed-date {
  color:  var(--secondary-color);
}
.wpra-item ,.feed-item {
    background-color: #ffffff;
    padding: 25px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 10px 30px;
    animation: fadeInUp 0.6s ease forwards;
    border-radius: 10px;
}

.wpra-item-list--bullets.wpra-item-list--default {
    list-style: none;
    
}


.wpra-item-list--default{
    display: grid ;
    grid-template-columns : repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}



/* تنسيق أساسي للقائمة - شاشات الكمبيوتر */
.main-navigation {
    position: relative;
    margin-left: auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-menu li {
    position: relative;
    margin: 0 8px;
}

.nav-menu > li > a {
    text-decoration: none;
    color: #333;
    padding: 15px 12px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.nav-menu > li > a:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* تنسيق القوائم الفرعية - شاشات الكمبيوتر */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

.nav-menu .sub-menu li {
    margin: 0;
    width: 100%;
}

.nav-menu .sub-menu a {
    text-decoration: none;
    padding: 10px 20px;
    color: #555;
    border-bottom: none;
    display: block;
    transition: all 0.2s ease;
    font-weight: normal;
}

.nav-menu .sub-menu a:hover {
    background: #f8f9fa;
    color: #0073aa;
    padding-left: 25px;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

/* سهم للعناصر التي تحتوي على قوائم فرعية */
.nav-menu .menu-item-has-children > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-menu li:hover > a::after {
    transform: rotate(180deg);
}

/* تنسيق زر القائمة للموبايل */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    position: relative;
}

.menu-toggle .hamburger-line {
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* تنسيق القائمة للشاشات الصغيرة */
@media (max-width: 768px) {
    .main-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .main-navigation {
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 10px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: none;
    }
    
    /* القوائم الفرعية في الموبايل */
    .nav-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f9fa;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .nav-menu .sub-menu.active {
        display: block;
    }
    
    .nav-menu .sub-menu a {
        padding: 12px 30px;
        color: #666;
        font-size: 14px;
    }
    
    .nav-menu .sub-menu a:hover {
        background: #e9ecef;
    }
    
    /* سهم القوائم الفرعية في الموبايل */
    .nav-menu .menu-item-has-children > a::after {
        content: "▶";
        float: right;
        transition: transform 0.3s ease;
    }
    
    .nav-menu .menu-item-has-children.active > a::after {
        transform: rotate(90deg);
    }
    
    /* إخفاء hover effects في الموبايل */
    .nav-menu li:hover > .sub-menu {
        display: none;
    }
}

/* تحسينات عامة للرأس */
.main-header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.logo h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

body.menu-open {
    overflow: hidden;
}

.issue-thumbnail{
}




/* تنسيق رسائل الفورم */
.contact-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.contact-success {
    background-color: #f0f9f0;
    border-color: #2ecc71;
    color: #27ae60;
}

.contact-error {
    background-color: #fdf0f0;
    border-color: #e74c3c;
    color: #c0392b;
}

.contact-message p {
    margin: 0;
    font-weight: 500;
}

/* تنسيق حالة التحميل */
.submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '...';
    margin-left: 5px;
}


/* تنسيق قسم الأخبار */
.news {
    padding: 60px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.news-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #e9ecef;
    color: #6c757d;
    font-size: 48px;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: #0073aa;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.news-content .btn {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.news-content .btn:hover {
    background: #005a87;
}

.news-footer {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    display: inline-block;
    background: transparent;
    color: #0073aa;
    padding: 12px 30px;
    border: 2px solid #0073aa;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #0073aa;
    color: white;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    color: #666;
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 16px;
    }
}


/* تنسيق عرض الإصدارات */
.ojs-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.issue-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.issue-cover {
    margin-bottom: 15px;
    text-align: center;
}

.issue-cover img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.issue-title {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.issue-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.volume-number, .issue-year {
    display: block;
    margin-bottom: 5px;
}

.issue-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.issue-link:hover {
    background: #2980b9;
    color: white;
}

@media (max-width: 768px) {
    .ojs-issues-grid {
        grid-template-columns: 1fr;
    }
}