/* ==========================================================================
   EDITORIAL & NEWS MEDIA HUB STYLESHEET - VIỆT HÀN CAPITAL PHỔ YÊN
   Chuẩn thiết kế Tòa soạn Báo chí hiện đại, Luxury Dark/Gold Accent
   ========================================================================== */

:root {
  --editorial-navy: #0f172a;
  --editorial-navy-light: #1e293b;
  --editorial-gold: #b45309;
  --editorial-gold-hover: #92400e;
  --editorial-accent: #fbbf24;
  --editorial-gold-light: #fef3c7;
  --editorial-text: #334155;
  --editorial-text-muted: #64748b;
  --editorial-border: #e2e8f0;
  --editorial-bg: #f8fafc;
  --editorial-card-bg: #ffffff;
}

body.editorial-hub-body,
body.editorial-article-body {
  background: var(--editorial-bg);
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  color: #1e293b;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ==================== EDITORIAL TOPBAR UNIFIED ==================== */
.editorial-topbar {
  background: #0f172a !important;
  border-bottom: 3px solid #f59e0b !important;
  padding: 10px 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.editorial-nav-container,
.editorial-topbar-inner {
  max-width: 1260px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.editorial-brand-logo,
.brand-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.editorial-brand-logo .brand-logo-img,
.brand-link .brand-logo-img,
.brand-link img,
.editorial-topbar img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}

.brand-tagline {
  color: #94a3b8 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  border-left: 1px solid #334155 !important;
  padding-left: 12px !important;
  display: none !important;
  white-space: nowrap !important;
}

@media (min-width: 768px) {
  .brand-tagline {
    display: block !important;
  }
}

.editorial-nav-actions,
.topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.btn-editorial-home,
.btn-topbar-home {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.btn-editorial-home:hover,
.btn-topbar-home:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.btn-editorial-hotline,
.btn-topbar-hotline {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  padding: 8px 20px !important;
  border-radius: 25px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 3px 12px rgba(180, 83, 9, 0.45) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.btn-editorial-hotline:hover,
.btn-topbar-hotline:hover {
  background: linear-gradient(135deg, #b45309, #92400e) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 16px rgba(180, 83, 9, 0.6) !important;
}

.btn-editorial-hotline i,
.btn-topbar-hotline i {
  color: #fbbf24 !important;
  font-size: 1rem !important;
}

/* ==================== HUB HERO SECTION ==================== */
.hub-hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 70px 20px 50px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.hub-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d97706, #fbbf24, #d97706);
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.pulse-live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.hub-title {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #ffffff;
  line-height: 1.25;
}

.hub-subtitle {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* ==================== HUB MAIN CONTAINER & GRID ==================== */
.hub-main-container {
  padding: 50px 0 80px;
}

.hub-main-container .container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}

.magazine-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.magazine-grid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.magazine-grid-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px -5px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.card-thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.magazine-grid-card:hover .card-thumb-wrap img {
  transform: scale(1.05);
}

/* ==================== UNIFIED SOFT-TINT TAG BADGES ==================== */
.card-tag-pill,
.news-cat-pill,
.trending-tag,
.related-tag-badge,
.article-cat-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border-width: 1px;
  border-style: solid;
  text-decoration: none;
  box-sizing: border-box;
}

.card-thumb-wrap .card-tag-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: auto !important;
  right: auto !important;
  height: auto !important;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.related-thumb-link .related-tag-badge {
  position: absolute;
  bottom: 6px !important;
  left: 6px !important;
  top: auto !important;
  right: auto !important;
  height: auto !important;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pill-thi-truong {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.pill-chinh-sach {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

.pill-tai-chinh {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

.pill-quy-hoach,
.pill-phap-ly {
  background: #faf5ff !important;
  color: #7e22ce !important;
  border-color: #e9d5ff !important;
}

.card-body-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-date-bar {
  font-size: 0.82rem;
  color: var(--editorial-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.card-date-bar i {
  color: var(--editorial-gold);
}

.card-title-text {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 12px;
}

.card-title-text a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.card-title-text a:hover {
  color: var(--editorial-gold);
}

.card-sapo-excerpt {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-read-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--editorial-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card-read-more:hover {
  color: var(--editorial-gold-hover);
  gap: 10px;
}

/* ==================== PAGINATION CONTROLS ==================== */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 50px 0 20px;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.pg-btn:hover {
  border-color: var(--editorial-gold);
  color: var(--editorial-gold);
  background: #fffbeb;
}

.pg-btn.active {
  background: var(--editorial-navy);
  border-color: var(--editorial-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* ==================== EDITORIAL FOOTER ==================== */
.editorial-footer,
.editorial-article-body .footer,
footer.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 20px;
  border-top: 3px solid var(--editorial-gold);
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 40px;
}

.editorial-footer-container {
  max-width: 960px;
  margin: 0 auto;
}

.footer-legal-text strong {
  color: #f1f5f9;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .magazine-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .hub-title {
    font-size: 1.95rem;
  }
}

@media (max-width: 768px) {
  .magazine-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hub-hero-section {
    padding: 50px 16px 35px;
  }
  .hub-title {
    font-size: 1.6rem;
  }
  .hub-subtitle {
    font-size: 0.95rem;
  }
  .editorial-nav-links a:not(.nav-btn-zalo) {
    display: none;
  }
}


/* BULLETPROOF LOGO FIX FOR ALL EDITORIAL & SUBPAGES */
.editorial-topbar img,
.brand-logo-img,
.brand-link img,
.editorial-brand-logo img,
.editorial-topbar-inner img,
.editorial-nav-container img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}
