/*
Theme Name:  NeusBlog
Theme URI:   https://www.templatesyard.com/
Author:      TemplatesYard (WP Conversion)
Author URI:  https://www.templatesyard.com/
Description: NeusBlog – a clean, fast, AdSense-ready WordPress news & blog theme. Faithfully converted from the original Blogger template by TemplatesYard. Features: breaking news ticker, hot posts hero grid, category sections, sidebar widgets, social share, and full AdSense slot support.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neusblog
Tags:        news, blog, adsense, two-columns, right-sidebar, custom-menu, featured-images, responsive-layout, translation-ready
*/

/* ============================================================
   CSS VARIABLES  (match NeusBlog Blogger variables)
   ============================================================ */
:root {
  --main-color:      #e32c26;
  --dark-color:      #0a0a0a;
  --header-bg:       #ffffff;
  --menu-color:      #0a0a0a;
  --submenu-bg:      #ffffff;
  --submenu-color:   #253137;
  --title-color:     #253137;
  --widget-title-bg: #0a0a0a;
  --footer-bg:       #0a0a0a;
  --footer-color:    #ffffff;
  --body-bg:         #f2f6f8;
  --body-text:       #656565;
  --body-link:       #e32c26;
  --post-bg:         #ffffff;
  --border-color:    #ebebf3;
  --border-light:    #f2f2f6;
  --shadow-sm:       0 2px 8px rgba(0,0,0,.07);
  --radius:          3px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--body-bg);
  font-family: 'Fira Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--body-text);
  word-wrap: break-word;
  line-height: 1.6;
}
a { color: var(--body-link); text-decoration: none; transition: color .17s; }
a:hover { color: var(--main-color); }
img { max-width: 100%; height: auto; border: none; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Fira Sans', Arial, sans-serif; color: var(--title-color); }
input, button, textarea, select { font-family: inherit; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ============================================================
   UTILITY
   ============================================================ */
.nb-container { max-width: 1180px; margin: 0 auto; padding: 0 15px; }
.screen-reader-text {
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; margin:-1px; overflow:hidden; padding:0;
  position:absolute; width:1px; word-wrap:normal!important;
}

/* ============================================================
   TOP BAR
   ============================================================ */
#top-bar { background: var(--main-color); overflow: hidden; }
#top-bar .nb-container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.top-bar-left { display: flex; align-items: center; gap: 0; }
.top-bar-left .date-text { color: #fff; font-size: 12px; padding: 0 10px 0 0; border-right: 1px solid rgba(255,255,255,.2); }
.top-bar-nav ul { display: flex; }
.top-bar-nav ul li a {
  color: #fff; font-size: 12px; line-height: 34px; height: 34px;
  display: block; padding: 0 8px; transition: color .17s;
}
.top-bar-nav ul li a:hover { color: var(--dark-color); }
.top-bar-social ul { display: flex; }
.top-bar-social ul li a {
  display: block; color: #fff; font-size: 14px;
  line-height: 34px; padding: 0 6px; transition: color .17s;
}
.top-bar-social ul li a:hover { color: var(--dark-color); }

/* ============================================================
   SITE HEADER
   ============================================================ */
#header-wrap {
  background: var(--header-bg);
  height: 70px;
  position: sticky; top: 0; z-index: 1010;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
#header-wrap .nb-container {
  display: flex; align-items: center; justify-content: space-between; height: 70px; position: relative;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-title-text {
  font-size: 22px; font-weight: 700; color: var(--dark-color); line-height: 70px;
}
.site-title-text a { color: inherit; }
.site-logo img { max-height: 52px; max-width: 250px; width: auto; }

/* Search toggle */
.show-search, .hide-search {
  position: absolute; top: 0; right: 0;
  width: 52px; height: 70px; line-height: 70px;
  background: rgba(0,0,0,.04); color: var(--menu-color);
  font-size: 16px; text-align: center; cursor: pointer;
  transition: color .17s; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  border: none; background-color: transparent;
}
.show-search:hover, .hide-search:hover { color: var(--main-color); }
#nav-search {
  display: none; position: absolute; left: 0; top: 0;
  width: 100%; height: 70px; z-index: 99;
  background: var(--header-bg);
}
#nav-search.active { display: block; }
#nav-search .search-form { width: 100%; height: 70px; display: flex; }
#nav-search .search-input {
  flex: 1; height: 70px; padding: 0 60px 0 15px;
  font-size: 14px; color: var(--menu-color); border: none; outline: none;
  background: transparent; font-family: inherit;
}
#nav-search .search-submit {
  width: 52px; height: 70px; background: transparent; border: none;
  color: var(--menu-color); font-size: 16px; cursor: pointer;
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; position: absolute; top: 0; left: 0;
  width: 52px; height: 70px; line-height: 70px;
  background: rgba(0,0,0,.04); color: var(--menu-color);
  font-size: 18px; text-align: center; cursor: pointer;
  border: none; background-color: transparent;
  align-items: center; justify-content: center;
  transition: color .17s; z-index: 20;
}
.mobile-menu-toggle:hover { color: var(--main-color); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-menu-wrap { background: var(--header-bg); border-top: 1px solid var(--border-light); }
#main-menu-wrap .nb-container { position: relative; }
#main-menu ul { display: flex; flex-wrap: wrap; }
#main-menu ul > li { position: relative; }
#main-menu ul > li > a {
  color: var(--menu-color); font-size: 14px; font-weight: 500;
  line-height: 44px; display: inline-block; padding: 0 15px;
  transition: color .17s; white-space: nowrap;
}
#main-menu ul > li:hover > a, #main-menu ul > li.current-menu-item > a { color: var(--main-color); }
/* Dropdown */
#main-menu ul > li > ul {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--submenu-bg); z-index: 9999;
  border: 1px solid rgba(155,155,155,.15);
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  visibility: hidden; opacity: 0; transition: all .17s;
}
#main-menu ul > li:hover > ul { visibility: visible; opacity: 1; }
#main-menu ul > li > ul > li { border-bottom: 1px solid var(--border-light); }
#main-menu ul > li > ul > li:last-child { border-bottom: 0; }
#main-menu ul > li > ul > li a {
  display: block; height: 36px; line-height: 36px;
  font-size: 13px; color: var(--submenu-color); padding: 0 15px;
  font-weight: 500; transition: color .17s;
}
#main-menu ul > li > ul > li a:hover { color: var(--main-color); }
#main-menu ul > li > ul > li > ul {
  position: absolute; top: 0; left: 100%; margin: -1px 0 0;
}
/* Has sub arrow */
#main-menu ul > li.menu-item-has-children > a::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free';
  font-size: 10px; font-weight: 900; margin-left: 5px; vertical-align: middle;
}
/* Mobile menu wrap */
.mobile-menu-wrap {
  display: none; position: absolute; top: 70px; left: 0; width: 100%;
  background: var(--submenu-bg); z-index: 1000;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  max-height: 70vh; overflow-y: auto;
}
.mobile-menu-wrap.nav-active { display: block; }
.mobile-menu ul li { border-bottom: 1px solid var(--border-light); }
.mobile-menu ul li a { display: block; padding: 12px 20px; color: var(--submenu-color); font-size: 14px; }
.mobile-menu ul li ul li a { padding-left: 36px; font-size: 13px; opacity: .8; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
#break-wrapper-outer { background: #f7f7f7; border-bottom: 1px solid var(--border-light); overflow: hidden; }
#break-wrapper .nb-container { display: flex; align-items: center; height: 36px; }
.ticker-label {
  flex-shrink: 0; background: var(--dark-color); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 0 12px; height: 36px; line-height: 36px; white-space: nowrap;
  display: flex; align-items: center; gap: 5px; margin-right: 12px;
}
.ticker-label i { color: var(--main-color); }
.ticker-outer { flex: 1; overflow: hidden; height: 36px; }
.ticker-inner {
  display: flex; animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
}
.ticker-inner a {
  display: inline-block; color: var(--title-color); font-size: 13px;
  font-weight: 600; line-height: 36px; padding-right: 60px;
  transition: color .17s;
}
.ticker-inner a:hover { color: var(--main-color); }
.ticker-inner a::before { content: '● '; color: var(--main-color); font-size: 10px; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   AD SLOTS
   ============================================================ */
.nb-ad-wrap { text-align: center; margin: 20px auto; }
.nb-ad-wrap.top-ad { max-width: 1180px; padding: 0 15px; }
.ad-slot {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f5f5f5; border: 1px dashed #ccc;
  color: #aaa; font-size: 12px; font-family: Arial, sans-serif;
  max-width: 100%;
}
.ad-leaderboard { width: 728px; height: 90px; }
.ad-rectangle  { width: 336px; height: 280px; }
.ad-sidebar    { width: 300px; height: 250px; }
.ad-halfpage   { width: 300px; height: 600px; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
#content-wrapper { margin: 30px auto; }
#content-wrapper .nb-container { display: flex; gap: 30px; align-items: flex-start; }
#main-wrapper { flex: 1; min-width: 0; }
#sidebar-wrapper { width: 320px; flex-shrink: 0; }
@media (max-width: 900px) {
  #content-wrapper .nb-container { flex-direction: column; }
  #sidebar-wrapper { width: 100%; }
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.title-wrap {
  position: relative; width: 100%; height: 34px; display: flex;
  align-items: center; justify-content: space-between;
  background: var(--dark-color); margin-bottom: 20px;
}
.title-wrap h3 {
  position: relative; height: 34px; font-size: 12px; color: #fff;
  background: var(--dark-color); text-transform: uppercase;
  line-height: 34px; padding: 0 25px 0 12px; margin: 0; font-weight: 700;
}
.title-wrap h3::after {
  content: ''; position: absolute; right: -10px; top: 0;
  border-top: 17px solid transparent; border-bottom: 17px solid transparent;
  border-left: 10px solid var(--dark-color);
}
a.view-all {
  height: 18px; font-size: 9px; line-height: 18px; border-radius: 3px;
  margin: 8px 8px 0 0; padding: 0 7px; font-weight: 700;
  text-transform: uppercase; background: var(--main-color);
  color: #fff; display: block; white-space: nowrap;
}
a.view-all:hover { background: #c9211b; color: #fff; }

/* ============================================================
   HOT POSTS HERO GRID
   ============================================================ */
#hot-wrapper { margin-bottom: 30px; }
.hot-posts { display: grid; grid-template-columns: 60% 1fr 1fr; grid-template-rows: auto auto; gap: 0; overflow: hidden; border-radius: 3px; }
.hot-item { position: relative; overflow: hidden; }
.hot-item.item-0 { grid-row: 1 / 3; height: 450px; }
.hot-item:not(.item-0) { height: 220px; }
.hot-item-inner { position: relative; width: 100%; height: 100%; display: block; overflow: hidden; }
.hot-item .post-image-wrap { position: absolute; inset: 0; }
.hot-item .post-image-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: rgba(7,7,7,.4); transition: opacity .25s;
}
.hot-item:hover .post-image-wrap::before { opacity: .6; }
.hot-item .post-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hot-item:hover .post-thumb { transform: scale(1.05); }
.hot-item .post-info {
  position: absolute; bottom: 0; left: 0; width: 100%;
  z-index: 5; padding: 15px 14px; box-sizing: border-box;
}
.hot-item.item-0 .post-info { padding: 20px; }
.hot-item .post-tag {
  display: inline-block; background: var(--main-color); color: #fff;
  height: 22px; line-height: 22px; padding: 0 9px; font-size: 12px;
  border-radius: var(--radius); margin-bottom: 8px; text-transform: capitalize;
}
.hot-item .post-tag:hover { opacity: .85; color: #fff; }
.hot-item .post-title { display: block; margin: 0 0 6px; }
.hot-item .post-title a {
  color: #fff; font-size: 16px; font-weight: 600;
  line-height: 1.35em; text-shadow: 0 1px 2px rgba(0,0,0,.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hot-item.item-0 .post-title a { font-size: 24px; display: block; -webkit-line-clamp: unset; }
.hot-item .post-title a:hover { color: var(--main-color); }
.hot-item .post-meta, .hot-item .post-meta a { font-size: 11px; color: #fef3f3; }
@media (max-width: 768px) {
  .hot-posts { grid-template-columns: 1fr; }
  .hot-item.item-0 { height: 260px; }
  .hot-item:not(.item-0) { height: 180px; }
}

/* ============================================================
   INDEX POSTS (list style)
   ============================================================ */
.grid-posts { display: grid; grid-template-columns: 1fr; gap: 30px; }
.index-post {
  background: var(--post-bg); overflow: hidden;
  display: flex; gap: 0;
}
.index-post .post-image-wrap {
  width: 300px; min-width: 300px; height: 230px; overflow: hidden; flex-shrink: 0;
}
.index-post .post-image-wrap a { display: block; width: 100%; height: 100%; overflow: hidden; }
.index-post .post-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.index-post:hover .post-image-wrap img { transform: scale(1.05); }
.index-post .post-tag {
  position: static; display: inline-block; background: var(--main-color);
  color: #fff; height: 22px; line-height: 22px; padding: 0 9px;
  font-size: 12px; border-radius: var(--radius); margin-bottom: 8px;
  text-transform: capitalize; font-weight: 400;
}
.index-post .post-info { overflow: hidden; padding: 15px 18px; display: flex; flex-direction: column; justify-content: center; }
.index-post .post-info h2 { font-size: 20px; font-weight: 500; line-height: 1.4em; margin: 5px 0 8px; }
.index-post .post-info h2 a { color: var(--title-color); display: block; }
.index-post .post-info h2 a:hover { color: var(--main-color); }
.post-meta { color: #aaa; font-size: 13px; margin: 5px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-meta a { color: #aaa; }
.post-meta a:hover { color: var(--main-color); }
.post-meta .post-author::before { content: 'BY '; font-size: 11px; font-weight: 700; color: var(--dark-color); margin-right: 2px; }
.post-meta .post-date { display: flex; align-items: center; gap: 3px; }
.post-meta .post-date::before { content: '\f073'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--dark-color); font-size: 11px; }
.post-snippet { font-size: 13px; line-height: 1.6em; margin: 6px 0 10px; color: var(--body-text); }
a.read-more {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; background: #fdfdff; color: var(--title-color);
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  line-height: 28px; padding: 0 13px; border: 1px solid var(--border-light);
  border-radius: var(--radius); transition: all .25s; position: relative; overflow: hidden;
}
a.read-more:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }
@media (max-width: 640px) {
  .index-post { flex-direction: column; }
  .index-post .post-image-wrap { width: 100%; min-width: unset; height: 220px; }
}

/* ============================================================
   GRID WIDGET (3-col) - for sidebar recent posts as grid
   ============================================================ */
.posts-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.grid-card .post-image-wrap { height: 120px; overflow: hidden; border-radius: var(--radius); margin-bottom: 8px; }
.grid-card .post-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.grid-card .post-title { font-size: 13px; font-weight: 500; line-height: 1.4em; }
.grid-card .post-title a { color: var(--title-color); }
.grid-card .post-title a:hover { color: var(--main-color); }
.grid-card .post-meta { font-size: 11px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
#breadcrumb {
  font-size: 12px; height: 34px; background: var(--dark-color); color: #aaa;
  line-height: 34px; padding: 0 15px; margin-bottom: 15px; overflow: hidden;
  display: flex; align-items: center; gap: 4px;
}
#breadcrumb a { color: #aaa; }
#breadcrumb a:hover { color: var(--main-color); }
#breadcrumb .delimiter { font-size: 9px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.item-post-wrap { background: var(--post-bg); }
.item-post h1.post-title {
  color: var(--title-color); font-size: 28px; line-height: 1.4em;
  font-weight: 400; margin: 0 0 12px;
}
.item-post .post-featured-img { margin-bottom: 20px; }
.item-post .post-featured-img img { width: 100%; border-radius: var(--radius); }
.item-post .post-body {
  width: 100%; font-size: 15px; line-height: 1.7em; overflow: hidden;
  padding: 20px 0 0; margin: 15px 0 20px; border-top: 1px solid var(--border-light);
}
.item-post .post-body h2 { font-size: 22px; margin: 20px 0 10px; }
.item-post .post-body h3 { font-size: 19px; margin: 16px 0 8px; }
.item-post .post-body h4 { font-size: 16px; margin: 14px 0 6px; }
.item-post .post-body img { max-width: 100%; border-radius: var(--radius); }
.item-post .post-body p { margin-bottom: 1em; }
.item-post .post-body ul { padding-left: 20px; margin-bottom: 1em; }
.item-post .post-body ul li { list-style: disc; margin: 4px 0; }
.item-post .post-body ol { padding-left: 20px; margin-bottom: 1em; }
.item-post .post-body ol li { list-style: decimal; margin: 4px 0; }
.item-post .post-body blockquote {
  font-style: italic; padding: 12px 20px; margin: 15px 0;
  border-left: 4px solid var(--main-color); background: #f9f9f9; color: #777;
}
.item-post .post-body a { color: var(--main-color); }
.item-post .post-body a:hover { text-decoration: underline; }

/* Post labels */
.post-labels { overflow: hidden; margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 5px; }
.post-labels a {
  height: 22px; background: #fdfdff; color: var(--title-color); font-size: 12px;
  line-height: 22px; padding: 0 10px; border: 1px solid var(--border-light);
  border-radius: var(--radius); transition: all .17s;
}
.post-labels a:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }

/* Share buttons */
.post-share { padding: 15px 0; margin: 10px 0; border-top: 2px solid var(--border-light); }
.post-share h4 { font-size: 12px; text-transform: uppercase; color: #aaa; margin-bottom: 10px; }
.share-links { display: flex; gap: 5px; flex-wrap: wrap; }
.share-links a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-width: 36px; padding: 0 10px; color: #fff;
  font-size: 14px; border-radius: var(--radius); transition: opacity .17s;
  font-family: 'Fira Sans', sans-serif; font-size: 12px; gap: 5px;
}
.share-links a:hover { opacity: .8; color: #fff; }
.share-facebook { background: #3b5999; }
.share-twitter  { background: #14171a; }
.share-whatsapp { background: #3fbb50; }
.share-telegram { background: #229ed9; }
.share-pinterest{ background: #ca2127; }
.share-linkedin { background: #0077b5; }

/* Post nav */
.post-nav { display: flex; gap: 0; margin: 0 0 30px; border-top: 1px solid var(--border-light); padding-top: 15px; }
.post-nav .post-prev, .post-nav .post-next { width: 50%; box-sizing: border-box; }
.post-nav .post-prev { padding-right: 15px; }
.post-nav .post-next { padding-left: 15px; text-align: right; }
.post-nav span { display: block; font-size: 11px; color: #aaa; font-weight: 500; text-transform: uppercase; margin-bottom: 3px; }
.post-nav p { font-size: 12px; font-weight: 400; line-height: 1.5em; color: var(--title-color); }
.post-nav a { color: var(--title-color); }
.post-nav a:hover { color: var(--main-color); }

/* Author box */
.about-author {
  display: flex; gap: 15px; background: var(--dark-color); padding: 20px;
  margin: 0 0 30px; border-radius: var(--radius); border: 1px solid #252525;
}
.about-author .author-avatar img { width: 80px; height: 80px; border-radius: var(--radius); flex-shrink: 0; }
.about-author .author-name { color: var(--main-color); font-size: 16px; font-weight: 500; display: block; margin-bottom: 5px; }
.about-author .author-description { color: #fff; font-size: 12px; line-height: 1.6em; }

/* Related posts */
#related-wrap { margin-bottom: 30px; }
.related-posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.related-item .post-image-link { display: block; height: 120px; overflow: hidden; border-radius: var(--radius); margin-bottom: 8px; }
.related-item .post-image-link img { width: 100%; height: 100%; object-fit: cover; }
.related-item .post-title { font-size: 13px; font-weight: 500; line-height: 1.4em; }
.related-item .post-title a { color: var(--title-color); }
.related-item .post-title a:hover { color: var(--main-color); }
@media (max-width: 480px) { .related-posts { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { background: var(--post-bg); padding: 20px; margin-bottom: 30px; }
.comments-title { font-size: 13px; text-transform: uppercase; font-weight: 700; margin-bottom: 15px; border-bottom: 1px solid var(--border-light); padding-bottom: 10px; }
.comment-list { padding: 0; }
.comment-list .comment { margin-bottom: 20px; }
.comment-body { display: flex; gap: 12px; }
.comment-body .comment-avatar img { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.comment-content-wrap { flex: 1; }
.comment-author-name { font-size: 14px; font-weight: 600; color: var(--title-color); }
.comment-date { font-size: 11px; color: #aaa; margin-bottom: 6px; }
.comment-text { font-size: 13px; line-height: 1.6em; color: var(--body-text); }
.comment-reply-link {
  font-size: 11px; color: var(--title-color); border: 1px solid var(--border-light);
  padding: 2px 8px; border-radius: var(--radius); margin-top: 6px; display: inline-block;
  transition: all .17s;
}
.comment-reply-link:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.comment-respond { margin-top: 20px; border-top: 1px solid var(--border-light); padding-top: 20px; }
.comment-reply-title { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-color);
  border-radius: var(--radius); font-size: 13px; outline: none;
  font-family: inherit; background: #fafafa; color: var(--title-color);
  transition: border-color .17s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--main-color); }
.comment-form textarea { height: 120px; resize: vertical; width: 100%; margin-bottom: 10px; }
.comment-form .submit {
  background: var(--main-color); color: #fff; border: none; height: 34px;
  padding: 0 25px; border-radius: var(--radius); font-size: 13px; font-weight: 600;
  cursor: pointer; text-transform: uppercase; transition: background .17s;
}
.comment-form .submit:hover { background: #c9211b; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 5px; padding: 20px 0; border-top: 1px solid rgba(155,155,155,.1); }
.pagination .page-numbers {
  height: 34px; min-width: 34px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 10px; background: var(--post-bg);
  color: var(--title-color); font-size: 13px; border: 1px solid var(--border-light);
  border-radius: var(--radius); transition: all .17s;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current {
  background: var(--main-color); color: #fff; border-color: var(--main-color);
}
.pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar .widget {
  background: var(--post-bg); margin-bottom: 30px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar .widget-title {
  background: var(--widget-title-bg); color: #fff; height: 34px;
  line-height: 34px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; text-align: center; display: block; margin-bottom: 15px;
}
.sidebar .widget-content { padding: 0 15px 15px; }

/* Recent posts widget */
.sidebar .custom-widget li {
  overflow: hidden; padding: 12px 0; border-top: 1px dotted var(--border-color);
  display: flex; gap: 10px;
}
.sidebar .custom-widget li:first-child { padding-top: 0; border-top: 0; }
.sidebar .custom-widget .post-image-link {
  width: 75px; min-width: 75px; height: 60px; display: block;
  overflow: hidden; border-radius: var(--radius); flex-shrink: 0;
}
.sidebar .custom-widget .post-image-link img { width: 100%; height: 100%; object-fit: cover; }
.sidebar .custom-widget .post-title { font-size: 13px; font-weight: 500; line-height: 1.4em; }
.sidebar .custom-widget .post-title a { color: var(--title-color); }
.sidebar .custom-widget .post-title a:hover { color: var(--main-color); }
.sidebar .custom-widget .post-date { font-size: 11px; color: #aaa; margin-top: 3px; }

/* Categories widget */
.list-label li {
  padding: 8px 0; border-top: 1px dotted var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.list-label li:first-child { padding-top: 0; border-top: 0; }
.list-label li a { font-size: 13px; color: var(--title-color); display: flex; align-items: center; gap: 5px; }
.list-label li a::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-size: 8px; font-weight: 900; color: var(--title-color); }
.list-label li a:hover, .list-label li a:hover::before { color: var(--main-color); }
.label-count { font-size: 11px; background: var(--main-color); color: #fff; padding: 1px 7px; border-radius: 12px; }

/* Tag cloud widget */
.cloud-label { display: flex; flex-wrap: wrap; gap: 5px; }
.cloud-label li a {
  display: block; height: 26px; background: #fdfdff; color: var(--title-color);
  font-size: 12px; line-height: 26px; padding: 0 10px; border: 1px solid var(--border-light);
  border-radius: var(--radius); transition: all .17s;
}
.cloud-label li a:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.widget .tagcloud { display: flex; flex-wrap: wrap; gap: 5px; }
.widget .tagcloud a {
  height: 26px; background: #fdfdff; color: var(--title-color); font-size: 12px !important;
  line-height: 26px; padding: 0 10px !important; border: 1px solid var(--border-light);
  border-radius: var(--radius); transition: all .17s; display: block;
}
.widget .tagcloud a:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); }

/* Social counter widget */
.social-counter { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 -2px; }
.social-counter li { flex: 1; min-width: calc(20% - 4px); }
.social-counter li a {
  display: block; height: 40px; font-size: 18px; color: #fff;
  text-align: center; line-height: 40px; border-radius: var(--radius);
  transition: opacity .17s;
}
.social-counter li a:hover { opacity: .8; }

/* Newsletter widget */
.newsletter-widget { background: var(--dark-color); padding: 20px; }
.newsletter-widget h3 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.newsletter-widget p { color: #aaa; font-size: 12px; line-height: 1.5em; margin-bottom: 12px; }
.newsletter-widget input[type="email"] {
  width: 100%; padding: 9px 12px; border: 1px solid #333;
  background: #1a1a1a; color: #fff; font-size: 13px; border-radius: var(--radius);
  margin-bottom: 8px; outline: none;
}
.newsletter-widget button {
  width: 100%; background: var(--main-color); color: #fff; border: none;
  height: 34px; font-size: 13px; font-weight: 600; border-radius: var(--radius);
  cursor: pointer; transition: background .17s; text-transform: uppercase;
}
.newsletter-widget button:hover { background: #c9211b; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--footer-bg); color: var(--footer-color); padding: 40px 0 0; margin-top: 30px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; margin-bottom: 30px; }
@media (max-width: 768px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-widgets { grid-template-columns: 1fr; } }
.footer-widget-area .widget-title { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); display: block; }
.footer-widget-area p { font-size: 13px; color: #aaa; line-height: 1.7em; }
.footer-widget-area ul li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.footer-widget-area ul li a { color: #aaa; font-size: 13px; transition: color .17s; display: flex; align-items: center; gap: 6px; }
.footer-widget-area ul li a::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-size: 8px; font-weight: 900; color: var(--main-color); }
.footer-widget-area ul li a:hover { color: #fff; }
.footer-logo { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 10px; display: block; }
.footer-logo span { color: var(--main-color); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0;
  text-align: center; font-size: 12px; color: #666;
}
.footer-bottom a { color: var(--main-color); }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   ARCHIVE / CATEGORY HEADER
   ============================================================ */
.archive-header {
  background: var(--dark-color); color: #fff; padding: 18px 20px;
  margin-bottom: 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
}
.archive-header h1 { color: #fff; font-size: 20px; font-weight: 600; margin: 0; }
.archive-header p { color: #aaa; font-size: 13px; margin: 0; }
.archive-icon { background: var(--main-color); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-info { background: var(--post-bg); padding: 10px 14px; margin-bottom: 20px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 13px; color: var(--title-color); }
.search-info strong { color: var(--main-color); }

/* ============================================================
   404
   ============================================================ */
.error-404-wrap { text-align: center; padding: 60px 20px; background: var(--post-bg); border-radius: var(--radius); }
.error-404-wrap h1 { font-size: 80px; color: var(--main-color); line-height: 1; }
.error-404-wrap h2 { font-size: 22px; margin: 10px 0 8px; }
.error-404-wrap p { color: #aaa; font-size: 14px; margin-bottom: 20px; }
.btn-primary {
  display: inline-block; background: var(--main-color); color: #fff;
  height: 38px; line-height: 38px; padding: 0 24px;
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: background .17s;
}
.btn-primary:hover { background: #c9211b; color: #fff; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--main-color); width: 0; z-index: 9999; transition: width .1s; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-top {
  position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--main-color); color: #fff; border: none;
  font-size: 18px; cursor: pointer; display: none; z-index: 999;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: background .17s;
  align-items: center; justify-content: center;
}
#back-top:hover { background: #c9211b; }

/* ============================================================
   INLINE AD (in-content)
   ============================================================ */
.inline-ad { text-align: center; margin: 20px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #main-menu-wrap { display: none; }
  .mobile-menu-toggle { display: flex; }
  .site-title-text { padding-left: 60px; }
  .show-search { right: 0; }
}
@media (max-width: 480px) {
  .show-search { display: none; }
  .comment-form-fields { grid-template-columns: 1fr; }
}
