/* Single Post Styles */
.single-post-wrapper {
    padding: 60px 0;
    background-color: #f8f9fa;
    direction: rtl;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.post-meta i {
    color: #2A6373;
    margin-left: 6px;
}

.post-title {
    font-size: 2.2rem;
    color: #333;
    margin: 0;
}

.post-featured-image {
    margin: 0 -40px 30px;
    overflow: hidden;
}

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

.post-content {
    color: #444;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.post-content blockquote {
    border-right: 4px solid #2A6373;
    padding: 15px 20px;
    background-color: #f5f5f5;
    font-style: italic;
    color: #555;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag-label {
    font-weight: 600;
    color: #333;
    margin-left: 10px;
}

.post-share {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.post-share h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.post-share i {
    margin-left: 5px;
    color: #2A6373;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-3px);
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-whatsapp {
    background-color: #25d366;
}

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

.prev-post, .next-post {
    max-width: 45%;
}

.prev-post a, .next-post a {
    color: #2A6373;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.prev-post a:hover, .next-post a:hover {
    color: #1D4A54;
}

.prev-post i, .next-post i {
    margin: 0 5px;
}

/* Related Posts */
.related-posts {
    margin-bottom: 60px;
}

.related-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.related-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: #2A6373;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.related-post-image {
    height: 180px;
    overflow: hidden;
}

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

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

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

.related-post-title {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

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

.related-post-title a:hover {
    color: #2A6373;
}

.related-post-date {
    font-size: 0.85rem;
    color: #777;
}

.no-related {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Comments */
.comments-area {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comments-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.comments-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: #2A6373;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .post-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .single-post {
        padding: 30px 20px;
    }
    
    .post-featured-image {
        margin: 0 -20px 20px;
    }
    
    .post-meta {
        gap: 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .comments-area {
        padding: 30px 20px;
    }
}
