/*
Theme Name: Marathi Time Theme
Theme URI: https://marathitime.com
Author: Marathi Time
Author URI: https://marathitime.com
Description: मराठी टाईम वेबसाईटसाठी कस्टम वर्डप्रेस थीम - संपूर्ण मराठी न्यूज़ पोर्टल थीम
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marathitime
Tags: marathi, news, blog, magazine, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fff7ed;
  --dark: #111827;
  --text: #374151;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg: #f3f4f6;
  --white: #ffffff;
  --green: #25d366;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --radius: 10px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', 'Mangal', Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================
   TOP BAR (BREAKING NEWS TICKER)
   ============================================ */
.mt-top-bar {
  background: var(--primary);
  color: #fff;
  padding: 7px 0;
  font-size: 13px;
  overflow: hidden;
}
.mt-top-bar-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 12px;
}
.mt-ticker-label {
  background: var(--primary-dark);
  color: #fff;
  padding: 2px 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mt-ticker-wrap { overflow: hidden; flex: 1; }
.mt-ticker-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: mt-ticker 35s linear infinite;
}
.mt-ticker-track:hover { animation-play-state: paused; }
.mt-ticker-track a { color: #fff; font-size: 12.5px; }
.mt-ticker-track a:hover { text-decoration: underline; }
@keyframes mt-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.site-branding { flex-shrink: 0; }
.site-branding img { height: 54px; width: auto; object-fit: contain; }
.site-branding .site-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.site-branding .site-description { font-size: 11px; color: var(--text-muted); }

/* Main Navigation */
.main-navigation { flex: 1; }
.main-navigation .nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.main-navigation .nav-menu li { position: relative; }
.main-navigation .nav-menu li a {
  display: block;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  border-radius: 5px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-navigation .nav-menu li a:hover,
.main-navigation .nav-menu li.current-menu-item > a,
.main-navigation .nav-menu li.current-menu-ancestor > a {
  background: var(--primary);
  color: var(--white);
}

/* Dropdown */
.main-navigation .nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  z-index: 100;
}
.main-navigation .nav-menu li:hover > ul { display: block; }
.main-navigation .nav-menu li ul li a {
  padding: 9px 16px;
  border-radius: 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.main-navigation .nav-menu li ul li:last-child a { border-bottom: none; }

/* WhatsApp button in nav */
.nav-whatsapp-btn {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 20px !important;
  padding: 7px 16px !important;
  font-size: 12.5px !important;
  display: flex !important;
  align-items: center;
  gap: 5px;
}
.nav-whatsapp-btn:hover { background: #1ebe5b !important; }

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}
.menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--white);
  padding: 20px;
  overflow-y: auto;
}
.mobile-nav-close {
  text-align: right;
  margin-bottom: 20px;
}
.mobile-nav-close button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}
.mobile-nav-panel ul { flex-direction: column; }
.mobile-nav-panel ul li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}
.mobile-nav-panel ul li a:hover { color: var(--primary); }

/* ============================================
   HERO / BANNER AD AREA
   ============================================ */
.mt-hero-banner {
  background: var(--primary-light);
  border-bottom: 1px solid #fed7aa;
  padding: 8px 0;
}
.mt-hero-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.mt-hero-banner img {
  max-width: 100%;
  max-height: 100px;
  margin: 0 auto;
  border-radius: 6px;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.site-container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  align-items: flex-start;
}
.site-content { min-width: 0; }

/* ============================================
   SECTION HEADING
   ============================================ */
.mt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.mt-section-title .bar {
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.mt-section-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}

/* ============================================
   POST CARDS (BLOG LISTING)
   ============================================ */
.posts-wrapper { display: flex; flex-direction: column; gap: 22px; }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 285px 1fr;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(249,115,22,.12);
}

.post-card-image {
  position: relative;
  overflow: hidden;
}
.post-card-image a { display: block; height: 100%; }
.post-card-image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.06); }

.post-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 1;
}

.post-card-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-meta span { display: flex; align-items: center; gap: 4px; }
.post-meta .dashicons, .post-meta svg { width: 13px; height: 13px; color: var(--primary); }

.entry-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--dark);
  margin-bottom: 10px;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--primary); }

