/* Card Styles */
.service-card,
.article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card:hover,
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-card img,
.article-card img {
  width: 100%;
  height: 200px; /* กำหนดความสูงคงที่ */
  object-fit: cover; /* ทำให้รูปภาพ crop พอดีกับพื้นที่ */
  border-radius: 4px;
  margin-bottom: 1rem;
}
.service-card h3,
.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p,
.article-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: "Kanit", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  text-align: center;
  font-weight: 400;
}
.read-more:hover {
  background-color: #1d4ed8;
}

/* Article specific styles */
.article-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-content time {
  font-size: 0.875rem;
  color: #666;
  margin-top: auto;
  padding-top: 1rem;
}
