.header {
  background-image: none;
  height: 45vh;
}

.blogs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 25px;
  align-items: center;
  gap: 30px;
  padding: 0 15px;
}

.blog-card {
  box-shadow: rgba(0, 0, 0, 0.6) 0px 5px 15px;
  background-color: #fff;
  border-radius: 8px;
  height: auto;
  min-height: 600px;
  max-height: 800px;
  padding-bottom: 40px;
  width: 30%;
  min-width: 280px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.75) 0px 8px 20px;
}

.blog-card img {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.blog-card h2,
.blog-card p {
  padding: 5px 15px;
}

.blog-card h2 {
  font-size: 22px;
  margin-top: 10px;
}

.blog-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 16px;
  line-height: 1.5;
}

.blog-info {
  display: flex;
  margin-top: 10px;
  padding: 2.5px 10px;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.blog-info .blog-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-info .blog-tags span {
  display: inline-block;
  background-color: #f6bd60;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 12px;
}

.blog-info h5 {
  font-size: 16px;
}

.blog-info h5 i {
  display: inline-block;
  margin: 0px 5px;
  width: 15px;
  height: 15px;
  background-image: url("./../assets/icomoon/SVG/calendar.svg");
  background-size: cover;
  background-repeat: no-repeat;
}

.blog-card .read-more-btn {
  background-color: #f6bd60;
  color: #fff;
  width: 180px;
  padding: 12px 24px;
  border: none;
  outline: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 15px auto;
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.blog-card .read-more-btn:hover {
  background-color: #e09b3d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-card .read-more-btn a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card .read-more-btn:hover a {
  color: #fff;
}

.single-blog {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;
}

.single-blog h1 {
  font-size: 32px;
  margin: 20px 0;
  color: #333;
  border-bottom: 2px solid #f6bd60;
  padding-bottom: 10px;
}

.blog-content {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
  white-space: pre-line; /* To preserve line breaks if content includes \n */
}

.blog-category {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.category-tag {
  background-color: #f6bd60;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(246, 189, 96, 0.4);
}

.back-button {
  display: inline-block;
  margin-bottom: 20px;
  margin-right: 20px;
  padding: 8px 20px;
  background-color: #f6bd60;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #fff;
  color: #f6bd60;
  border: 2px solid #f6bd60;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .blog-card {
    width: 45%;
  }
}

@media (max-width: 992px) {
  .header {
    height: auto;
    min-height: 35vh;
  }

  .blog-card {
    min-height: 550px;
  }

  .blog-card h2 {
    font-size: 20px;
  }

  .blog-card p {
    font-size: 15px;
  }

  .blog-info .blog-tags span {
    padding: 5px 10px;
    font-size: 13px;
  }

  .blog-info h5 {
    font-size: 15px;
  }

  .single-blog {
    width: 95%;
    padding: 25px;
  }

  .single-blog h1 {
    font-size: 28px;
  }

  .blog-content {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .blog-card {
    width: 100%;
    max-width: 500px;
    min-height: 500px;
  }

  .blog-card img {
    height: 250px;
  }

  .blog-card .read-more-btn {
    width: 160px;
    padding: 10px 20px;
  }

  .single-blog {
    padding: 20px;
  }

  .single-blog h1 {
    font-size: 24px;
    margin: 15px 0;
  }

  .blog-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .category-tag {
    padding: 5px 14px;
    font-size: 13px;
  }

  .back-button {
    padding: 7px 18px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .header {
    min-height: 25vh;
  }

  .blog-card {
    min-height: 450px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 10px;
  }

  .blog-card img {
    height: 200px;
  }

  .blog-card h2 {
    font-size: 18px;
  }

  .blog-card p {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .blog-card .read-more-btn {
    width: 140px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .single-blog {
    padding: 15px;
  }

  .single-blog h1 {
    font-size: 22px;
    padding-bottom: 8px;
  }

  .blog-content {
    font-size: 14px;
    line-height: 1.6;
  }

  .blog-category {
    margin: 15px 0;
  }

  .category-tag {
    padding: 4px 12px;
    font-size: 12px;
  }

  .back-button {
    padding: 6px 15px;
    font-size: 13px;
    margin-bottom: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .blog-card {
    min-height: 420px;
    padding-bottom: 30px;
  }

  .blog-card img {
    height: 180px;
  }

  .blog-info {
    gap: 15px;
  }

  .blog-info .blog-tags span {
    padding: 4px 8px;
    font-size: 12px;
  }

  .blog-info h5 {
    font-size: 13px;
  }

  .blog-info h5 i {
    width: 12px;
    height: 12px;
  }

  .blog-card .read-more-btn {
    width: 120px;
    padding: 7px 14px;
    font-size: 13px;
    margin: 10px auto;
  }

  .single-blog {
    width: 100%;
    padding: 12px;
    margin: 10px auto;
  }

  .single-blog h1 {
    font-size: 20px;
    margin: 10px 0;
  }
}
