

/* General styles */
body {
    line-height: 1.6;
    margin: 7px 7px;
    padding: 0;
}

main{
    margin-top: 150px;
}

.article {
    margin-bottom: 40px;
    width: 60%;
    margin: 40px auto;
    padding: 20px;
}

.article-title {
    font-family: 'Lora', Times New Roman, serif;
    font-size: 64px;
    font-weight: bold;
    color: #42372D;
    margin-bottom: 20px;
}

.article-title p {
    font-family: Roboto, Helvetica, Arial;
    font-size: 24px;
    color: #42372D;
    margin-top: 10px;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.article-desc {
    font-family: Roboto, Helvetica, Arial;;
    font-size: 20px;
    color: #42372D;
    line-height: 1.5;
    margin-top: 20px;
    width: 100%;
    padding: 0px 5px;
}

hr{
    color: #b7b7b7;
}

/* Related post section styles */
.related-post {
    margin: 0px 90px;
    margin-top: 80px;
}

.related-post-header {
    font-family: Lora, Times New Roman, serif;
    font-size: 40px;
    font-weight: bold;
    color: #42372D;
    margin-bottom: 80px;
    text-align: center;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.related-post-content {
    flex: 1 1 calc(33.333% - 20px); /* 33.333% width minus the gap */
    box-sizing: border-box;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-post-content a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.related-post-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}

.related-post-title {
    font-family: Roboto, Helvetica, Arial;
    font-size: 20px;
    font-weight: bold;
    color: #42372D;
    text-align: left;
    margin-top: 10px;
}

.related-post-author {
    font-family: Roboto, Helvetica, Arial;
    font-size: 20px;
    color: #42372D;
    text-align: left;
    margin-top: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        width: 90%;
    }

    .article-content {
        flex-direction: column;
    }

    .row {
        flex-direction: column;
    }

    .related-post-content {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
    }

    .article-title p {
        font-size: 16px;
    }

    .article-desc {
        font-size: 14px;
    }

    .related-post-header {
        font-size: 20px;
    }

    .related-post-title {
        font-size: 16px;
    }

    .related-post-author {
        font-size: 12px;
    }
}