.entry-summary {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
  align-self: flex-start;
}
.read-more:hover { background: var(--primary-dark); color: var(--white); }
.read-more svg { width: 14px; height: 14px; }

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-container { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px 32px; }
.single-post-header { margin-bottom: 20px; }
.single-post-title { font-size: 22px; font-weight: 800; line-height: 1.4; color: var(--dark); margin-bottom: 14px; }
.single-post-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; margin-bottom: 20px; }
.single-post-meta span { display: flex; align-items: center; gap: 5px; }
.single-post-featured { width: 100%; border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.single-post-featured img { width: 100%; max-height: 420px; object-fit: cover; }
.post-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.post-content h1, .post-content h2, .post-content h3 { color: var(--dark); margin: 20px 0 10px; font-weight: 700; }
.post-content h2 { font-size: 19px; }
.post-content h3 { font-size: 16px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content img { border-radius: 8px; margin: 16px 0; }
.post-content strong { color: var(--dark); }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  background: var(--primary-light);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text);
}
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.post-content table th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; }
.post-content table td { padding: 9px 14px; border: 1px solid var(--border); }
.post-content table tr:nth-child(even) td { background: var(--primary-light); }

/* Social Share */
.post-share { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-share h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s;
}
.share-btn:hover { opacity: .85; color: #fff; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.copy { background: var(--text-light); }

/* Post Tags */
.post-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags .tag-label { font-size: 13px; font-weight: 700; color: var(--dark); }
.post-tags a {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .2s;
}
.post-tags a:hover { background: var(--primary); color: var(--white); }

/* Related Posts */
.related-posts { margin-top: 36px; }
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.related-post-card { background: var(--white); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.related-post-card img { width: 100%; height: 130px; object-fit: cover; transition: transform .3s; }
.related-post-card:hover img { transform: scale(1.05); }
.related-post-card .rp-body { padding: 12px; }
.related-post-card .rp-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related-post-card .rp-title:hover { color: var(--primary); }
.related-post-card .rp-date { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  transition: .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ============================================
   SIDEBAR / WIDGETS
   ============================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.widget-title {
  background: var(--primary);
  color: var(--white);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .3px;
}
.widget-body { padding: 16px 18px; }

/* Recent / Popular sidebar posts */
.sidebar-post-list { display: flex; flex-direction: column; }
.sidebar-post-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-item .sp-thumb { flex-shrink: 0; }
.sidebar-post-item .sp-thumb img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.sidebar-post-item .sp-info { flex: 1; min-width: 0; }
.sidebar-post-item .sp-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-item .sp-title:hover { color: var(--primary); }
.sidebar-post-item .sp-date { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* Featured sidebar post (big image) */
.sidebar-featured { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 12px; cursor: pointer; }
.sidebar-featured img { width: 100%; height: 165px; object-fit: cover; transition: transform .3s; }
.sidebar-featured:hover img { transform: scale(1.04); }
.sidebar-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  padding: 28px 12px 12px;
}
.sidebar-featured-overlay a {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category list widget */
.cat-widget-list { display: flex; flex-direction: column; }
.cat-widget-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.cat-widget-list li:last-child { border-bottom: none; }
.cat-widget-list li a { color: var(--dark); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.cat-widget-list li a::before {
  content: '›';
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
}
.cat-widget-list li a:hover { color: var(--primary); }
.cat-count {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

/* WhatsApp widget */
.whatsapp-widget-box {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  color: var(--white);
}
.whatsapp-widget-box .wa-icon { font-size: 40px; margin-bottom: 10px; display: block; }
.whatsapp-widget-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.whatsapp-widget-box p { font-size: 13px; opacity: .9; margin-bottom: 16px; line-height: 1.6; }
.whatsapp-widget-box a {
  display: inline-block;
  background: var(--white);
  color: #128c7e;
  padding: 9px 24px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 13.5px;
  transition: box-shadow .2s;
}
.whatsapp-widget-box a:hover { box-shadow: 0 4px 12px rgba(0,0,0,.2); color: #128c7e; }

/* Search widget */
.search-widget-form { display: flex; gap: 8px; }
.search-widget-form input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border .2s;
}
.search-widget-form input:focus { border-color: var(--primary); }
.search-widget-form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.search-widget-form button:hover { background: var(--primary-dark); }

/* ============================================
   ARCHIVE / CATEGORY PAGE
   ============================================ */
.archive-header {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 24px;
  border-left: 5px solid var(--primary);
}
.archive-header h1 { font-size: 20px; font-weight: 800; color: var(--dark); }
.archive-header p { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   PAGE
   ============================================ */
.page-container { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px 32px; }
.page-title { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); }

/* ============================================
   BREADCRUMBS
   ============================================ */
.mt-breadcrumb {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mt-breadcrumb a { color: var(--primary); }
.mt-breadcrumb .sep { color: var(--border); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1a1a2e;
  color: #c9cdd4;
  margin-top: 48px;
}
.footer-widgets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 20px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}
.footer-widget-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-brand-logo { height: 46px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand-desc { font-size: 13px; line-height: 1.8; color: #9ca3af; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 15px;
  transition: background .2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-links-list { display: flex; flex-direction: column; gap: 9px; }
.footer-links-list li a {
  font-size: 13.5px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.footer-links-list li a::before { content: '›'; color: var(--primary); font-size: 16px; font-weight: 700; }
.footer-links-list li a:hover { color: var(--primary); }
.footer-recent-post { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.footer-recent-post img { width: 66px; height: 50px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.footer-recent-post .fr-info { flex: 1; }
.footer-recent-post .fr-title { font-size: 12.5px; color: #c9cdd4; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.footer-recent-post .fr-title:hover { color: var(--primary); }
.footer-recent-post .fr-date { font-size: 11px; color: #6b7280; margin-top: 4px; }

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-bottom-bar a { color: var(--primary); }
.footer-bottom-bar a:hover { text-decoration: underline; }

/* ============================================
   404 PAGE
   ============================================ */
.error-404-container { text-align: center; padding: 60px 20px; background: var(--white); border-radius: var(--radius); }
.error-404-container .err-num { font-size: 80px; font-weight: 800; color: var(--primary); line-height: 1; }
.error-404-container h2 { font-size: 22px; color: var(--dark); margin: 10px 0 16px; }
.error-404-container p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.back-home { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--white); padding: 10px 24px; border-radius: 7px; font-weight: 700; font-size: 14px; transition: background .2s; }
.back-home:hover { background: var(--primary-dark); color: var(--white); }

/* ============================================
   COMMENTS
   ============================================ */
.comments-area { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.comments-title { font-size: 17px; font-weight: 800; color: var(--dark); margin-bottom: 20px; }
.comment-list { display: flex; flex-direction: column; gap: 18px; padding: 0; }
.comment { background: var(--bg); border-radius: 8px; padding: 16px; border: 1px solid var(--border); }
.comment .comment-author { font-weight: 700; font-size: 14px; color: var(--dark); }
.comment .comment-meta { font-size: 12px; color: var(--text-muted); margin: 4px 0 10px; }
.comment .comment-content { font-size: 14px; color: var(--text); }
.comment-respond { margin-top: 28px; }
.comment-respond h3 { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.comment-form .submit:hover { background: var(--primary-dark); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 500;
  border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================
   NO-RESULTS / SEARCH
   ============================================ */
.no-results, .search-results-info { padding: 30px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .site-container { grid-template-columns: 1fr 290px; gap: 20px; }
}

@media (max-width: 900px) {
  .site-container { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-navigation { display: none; }
  .site-header-inner { height: 62px; }
  .site-branding img { height: 44px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-image img { height: 220px; min-height: unset; }
  .single-post-container { padding: 18px; }
  .single-post-title { font-size: 18px; }
  .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { grid-template-columns: 1fr; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .mt-top-bar { display: none; }
  .page-container { padding: 18px; }
}

@media (max-width: 480px) {
  .site-container { padding: 0 12px; }
  .post-card-content { padding: 14px; }
  .entry-title { font-size: 14.5px; }
  .share-buttons { flex-direction: column; }
}

/* ============================================
   WP ALIGNMENTS & DEFAULTS
   ============================================ */
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { margin: 16px auto; display: block; }
.wp-block-image figcaption { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 6px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; text-align: center; color: var(--text-muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { border-radius: 6px; }
