/* Optimized CSS for Blog Pages - Performance Focused */

/* Oxygen served via Google Fonts link tag (see templates) - removed manual @font-face for simplicity */

/* CLS Prevention - Reserve space for images */
img {
  max-width: 100%;
  height: auto;
  aspect-ratio: attr(width) / attr(height);
}

/* Ensure proper image sizing to prevent layout shift */

/* Blog Header */

/* Blog Search */

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    contain: layout style paint;
}

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

.blog-post-title {
    font-family: 'Oxygen', 'Helvetica Neue', Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Blog Sidebar */

/* Blog Post Detail */

/* Responsive Design */
@media (max-width: 768px) {

    .search-form {
        flex-direction: column;
    }
}

/* No posts message */

/* Lazy loading placeholder */

/* YouTube Video Embeds - Responsive and Performance Optimized */

/* Mobile optimization for video embeds */
