.overview-area {
  background-color: #f9f9f9;
  padding: 30px 0;
}

.overview-image {
  height: calc(153px * 2 + 16px); /* Height of 2 cards + gap */
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* When hovering on .overview-image, the scale image pops out */
.overview-image:hover img {
  transform: scale(1.05); /* Expanded by 5% */
}

/* Cards Wrapper */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 16px;
}

/* Card Content */
.card.card-secondary {
  background-color: #D6D6D6 !important;
  border: none !important;
  border-radius: 8px;
  color: #1A1A1A !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Some shadows begin */
}

.card.card-secondary:hover {
  transform: translateY(-4px) scale(1.02); /* Lift up a little + expand a little */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* Shadow darkens when hovering */
}

.card-number {
  font-size: 20px;
  color: #1A1A1A;
  margin: 0;
}

.card-percent {
  font-size: 16px;
  font-weight: bold;
  color: #00796B;
  margin: 0;
}

.card-from {
  font-size: 16px;
  color: #8E8E8E;
  margin: 0;
}

.card.card-secondary .card-body {
  padding: 10px 15px;
}

.card.card-secondary h1 {
  font-size: 20px;
  margin-bottom: 5px;
}

.card.card-secondary h5 {
  font-size: 14px;
  margin-bottom: 5px;
}

.card.card-secondary h3 {
  font-size: 16px;
}

/* Responsive Layout */
@media (max-width: 991.98px) {
  .overview-image {
    margin-bottom: 1rem;
    height: auto;
  }

  .cards-wrapper .card-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .cards-wrapper .card-col {
    grid-template-columns: 1fr;
  }
}
