/* Hero */
.news-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}
.news-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-hero-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
}
.news-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}
.news-date {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* Layout */
.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Main : Sidebar */
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Main content */
.news-main article {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}
.news-detail-img {
  width: 100%;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Sidebar */
.news-sidebar {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.news-sidebar h3 {
  font-size: 18px;
  margin: 0 0 12px 0;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 6px;
  color: #111;
}
.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-list li {
  margin-bottom: 10px;
}
.sidebar-list a {
  text-decoration: none;
  color: #333;
  transition: color 0.25s;
}
.sidebar-list a:hover {
  color: #d4af37;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr; 
  }
  .news-sidebar {
    margin-top: 20px;
  }
}

.news-table{width:100%;border-collapse:collapse;margin:30px 0}
.news-table th, .news-table td{border:1px solid #ddd;padding:10px;text-align:center;font-size:.95rem}
.news-table th{background:#000000;color:#fff}
.news-detail-img{width:100%;margin-top:20px;border-radius:16px;object-fit:cover}
@media(max-width:768px){.news-hero-overlay{padding:20px}.news-title{font-size:2rem}}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: none;
  background: #3f3f3f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s;
  z-index: 999;
}
#backToTop:hover {
  background: #555;
}