/* Blog Pages Custom Styles */

/* Blog Listing Page */
.blog-listing-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.blog-listing-section .sec-title {
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-meta i {
    color: #007bff;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1e1e1e;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #007bff;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-card-read-more:hover {
    gap: 12px;
}

/* Blog Article Page */
.blog-article-section {
    padding: 80px 0;
}

.blog-article-header {
    margin-bottom: 40px;
}

.blog-article-category {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-article-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1e1e1e;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 15px;
    color: #666;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-article-meta i {
    color: #007bff;
}

.blog-article-featured-image {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.blog-article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.blog-article-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1e1e1e;
}

.blog-article-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1e1e1e;
}

.blog-article-content p {
    margin-bottom: 20px;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.blog-article-content li {
    margin-bottom: 12px;
}

.blog-article-content blockquote {
    background: #f5f5f5;
    border-left: 4px solid #007bff;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    color: #555;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

.blog-article-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.blog-article-tags h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e1e1e;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tag {
    display: inline-block;
    padding: 8px 18px;
    background: #f0f0f0;
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-tag:hover {
    background: #007bff;
    color: #fff;
}

/* Blog Sidebar */
.blog-sidebar {
    padding-left: 30px;
}

.blog-sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.blog-sidebar-widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e1e1e;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.blog-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar-widget ul li:last-child {
    border-bottom: none;
}

.blog-sidebar-widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-sidebar-widget ul li a:hover {
    color: #007bff;
}

.blog-sidebar-widget ul li a span {
    color: #999;
    font-size: 14px;
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.recent-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

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

.recent-post-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.recent-post-info h4 a:hover {
    color: #007bff;
}

.recent-post-date {
    font-size: 13px;
    color: #999;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-pagination a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.blog-pagination span.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-article-title {
        font-size: 32px;
    }
    
    .blog-article-content h2 {
        font-size: 26px;
    }
    
    .blog-article-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .blog-listing-section,
    .blog-article-section {
        padding: 50px 0;
    }
    
    .blog-article-title {
        font-size: 28px;
    }
    
    .blog-article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
