body {
    background-color: #f8f9fa;
    direction: rtl;
    line-height: 1.7;
}

/* بخش اول - تصویر و اطلاعات پست */
.post-hero {
    /*background: white;*/
    /*border-radius: 20px;*/
    overflow: hidden;
    /*box-shadow: 0 10px 40px rgba(0,0,0,0.1);*/
    /*margin-bottom: 40px;*/
    transition: transform 0.3s ease;
}

.post-hero:hover {
    /*transform: translateY(-5px);*/
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.post-hero:hover .post-featured-image {
    /*transform: scale(1.02);*/
}

.post-header {
    padding: 40px;
    text-align: center;
}

.post-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-date {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.post-category:hover {
    transform: scale(1.05);
    color: white;
}

.post-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: #cbd5e0;
    color: #2d3748;
    transform: translateY(-2px);
}

/* بخش دوم - محتوای پست */
.post-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #4a5568;
}

.post-content p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.post-content blockquote {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-right: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-style: italic;
    color: #4a5568;
}

.post-content ul,
.post-content ol {
    padding-right: 20px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 8px;
    color: #4a5568;
}

.post-content code {
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 4px;
    /*font-family: 'Courier New', monospace;*/
    color: #e53e3e;
}

.post-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

/* بخش سوم - پست‌های مرتبط */
.swiper{
    padding-block: 2rem;
}
.swiper-button-next,
.swiper-button-prev {
    color: #000000;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
}
.swiper-button-next::after,
.swiper-button-prev::after{
font-size: 1.5rem;
}
.swiper-pagination1{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}
.swiper-pagination-bullet{
    width: 30px;
    border-radius: 3px;
    height: 4px;
}
.related-posts {
    /*background: white;*/
    padding: 40px;
    border-radius: 20px;
    /*box-shadow: 0 10px 40px rgba(0,0,0,0.1);*/
    margin-bottom: 40px;
}

.related-posts h3 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
}

.related-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.related-post-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3748;
    line-height: 1.4;
}

.related-post-excerpt {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.related-post-date {
    font-size: 0.8rem;
    color: #718096;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 10px;
    display: inline-block;
}

/* بخش چهارم - کامنت‌ها */
.comments-section {
    /*background: white;*/
    padding: 40px;
    border-radius: 20px;
    /*box-shadow: 0 10px 40px rgba(0,0,0,0.1);*/
}

.comments-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2d3748;
    text-align: center;
}

.comment-form {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.comment-form h4 {
    color: #2d3748;
    margin-bottom: 20px;
}

.comment-form .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.comment-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-right: 4px solid #667eea;
}

.comment-author {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 10px;
}

.comment-text {
    color: #4a5568;
    line-height: 1.6;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .post-header {
        padding: 30px 20px;
    }

    .post-content {
        padding: 30px 20px;
    }

    .related-posts {
        padding: 30px 20px;
    }

    .comments-section {
        padding: 30px 20px;
    }

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