/* Nạp trực tiếp file font UTM Staccato.ttf bạn vừa copy vào thư mục assets/fonts/ */
@font-face {
  font-family: 'UTM Staccato';
  src: url('../fonts/UTM Staccato.ttf') format('truetype'),
       local('UTM Staccato'),
       local('UTM-Staccato');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.5);
  --military-red: #ef4444;
  --panel-bg: #1e2638;
  --panel-border: rgba(245, 158, 11, 0.35);
}

/* Xử lý cuộn trượt khớp sát thanh Menu Header Sticky (Header cao 64px + 14px khoảng đệm thẩm mỹ) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.85rem; /* ~78px */
}

/* Trạng thái Menu nổi bật khi cuộn tới mục tương ứng (ScrollSpy Active State) */
.nav-link-active {
  color: #fcd34d !important; /* text-amber-300 */
  background-color: rgba(30, 41, 59, 0.85) !important; /* bg-slate-800/85 */
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25), inset 0 0 0 1px rgba(251, 191, 36, 0.45);
}

.nav-btn-active {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.6), 0 0 10px rgba(251, 191, 36, 0.8) !important;
  border-color: #fbbf24 !important;
}

/* Background với HOA VĂN TRỐNG ĐỒNG VIỆT NAM TRÊN NỀN ĐỎ HÀO HÙNG KHÍ THẾ CÁCH MẠNG */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #2b080b;
  position: relative;
  min-height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
}

/* Lớp hoa văn Trống đồng Đông Sơn mờ mờ trang nhã cố định toàn trang */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../img/trong-dong-vietnam.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(1150px, 92vw) auto;
  opacity: 0.28; /* Độ tương phản vừa đẹp, hiển thị rõ nét hoa văn trống đồng */
  pointer-events: none;
  z-index: -1;
}

/* Lớp màu nền Đỏ Bordeaux Hào Hùng chuyển sắc cách mạng */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 50% 15%, rgba(220, 38, 38, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #320a0e 0%, #200608 50%, #2a080b 100%);
  pointer-events: none;
  z-index: -2;
}

/* Các Section / Mảng Block Riêng Biệt dạng Kính mờ tone Đỏ Hoàng Gia & Viền Vàng */
.section-block {
  margin-bottom: 2.5rem;
}

