#closed-deals-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.closed-deals-heading {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: #333;
}

.closed-deals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.deal-card {
  width: 30%;
  text-decoration: none;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 300px; /* Ensures all tiles are the same height */
}

.deal-card:hover {
  transform: translateY(-5px);
}

.deal-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 3 / 2; /* Ensures consistent image frame */
}

.deal-title {
  padding: 15px;
  font-size: 1rem;
  color: #222;
  text-align: center;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-controls button,
.page-number-btn {
  padding: 8px 14px;
  background: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.pagination-controls button:hover,
.page-number-btn:hover {
  background: #005f8d;
}

.pagination-controls button:disabled,
.page-number-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.page-number-btn.active {
  background-color: #0073aa;
  font-weight: bold;
}

.pagination-controls button:focus,
.page-number-btn:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .deal-card {
    width: 100%;
    height: auto; /* Allow flexible height on small screens */
  }

  .deal-title {
    font-size: 1.1rem;
  }
}
