/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background-color: #fff;
    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;
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.blog-meta i {
    margin-inline-end: 5px;
}

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

.read-more {
    display: inline-flex;
    align-items: center;
    color: #69002c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #4d0028;
}

.read-more i {
    margin-inline-start: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background-color: #e0e0e0;
}

.page-numbers.current {
    background-color: #00695c;
    color: white;
}

/* RTL specific adjustments */
html[dir="rtl"] .read-more i {
    transform: rotate(180deg);
}

html[dir="rtl"] .read-more:hover i {
    transform: translateX(-5px) rotate(180deg);
}

/* Dark mode */
.dark-mode .blog-card {
    background-color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .blog-title {
    color: #e0e0e0;
}

.dark-mode .blog-meta {
    color: #aaa;
}

.dark-mode .blog-excerpt {
    color: #bbb;
}

.dark-mode .read-more {
    color: #80cbc4;
}

.dark-mode .read-more:hover {
    color: #4db6ac;
}

.dark-mode .page-numbers {
    background-color: #424242;
    color: #ddd;
}

.dark-mode .page-numbers:hover {
    background-color: #616161;
}

.dark-mode .page-numbers.current {
    background-color: #00897b;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
