.main-card {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.card {
  position: relative;
  width: 92%;
  height: 607px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute; 
  top: 0;
  left: 0;
  z-index: 1;
}

.card-content-blog {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2; 
  width: 100%;
  height: 100%; 
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-content-blog h2 {
  font-weight: 500;
    font-family: "Josefin Slab", serif;
    font-size: 2.3rem;
}

.card-content-blog p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 58%;
  color: #fff;
  font-family: 'Lato',serif;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer .date {
  font-size: 14px;
  color: #fff;
}

.card-footer .btn {
  padding: 10px 20px;
  background-color: #F564A9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 4%;
}

.card-footer .btn:hover {
  background-color: #e05296;
}
/* section 8 */
.blog {
  position: relative;
  top: 400px;
  padding: 40px;
  background: #ffffff;
}

.blog-container {
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 500px;
}

.blog-heading {
  font-size: 36px;
  margin-bottom: 30px;
  font-family: "Josefin Slab", serif;
}

.blog-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-card {
  width: 30%;
  border-radius: 20px;
  transition: transform 0.3s ease;
  background-color: transparent;
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-img-container {
  width: 100%;
  height: 400px;
  position: relative;
}

.blog-img-container img {
  width: 100%;
  height: 100%;
  
  border-radius: 20px;
}

.blog-content {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  background: #f8f8f8;
  padding: 16px;
  border-radius: 7px;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
  z-index: 10;
  height: 139px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.blog-category {
  background-color: #ff4fa3;
  color: white;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.blog-date {
  color: #888;
}

.blog-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-readmore {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  font-weight: 500;
}

.blog-readmore i {
  margin-left: 5px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .main-card {
    padding: 20px 0;
  }

  .card {
    width: 95%;
    height: 500px; /* Reduced height for smaller screens */
  }

  .card-content-blog {
    padding: 20px;
   
  }

  .card-content-blog h2 {
    font-size: 1.8rem; 
   
  }

  .card-card-content-blog p {
    font-size: 0.85rem;
    max-width: 80%;
    
    
  }

  .card-footer .btn {
    
    font-size: 0.9rem;
    margin-right: 15%;


  }

  /* Blog Section */
  .blog {
    top: 300px; /* Adjusted for smaller screens */
    padding: 20px;
  }

  .blog-container {
    padding: 20px;
    height: auto; 
  }

  .blog-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .blog-cards {
    flex-direction: column; /* Stack cards vertically */
    gap: 30px;
  }

  .blog-card {
    width: 100%; /* Full width for cards */
  }

  .blog-img-container {
    height: 440px; /* Reduced image height */
  }

  .blog-content {
    width: 90%; /* Wider content box */
    bottom: -30px;
    height: 120px; /* Adjusted height */
  }

  .blog-title {
    font-size: 15px;
  }
}
