@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");
.body * {
  marging: 0;
  padding: 0;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.banner-container {
  background-image: url("/media/images2023/blog-banner.png");
  background-size: cover;
  background-position: center;
  height: 326px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.content {
  text-align: center;
}

.content h1 {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 5px;
  font-weight: 700;
}

.blogs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px 0;
  /* background-color: #f5f5f5; */
  /* flex-wrap: wrap; */
  gap: 20px;
  /* margin: 0 auto; */
  /* max-width: 1200px; */
}
.blog-title-post {
  width: 80%;
}
.posts {
  justify-content: start;
}
.next {
  background-color: #7474c1;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 228px;
}
.next:hover {
  background-color: #5a5a9e;
}
.blog {
  display: flex;
  justify-content: center;
  align-items: center;
  /* flex-direction: column; */
  padding: 50px 30px;
  /* background-color: #f5f5f5; */
  flex-wrap: wrap;
  gap: 20px;
  /* margin: 0 auto; */
  /* max-width: 1200px; */
}

.blog-card {
  display: flex;
  justify-content: around;
  align-items: center;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #8d8dcc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  transition: all 0.3s ease-in-out;
  padding: 10px;
  width: 280px;
  height: 496px;
}

.blog-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px); /* Add slight hover effect */
}

.blog-card__image {
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-card__image img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease-in-out;
}

.blog-card__image:hover img {
  filter: contrast(1.1) brightness(1.1); /* Enhance image on hover */
}

.blog-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  text-align: left;
  justify-content: start;
  flex-grow: 1;
}

.blog-card__title {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

.blog-card__excerpt {
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.blog-card__read-more {
  display: flex;
  justify-content: center;
  align-items: end;
  padding: 8px 15px;
  border: 1px solid #6a7422;
  border-radius: 3px;
  text-decoration: none;
  width: 80%;
  text-align: center;
  color: #6a7422;
  transition: all 0.3s ease-in-out;
  font-weight: 500;
  margin-bottom: 0;
}

.blog-card__read-more:hover {
  background-color: #8d8dcc;
  color: #fff;
  border: 1px solid #8d8dcc;
}

/* Media Queries (Adjust as needed) */

@media only screen and (max-width: 768px) {
  .blog-card .blog {
    flex-direction: column;
    margin: 0 auto;
  }

  /* .blog-card__image {
    }
  
    .blog-card__content {
      
    } */
}
