/* Container and Heading */
.market-insight {
  padding: 60px 0px;
  background-color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

.market-insight__container {
  max-width: 100%;
  margin: 0 auto;
}

.market-insight__heading {
  font-size: 36px;
  color: #1f2937;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Grid Layout */
.market-insight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card Styling */
.market-insight__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  padding: 24px;
  background-color: #ffffff;
  color: inherit;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
  border-radius: 8px;
}

.market-insight__card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  background-color: #8bb63e5c;
}

/* Card Image */
.market-insight__card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 24px;
}

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

.market-insight__card:hover .market-insight__card-image img {
  transform: scale(1.03); /* Optional subtle zoom effect on hover */
}

/* Card Content */
.market-insight__card-content {
  display: flex;
  flex-direction: column;
}
.market-insight__card-date {
  margin-bottom: 10px;
  font-size: 14px;
}
.market-insight__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Content truncated to max 5 lines */
.market-insight__card-excerpt {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* View More Section Button */
.market-insight__action {
  margin-top: 50px;
  text-align: center;
}

.market-insight__btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: #8bb63e;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.market-insight__btn:hover {
  background-color: #7aa62e;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .market-insight__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .market-insight__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .market-insight__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .market-insight {
    padding: 40px 0px;
  }

  .market-insight__action {
    margin-top: 30px;
  }
}
