/**
 * Homepage Specific Styles
 */

/* Homepage Layout Adjustments */
.home #primary {
    padding-top: 0;
}

.home .entry-content {
    margin-top: 0;
}

/* Featured Posts Section */
.featured-posts {
    margin: 40px 0;
}

.featured-posts .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-posts .section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, #ddd, transparent);
}

/* Latest Posts Grid */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* Homepage Cards (larger than archive) */
.home .assistouest-card .card-title {
    font-size: 1.25rem;
}

/* Categories Grid on Homepage */
.home-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.home-category-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all .2s ease;
    border: 1px solid #eee;
}

.home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.home-category-card .category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #f0f4f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.home-category-card p {
    font-size: .875rem;
    color: #666;
    margin: 0;
}

/* Newsletter Section on Homepage */
.home-newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 48px;
    margin: 48px 0;
    color: #fff;
    text-align: center;
}

.home-newsletter h2 {
    font-size: 1.875rem;
    margin: 0 0 16px;
    color: #fff;
}

.home-newsletter p {
    font-size: 1.125rem;
    margin: 0 0 24px;
    opacity: 0.95;
}

/* Responsive Homepage */
@media (max-width: 768px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .home-category-card {
        padding: 16px;
    }
    
    .home-newsletter {
        padding: 32px 20px;
        margin: 32px 0;
    }
    
    .home-newsletter h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-categories {
        grid-template-columns: 1fr;
    }
}
