.news-container {
  width: 100%;
  max-width: 350px;
  margin: 20px;
}

.news-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news-item-image img {
  width: 100%;
  height: 100%;
  display: block;
}

.news-item-content {
  padding: 20px;
}

.news-item-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}

.news-item-author {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.news-item-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}

.news-item-description {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.news-item-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1a572d ;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.news-item-button:hover {
  background-color: #84c344;
}
.activity-container {
  width: 100%;
  max-width: 350px;
  margin: 20px;
}

.activity-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.activity-image {
  width: 100%;
  height: 200px; /* ความสูงของรูปภาพ */
  overflow: hidden;
  position: relative;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ให้รูปภาพครอบคลุมพื้นที่ */
  transition: transform 0.3s ease;
}

.activity-card:hover .activity-image img {
  transform: scale(1.1); /* ขยายรูปภาพเมื่อ hover */
}

.activity-content {
  padding: 15px;
  text-align: center;
}

.activity-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.activity-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.activity-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.activity-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #1a572d ;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.activity-button:hover {
  background-color: #84c344;
}
