/* Blog Page Styles */

.blog-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 500px;
}

.blog-loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.blog-loading i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.blog-loading p {
    font-size: 1.2rem;
    color: #666;
}

.blog-error {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-error i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.blog-error h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.blog-error p {
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-error .error-details {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Blog Post Card */
.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-date i {
    color: #2563eb;
}

.blog-post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: auto;
}

.blog-post-link:hover {
    color: #1d4ed8;
}

.blog-post-link i {
    font-size: 0.9rem;
}

.blog-post-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}

.blog-post-engagement {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-post-engagement span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-post-engagement i {
    color: #2563eb;
}

/* Facebook Contact Link in Footer */
.facebook-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.facebook-contact-link:hover {
    color: #2563eb;
}

.facebook-contact-link i {
    color: #2563eb;
    width: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post-card {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .blog-post-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .blog-post-content {
        padding: 1rem;
    }
    
    .blog-post-title {
        font-size: 1.1rem;
    }
    
    .blog-post-excerpt {
        font-size: 0.9rem;
    }
    
    .blog-post-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.blog-empty i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.blog-empty h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-empty p {
    color: #999;
}

