.content {
    max-width: 1000;
    margin-left: auto;
    margin-right: auto;
    background-color: #FFFFFF;
    min-height: calc(100% - 170px);
}

.header {
    font-size: 30;
    font-weight: bold;
    color: black;
    margin-left: 20px;
    margin-right: 20px;
}

code {
    font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
    padding: 2;
    padding-left: 8;
    padding-right: 8;
    border-radius: 8px;
    letter-spacing: 0.2;
}

.latestPost {
    width: calc(100% - 32px);
    display: flex;
    gap: 32px;
    margin: 16px;
    margin-bottom: 32px;
    margin-top: 32px;
}

.latestPostImage {
    height: auto; 
    width: 50%; 
    object-fit: contain;
    border-radius: 16px;
}

.latestPostText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin: 16px;
}

.latestPostLabel {
    font-weight: 600;
    font-size: 12;
 }

 .latestPostTitle {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
   -webkit-box-orient: vertical;
    font-size: 22;
    font-weight: 600;
    color: black;
    text-decoration: none!important;
 }

 .latestPostSubtitle {
    font-weight: 300;
 }

 .latestPostDate {
    font-size: 14;
 }

.posts {
    margin: 16px;
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.post {
    display: flex;
    align-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    height: 400px;
    max-width: 300px;
    border: 1px solid #D5D9DD;
    border-radius: 16px;
    overflow: hidden;
}

.postImage {
    height: auto; 
    width: 100%; 
    object-fit: contain;
}

.postTitle {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2; 
   -webkit-box-orient: vertical;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 16px;
    font-size: 22;
    font-weight: 600;
    color: black;
    text-decoration: none!important;
}

.postSubtitle {
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 16px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines to show */
           line-clamp: 4; 
   -webkit-box-orient: vertical;
   flex-grow: 4;
   text-decoration: none!important;
   font-weight: 300;

}   

.postDate {
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 16px;
    font-size: 14;
    text-decoration: none!important;
} 

.postDetails {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    gap: 16px;
}

.postDetailsTitle {
    font-size: 30;
    font-weight: bold;
    color: black;
}

.postDetailsSubtitle {
    font-size: 16;
    font-weight: 300;
}

.postDetailsImage {
    height: auto; 
    width: 100%; 
    object-fit: contain;
    border-radius: 16px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.postDetailsBody {
    font-size: 17;
    line-height: 1.4;
    font-weight: 300;
}

.postDetailsDate {
    font-size: 14;
}

.postAdContainer {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.postAdBackground {
    display: flex;
    background-color: #181A1C;
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    margin: 16px;
    color: white;
    margin-bottom: 32px;
}

.postAdTextContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 32px;
    justify-content: space-between;
}

.postAdTitle {
    font-weight: 700;
    font-size: 28px;
}

.postAdDetails {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
}

.postAdImage {
    max-width: 30%;
}

.pageControl {
    margin: 32px;
    display: flex;
    justify-content: space-between;
}

a:link { text-decoration: none; }

hr.rounded {
  border: 1px solid #DFDEE3;
  margin-bottom: 24px;
}

@media (max-width: 850px) {
    .latestPost {
        flex-direction: column;
    }
    .latestPostImage {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .post {
        height: 450px;
        max-width: 100%;
    }
}
