.content {
  margin-top: 40px;
}

/* ตารางข่าว */
table {
  width: 90%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 14px; 
  overflow: hidden; 
  text-align: center; 
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.table thead tr {
  background: linear-gradient(90deg, #9826e3, #6a1b9a);
}

.table th {
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 14px;
  text-align: center;
  border: none;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
}

/* แถวข้อมูล */
td {
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid #fcfcfc; 
  vertical-align: middle;
  transition: background-color 0.3s ease;
}

/* แถวสุดท้าย */
tr:last-child td {
  border-bottom: none;
}

/* แถวสลับสี */
tr:nth-child(even) {
  background-color: #faf7ff;
}

.table tbody tr {
  transition: all 0.2s ease-in-out;
}

.table tbody tr:hover {
  background: linear-gradient(90deg, #6a1b9a, #9826e3) !important; 
  transform: scale(1.02); 
  box-shadow: 0 0 10px rgba(150, 0, 200, 0.3); 
  z-index: 5;
  position: relative;
}

@keyframes blink-news {
  0%, 100% { background-color: #8e5ee6; color: #fff; }
  50% { background-color: #fff; color: #b39ddb; }
}

.blink-news {
  animation: blink-news 1.5s infinite;
  border-radius: 6px;
  padding: 4px 8px;
}

.icon {
  display: inline-block;
  font-size: 24px; 
  color: #00B5CC; 
  transition: all 0.3s ease-in-out;
}

.icon:hover {
  color: #9826e3;
  transform: scale(1.3) rotate(5deg); 
}