/* Page-specific styles for `blog-frontend-network-optimization.html`.
   Shared tokens/layout (nav, footer, article styles) are in `common.css`. */

.article-header {
    padding: 4rem 2rem 2rem;
}

.article-content {
    padding: 0 2rem;
}

/* Featured Image */
.featured-image {
    width: 100%;
    max-width: 1200px;
    margin: -3rem auto 0;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.featured-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Related Posts */
.related-posts {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.related-posts h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-content {
    padding: 1.5rem;
}

.related-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

