.post-item {
  padding: 1.5rem;
  border: 1px solid #f05c2b; /* Updated border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
  /* height: 250px; */
  height: auto;
}

.news-title {
  color: #f05c2b;
  font-weight: bold !important;
}
.post-item:hover {
  transform: translateY(-10px) scale(1.05); /* Lift and slightly scale up the card */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Create a 3D shadow effect */
}
/* Default image styling */
.post-item img {
  height: 160px;
  transition: transform 0.3s ease, border-color 0.3s ease; /* Smooth transition on hover */
}

/* Hover effect for the image */
.post-item img:hover {
  transform: scale(1.05); /* Slight zoom effect */
  border-color: #ff7f50; /* Change border color on hover */
}
/* Darken the post meta text */
.post-meta {
  color: #ad2627; /* Darker shade for the metadata text */
}

/* Darken the post title */
.post-title {
  color: #222222; /* Darker shade for the title */
}
.modal-dialog {
  max-width: 100%;
  margin: 0;
}

.modal-content {
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-body {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-body .modal-img {
  max-height: 100%;
  object-fit: contain;
}
/* Small devices (Phones) */
@media (max-width: 576px) {
  .post-item {
    padding: 1rem; /* Reduce padding on small devices */
    height: auto; /* Allow flexibility for smaller devices */
  }

  .post-item img {
    height: 100px; /* Adjust image height */
  }

  .post-title {
    font-size: 1rem; /* Adjust font size for small screens */
  }

  .read-more-btn {
    font-size: 0.875rem; /* Make the button text smaller */
  }
}

/* Large Devices */
@media (min-width: 992px) {
  .post-item img {
    height: 160px; /* Default image height */
  }
}
