/* Blog Styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-header .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog Content */
.blog-content {
    padding: 60px 0;
    background-color: #F9FAFB;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Blog Post Card */
.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-post-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-post-category {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-post-content {
    padding: 24px;
}

.blog-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1F2937;
}

.blog-post-excerpt {
    color: #4B5563;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    color: #6B7280;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.blog-post-link {
    display: inline-block;
    color: #4F46E5;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-link:hover {
    color: #4338CA;
    text-decoration: underline;
}

/* Single Blog Post */
.single-blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #6B7280;
    margin-bottom: 20px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

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

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #1F2937;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #1F2937;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid #4F46E5;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #4B5563;
}

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

.post-content a {
    color: #4F46E5;
    text-decoration: underline;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0;
}

.post-tag {
    background-color: #F3F4F6;
    color: #4B5563;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.post-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #E5E7EB;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F3F4F6;
    color: #4B5563;
    transition: all 0.2s;
}

.share-button:hover {
    background-color: #4F46E5;
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #E5E7EB;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

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

.pagination-button {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    color: #4B5563;
    font-weight: 500;
    transition: all 0.2s;
    margin: 0 5px;
}

.pagination-button:hover {
    background-color: #F3F4F6;
}

.pagination-button.active {
    background-color: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 80px 0 40px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .single-blog-post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
}

/* Blog Categories Filter */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-filter {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 30px;
    color: #4B5563;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.category-filter:hover {
    background-color: #F3F4F6;
}

.category-filter.active {
    background-color: #4F46E5;
    color: white;
    border-color: #4F46E5;
}

/* Blog Search */
.blog-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 1px solid #E5E7EB;
    border-radius: 30px;
    font-size: 1rem;
    background-color: white;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: #4F46E5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #4338CA;
}
