:root {
  --primary: #006633;
  --primary-dark: #004d26;
  --accent: #ffb81c;
  --accent-dark: #e0a000;
  --red: #c0392b;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-light: #999;
  --bg: #f0f2f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.07);
  --card-shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
  --radius: 10px;
  --header-h: 68px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }

/* ===== UTILITY ===== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 18px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
}
.badge.politics    { background: #1a56db; }
.badge.business    { background: #0e7c59; }
.badge.sport       { background: #c0392b; }
.badge.entertainment { background: #9b59b6; }
.badge.technology  { background: #2980b9; }
.badge.health      { background: #27ae60; }
.badge.crime       { background: #7f1d1d; }
.badge.weather     { background: #16a085; }
.badge.education   { background: #e67e22; }
.badge.lifestyle   { background: #e91e63; }

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 20px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 15px;
  background: #fff;
  border-radius: var(--radius);
}

/* ===== BREAKING TICKER ===== */
#breaking-ticker {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
}
.ticker-label {
  background: #8b0000;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ticker-track { display: flex; align-items: center; overflow: hidden; flex: 1; }
.ticker-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker-scroll 80s linear infinite;
  font-size: 13px;
  font-weight: 500;
}
.ticker-inner span { cursor: pointer; transition: opacity .2s; }
.ticker-inner span:hover { opacity: .8; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-dark);
  flex-shrink: 0;
  letter-spacing: -1px;
}
.logo-text { font-size: 22px; font-weight: 900; letter-spacing: -.5px; color: #fff; }
.logo-sub  { font-size: 10px; opacity: .7; letter-spacing: 1.2px; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  overflow: hidden;
  transition: background .2s;
}
.search-bar:focus-within { background: rgba(255,255,255,.25); }
.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  width: 210px;
}
.search-bar input::placeholder { color: rgba(255,255,255,.6); }
.search-bar button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
}

/* ===== NAV ===== */
nav {
  background: var(--primary-dark);
  overflow-x: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
.nav-list {
  display: flex;
  list-style: none;
}
.nav-list li a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}

/* Mobile nav open */
@media (max-width: 768px) {
  nav.nav-open .nav-list {
    flex-direction: column;
  }
}

/* ===== DATE BAR ===== */
.date-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.weather-widget { display: flex; align-items: center; gap: 6px; }

/* ===== HERO SLIDESHOW ===== */
.hero-section { background: #111; position: relative; }
.slideshow { position: relative; overflow: hidden; height: 520px; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  cursor: pointer;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img { height: 100%; object-fit: cover; filter: brightness(.5); }
.slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 56px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  color: #fff;
  z-index: 2;
}
.slide-content .badge { margin-bottom: 12px; font-size: 12px; }
.slide-title {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 820px;
}
.slide-meta { font-size: 13px; opacity: .8; display: flex; gap: 16px; flex-wrap: wrap; }
.slide-controls {
  position: absolute;
  bottom: 28px; right: 56px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slide-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .2s;
}
.slide-dot.active { background: var(--accent); transform: scale(1.4); }
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 5;
}
.slide-arrow:hover { background: rgba(255,255,255,.3); }
.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }

/* ===== HERO THUMBS ===== */
.hero-thumbs { display: flex; background: #1a1a1a; }
.hero-thumb {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid #333;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-thumb:last-child { border-right: none; }
.hero-thumb:hover, .hero-thumb.active { background: #2c2c2c; }
.hero-thumb img { width: 68px; height: 52px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.hero-thumb-text { color: #ddd; font-size: 12px; line-height: 1.4; }
.hero-thumb-text strong { display: block; font-size: 13px; color: #fff; margin-bottom: 2px; }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  padding: 0 0 40px;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.cat-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  transition: all .2s;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}
.news-card.featured { grid-column: span 2; }
.card-img-wrap { position: relative; overflow: hidden; flex-shrink: 0; }
.card-img-wrap img { height: 185px; transition: transform .4s; }
.news-card.featured .card-img-wrap img { height: 250px; }
.news-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-img-wrap .badge { position: absolute; top: 10px; left: 10px; }
.card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
  transition: color .2s;
}
.news-card.featured .card-title { font-size: 19px; }
.news-card:hover .card-title { color: var(--primary); }
.card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-light); flex-shrink: 0; }

/* ===== LOAD MORE ===== */
.load-more-wrap { text-align: center; margin-top: 28px; }
.btn-load-more {
  padding: 13px 36px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-load-more:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== VIDEO SECTION ===== */
.video-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.video-featured { padding: 16px; }
.video-embed-wrap img { border-radius: 8px; }
.video-playlist { overflow-y: auto; max-height: 430px; border-left: 1px solid var(--border); scrollbar-width: thin; }
.video-playlist-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
  align-items: flex-start;
}
.video-playlist-item:last-child { border-bottom: none; }
.video-playlist-item:hover { background: #fafafa; }
.video-playlist-item.active { background: #f0f7f0; border-left: 3px solid var(--primary); }
.vp-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 64px;
  border-radius: 5px;
  overflow: hidden;
}
.vp-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vp-duration {
  position: absolute;
  bottom: 4px; right: 4px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}
.vp-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  background: rgba(0,0,0,.4);
  transition: opacity .2s;
}
.video-playlist-item:hover .vp-play-icon { opacity: 1; }
.vp-info { flex: 1; }
.vp-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; color: var(--text); }
.video-playlist-item:hover .vp-title { color: var(--primary); }
.vp-meta { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; }
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.widget-head {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.widget-body { padding: 0; }

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: #fafafa; }
.trend-num { font-size: 22px; font-weight: 900; color: #e0e0e0; line-height: 1; min-width: 28px; flex-shrink: 0; }
.trend-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 3px; }
.trending-item:hover .trend-title { color: var(--primary); }
.trend-meta { font-size: 11px; color: var(--text-light); }

.mini-card {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
  align-items: flex-start;
}
.mini-card:last-child { border-bottom: none; }
.mini-card:hover { background: #fafafa; }
.mini-card img { width: 72px; height: 54px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.mini-card-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.mini-card:hover .mini-card-title { color: var(--primary); }
.mini-card-meta { font-size: 11px; color: var(--text-light); }

.ad-widget {
  background: linear-gradient(135deg, var(--primary) 0%, #009944 100%);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}
.ad-widget h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.ad-widget p { font-size: 13px; opacity: .85; margin-bottom: 16px; line-height: 1.5; }
.ad-widget button {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .2s;
}
.ad-widget button:hover { opacity: .9; }

.social-bar { display: flex; justify-content: space-around; padding: 14px 12px; }
.social-count { text-align: center; }
.social-count .num { font-size: 18px; font-weight: 800; display: block; }
.social-count .lbl { font-size: 11px; color: var(--text-light); }
.social-count.fb .num { color: #1877f2; }
.social-count.tw .num { color: #1da1f2; }
.social-count.yt .num { color: #ff0000; }

/* ===== CATEGORY SECTIONS ===== */
.category-section {
  margin-top: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.cat-section-head .section-title { margin-bottom: 0; font-size: 17px; }
.view-all { font-size: 13px; color: var(--primary); font-weight: 600; transition: opacity .2s; }
.view-all:hover { opacity: .7; }
.cat-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px;
  gap: 16px;
}
.cat-card {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.cat-card-body { padding: 10px 12px 12px; }
.cat-card-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.cat-card:hover .cat-card-title { color: var(--primary); }
.cat-card-meta { font-size: 11px; color: var(--text-light); }

/* ===== FOOTER ===== */
footer { background: #111; color: #ccc; margin-top: 48px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 44px 0 36px;
}
.footer-brand p { font-size: 13px; color: #888; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: #888; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== POST PAGE ===== */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  padding: 24px 0 48px;
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.article-hero { height: 440px; position: relative; }
.article-hero img { height: 100%; object-fit: cover; }
.article-body { padding: 36px 44px; }
.article-category { margin-bottom: 14px; }
.article-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 18px;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-meta-bar .author { font-weight: 700; color: var(--text); }
.article-share { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.share-btn {
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .85; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }

.article-content { font-size: 16px; line-height: 1.85; color: #2a2a2a; }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 21px; font-weight: 800; margin: 30px 0 12px; color: var(--text); }
.article-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 14px 22px;
  background: #f0f7f0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 26px 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-tags span { font-size: 13px; font-weight: 700; margin-right: 8px; }
.tag {
  display: inline-block;
  padding: 5px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  margin: 3px;
  cursor: pointer;
  transition: all .2s;
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.related-widget { margin-top: 22px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr 300px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card.featured { grid-column: span 2; }
  .video-main { grid-template-columns: 1fr; }
  .video-playlist { max-height: 300px; border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { padding-top: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-thumbs { display: none; }
  .cat-section-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .slideshow { height: 340px; }
  .slide-content { padding: 20px 20px 52px; }
  .search-bar { display: none; }
  .hamburger { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .cat-section-grid { grid-template-columns: 1fr; }
  .article-body { padding: 20px 18px; }
  .article-hero { height: 260px; }
  .article-title { font-size: 22px; }
  .slide-controls { right: 16px; bottom: 16px; }
  .video-main { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .logo-sub { display: none; }
  .logo-text { font-size: 18px; }
}