.block-panel {
  background: rgba(45, 10, 14, 0.58);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(251, 191, 36, 0.2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 1.25rem;
}

/* Các card con bên trong panel */
.block-panel .bg-\[\#171e2e\],
.block-panel .bg-\[\#151b29\],
.block-panel .bg-\[\#141926\],
.block-panel .bg-\[\#181f30\],
.block-panel .bg-\[\#0e121d\],
.block-panel .bg-\[\#1c2436\],
.block-panel .bg-\[\#111622\] {
  background-color: rgba(38, 8, 12, 0.62) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  backdrop-filter: blur(2px);
}

.block-panel .bg-\[\#151b29\]:hover,
.block-panel .bg-\[\#1c2436\]:hover,
.block-panel .bg-\[\#171e2e\]:hover {
  background-color: rgba(65, 16, 22, 0.85) !important;
  border-color: #fbbf24 !important;
}

/* Tiêu đề Banner dạng font UTM Staccato nét chữ sắc nét tự nhiên */
.font-banner-staccato {
  font-family: 'UTM Staccato', cursive, serif;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.5px;
}

/* Hiệu ứng hiển thị MỀM MẠI TỪNG CHỮ lặp lại sau 10 giây (Loop 10s) */
.char-soft-fade-loop {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: softCharIn 10s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  will-change: transform, opacity, filter;
}

@keyframes softCharIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    filter: blur(4px);
  }
  6% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  86% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  93% {
    opacity: 0;
    transform: translateY(-6px) scale(1.02);
    filter: blur(3px);
  }
  100% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    filter: blur(4px);
  }
}

/* Màu chữ Tiêu đề Banner: Đỏ sắc nét nguyên bản */
.banner-title-clean-red {
  color: #ea3838;
}

/* Phụ đề có độ rộng bằng đúng tiêu đề và co giãn vừa vặn */
.banner-subtitle-fit {
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.65rem, 1.45vw, 0.95rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: nowrap;
  color: #f1f5f9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95);
}

/* Hiệu ứng Phụ Đề ĐẨY CẢ DÒNG TỪ DƯỚI LÊN (Loop 10s đồng bộ) */
.subtitle-slide-up-loop {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: subtitleSlideUpIn 10s cubic-bezier(0.2, 0.8, 0.25, 1) infinite;
  animation-delay: 0.45s; /* Xuất hiện ngay sau khi tiêu đề chính hoàn thành hiệu ứng viết chữ */
  will-change: transform, opacity;
}

@keyframes subtitleSlideUpIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  8% {
    opacity: 1;
    transform: translateY(0);
  }
  86% {
    opacity: 1;
    transform: translateY(0);
  }
  93% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 0;
    transform: translateY(22px);
  }
}

.font-banner-sub {
  font-family: 'Montserrat', sans-serif;
}

.font-serif-content {
  font-family: 'Merriweather', Georgia, serif;
}

.gold-text-glow {
  color: #fbbf24;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* 3 Box điều hướng đỏ vàng hào hùng */
.nav-box-card {
  background: linear-gradient(180deg, rgba(82, 18, 24, 0.95) 0%, rgba(52, 12, 16, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(251, 191, 36, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-box-card:hover {
  transform: translateY(-4px);
  border-color: #fbbf24;
  background: linear-gradient(180deg, rgba(110, 24, 32, 0.98) 0%, rgba(70, 15, 21, 1) 100%);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.4), inset 0 1px 2px rgba(251, 191, 36, 0.6);
}

/* Box Tin Mới - Seamless Infinite Smooth Scroll & Hover Scrollbar */
.news-scroll-container {
  height: 380px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  padding-right: 4px;
}

.news-scroll-container:active {
  cursor: grabbing;
}

.news-scroll-list {
  position: absolute;
  width: calc(100% - 10px);
  top: 0;
  left: 0;
  will-change: transform;
}

/* Thanh trượt tinh tế xuất hiện khi rê chuột vào */
.news-scroll-track {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 1px;
  width: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 20;
}

.news-scroll-container:hover .news-scroll-track {
  opacity: 1;
}

.news-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  transition: height 0.15s ease;
  will-change: transform;
}

/* Tùy biến thanh cuộn */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(22, 28, 42, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.5);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #fbbf24;
}

/* Audio Visualizer Canvas - 100% Trong suốt không nền che ảnh */
#audioVisualizer, #mediaPageVisualizer {
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   GIAO DIỆN ĐỌC BÀI VIẾT BÁO CHÍ CAO CẤP (EMAGAZINE READER)
   - Cực kỳ dễ đọc, êm mắt, độ tương phản và giãn dòng chuẩn vàng
   ========================================================= */
.article-reading-card {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  background: #2a0b0e !important; /* Nền đỏ bordeaux trầm sang trọng, tương phản cao, khử hoàn toàn hoa văn che chữ */
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(220, 38, 38, 0.15);
}

.article-content-body {
  font-family: 'Lora', 'Merriweather', Georgia, serif;
  font-size: 1.18rem; /* ~19px */
  line-height: 2.0;
  color: #f8fafc;
  letter-spacing: 0.015em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Chế độ phông chữ Không Chân (Sans-serif) hiện đại siêu rõ */
.article-content-body.font-sans-mode {
  font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.12rem;
  line-height: 1.95;
  letter-spacing: 0.01em;
}

.article-content-body p {
  margin-bottom: 1.75rem;
  color: #f1f5f9;
  text-align: justify;
}

.article-content-body strong, 
.article-content-body b {
  font-weight: 700;
  color: #fde047; /* Màu vàng sáng nổi bật */
}

.article-content-body em, 
.article-content-body i {
  color: #e2e8f0;
}

/* Tiêu đề đoạn / Tiểu mục nổi bật */
.article-content-body h2, 
.article-content-body h3, 
.article-content-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  border-left: 4px solid #f59e0b;
  padding-left: 0.85rem;
  letter-spacing: -0.01em;
}

.article-content-body h2 { font-size: 1.65rem; }
.article-content-body h3 { font-size: 1.4rem; }

/* Ảnh minh họa trong bài viết */
.article-content-body img {
  border-radius: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.7);
  margin: 2rem auto 0.75rem auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.article-content-body table {
  margin: 2rem auto !important;
  width: 100% !important;
  max-width: 100%;
}

.article-content-body table td.desc,
.article-content-body figcaption {
  font-size: 0.875rem;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  padding-top: 0.65rem;
  display: block;
  line-height: 1.5;
}

.article-content-body blockquote {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  padding: 1.35rem 1.65rem;
  border-radius: 0.85rem;
  margin: 2rem 0;
  font-style: italic;
  color: #fef3c7;
  line-height: 1.85;
}

