/* ===== หน้า ข่าวประชาสัมพันธ์ ===== */

/* หัวข้อข่าวหลัก */
.news-title {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, #198754 0%, #28a745 100%);
  background-clip: text;               /* ✅ เพิ่มตัวนี้ */
  -webkit-background-clip: text;       /* ✅ สำหรับ Chrome/Safari */
  -webkit-text-fill-color: transparent;
}

.news-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 80%;
  background: linear-gradient(180deg, #28a745, #198754);
  border-radius: 4px;
}

/* เอฟเฟกต์ hover */
.news-title:hover {
  text-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
  transform: translateX(3px);
  transition: all 0.3s ease;
}

/* การ์ดข่าว */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(25, 135, 84, 0.15);
}

/* รูปภาพข่าว */
.card-img-top {
  border-bottom: 2px solid #198754;
  transition: transform 0.4s ease;
}
.card:hover .card-img-top {
  transform: scale(1.05);
}

/* ปุ่มอ่านต่อ */
.btn-outline-success {
  border: 1.5px solid #198754;
  color: #198754;
  transition: 0.3s ease;
}
.btn-outline-success:hover {
  background: linear-gradient(90deg, #198754, #28a745);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(25, 135, 84, 0.25);
}


/* สปินโหลดข่าว */
.spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

/* Pagination */
.pagination .page-item.active .page-link {
  background: linear-gradient(90deg, #198754, #28a745);
  border: none;
}
.pagination .page-link {
  color: #198754;
  border: 1px solid #198754;
  transition: 0.3s ease;
}
.pagination .page-link:hover {
  background-color: #198754;
  color: #fff;
}



/* Responsive */
@media (max-width: 768px) {
  .news-title {
    font-size: 1.5rem;
  }
  .card-text {
    font-size: 0.85rem;
  }
}
