/* ===============================
   QUANG HUNG MEDIA NEWS STYLE
   Tông đen – vàng ánh kim
   =============================== */

/* ===== Header chạy tin ===== */
.qh-news-header {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #000, #111);
  border-bottom: 1px solid #ffcc00;
  color: #ffcc00;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 6px 0;
  font-size: 15px;
  position: relative;
  z-index: 99;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.qh-news-marquee {
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.qh-news-marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: qh-marquee 18s linear infinite;
}

@keyframes qh-marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* ===== Footer tabs ===== */
.qh-news-footer {
  margin: 40px auto;
  background: #0a0a0a;
  border-top: 2px solid #ffcc00;
  padding: 25px 15px;
  font-family: "Montserrat", sans-serif;
  border-radius: 12px 12px 0 0;
  color: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.qh-news-tabs {
  max-width: 1200px;
  margin: 0 auto;
}

.qh-news-tab-headers {
  list-style: none;
  margin: 0 0 15px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.qh-news-tab-headers li {
  cursor: pointer;
  padding: 8px 18px;
  border: 1px solid #ffcc00;
  color: #ffcc00;
  background: #111;
  border-radius: 30px;
  transition: all 0.25s ease;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.qh-news-tab-headers li:hover {
  background: #ffcc00;
  color: #000;
}

.qh-news-tab-headers li.active {
  background: #ffcc00;
  color: #000;
}

/* ===== Posts Grid ===== */
.qh-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.qh-post {
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.qh-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.25);
}

.qh-post-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.qh-post-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qh-post-title {
  font-size: 16px;
  color: #ffcc00;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.qh-post-title:hover {
  color: #fff;
}

.qh-post-excerpt {
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.qh-post-meta {
  color: #999;
  font-size: 13px;
  margin-top: auto;
}

/* ===== Loading & empty state ===== */
.qh-loading, .qh-no-posts {
  text-align: center;
  color: #ffcc00;
  padding: 20px 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .qh-news-tab-headers li {
    font-size: 14px;
    padding: 6px 12px;
  }
  .qh-post-thumb img {
    height: 140px;
  }
}
