h1 + div > article:first-of-type, 
h1 + article:first-of-type {      
    margin-top: 2rem;
}

#home {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; 
    padding-right: 1rem; 
    width: 100%; 
    padding-top: 30px;
}

main section {      
    max-width: 1200px;     
    margin-left: auto;       
    margin-right: auto;      
 }

main.site-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

main.site-content > section {
     flex-grow: 1;
}

.home-content-wrapper {
    display: flex;
    flex-wrap: wrap; 
    gap: 2rem; 
    margin-bottom: 70px;
}

.main-column {
    flex-grow: 1; 
    min-width: 60%;
    max-width: 835px;
}

.main-column .posts-list-title a{
    text-decoration: none;
    color: var(--text-color);
}

.sidebar-column {
    flex-basis: 270px; 
    flex-shrink: 0; 
}

.post-article {
    width: 835px; 
}

.entry {
    margin: 15px 5px;
    font-size: 20px;
    color: var(--text-color-dark);
    width: 780px;
}

.contact-list {
    margin: 30px 10px;
    display: flex;
    gap: 25px;
}

.contact-list-i {
    color: var(--text-color);
    font-size: 28px;
}

article {
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: var(--nav-bg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-image-container {
    flex-shrink: 0;
    width: 100px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.post-image-container:empty {
    background-color: #ffffff;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.post-image {
    display: block;
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.post-text-content {
    flex-grow: 1; 
    min-width: 0; 
}

.post-title {
    margin-bottom: 0.25rem; 
    font-size: 1.6rem;     
    line-height: 1.3;
    text-align: left;   
    margin-left: 0;   
}

article h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

article h2 a:hover {
    text-decoration: underline;
}

article .post-date {
    color: var(--text-color-dark);
    font-size: 0.9rem;
    text-align: left;
    margin: 0;
    width: auto;
}

.home-posts-list-title {
    font-size: 1.7em;
    margin: 1em 0;
    margin-left: 5px;
    text-align: left; 
}

.posts-list-title + div > article:first-of-type {
     margin-top: 0; 
}

a.post-link {
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

a.post-link h2 {
    color: var(--text-color);
}

a.post-link:hover article {
    background-color: var(--hover-bg);
    border-color: var(--border-color);     
}

.post-image-container {
    flex-shrink: 0;
    width: 100px;
} 

.see-more, .page-info {
    text-align: right;
    font-size: 1.2rem;
    user-select: none;
}

.see-more a {
    color: var(--text-color);
}

.tags-list-h3 {
    font-size: 1.8rem;
    margin-top: 1.8rem;
    margin-bottom: 1.5rem;
}

.tags-list ul {
    list-style: none; 
    padding: 0;
    margin: 0;
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.5rem; 
}

.tags-list-a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--nav-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.fa-tags {
    margin-right: 0.25em;
    font-size: 0.8em;
}

@media (max-width: 1200px) {
    #home {
        padding-top: 20px;
    }

    .contact-list {
        margin: 30px 5px;
    }

    article {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .home-content-wrapper article {
        width: 100%;
    }

    .post-image-container {
        width: 80px;
        height: 60px;
    }
    article h2 {
        font-size: 1.4rem;
    }
    article .post-date {
        font-size: 0.85rem;
    }

    .home-posts-list-title {
        font-size: 2rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    main section {
        padding: 1rem;
    }

    .home-content-wrapper {
        flex-direction: column; 
    }

    .sidebar-column {
        flex-basis: auto; 
        width: 100%;
    }

    .tags-list h3 {
        margin-top: 0;
    }
}