:root {
  --primary: #9f224e; /* Màu đỏ mận VnExpress */
  --text-main: #222;
  --text-gray: #757575;
  --bg-body: #fcfcfc;
  --bg-card: #ffffff;
  --border-color: #e5e5e5;
  --link-color: #076db6;
  --hover-bg: #f7f7f7;
}

body {
  margin: 0;
  font-family: "Merriweather", "Times New Roman", Times, serif; /* Font chữ tin tức */
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

/* Typography override cho các thành phần UI hiện đại */
.sans-serif {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.container {
  max-width: 1160px; /* Rộng hơn chút chuẩn báo chí */
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--text-gray);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-family: sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
}

.date-weather {
  display: flex;
  gap: 10px;
  border-left: 1px solid #ddd;
  padding-left: 15px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: Inter, sans-serif;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.home-icon {
  color: var(--primary);
}

/* Banner */
.top-banner {
  background: #f0f0f0;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  border-radius: 4px;
  color: #aaa;
  font-size: 20px;
  font-family: sans-serif;
  background-size: cover;
  background-position: center;
  position: relative;
}
.banner-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Mobile Header Styles */
.mobile-header {
  display: none; /* Desktop hidden */
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.mobile-logo img {
  height: 32px;
  width: auto;
}

.menu-toggle, .search-toggle {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  color: #333;
}

.mobile-search-bar {
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.mobile-search-bar input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  box-sizing: border-box;
}

.mobile-menu-header, .mobile-menu-extras, .mobile-only-text {
  display: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-header {
    display: flex;
  }
  
  .nav-main {
    position: fixed;
    top: 0;
    left: -280px; /* Hide off-screen */
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    white-space: normal;
  }
  
  .nav-main.open {
    left: 0;
  }
  
  .nav-overlay.open {
    display: block;
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    background: #f9f9f9;
  }
  
  .close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: #555;
    cursor: pointer;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    box-sizing: border-box;
  }
  
  .nav-link.home-icon svg {
    display: none; /* Hide icon inside drawer if prefer text */
  }
  
  .mobile-only-text {
    display: inline-block;
  }
  
  .mobile-menu-extras {
    display: block;
    width: 100%;
  }
  
  .mobile-menu-extras hr {
    border: 0;
    border-top: 4px solid #f5f5f5;
    margin: 0;
  }
}

/* Home Layout */
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  font-family: Inter, sans-serif;
}

.home-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
}

/* Timeline Feed (Cột trái) */
.timeline-feed {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid #e5e5e5;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #b52759;
  border-radius: 50%;
  border: 2px solid #fff;
}

.timeline-time {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 6px;
  font-family: Inter, sans-serif;
}

.news-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.news-thumb {
  width: 240px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #eee;
}

.news-info {
  flex: 1;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.news-title a {
  text-decoration: none;
  color: #222;
  transition: color 0.2s;
}

.news-title a:hover {
  color: var(--link-color);
}

.news-desc {
  font-size: 14px;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar (Cột phải) */
.sidebar-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.sidebar-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.sidebar-title a {
  color: #333;
  text-decoration: none;
}
.sidebar-title a:hover {
  color: var(--link-color);
}

/* Utils */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.search-box input {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Mobile responsive fixes */
@media (max-width: 600px) {
  .news-card {
    flex-direction: column;
  }
  .news-thumb {
    width: 100%;
    height: 200px;
  }
}

/* Detail Page Layout - VnExpress Style */
.detail-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 30px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-main {
  /* Cột nội dung chính */
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.detail-cat {
  color: var(--link-color);
  font-weight: 700;
  text-transform: capitalize;
  text-decoration: none;
}

.detail-date {
  color: #757575;
}

.detail-title {
  font-size: 36px;
  font-weight: 900; /* VnExpress dùng font rất đậm cho title */
  line-height: 1.25;
  margin-bottom: 20px;
  color: #222;
  font-family: "Merriweather", serif;
}

.detail-desc {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: #333;
  margin-bottom: 25px;
}

.detail-content {
  font-size: 18px;
  line-height: 1.8;
  color: #222;
  text-align: justify;
}

.detail-content p {
  margin-bottom: 20px;
}

.detail-content img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}

/* Comment Section */
.comment-box {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 4px;
  margin-top: 40px;
}

.comment-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-input {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
}

.comment-list {
  margin-top: 20px;
}

.comment-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.comment-user {
  font-weight: 700;
  color: #076db6;
}

.comment-time {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}
