 .featured-section {
    --featured-bg: #f7f9fc;
    --featured-radius: 2rem;
    --featured-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    
    position: relative;
    margin-bottom: 6rem;
    border-radius: var(--featured-radius);
    overflow: hidden;
}

/* Main featured container */
.featured-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Featured hero post */
.featured-hero {
    position: relative;
    height: 400px;
    border-radius: var(--featured-radius);
    overflow: hidden;
    box-shadow: var(--featured-shadow);
}

.featured-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.featured-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-hero:hover .featured-hero-background img {
    transform: scale(1.05);
}

.featured-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.featured-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 3;
    color: #fff;
}

.featured-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-hero-meta .author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.featured-hero-meta .author-info {
    display: flex;
    flex-direction: column;
}

.featured-hero-meta .author-name {
    font-weight: 600;
    margin: 0;
}

.featured-hero-meta .author-title {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

.featured-hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.featured-hero-title a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.featured-hero-title a:hover {
    opacity: 0.9;
}

.featured-hero-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.featured-hero-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-block;
    text-decoration: none;
}

.featured-hero-reading {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.featured-hero-reading svg {
    width: 14px;
    height: 14px;
}

/* Secondary featured posts */
.featured-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.featured-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    height: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.featured-card-thumbnail {
    flex: 0 0 140px;
    overflow: hidden;
}

.featured-card-thumbnail img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-thumbnail img {
    transform: scale(1.1);
}

.featured-card-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.featured-card-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.featured-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.featured-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-card-title a:hover {
    color: var(--primary);
}

.featured-card-meta {
    margin-top: auto;
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Category heading */
.category-heading {
    position: relative;
    margin: 5rem 0 2.5rem 0;
    padding-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
}

.category-heading:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* View all button */
.view-all-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.view-all-link:hover {
    gap: 0.75rem;
}

.view-all-link i {
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .featured-hero {
        height: 500px;
    }
    
    .featured-hero-title {
        font-size: 2.5rem;
    }
    
    .featured-secondary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .featured-container {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    
    .featured-hero {
        height: 600px;
    }
    
    .featured-secondary {
        grid-template-columns: 1fr;
    }
    
    .category-heading {
        font-size: 2.25rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .featured-section {
        --featured-bg: #171923;
    }
    
    .featured-card {
        background-color: #1a202c;
    }
    
    .featured-card-title a {
        color: #e2e8f0;
    }
    
    .featured-card-meta {
        color: #a0aec0;
    }
    
    .category-heading {
        color: #e2e8f0;
    }
}

/*
 * Category Section Styles
 * Styling for category sections on the blog homepage
 */

.category-section {
    margin-bottom: 5rem;
}

.category-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.category-heading {
    position: relative;
    padding-bottom: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.category-heading:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    font-size: 1rem;
}

.view-all-link:hover {
    gap: 0.75rem;
    text-decoration: none;
}

.view-all-link svg {
    transition: transform 0.3s ease;
}

.view-all-link:hover svg {
    transform: translateX(2px);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .category-heading {
        color: #e2e8f0;
    }
}

/* Responsive styles */
@media (min-width: 768px) {
    .category-header {
        flex-direction: row;
        align-items: center;
    }
}