/* Homepage Layout */
.homepage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Category Sections */
.category-section {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

.category-title {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.view-all {
    color: #0066cc;
    font-size: 14px;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Post Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-image-container {
    height: 200px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* Sidebar Layout */
.sidebar {
    width: 100%;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Compact Post List */
.compact-post-list {
    list-style: none;
}

.compact-post-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.compact-post-item:last-child {
    border-bottom: none;
}

.compact-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.compact-post-title {
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-post-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .compact-post-image {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        height: auto;
    }
}