.news-grid {
  --bs-gutter-x: 30px;
  --bs-gutter-y: 40px;
  max-width: 1170px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1200px) {
    #news .container {
        max-width: 1170px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

#news .card {
  width: 100%; /* Responsive by default */
  max-width: 370px;
  height: 459px !important;
  border: none !important;
  background-color: transparent !important;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  #news .card {
    width: 370px; /* Fixed on desktop */
  }
}

#news .card-img-top {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* Subtle shadow for images */
}

#news .card-body {
  padding: 1rem 10px 0 10px !important;
  /* Align with image sides */
}

#news .card-date {
  color: #0d2c49;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#news .card-date i {
  color: #0d2c49;
  /* Blue icon to match design */
  font-size: 1.1rem;
}

#news .card-title {
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#news .card-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination Styles */
.pagination {
  gap: 12px;
}

.pagination .page-item .page-link {
  width: 50px;
  height: 50px;
  border: none;
  background-color: #f0f0f0;
  color: #4b5563;
  font-weight: 700;
  border-radius: 50%;
  /* Circle for numbers */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

/* Specific styling for Previous/Next buttons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  border-radius: 50%;
  /* More rectangular but rounded for arrows */
  background-color: #f0f0f0;
}

.pagination .page-link:hover {
  background-color: #e5e7eb;
  color: #0d2c49;
}

.pagination .page-item.active .page-link {
  background-color: #fbbf24;
  color: #fff;
}

.pagination .page-item.active .page-link:hover {
  background-color: #f59e0b;
}

/* Respomsive pagination */
@media (max-width: 575.98px) {
  .pagination {
    gap: 8px;
  }

  .pagination .page-item .page-link {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}
 