:root {
  --primary: #1a1a1a;
  --accent: #e94560;
  --accent-hover: #b71c1c;
  --text: #1a1a1a;
  --text-light: #555;
  --text-muted: #999;
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --border: #e5e5e5;
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-font: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--body-font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* Header */
.kt-header { background: #fff; padding: 12px 0; border-bottom: 1px solid var(--border); }
.kt-header-inner { display: flex; align-items: center; justify-content: center; position: relative; }
.kt-header-date { font-size: 0.78rem; color: var(--text-muted); position: absolute; left: 0; }
.kt-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.kt-logo-text { font-family: var(--heading-font); font-size: 2.4rem; font-weight: 400; color: var(--primary); letter-spacing: 6px; text-transform: uppercase; }
.kt-logo-icon { color: var(--accent); font-size: 1.5rem; }
.kt-header-social { display: flex; gap: 10px; position: absolute; right: 0; }
.kt-header-social a { color: var(--text); font-size: 1.1rem; }
.kt-header-social a:hover { color: var(--accent); }

/* Search Bar */
.kt-search-bar { background: #f0f0f0; padding: 8px 0; }
.kt-search-form { display: flex; align-items: center; background: #fff; border: 1px solid #ddd; border-radius: 30px; padding: 3px 4px 3px 14px; }
.kt-search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(211,47,47,0.1); }
.kt-search-icon { color: var(--accent); font-size: 0.9rem; margin-right: 8px; }
.kt-search-form input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 0.85rem; padding: 5px 0; }
.kt-search-form input::placeholder { color: #aaa; }
.kt-search-form button { background: var(--accent); color: #fff; border: none; border-radius: 24px; padding: 5px 16px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.kt-search-form button:hover { background: var(--accent-hover); }

/* Navigation */
.kt-nav { background: var(--accent); position: sticky; top: 0; z-index: 1000; }
.kt-nav .container { display: flex; align-items: center; justify-content: space-between; }
.kt-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.2rem; padding: 10px; cursor: pointer; }
.kt-nav-menu { list-style: none; display: flex; padding: 0; margin: 0; flex-wrap: wrap; }
.kt-nav-menu > li { position: relative; }
.kt-nav-menu > li > a { display: block; color: #fff; font-size: 0.82rem; font-weight: 500; padding: 12px 14px; white-space: nowrap; transition: background 0.2s; }
.kt-nav-menu > li > a:hover, .kt-nav-menu > li > a.active { background: rgba(0,0,0,0.15); color: #fff; }
.kt-nav-dropdown:hover .kt-nav-sub { display: block; }
.kt-nav-sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 0 0 4px 4px; z-index: 100; list-style: none; padding: 4px 0; }
.kt-nav-sub li a { display: block; padding: 8px 16px; color: var(--text); font-size: 0.82rem; }
.kt-nav-sub li a:hover { background: var(--bg-alt); color: var(--accent); }
.kt-nav-right { display: flex; align-items: center; gap: 12px; }
.kt-nav-search-icon { color: #fff; font-size: 1rem; padding: 10px; }

/* Section badge */
.section-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }

/* Homepage sections */
.home-section { padding: 30px 0; }
.home-section-title { font-family: var(--heading-font); font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.home-section-more { font-size: 0.85rem; color: var(--text-muted); border: 1px solid var(--border); padding: 6px 20px; border-radius: 20px; display: inline-block; margin-top: 16px; }
.home-section-more:hover { border-color: var(--accent); color: var(--accent); }

/* News grid - 1 big + 4 small */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-main { grid-row: span 2; }
.news-main img { width: 100%; height: 300px; object-fit: cover; border-radius: 4px; }
.news-main .card-title { font-family: var(--heading-font); font-size: 1.4rem; font-weight: 700; line-height: 1.3; margin: 10px 0 6px; }
.news-side { display: flex; gap: 12px; }
.news-side img { width: 140px; min-width: 140px; height: 95px; object-fit: cover; border-radius: 4px; background: #eee; }
.news-side .card-title { font-family: var(--heading-font); font-size: 0.95rem; font-weight: 600; line-height: 1.3; margin: 2px 0; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.card-meta .author { color: var(--text-light); }

/* Article list */
.article-list-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.article-list-item:last-child { border-bottom: none; }
.article-list-img { width: 140px; min-width: 140px; height: 95px; object-fit: cover; border-radius: 4px; background: #eee; }
.article-list-title { font-family: var(--heading-font); font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 4px 0; }
.article-list-title a { color: var(--text); }
.article-list-title a:hover { color: var(--accent); }
.article-list-meta { font-size: 0.78rem; color: var(--text-muted); }
.article-list-summary { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* Article card */
.article-card { margin-bottom: 24px; }
.article-card-img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; background: #eee; }
.article-card-title { font-family: var(--heading-font); font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin: 8px 0 4px; }
.article-card-title a { color: var(--text); }
.article-card-title a:hover { color: var(--accent); }
.article-card-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Compact list */
.compact-list { list-style: none; padding: 0; }
.compact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.compact-list li:last-child { border-bottom: none; }
.compact-list a { font-size: 0.9rem; font-weight: 500; color: var(--text); line-height: 1.4; }
.compact-list a:hover { color: var(--accent); }
.compact-list .meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* Single article page */
.article-page { padding: 30px 0; }
.article-headline { font-family: var(--heading-font); font-size: 2.2rem; font-weight: 700; line-height: 1.2; color: var(--primary); margin-bottom: 8px; }
.article-subheadline { font-size: 1.15rem; color: var(--text-light); line-height: 1.4; margin-bottom: 16px; }
.article-author-bar { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article-author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; }
.article-author-name { font-weight: 600; font-size: 0.9rem; }
.article-date { font-size: 0.8rem; color: var(--text-muted); }
.article-read-time { font-size: 0.8rem; color: var(--text-muted); }
.article-hero-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.article-hero-caption { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-bottom: 24px; }
.article-content { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-content p { margin-bottom: 1.2em; }
.article-content h2, .article-content h3 { font-family: var(--heading-font); margin: 1.5em 0 0.8em; }
.article-content blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; margin: 1.5em 0; background: var(--bg-alt); font-style: italic; }
.article-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 1em 0; }
.article-tags { margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.article-tags .badge { font-size: 0.78rem; padding: 5px 12px; margin: 3px; background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.article-share a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); color: var(--text-light); margin-right: 6px; transition: all 0.2s; }
.article-share a:hover { background: var(--accent); color: #fff; }

/* Section page */
.section-page { padding: 30px 0; }
.section-page-title { font-family: var(--heading-font); font-size: 1.8rem; font-weight: 700; color: var(--primary); padding-bottom: 12px; border-bottom: 3px solid var(--accent); margin-bottom: 24px; }

/* Sidebar */
.sidebar-widget { margin-bottom: 30px; padding: 20px; background: var(--bg-alt); border-radius: 4px; }
.sidebar-widget-title { font-family: var(--heading-font); font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }

/* Pagination */
.pagination .page-link { color: var(--text); border-color: var(--border); font-size: 0.85rem; }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); }

/* Newsletter */
.newsletter-section { background: var(--primary); color: #fff; padding: 40px 0; }
.newsletter-section h4 { font-family: var(--heading-font); font-size: 1.5rem; margin-bottom: 8px; }
.newsletter-section .text-muted { color: rgba(255,255,255,0.6) !important; }
.newsletter-form input { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.btn-accent { background: var(--accent); color: #fff; border: none; font-weight: 600; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

/* Footer */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,0.7); padding: 40px 0 20px; }
.footer-brand { font-family: var(--heading-font); font-size: 1.4rem; color: #fff; margin-bottom: 12px; }
.footer-heading { color: #fff; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-social a { color: rgba(255,255,255,0.5); margin-right: 14px; font-size: 1.1rem; }
.footer-social a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }

/* Archives */
.year-pills .badge { font-size: 0.85rem; padding: 6px 14px; margin: 3px; cursor: pointer; }

/* Comments */
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-name { font-weight: 600; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--text-muted); }
.comment-content { font-size: 0.9rem; margin-top: 6px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; }

/* Breaking bar */
.breaking-bar { background: var(--accent); color: #fff; padding: 8px 0; font-size: 0.85rem; overflow: hidden; }
.breaking-label { background: rgba(0,0,0,0.3); padding: 2px 12px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-right: 16px; }
.breaking-ticker { display: inline-block; animation: ticker 30s linear infinite; white-space: nowrap; }
.breaking-ticker a { color: #fff; margin-right: 40px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Hero for featured */
.hero-main { position: relative; border-radius: 4px; overflow: hidden; height: 350px; background: #eee; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.hero-headline { font-family: var(--heading-font); font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.25; margin: 6px 0; }
.hero-headline a { color: #fff; }
.hero-meta { color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.hero-sidebar .hero-card { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hero-sidebar .hero-card:last-child { border-bottom: none; }
.hero-sidebar .hero-card-img { width: 100px; min-width: 100px; height: 68px; object-fit: cover; border-radius: 3px; background: #eee; }
.hero-sidebar .hero-card-title { font-family: var(--heading-font); font-size: 0.92rem; font-weight: 600; line-height: 1.3; margin: 0; }
.hero-sidebar .hero-card-meta { font-size: 0.72rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .kt-logo img { height: 35px !important; }
  .kt-header-date { display: none; }
  .kt-header-social { min-width: auto; }
  .kt-nav .container { flex-wrap: wrap; padding: 0; }
  .kt-nav-toggle { display: block; font-size: 1.5rem; padding: 12px 16px; color: #fff; order: 1; }
  .kt-nav-right { display: flex !important; align-items: center; gap: 0; order: 2; margin-left: auto; }
  .kt-nav-right .kt-nav-search-icon { display: none; }
  .dark-mode-toggle { font-size: 1.3rem; padding: 12px 16px; }
  .kt-nav-menu { display: none; flex-direction: column; width: 100%; background: var(--accent); order: 3; }
  .kt-nav-menu.open { display: flex; }
  .kt-nav-menu > li > a { padding: 12px 20px; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .kt-nav-sub { position: static; box-shadow: none; background: rgba(0,0,0,0.15); }
  .kt-nav-sub li a { color: #fff; padding: 10px 20px 10px 36px; }
  .kt-nav-dropdown:hover .kt-nav-sub { display: none; }
  .kt-nav-dropdown.open .kt-nav-sub { display: block; }
  .hero-main { height: 250px; }
  .hero-headline { font-size: 1.2rem; }
  .article-headline { font-size: 1.5rem; }
  .article-list-item { flex-direction: column; }
  .article-list-img { width: 100%; height: 180px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-side img { width: 100px; min-width: 100px; height: 68px; }
  .kt-search-form button span { display: none; }
}

/* Admin styles */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #0f0f1a; color: #fff; padding: 0; position: fixed; height: 100vh; overflow-y: auto; z-index: 100; }
.admin-sidebar-brand { padding: 20px; font-family: var(--heading-font); font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-brand a { color: #fff; }
.admin-sidebar-nav { list-style: none; padding: 10px 0; }
.admin-sidebar-nav li a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: all 0.2s; }
.admin-sidebar-nav li a:hover, .admin-sidebar-nav li a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-sidebar-nav li a i { width: 18px; text-align: center; }
.admin-content { margin-left: 240px; padding: 24px; flex: 1; background: #f5f6f8; min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-header h2 { font-family: var(--heading-font); font-size: 1.5rem; color: var(--primary); }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); overflow: hidden; }
.admin-table table { margin-bottom: 0; }
.admin-table th { background: var(--bg-alt); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }

@media (max-width: 768px) {
  .admin-sidebar { display: none; transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { display: block; transform: translateX(0); z-index: 300; }
  .admin-sidebar-overlay.open { display: block; }
  .admin-content { margin-left: 0; }
}

/* Dark Mode */
body.dark-mode {
  --primary: #ffffff;
  --accent: #e94560;
  --accent-hover: #ff6b81;
  --text: #e0e0e0;
  --text-light: #b0b0b0;
  --text-muted: #888;
  --bg: #1a1a2e;
  --bg-alt: #16213e;
  --border: #2a2a4a;
}
body.dark-mode { background: #1a1a2e; color: #e0e0e0; }
body.dark-mode .kt-header { background: #0f0f23; border-bottom-color: #2a2a4a; }
body.dark-mode .kt-header-social a { color: #ccc; }
body.dark-mode .kt-search-bar { background: #16213e; }
body.dark-mode .kt-search-form { background: #1a1a2e; border-color: #2a2a4a; }
body.dark-mode .kt-search-form input { color: #e0e0e0; }
body.dark-mode .kt-nav-sub { background: #16213e; }
body.dark-mode .kt-nav-sub li a { color: #ccc; }
body.dark-mode .kt-nav-sub li a:hover { background: #1a1a2e; }
body.dark-mode .news-side img, body.dark-mode .news-main img,
body.dark-mode .article-list-img, body.dark-mode .article-card-img,
body.dark-mode .hero-sidebar .hero-card-img { background: #2a2a4a; }
body.dark-mode .sidebar-widget { background: #16213e; }
body.dark-mode .article-content blockquote { background: #16213e; border-left-color: var(--accent); }
body.dark-mode .article-tags .badge { background: #16213e; color: #ccc; border-color: #2a2a4a; }
body.dark-mode .article-share a { background: #16213e; color: #ccc; }
body.dark-mode .newsletter-section { background: #0f0f23; }
body.dark-mode .site-footer { background: #0a0a1a; }
body.dark-mode .stat-card, body.dark-mode .admin-table { background: #16213e; }
body.dark-mode .admin-table th { background: #1a1a2e; }
body.dark-mode .pagination .page-link { background: #16213e; color: #ccc; border-color: #2a2a4a; }
body.dark-mode .comment-item { border-bottom-color: #2a2a4a; }
body.dark-mode .hero-sidebar .hero-card { border-bottom-color: #2a2a4a; }
body.dark-mode img { opacity: 0.92; }

/* Dark mode toggle */
.dark-mode-toggle { color: #fff; font-size: 1.1rem; padding: 10px; cursor: pointer; background: none; border: none; transition: transform 0.3s; display: flex; align-items: center; }
.dark-mode-toggle:hover { transform: scale(1.2); }
