/*
Theme Name: DayZ
Theme URI: https://dayzone.com/
Description: قالب وردپرس برای بازی DayZ - بازی بقا در دنیای پسا-آخرالزمانی
Version: 1.0.0
Author: Mohammad
Author URI: https://dayzone.com
Text Domain: dayz
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Reset و فونت ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
} 
section.hero h4 {
    color: #dd0000;
}
body {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #0c0c0c;
    overflow-x: hidden;
}

/* Reset و فونت ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #0c0c0c;
    overflow-x: hidden;
}

/* هدر و نویگیشن */
header {
    background: rgba(12, 12, 12, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #e62424;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e62424;
    text-decoration: none;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-links a:hover {
    color: #e62424;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #e62424;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button .btn {
    background: #e62424;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #e62424;
}

.cta-button .btn:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 36, 36, 0.3);
}

/* بخش اصلی */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: 0 60px;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2rem;
    /* margin-bottom: 1.5rem; */
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); */
    /* background: linear-gradient(45deg, #e62424, #ff6b6b); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
    color: #9e0a01;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 681px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    /* color: #e0e0e0; */
    text-align: justify;
}
/* بعد */
.hero-content {
    background: rgba(12, 12, 12, 0.3);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-content {
    position: absolute;
    top: 14%;
    right: 2%;
    text-align: right;
    max-width: 600px;
    background: rgba(12, 12, 12, 0.7);
    backdrop-filter: blur(2px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(230, 36, 36, 0.4);
}
/* یا برای شفافیت بیشتر */
.hero-content.fade-in {
    background: transparent;
}
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0 0.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #e62424;
    color: white;
    box-shadow: 0 4px 12px rgba(230, 36, 36, 0.3);
}

.btn-primary:hover {
    background: transparent;
    border-color: #e62424;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 36, 36, 0.4);
}

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

.btn-secondary:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* بخش های محتوا */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #e62424;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: #e62424;
}

/* بخش اخبار */
.news-section {
    background: #1a1a1a;
}

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

.news-card {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: #e62424;
    box-shadow: 0 10px 30px rgba(230, 36, 36, 0.2);
}

