/* Custom styles for updated layout */

/* Fix wrapper width */
.wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Site header improvements */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 0;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 36px;
    margin: 0 0 5px;
    font-weight: 300;
}

.site-title a {
    color: #111;
}

.site-description {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Archive link in header */
.header-link {
    padding-top: 20px;
}

.archive-link {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

.archive-link:hover {
    color: #C9AB81;
    border-color: #C9AB81;
}

/* Homepage post list */
.posts-list {
    margin: 40px 0;
}

.post-list-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e5e5e5;
}

.post-list-item:last-child {
    border-bottom: none;
}

.post-thumbnail {
    flex: 0 0 300px;
}

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

.post-content-wrapper {
    flex: 1;
}

.post-list-item .post-title {
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 400;
}

.post-list-item .post-title a {
    color: #111;
}

.post-list-item .post-title a:hover {
    color: #C9AB81;
}

.post-meta {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.post-meta a {
    color: #999;
}

.post-meta a:hover {
    color: #C9AB81;
}

.post-excerpt {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 20px;
}

.read-more {
    color: #C9AB81;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Archive page */
.archive-page {
    margin: 40px 0;
}

.page-title {
    font-size: 36px;
    margin: 0 0 40px;
    font-weight: 300;
}

.archive-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: #f9f9f9;
}

.filter-section h3 {
    font-size: 18px;
    margin: 0 0 20px;
    font-weight: 400;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #C9AB81;
    color: #fff;
    border-color: #C9AB81;
}

.filter-btn.active {
    background: #C9AB81;
    color: #fff;
    border-color: #C9AB81;
}

.archive-posts {
    margin-top: 40px;
}

.archive-post-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.archive-post-item:last-child {
    border-bottom: none;
}

.archive-post-item .post-title {
    font-size: 20px;
    margin: 0 0 8px;
}

.archive-post-item .post-title a {
    color: #111;
}

.archive-post-item .post-title a:hover {
    color: #C9AB81;
}

/* Single post styles */
.post-single {
    max-width: 740px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
}

.post-single .post-title {
    font-size: 36px;
    margin: 0 0 20px;
    font-weight: 400;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin: 0 0 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-tags {
    margin: 30px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
}

.post-tags a {
    color: #C9AB81;
    margin: 0 5px;
}

/* Footer */
.site-footer {
    background: #111;
    color: #999;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-link {
        padding-top: 0;
        align-self: flex-start;
    }
    
    .post-list-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        flex: 1 1 auto;
    }
    
    .archive-filters {
        grid-template-columns: 1fr;
    }
    
    .wrapper {
        padding: 0 20px;
    }
    
    .post-single {
        padding: 20px;
    }
}