:root { --primary: #e63946; }
body { font-family: 'Segoe UI', sans-serif; background: #f8f9fa; }
.navbar-brand { color: var(--primary) !important; font-size: 1.5rem; font-weight: 800; }

/* Breaking ticker */
.breaking-bar { background: var(--primary); color: #fff; padding: 6px 0; font-size: .85rem; overflow: hidden; }
.breaking-label { background: rgba(0,0,0,.25); padding: 2px 14px; font-weight: 700; white-space: nowrap; margin-right: 12px; }
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-move { display: inline-block; animation: ticker 35s linear infinite; white-space: nowrap; }
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* Hero */
.hero-card { position: relative; border-radius: 14px; overflow: hidden; }
.hero-card img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); padding: 40px 24px 24px; }
.hero-overlay h2 { font-size: 1.5rem; font-weight: 800; }

/* News cards */
.news-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e9ecef; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card .card-body { padding: 14px; }

/* Badges */
.cat-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; text-decoration: none; }

/* Typography */
.post-title { font-weight: 700; color: #1a1a2e; text-decoration: none; font-size: .95rem; }
.post-title:hover { color: var(--primary); }
.post-meta { font-size: .78rem; color: #6c757d; }
.section-title { font-size: 1.1rem; font-weight: 700; border-bottom: 3px solid var(--primary); padding-bottom: 8px; margin-bottom: 20px; }
.section-title span { color: var(--primary); }

/* Sidebar */
.sidebar-widget { background: #fff; border-radius: 10px; padding: 20px; border: 1px solid #e9ecef; }
.sidebar-widget h6 { font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-bottom: 16px; }
.most-read-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.most-read-item:last-child { border-bottom: none; }
.most-read-item .num { font-size: 1.4rem; font-weight: 800; color: #e2e8f0; min-width: 30px; }

/* Post content */
.post-content img { max-width: 100%; border-radius: 8px; }
.post-content p { margin-bottom: 1.2rem; }

/* Admin */
.admin-sidebar { width: 250px; background: #1a1f2e; min-height: 100vh; position: fixed; top: 0; left: 0; overflow-y: auto; }
.admin-sidebar .brand { padding: 20px; font-size: 1.1rem; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .nav-link { color: #a0aec0; padding: 10px 20px; display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff; background: rgba(79,70,229,.2); border-left: 3px solid #4f46e5; }
.admin-sidebar .nav-link i { width: 16px; text-align: center; }
.admin-main { margin-left: 250px; min-height: 100vh; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 24px; background: #f4f6fc; min-height: calc(100vh - 60px); }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #e2e8f0; }
.stat-card .icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.badge-published { background: #d1fae5; color: #065f46; }
.badge-draft { background: #fef3c7; color: #92400e; }
.badge-pending { background: #f3f4f6; color: #374151; }
.badge-scheduled { background: #dbeafe; color: #1e40af; }

@media(max-width:768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .hero-card img { height: 220px; }
}