.news-image {
    width: 100%;
    height: 381px;
    background: linear-gradient(45deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    overflow: hidden;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #e62424;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.news-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #e62424;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff6b6b;
}

/* بخش گالری */
.gallery-section {
    background: #0c0c0c;
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(45deg, #333, #555);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(230, 36, 36, 0.3);
}


.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* بخش ویژگی ها */
.features-section {
    background: #1a1a1a;
}

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

.feature-item {
    background: #2d2d2d;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: #e62424;
    box-shadow: 0 15px 35px rgba(230, 36, 36, 0.2);
}

.feature-item h3 {
    color: #e62424;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feature-item p {
    color: #ccc;
    line-height: 1.6;
}

/* بخش خرید */
.purchase-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0c0c0c 100%);
    text-align: center;
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.platform-buttons .btn {
    padding: 1.2rem 2.5rem;
    min-width: 220px;
    text-align: center;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.steam-btn {
    background: #1b2838;
    color: white;
    border: 2px solid #1b2838;
}

.steam-btn:hover {
    background: transparent;
    border-color: #2a475e;
    transform: translateY(-3px);
}

.xbox-btn {
    background: #107c10;
    color: white;
    border: 2px solid #107c10;
}

.xbox-btn:hover {
    background: transparent;
    border-color: #0e6a0e;
    transform: translateY(-3px);
}

.ps-btn {
    background: #003087;
    color: white;
    border: 2px solid #003087;
}

.ps-btn:hover {
    background: transparent;
    border-color: #0047bb;
    transform: translateY(-3px);
}

/* پاورقی */
footer {
    background: #0c0c0c;
    border-top: 2px solid #e62424;
    padding: 3rem 2rem 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-links h4 {
    color: #e62424;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 30px;
    height: 2px;
    background: #e62424;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-right: 2px solid transparent;
}

.footer-links a:hover {
    color: #e62424;
    border-right-color: #e62424;
    padding-right: 10px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

/* انیمیشن ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* اسکرول بار */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #e62424;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3b3b;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    background: linear-gradient(45deg, #333, #555);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background: rgba(230, 36, 36, 0.8);
    color: white;
    padding: 0.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
} 
/* استایل‌های مربوط به پست‌های تکی */
.single-post {
    background: #1a1a1a;
    /* border-radius: 10px; */
    /* padding: 2rem; */
    /* margin: 2rem 0; */
    /* border: 1px solid #404040; */
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

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

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.9rem;
}

.post-title {
    font-size: 2.2rem;
    color: #e62424;
    margin-bottom: 1rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #404040;
}

.post-tags {
    margin-bottom: 2rem;
}

.tags-label {
    color: #e62424;
    font-weight: bold;
    margin-left: 0.5rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.nav-previous, .nav-next {
    flex: 1;
}

.nav-previous a, .nav-next a {
    display: block;
    padding: 1rem;
    background: #2d2d2d;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.nav-previous a:hover, .nav-next a:hover {
    border-color: #e62424;
    transform: translateY(-2px);
}

.nav-arrow {
    color: #e62424;
    font-weight: bold;
}

/* استایل‌های آرشیو و جستجو */
.archive-header, .search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #404040;
}

.archive-title, .search-title {
    color: #e62424;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-query {
    color: #fff;
    background: #e62424;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: #e62424;
    box-shadow: 0 10px 25px rgba(230, 36, 36, 0.2);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #ccc;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #e62424;
}

.post-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2d2d2d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: #e62424;
    border-color: #e62424;
}

.page-numbers:hover {
    border-color: #e62424;
    transform: translateY(-2px);
}

/* استایل‌های 404 */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.error-title {
    font-size: 3rem;
    color: #e62424;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.no-results, .no-posts {
    text-align: center;
    padding: 3rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #404040;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .single-post {
        /* padding: 1rem; */
        margin: 1rem 0;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}
/* استایل‌های مخصوص صفحه اصلی */
.front-page .hero-content {
    position: absolute;
    top: 14%;
    right: 2%;
    text-align: right;
    max-width: 600px;
    background: rgba(12, 12, 12, 0.7);
    backdrop-filter: blur(2px);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(230, 36, 36, 0.4);
}

.front-page .hero-content h1 {
    font-size: 2rem;
    background-clip: text;
    color: #9e0a01;
    margin-bottom: 1.5rem;
}

.front-page .hero-content p {
    font-size: 1.1rem;
    text-align: justify;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: #e0e0e0;
}

/* استایل‌های گالری صفحه اصلی */
.front-page .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    background: linear-gradient(45deg, #333, #555);
}

.front-page .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.front-page .gallery-item:hover img {
    transform: scale(1.1);
}

.front-page .gallery-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background: rgba(230, 36, 36, 0.8);
    color: white;
    padding: 0.5rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.front-page .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* استایل‌های اخبار در صفحه اصلی */
.front-page .news-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.front-page .news-card {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.front-page .news-card:hover {
    transform: translateY(-10px);
    border-color: #e62424;
    box-shadow: 0 10px 30px rgba(230, 36, 36, 0.2);
}

.front-page .news-content {
    padding: 1.5rem;
}

.front-page .news-date {
    color: #e62424;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.front-page .news-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.front-page .news-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.front-page .news-title a:hover {
    color: #e62424;
}

.front-page .news-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* استایل‌های ویژگی‌ها در صفحه اصلی */
.front-page .feature-item {
    background: #2d2d2d;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    text-align: center;
}

.front-page .feature-item:hover {
    transform: translateY(-10px);
    border-color: #e62424;
    box-shadow: 0 15px 35px rgba(230, 36, 36, 0.2);
}

.front-page .feature-item h3 {
    color: #e62424;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* رسپانسیو صفحه اصلی */
@media (max-width: 768px) {
    .front-page .hero-content {
        position: static;
        margin: 2rem;
        text-align: center;
        background: rgba(12, 12, 12, 0.9);
    }
    
    .front-page .hero-content p {
        text-align: center;
    }
    
    .front-page .hero {
        height: 80vh;
    }
}

@media (max-width: 480px) {
    .front-page .hero-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .front-page .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .front-page .hero-content p {
        font-size: 1rem;
    }
}
/* استایل‌های مخصوص پست تکی */
.single-post-article {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid #2d2d2d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* هدر پست */
.single-post-header {
    position: unset;
    margin-bottom: 0;
}

.single-post-thumbnail {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.single-post-thumbnail .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.3) 0%, rgba(12, 12, 12, 0.8) 100%);
}

.post-header-content {
    /* position: absolute; */
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 3rem;
    color: white;
    background: linear-gradient(transparent, rgba(12, 12, 12, 0.9));
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-category a {
    background: #e62424;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-category a:hover {
    background: #ff3b3b;
    transform: translateY(-2px);
}

.post-date, .post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.single-post-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.post-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e62424;
}

.author-name {
    color: #e62424;
    font-weight: 500;
}

.post-stats {
    display: flex;
    gap: 1.5rem;
    color: #ccc;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* محتوای پست */
.single-post-content {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 3rem;
    padding: 3rem;
}

.content-wrapper {
    max-width: 100%;
}

.content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    text-align: justify;
}

.content-wrapper h2 {
    font-size: 1.8rem;
    color: #e62424;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2d2d2d;
}

.content-wrapper h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 2rem 0 1rem 0;
}

.content-wrapper blockquote {
    border-right: 4px solid #e62424;
    padding-right: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #ccc;
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.content-wrapper ul, .content-wrapper ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

/* سایدبار محتوا */
.content-sidebar {
    position: relative;
}

.sidebar-sticky {
    /* position: static; */
    /* top: 100px; */
}

.table-of-contents, .social-share {
    background: #2d2d2d;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #404040;
}

.toc-title, .share-title {
    color: #e62424;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.toc-content {
    font-size: 0.9rem;
}

.toc-content a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #404040;
    transition: color 0.3s ease;
}

.toc-content a:hover {
    color: #e62424;
}

.toc-content a.toc-level-2 {
    padding-right: 1rem;
}

.toc-content a.toc-level-3 {
    padding-right: 2rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.telegram { background: #0088cc; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* فوتر پست */
.single-post-footer {
    padding: 0 3rem 3rem;
}

.post-tags-section {
    margin-bottom: 3rem;
}

.section-title {
    color: #e62424;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: #2d2d2d;
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #e62424;
    color: white;
    border-color: #e62424;
    transform: translateY(-2px);
}

.author-box {
    display: flex;
    gap: 2rem;
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    border: 1px solid #404040;
}

.author-avatar-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e62424;
}

.author-details {
    flex: 1;
}

.author-name {
    color: #e62424;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.author-bio {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-posts-link {
    color: #e62424;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author-posts-link:hover {
    color: #ff3b3b;
}

/* نویگیشن پست */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.nav-previous, .nav-next {
    position: relative;
}

.nav-label {
    display: block;
    color: #e62424;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #2d2d2d;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    height: 80px;
}

.nav-link:hover {
    border-color: #e62424;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 36, 36, 0.2);
}

.nav-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.nav-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-content h5 {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.nav-next .nav-link {
    flex-direction: row-reverse;
    text-align: left;
}

/* مطالب مرتبط */
.related-posts {
    margin-bottom: 3rem;
}

.related-title {
    color: #e62424;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    border-color: #e62424;
    box-shadow: 0 10px 25px rgba(230, 36, 36, 0.2);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-thumbnail {
    height: 160px;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-thumbnail img {
    transform: scale(1.1);
}

.related-content {
    padding: 1rem;
}

.related-post-title {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-date {
    color: #e62424;
    font-size: 0.8rem;
}

/* رسپانسیو */
@media (max-width: 1024px) {
    .single-post-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .single-post-article {
        margin: 1rem 0;
        border-radius: 10px;
    }
    
    .single-post-thumbnail {
        height: 300px;
    }
    
    .post-header-content {
        padding: 2rem 1.5rem;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-post-content {
        padding: 2rem 1.5rem;
    }
    
    .post-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .single-post-title {
        font-size: 1.6rem;
    }
    
    .post-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .single-post-content {
        padding: 1.5rem 1rem;
    }
}

/* به استایل‌های قبلی این موارد را اضافه کنید */
.sidebar-sticky {
    position: relative;
    transition: all 0.3s ease;
    width: 280px;
}

.sidebar-sticky.sticky {
    position: fixed;
    top: 100px;
    width: 280px; /* عرض سایدبار منهای padding */
}

.sidebar-sticky.sticky-bottom {
    position: absolute;
    bottom: 0;
    top: auto;
    width: 280px; /* عرض سایدبار منهای padding */
}
h2.section-title {
    font-size: 2.2rem;
}
/* اضافه کردن به style.css */
body {
    padding-top: 80px;
}

.site-main .container {
    margin-top: 0;
    padding-top: 2rem;
}

.archive-header {
    position: relative;
    z-index: 10;
}

/* مطمئن شدن از اینکه هدر همیشه بالاترین لایه است */
header {
    z-index: 1000;
}
/* بخش آموزش */
.tutorials-section {
    background: #0c0c0c;
    padding: 5rem 2rem;
}

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

.tutorial-card {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.tutorial-card:hover {
    transform: translateY(-10px);
    border-color: #e62424;
    box-shadow: 0 10px 30px rgba(230, 36, 36, 0.2);
}

.tutorial-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #333, #555);
}

.tutorial-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-thumbnail {
    transform: scale(1.05);
}

.tutorial-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
}

.tutorial-content {
    padding: 1.5rem;
}

.tutorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tutorial-date {
    color: #e62424;
}

.tutorial-level {
    background: #e62424;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tutorial-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.tutorial-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tutorial-title a:hover {
    color: #e62424;
}

.tutorial-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-tutorial {
    background: #e62424;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #e62424;
}

.read-tutorial:hover {
    background: transparent;
    color: #e62424;
    transform: translateY(-2px);
}

.tutorial-duration {
    color: #ccc;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.no-tutorials {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #404040;
    color: #ccc;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    background: transparent;
    color: #e62424;
    padding: 1rem 2rem;
    border: 2px solid #e62424;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #e62424;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 36, 36, 0.3);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tutorial-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .tutorial-content {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tutorials-section {
        padding: 3rem 1rem;
    }
    
    .tutorial-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}