/* ===== Event hub — Sự kiện Liên Quân (SEO + nav-safe layout) ===== */
.event-hub {
  --hub-accent: #00eaff;
  --hub-gold: #ffd54a;
  --hub-bg: #07060f;
  --hub-card: #12101c;
  --hub-line: rgba(255, 255, 255, 0.1);
  --hub-muted: #9b97b0;
  --hub-desk-h: 64px;
  --hub-mobile-nav: 68px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(138, 43, 226, 0.28), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(0, 234, 255, 0.07), transparent 32%),
    var(--hub-bg);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color: #f2f0f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Chừa chỗ cho desktop top bar (fixed 64px) — tránh chữ bị che */
.event-hub .hub-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  /* mobile-first: chừa top/bottom, lề hẹp dễ chạm */
  padding:
    max(14px, env(safe-area-inset-top, 0px))
    12px
    calc(var(--hub-mobile-nav) + 28px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  .event-hub .hub-wrap {
    /* Desktop fixed nav 64px + thở thêm — rộng hơn cho 4 cột */
    padding:
      calc(var(--hub-desk-h) + 20px)
      20px
      48px;
  }
}

/* ========== Breadcrumb SEO ========== */
.event-hub .event-breadcrumb {
  margin: 0 0 16px;
  font-size: 12px;
  color: #8a869c;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.event-hub .event-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.event-hub .event-breadcrumb li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.event-hub .event-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: #555;
  font-weight: 700;
}

.event-hub .event-breadcrumb a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.event-hub .event-breadcrumb a:hover {
  color: #00eaff;
}

.event-hub .event-breadcrumb span[aria-current="page"] {
  color: #aaa;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(280px, 55vw);
}

/* ========== Hero ========== */
.event-hub .hub-hero {
  margin-bottom: 18px;
  padding: 4px 2px 8px;
}

.event-hub .hub-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hub-gold);
  margin: 0 0 8px;
}

.event-hub .hub-hero h1,
.event-hub h1.hub-h1 {
  font-size: clamp(22px, 5.5vw, 34px);
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
}

.event-hub .hub-lead {
  color: var(--hub-muted);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 0 12px;
}

@media (min-width: 769px) {
  .event-hub .hub-lead {
    font-size: 14.5px;
    line-height: 1.6;
  }
}

.event-hub .hub-lead strong {
  color: #e8e4f5;
  font-weight: 700;
}

.event-hub .hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-hub .hub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.04);
  color: #ddd;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.event-hub .hub-cta:hover {
  border-color: rgba(0, 234, 255, 0.4);
  color: #fff;
}

.event-hub .hub-cta--primary {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.55), rgba(0, 180, 200, 0.3));
  border-color: rgba(0, 234, 255, 0.35);
  color: #fff;
}

/* ========== Sections ========== */
.event-hub .hub-sec {
  background: var(--hub-card);
  border: 1px solid var(--hub-line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.event-hub .hub-sec h2 {
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #fff;
}

.event-hub .hub-articles-sec .section-head {
  margin-bottom: 12px;
}

.event-hub .hub-articles-sec .section-head h2 {
  margin-bottom: 4px;
}

.event-hub .hub-articles-sec .section-head p {
  margin: 0;
  font-size: 13px;
  color: var(--hub-muted);
  line-height: 1.45;
}

/* Tabs */
.event-hub .hub-topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.event-hub .hub-topic-tab {
  appearance: none;
  border: 1px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.04);
  color: #bbb;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.event-hub .hub-topic-tab:hover {
  border-color: rgba(0, 234, 255, 0.35);
  color: #fff;
}

.event-hub .hub-topic-tab.active {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.45), rgba(0, 180, 216, 0.25));
  border-color: rgba(0, 234, 255, 0.45);
  color: #fff;
}

.event-hub .hub-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .event-hub .hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.event-hub .hub-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--hub-line);
  background: rgba(0, 0, 0, 0.28);
  color: #ddd;
  transition: border-color 0.15s, transform 0.15s;
}

.event-hub .hub-card:hover {
  border-color: rgba(0, 234, 255, 0.4);
  transform: translateY(-1px);
}

.event-hub .hub-card b {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.event-hub .hub-card span {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  line-height: 1.35;
}

.event-hub .hub-card--active {
  border-color: rgba(0, 255, 136, 0.35);
  background: linear-gradient(135deg, rgba(0, 80, 40, 0.25), rgba(0, 0, 0, 0.3));
}

.event-hub .hub-empty {
  color: #888;
  font-size: 13px;
  margin: 0;
  line-height: 1.45;
  padding: 12px 4px;
}

/* ========== Article cards — mobile-first: 2/cột · desktop 4/cột ========== */
.event-hub .article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Tablet: vẫn 2 (thoáng hơn) */
@media (min-width: 560px) and (max-width: 899px) {
  .event-hub .article-grid {
    gap: 12px;
  }
}

/* Desktop: 4 bài / hàng */
@media (min-width: 900px) {
  .event-hub .article-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.event-hub .article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  border: 1px solid var(--hub-line);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  min-height: 100%;
  min-width: 0; /* tránh tràn grid mobile */
  -webkit-tap-highlight-color: transparent;
}

.event-hub .article-card:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .event-hub .article-card:hover {
    border-color: rgba(0, 234, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }
}

.event-hub .article-card.is-featured {
  border-color: rgba(255, 213, 74, 0.35);
}

.event-hub .article-cover {
  height: 88px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(0, 80, 100, 0.4));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.event-hub .article-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(0, 234, 255, 0.55);
}

