/* Blog Archive Styles */
.blog-archive-wrapper {
    background-color: #f8f9fa;
    direction: rtl;
}

.archive-header {
    background-color: #2A6373;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.archive-content {
    padding-bottom: 80px;
}

.archive-layout {
    display: flex;
    gap: 40px;
}

.blog-posts {
    flex: 1;
    min-width: 0;
}

.blog-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

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

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

.blog-meta i {
    margin-left: 5px;
    color: #2A6373;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

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

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

.read-more {
    color: #2A6373;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #1D4A54;
}

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

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

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #2A6373;
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}

.no-posts {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Sidebar Styles */
.sidebar-widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

/* Search Widget */
.search-form {
    display: flex;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: #2A6373;
    outline: none;
}

.search-submit {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #555;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: #2A6373;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

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

.categories-list a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: #2A6373;
}

.category-count {
    font-size: 0.9rem;
    color: #777;
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 20px;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumbnail {
    width: 70px;
    height: 70px;
    margin-left: 15px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.recent-post-info {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 1rem;
    margin: 0 0 5px;
}

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

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

.recent-post-date {
    font-size: 0.8rem;
    color: #777;
}

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

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f3f5;
    color: #555;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: #2A6373;
    color: #fff;
}

/* Contact Widget */
.contact-widget p {
    margin-bottom: 20px;
    color: #666;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item i {
    color: #2A6373;
    margin-left: 12px;
    font-size: 1.1rem;
}

.contact-item a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2A6373;
}

.contact-btn {
    display: inline-block;
    background-color: #2A6373;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.contact-btn:hover {
    background-color: #1D4A54;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .archive-layout {
        flex-direction: column;
    }
    
    .blog-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 40px 0;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .blog-title {
        font-size: 1.3rem;
    }
    
    .blog-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .archive-title {
        font-size: 1.8rem;
    }
    
    .pagination .page-numbers {
        padding: 6px 12px;
        margin: 0 3px;
    }
}
