body {
margin: 0;
font-family: "Bai Jamjuree", sans-serif;
/* Adjust with the exact font if found */
}
/* Style for Blog Container */
.blog-container {
width: 1240px;
overflow: auto;
margin-left: auto;
position: relative;
left: -3px;
margin-right: auto;
max-width: 94%;
/* Responsive for smaller screens */
padding: 5px 20px;
background-color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 100px;
box-sizing: border-box;
}
.blog-thumbnail img {
width: 150px;
height: 150px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-right: 20px;
object-fit: cover;
}
.blog-post {
display: flex;
justify-content: space-between;
align-items: start;
height: 150px;
margin-bottom: 20px;
margin-top: 20px;
background-color: white;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
max-width: 1200px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-img-and-text {
display: flex;
}
.blog-post h2 {
font-size: 1.2em;
margin: 0 0 15px 0;
color: #333;
}
.blog-post p {
font-size: 1em;
color: #666;
margin: 0;
}
.blog-post a {
color: #1e7cd6;
text-decoration: none;
font-weight: bold;
}
.blog-post a:hover {
color: #104e8b;
}
/* Responsive Styles */
@media (max-width: 768px) {
.blog-search-sort {
flex-direction: column;
gap: 10px;
}
.blog-post {
width: 95%;
}
}
.bai-jamjuree-extralight {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 200;
font-style: normal;
}
.bai-jamjuree-light {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 300;
font-style: normal;
}
.bai-jamjuree-regular {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 400;
font-style: normal;
}
.bai-jamjuree-medium {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 500;
font-style: normal;
}
.bai-jamjuree-semibold {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 600;
font-style: normal;
}
.bai-jamjuree-bold {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 700;
font-style: normal;
}
.bai-jamjuree-extralight-italic {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 200;
font-style: italic;
}
.bai-jamjuree-light-italic {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 300;
font-style: italic;
}
.bai-jamjuree-regular-italic {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 400;
font-style: italic;
}
.bai-jamjuree-medium-italic {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 500;
font-style: italic;
}
.bai-jamjuree-semibold-italic {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 600;
font-style: italic;
}
.bai-jamjuree-bold-italic {
font-family: "Bai Jamjuree", sans-serif;
font-weight: 700;
font-style: italic;
}
a {
text-decoration: none;
}
a.fill-div {
display: block;
height: 100%;
width: 100%;
text-decoration: none;
}
.date-and-readmore {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="blog-container" id="blogContainer">
<div
class="blog-post"
data-date="2024-08-30"
onclick=""
style="cursor: pointer"
>
<div class="blog-img-and-text">
<div class="blog-thumbnail">
<img
src="https://d150u0abw3r906.cloudfront.net/wp-content/uploads/2021/09/aerial-shot.jpg"
alt="Thumbnail"
/>
</div>
<div>
<h2>How Drone Photography Can Elevate Your Real Estate Listings</h2>
<p>
Unlock the Power of Aerial Views & Attract More Buyers to Your
Listings
</p>
<p>
Unlock the Power of Aerial Views & Attract More Buyers to Your
Listings
</p>
</div>
</div>
<div class="date-and-readmore">
<p>August 30, 2024</p>
<a href="">Read more</a>
</div>
</div>
</div>
</body>
</html>