/* Blog Page Styles */

/* Blog Categories */
.blog-categories-section {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: #41AFFF;
    color: #fff;
    border-color: #41AFFF;
    box-shadow: 0 5px 15px rgba(65, 175, 255, 0.2);
}

/* Featured Post */
.featured-post-section {
    padding: 40px 0;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(65, 175, 255, 0.15);
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #41AFFF;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.featured-post-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.post-meta i {
    color: #41AFFF;
    margin-right: 5px;
}

.featured-post-content h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    line-height: 1.3;
}

.featured-post-content p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #41AFFF;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 175, 255, 0.3);
}

.post-engagement {
    display: flex;
    gap: 15px;
}

.like-btn, .share-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.like-btn:hover, .share-btn:hover {
    color: #41AFFF;
}

.like-btn i, .share-btn i {
    font-size: 1.1rem;
}

/* Blog Posts Grid */
.blog-posts-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

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

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

.blog-post-image {
    position: relative;
    height: 250px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-post-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    line-height: 1.4;
}

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

/* Responsive Styles */
@media (max-width: 991.98px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        min-height: 300px;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767.98px) {
    .blog-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .featured-post-content {
        padding: 30px;
    }
    
    .featured-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-image {
        height: 200px;
    }
    
    .blog-post-content {
        padding: 20px;
    }
    
    .blog-post-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .post-engagement {
        width: 100%;
        justify-content: space-between;
    }
}