/* Blog Section Styles */
.blog-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    height: 250px;
    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-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--bs-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.blog-meta > div {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--bs-primary);
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--bs-primary);
}

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-readmore {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.blog-readmore i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-readmore:hover i {
    transform: translateX(5px);
}

/* Featured Post */
.featured-post {
    position: relative;
    margin-bottom: 30px;
}

.featured-post .blog-image {
    height: 400px;
}

.featured-post .blog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 30px;
    color: #fff;
}

.featured-post .blog-title a {
    color: #fff;
}

.featured-post .blog-meta {
    color: rgba(255, 255, 255, 0.8);
}

.featured-post .blog-excerpt {
    color: rgba(255, 255, 255, 0.9);
}

/* Blog Categories */
.blog-categories {
    margin-bottom: 40px;
}

.category-button {
    border: none;
    padding: 8px 20px;
    margin: 5px;
    border-radius: 30px;
    color: #555;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.category-button:hover,
.category-button.active {
    background: var(--bs-primary);
    color: #fff;
}

/* Blog Sidebar */
.blog-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bs-primary);
    display: inline-block;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
}

.recent-post-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recent-post-date {
    font-size: 0.85rem;
    color: #666;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--bs-primary);
}

.search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
}

.page-link {
    border: none;
    margin: 0 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #666;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--bs-primary);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-image {
        height: 200px;
    }

    .featured-post .blog-image {
        height: 300px;
    }

    .blog-title {
        font-size: 1.2rem;
    }

    .blog-sidebar {
        margin-top: 30px;
    }
}

/* Blog Typography */
.blog-post {
    font-size: 14px;
    line-height: 1.6;
}

.blog-post h1 {
    font-size: 24px;
    margin-bottom: 1rem;
}

.blog-post h2 {
    font-size: 20px;
    margin-bottom: 0.875rem;
}

.blog-post h3 {
    font-size: 18px;
    margin-bottom: 0.75rem;
}

.blog-post p {
    font-size: 14px;
    margin-bottom: 1rem;
}

.blog-excerpt {
    font-size: 13px;
    line-height: 1.5;
    margin: 10px 0;
}

.blog-meta {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
}

/* Blog Images */
.blog-featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.blog-thumbnail:hover {
    transform: scale(1.05);
}

/* Blog Comments Section */
.comments-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment {
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-date {
    font-size: 11px;
    color: #666;
}

.comment-content {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

.comment-form {
    margin-top: 30px;
}

.comment-form input,
.comment-form textarea {
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.comment-form textarea {
    min-height: 120px;
}

/* Blog Sidebar */
.blog-sidebar {
    font-size: 13px;
}

.blog-sidebar h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.blog-sidebar ul {
    padding-left: 0;
    list-style: none;
}

.blog-sidebar li {
    font-size: 12px;
    margin-bottom: 8px;
}

/* Blog Categories and Tags */
.blog-categories a,
.blog-tags a {
    font-size: 11px;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    display: inline-block;
}

.blog-categories a:hover,
.blog-tags a:hover {
    background: #e0e0e0;
    color: #333;
}

/* Blog Search */
.blog-search input {
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-post h1 {
        font-size: 22px;
    }
    
    .blog-post h2 {
        font-size: 18px;
    }
    
    .blog-post h3 {
        font-size: 16px;
    }
    
    .blog-featured-image {
        height: 250px;
    }
    
    .blog-thumbnail {
        height: 180px;
    }
} 