.event-hub .article-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.event-hub .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.event-hub .article-cat {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #00eaff;
  background: rgba(0, 234, 255, 0.1);
  border: 1px solid rgba(0, 234, 255, 0.25);
  padding: 2px 6px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-hub .article-feat {
  font-size: 9px;
  font-weight: 800;
  color: #04140b;
  background: linear-gradient(90deg, #ffd54a, #ffe082);
  padding: 2px 6px;
  border-radius: 999px;
}

.event-hub .article-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.event-hub .article-sum {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--hub-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile 2-cột: gọn — ẩn nguồn dài, chỉ giữ ngày ngắn nếu có */
.event-hub .article-src {
  display: none;
}

.event-hub .article-date {
  margin: 0;
  font-size: 10px;
  color: #777;
  line-height: 1.3;
}

.event-hub .article-more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #00eaff;
}

/* Desktop: card rộng hơn, chữ dễ đọc */
@media (min-width: 900px) {
  .event-hub .article-cover {
    height: 110px;
  }

  .event-hub .article-cover--empty {
    font-size: 32px;
  }

  .event-hub .article-body {
    padding: 12px 12px 14px;
    gap: 6px;
  }

  .event-hub .article-cat,
  .event-hub .article-feat {
    font-size: 10px;
    padding: 3px 8px;
  }

  .event-hub .article-title {
    font-size: 13.5px;
    font-weight: 900;
    -webkit-line-clamp: 3;
  }

  .event-hub .article-sum {
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .event-hub .article-src {
    display: -webkit-box;
    margin: 0;
    font-size: 11px;
    color: #777;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .event-hub .article-date {
    font-size: 11px;
  }

  .event-hub .article-more {
    font-size: 12px;
    padding-top: 6px;
  }
}

/* ========== Article detail page (mobile-first đọc dễ) ========== */
.event-hub.event-article-page .hub-wrap,
.event-hub .article-wrap {
  max-width: 720px;
}

.event-hub .article-detail {
  background: var(--hub-card);
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  padding: 16px 14px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .event-hub .article-detail {
    border-radius: 18px;
    padding: 28px 28px 36px;
  }
}

.event-hub .article-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.event-hub .article-detail-meta .article-date {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.event-hub .article-detail h1 {
  font-size: clamp(1.25rem, 5vw, 1.85rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: #fff;
}

.event-hub .article-lead {
  font-size: 14px;
  line-height: 1.55;
  color: #c8c4d8;
  margin: 0 0 12px;
}

@media (min-width: 640px) {
  .event-hub .article-lead {
    font-size: 15.5px;
    line-height: 1.6;
  }
}

.event-hub .article-src-bar {
  font-size: 12.5px;
  color: #8a869c;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 18px;
  line-height: 1.45;
}

.event-hub .article-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--hub-line);
  display: block;
}

/* Prose — mobile-first: cỡ chữ dễ đọc trên điện thoại */
.event-hub .article-prose {
  font-size: 15px;
  line-height: 1.7;
  color: #e8e4f2;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .event-hub .article-prose {
    font-size: 16px;
    line-height: 1.75;
  }
}

.event-hub .article-prose h2 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 1.35em 0 0.5em;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.event-hub .article-prose h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 1.15em 0 0.4em;
  color: #f0ecff;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .event-hub .article-prose h2 {
    font-size: 1.28rem;
  }
  .event-hub .article-prose h3 {
    font-size: 1.08rem;
  }
}

.event-hub .article-prose p {
  margin: 0 0 1em;
}

.event-hub .article-prose ul,
.event-hub .article-prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.event-hub .article-prose li {
  margin-bottom: 0.4em;
}

.event-hub .article-prose strong {
  color: #fff;
  font-weight: 800;
}

.event-hub .article-prose a {
  color: #00eaff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 234, 255, 0.35);
}

.event-hub .article-prose a:hover {
  border-bottom-color: #00eaff;
}

.event-hub .article-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hub-line);
}

.event-hub .article-footer-links a {
  font-size: 13px;
  font-weight: 700;
  color: #c4b5fd;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.03);
}

.event-hub .article-footer-links a:hover {
  border-color: rgba(0, 234, 255, 0.4);
  color: #fff;
}

/* Related */
.event-hub .related-sec {
  margin-top: 16px;
}

.event-hub .related-sec h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.event-hub .related-list {
  display: grid;
  gap: 10px;
}

@media (min-width: 560px) {
  .event-hub .related-list {
    grid-template-columns: 1fr 1fr;
  }
}

.event-hub .related-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hub-line);
  background: rgba(0, 0, 0, 0.22);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.event-hub .related-item:hover {
  border-color: rgba(0, 234, 255, 0.4);
}

.event-hub .related-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
}

.event-hub .related-item span {
  font-size: 11px;
  color: #888;
  font-weight: 600;
}

/* Footer note SEO */
.event-hub .hub-seo-note {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 8px 2px 0;
  padding: 0 2px;
}

.event-hub .hub-seo-note a {
  color: #a78bfa;
  font-weight: 700;
  text-decoration: none;
}
