/* ===== VARIABLES & RESET ===== */
:root {
  --red:        #e53b3b;
  --red-dark:   #b32424;
  --accent:     #ffce54;
  --bg-light:   #f2f2f2;
  --text-dark:  #333;
  --text-light: #fff;
  --muted:      rgba(0,0,0,.6);
  --radius:     12px;
  --shadow:     0 8px 24px rgba(0,0,0,.12);
  --transition: .25s ease;
  font-size:    16px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: var(--text-dark);
}

/* ===== FLEX HELPERS ===== */
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.center { justify-content: center; }
.center-v { align-items: center; }
.between { justify-content: space-between; }

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--text-light);
}
.header-container {
  padding: 1rem 0;
}
.nav-logo {
  max-height: 32px;
}
.main-nav ul {
  list-style: none;
  gap: 1rem;
}
.main-nav ul li {
  display: inline-block;
}
.main-nav a {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  color: var(--text-light);
}
.main-nav a:hover {
  background: rgba(255,255,255,.1);
}
.main-nav i {
  font-size: 1.2rem;
}

/* ===== HERO ===== */
.news-detail-hero {
  position: relative;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
}
/* restored dot‐pattern overlay */
.news-detail-hero .pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px, 36px 36px;
  background-position: 0 0, 12px 12px;
  animation: moveDots 20s linear infinite;
}
@keyframes moveDots {
  0%   { background-position: 0 0, 12px 12px; }
  100% { background-position: 480px 0, 492px 12px; }
}
.hero-title {
  color: var(--text-light);
  font-size: 2.4rem;
  margin-bottom: .5rem;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0,0,0,.4);
  overflow: hidden;
}
.hero-title::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}
.hero-meta {
  color: rgba(255,255,255,0.85);
  font-size: .9rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 1rem;
  padding: 0;
}
.breadcrumb ul li a {
  color: var(--text-light);
}
.breadcrumb ul li a:hover {
  text-decoration: underline;
}
.breadcrumb ul li .sep {
  margin: 0 .3rem;
  color: var(--text-light);
}

/* ===== ARTICLE SECTION ===== */
.article-section {
  flex: 1;
  padding: 2rem 0 3rem;
}
.article-container {
  display: flex;
  gap: 2rem;
}
.article-content {
  flex: 2;
  min-width: 300px;
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.article-body p {
  margin-bottom: 1rem;
}
.article-body h2,
.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
  color: var(--red-dark);
}
.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}
.article-body li {
  margin-bottom: .5rem;
}
.article-body img {
  max-width: 100%;
  margin: 1rem 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.banner-slot {
  width: 300px;
  height: 250px;
  background: #fff;
  border: 1px dashed var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--red-dark);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
  font-size: .9rem;
}
.site-footer a {
  color: var(--accent);
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-container {
    flex-direction: column;
  }
  .sidebar {
    align-items: stretch;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .banner-slot {
    margin-bottom: 1rem;
  }
}
