/* Blog layout styles */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 15px;
    gap: 30px;
}

.blog-main {
    flex: 3;
    min-width: 300px;
}

.blog-sidebar {
    flex: 1;
    min-width: 250px;
}

/* Blog posts grid */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Blog card styles */
.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: #fff;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 240px;
    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.05);
}

.blog-content {
    padding: 20px;
}

.blog-category a {
    display: inline-block;
    background-color: #ff5a5f;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-decoration: none;
}

.blog-content h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    line-height: 1.3;
}

.blog-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h2 a:hover {
    color: #ff5a5f;
}

.blog-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #ff5a5f;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #e03e43;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.page-link.active {
    background-color: #ff5a5f;
    color: #fff;
    border-color: #ff5a5f;
}

.page-link:hover:not(.active) {
    background-color: #f9f9f9;
}

.pagination .page-link:first-child,
.pagination .page-link:last-child {
    width: auto;
    padding: 0 15px;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: 18px;
}

/* Sidebar styles */
.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5a5f;
    color: #333;
}

/* Search widget */
.search-box {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #ff5a5f;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-box button:hover {
    color: #ff5a5f;
}

/* Categories widget */
.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.categories-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-widget a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.categories-widget a:hover {
    color: #ff5a5f;
}

.categories-widget span {
    color: #999;
}

/* Recent posts widget */
.recent-posts-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-widget li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.recent-posts-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-thumb {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    line-height: 1.4;
}

.post-info h4 a {
    font-size: 10px;
    line-height: 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-info h4 a:hover {
    color: #ff5a5f;
}

.post-info .date {
    font-size: 12px;
    color: #999;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-image {
        height: 200px;
    }
}