/*
Theme Name:  Construction Nepal (Nepali)
Theme URI:   https://constructionnepal.com
Author:      Construction Nepal
Author URI:  https://constructionnepal.com
Description: A clean, news-channel-style Nepali newspaper theme for Construction Nepal. Structured, dense editorial layout with full Devanagari font support.
Version:     3.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: construction-nepal-ne
Tags:        news, newspaper, nepali, devanagari, responsive, custom-logo, custom-menu, featured-images, threaded-comments
*/
:root {
  --bg-body: #f1f3f6;
  --bg-white: #ffffff;
  --bg-surface: #f7f8fa;
  --bg-surface-2: #edf0f4;
  --bg-header: #ffffff;
  --bg-nav: #1f3f6e;
  --bg-footer: #ffffff;

  --border: #d8dde6;
  --border-light: #eaecf1;

  --primary: #e31c24;
  --primary-light: #faecea;
  --primary-dark: #8f1813;
  --accent: #1f3f6e;
  --gold: #c4870a;

  --text-dark: #0c1018;
  --text-body: #262e3c;
  --text-muted: #536070;
  --text-light: #8b97a6;

  --font-body: "Noto Sans Devanagari", sans-serif;
  --font-display: "Noto Serif Devanagari", "Noto Sans Devanagari", serif;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.1);

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;

  --transition: all 0.18s ease;
  --max-width: 1280px;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== BREAKING NEWS TICKER ========== */
.breaking-news-bar {
  background: var(--primary);
  padding: 7px 0;
  overflow: hidden;
}
.breaking-news-bar .container {
  display: flex;
  align-items: center;
  gap: 0;
}
.breaking-label {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 2px 14px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-right: 16px;
  border-right: 2px solid rgba(255, 255, 255, 0.25);
}
.breaking-ticker {
  overflow: hidden;
  flex: 1;
}
.breaking-ticker ul {
  display: flex;
  animation: ticker 38s linear infinite;
  white-space: nowrap;
}
.breaking-ticker li {
  padding-right: 60px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.breaking-ticker li a {
  color: #fff;
}
.breaking-ticker li a:hover {
  text-decoration: underline;
}
@keyframes ticker {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-date {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.top-bar-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== HEADER ========== */
.site-header {
  background: var(--bg-header);
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo-badge {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -1px;
}
.logo-texts {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.logo-name span {
  color: var(--primary);
}
.logo-slogan {
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header search */
.header-search form {
  display: flex;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.header-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(181, 33, 26, 0.1);
}
.header-search input {
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 14px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 13px;
  width: 200px;
}
.header-search input::placeholder {
  color: var(--text-light);
}
.header-search button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}
.header-search button:hover {
  background: var(--primary-dark);
}

/* ========== NAVIGATION ========== */
.main-nav {
  background: var(--bg-nav);
  position: sticky;
  top: 73px;
  z-index: 998;
  border-bottom: 3px solid var(--primary);
}
.main-nav .container {
  display: flex;
  align-items: center;
}
.main-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav ul li {
  position: relative;
}
.main-nav ul li a {
  display: block;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  letter-spacing: 0.2px;
  transition: var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a,
.main-nav ul li.current-category-ancestor a {
  color: #fff;
  border-bottom-color: var(--primary);
}
/* Dropdown */
.main-nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  min-width: 190px;
  display: none;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.main-nav ul li:hover > ul {
  display: flex;
  flex-direction: column;
}
.main-nav ul li ul li a {
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
  padding: 9px 15px;
  font-size: 13px;
  border-left: 2px solid transparent;
  letter-spacing: 0;
}
.main-nav ul li ul li a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-light);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
}

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  gap: 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 18px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  position: relative;
}
.section-label::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 0;
  border-style: solid;
  border-width: 100% 0 0 8px;
  border-color: transparent transparent transparent var(--primary);
}
.section-label.navy {
  background: var(--accent);
}
.section-label.navy::after {
  border-left-color: var(--accent);
}
.section-label.gold {
  background: var(--gold);
  color: #2a1800;
}
.section-label.gold::after {
  border-left-color: var(--gold);
}

.section-header-right {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 5px;
}
.view-all-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  transition: var(--transition);
}
.view-all-link:hover {
  background: var(--primary);
  color: #fff;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  color: var(--text-light);
}

/* ========================================
   HERO SECTION — BREAKING NEWS STYLE
   ======================================== */
.hero-section {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

/* Label bar */
.hero-label-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-rule {
  flex: 1;
  height: 2px;
  background: var(--primary);
  opacity: 0.2;
}

/* Breaking pill with blinking dot */
.hero-section-pill {
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 13px 5px 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.hero-section-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: blink-dot 1.2s ease-in-out infinite;
}
@keyframes blink-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Main featured card */
.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* BIGGER IMAGE */
.hero-main-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 440px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s ease;
}
.hero-main:hover .hero-main-img {
  transform: scale(1.025);
}

/* Deeper gradient for text legibility */
.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 14, 24, 0.95) 0%,
    rgba(8, 14, 24, 0.55) 48%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 24px 24px;
}

/* Category pills */
.hero-cats {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cat-pill {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.cat-pill.navy {
  background: var(--accent);
}

/* Breaking-news style headline */
.hero-main-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.hero-main-title a {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  color: #fff;
  display: block;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.hero-main-title a:hover {
  color: #f5d48a;
}

/* Meta row */
.hero-main-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding-left: 14px;
}

/* ── Side items ── */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-side-item {
  display: flex;
  gap: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}
.hero-side-item:first-child {
  border-top: 1px solid var(--border-light);
}
.hero-side-item:hover {
  background: var(--bg-surface);
}
.hero-side-item:hover .hero-side-title a {
  color: var(--primary);
}
.hero-side-thumb {
  width: 100px;
  min-height: 72px;
  max-height: 82px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-surface-2);
}
.hero-side-thumb img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-side-item:hover .hero-side-thumb img {
  transform: scale(1.05);
}
.hero-side-body {
  padding: 8px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.hero-side-item:hover .hero-side-body {
  border-left-color: var(--primary);
}
.hero-side-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.hero-side-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-side-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ========== CARDS ========== */
.cat-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.cat-block:has(.section-label:not(.navy):not(.gold)) {
  border-top-color: var(--primary);
}
.cat-block:has(.section-label.navy) {
  border-top-color: var(--accent);
}
.cat-block:has(.section-label.gold) {
  border-top-color: var(--gold);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.posts-grid.col3 {
  grid-template-columns: repeat(3, 1fr);
}
.posts-grid.col2 {
  grid-template-columns: repeat(2, 1fr);
}

.cat-mixed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

/* Post card */
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.post-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-surface-2);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}
.post-card-body {
  padding: 11px 13px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 2px solid transparent;
  transition: var(--transition);
}
.post-card:hover .post-card-body {
  border-top-color: var(--primary);
}
.post-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-dark);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title a:hover {
  color: var(--primary);
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-light);
}
.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

/* Big overlay card */
.post-card-big {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.post-card-big-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.post-card-big:hover .post-card-big-img {
  transform: scale(1.03);
}
.post-card-big-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 14, 24, 0.92) 0%,
    rgba(8, 14, 24, 0.2) 55%,
    transparent 100%
  );
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.post-card-big-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
}
.post-card-big-title a {
  color: #fff;
}
.post-card-big-title a:hover {
  color: #f5d48a;
}
.post-card-big-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

/* Post list items */
.post-list-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.post-list-item:last-child {
  border-bottom: none;
}
.post-list-item:hover {
  padding-left: 5px;
}
.post-list-item:hover .post-list-title a {
  color: var(--primary);
}
.post-list-thumb {
  width: 80px;
  height: 58px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
}
.post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post-list-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.post-list-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
}
.post-list-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ========== SIDEBAR ========== */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.widget-head {
  background: var(--accent);
  padding: 10px 14px;
  border-bottom: 2px solid var(--primary);
}
.widget-head-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.sidebar-post {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.sidebar-post:last-child {
  border-bottom: none;
}
.sidebar-post:hover .sidebar-post-title a {
  color: var(--primary);
}

.sidebar-post-num {
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.sidebar-post-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-title a:hover {
  color: var(--primary);
}
.sidebar-post-date {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 2px;
}

.sidebar-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  transition: var(--transition);
}
.sidebar-cat:last-child {
  border-bottom: none;
}
.sidebar-cat a {
  color: var(--text-body);
  font-weight: 500;
}
.sidebar-cat:hover a {
  color: var(--primary);
  padding-left: 4px;
}
.cat-badge-pill {
  background: var(--primary-light);
  color: #8a1812;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* ========== SINGLE POST ========== */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 294px;
  gap: 22px;
  padding: 20px 0 40px;
}
.single-article {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.single-header {
  padding: 22px 22px 16px;
}
.single-cats {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.single-cat-tag {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.single-cat-tag.secondary {
  background: var(--accent);
}
.single-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.38;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}
.single-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: 11px 0 0;
  border-top: 1px solid var(--border-light);
}

/* Featured image */
.single-feat-img-wrap {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.single-feat-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* YouTube embed */
.single-yt-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  border-bottom: 1px solid var(--border-light);
}
.single-yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Post content */
.post-content {
  padding: 20px 22px 22px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--text-body);
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 10px;
  padding-left: 11px;
  border-left: 3px solid var(--primary);
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 22px 0 8px;
}
.post-content p {
  margin-bottom: 15px;
}
.post-content a {
  color: var(--primary);
  text-decoration: underline;
}
.post-content blockquote {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 13px 17px;
  margin: 18px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-body);
}
.post-content ul,
.post-content ol {
  padding-left: 20px;
  margin-bottom: 15px;
}
.post-content li {
  margin-bottom: 5px;
  list-style: disc;
}

/* Share bar */
.share-bar {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-surface);
}
.share-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
  transition: var(--transition);
}
.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.share-btn.fb {
  background: #1877f2;
  color: #fff;
}
.share-btn.tw {
  background: #0f0f0f;
  color: #fff;
}
.share-btn.wa {
  background: #25d366;
  color: #fff;
}

/* Tags */
.tags-bar {
  padding: 11px 22px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  background: #fff;
}
.tags-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.tag-chip {
  background: var(--bg-surface-2);
  color: var(--text-body);
  padding: 4px 11px;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.tag-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Related posts */
.related-section {
  margin-top: 20px;
}

/* ========== GALLERY ========== */
.gallery-wrap {
  margin-bottom: 18px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-surface-2);
}
.gallery-item.span2 {
  grid-column: span 2;
  aspect-ratio: 2/1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-hover {
  opacity: 1;
}
.gallery-hover-icon {
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

/* ========== YOUTUBE SECTION ========== */
.youtube-wrap {
  margin-bottom: 18px;
}
.youtube-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}
.yt-main iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-md);
  display: block;
}
.yt-main-info {
  padding: 10px 0 0;
}
.yt-main-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}
.yt-main-title a:hover {
  color: var(--primary);
}
.yt-main-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

.yt-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.yt-list-item {
  display: flex;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}
.yt-list-item:last-child {
  border-bottom: none;
}
.yt-list-item:hover {
  padding-left: 5px;
}
.yt-list-item:hover .yt-list-title a {
  color: var(--primary);
}
.yt-list-thumb {
  width: 80px;
  height: 55px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  position: relative;
}
.yt-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-play-sm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
}
.yt-list-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.yt-list-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
}
.yt-list-date {
  font-size: 10.5px;
  color: var(--text-light);
}

/* ========== CATEGORY HEADER ========== */
.category-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.category-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.category-icon {
  font-size: 28px;
  line-height: 1;
}
.category-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}
.category-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.category-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
  background: var(--bg-surface);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-white);
  border-top: 3px solid var(--primary);
  margin-top: 36px;
}
.footer-top {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.footer-logo-name span {
  color: var(--primary);
}
.footer-accent-bar {
  width: 32px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  margin-bottom: 12px;
}
.footer-about-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  gap: 7px;
  margin-top: 4px;
}
.footer-social-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.footer-social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-list a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}
.footer-list a::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.footer-list a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.footer-contact-item {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.footer-contact-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.footer-contact-item a {
  color: var(--primary);
}
.footer-contact-item a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  padding: 12px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-light);
}
.footer-copy a {
  color: var(--gold);
  font-weight: 600;
}
.footer-bottom-nav {
  display: flex;
  gap: 14px;
}
.footer-bottom-nav a {
  font-size: 12px;
  color: var(--text-light);
}
.footer-bottom-nav a:hover {
  color: var(--primary);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 24, 0.92);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 9999;
  line-height: 1;
  opacity: 0.8;
  transition: var(--transition);
}
.lightbox-close:hover {
  opacity: 1;
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transform: translateY(14px);
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(181, 33, 26, 0.35);
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 30px 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-body);
  transition: var(--transition);
}
.pagination a:hover,
.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ========== NO RESULTS ========== */
.no-results {
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.no-results h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.no-results p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* ========== CONTENT-SIDEBAR WRAP ========== */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 22px;
  padding: 20px 0 40px;
  align-items: start;
}

/* ========== SEARCH FORM ========== */
.search-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  background: var(--bg-surface);
}
.search-form input[type="search"]:focus {
  border-color: var(--primary);
}
.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.search-form button:hover {
  background: var(--primary-dark);
}

/* ========== POPULAR POST WIDGET ========== */
.popular-post-item {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.popular-post-item:last-child {
  border-bottom: none;
}
.popular-post-item:hover .popular-post-title a {
  color: var(--primary);
}
.popular-post-thumb {
  width: 70px;
  height: 54px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
}
.popular-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popular-post-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
}
.popular-post-title a:hover {
  color: var(--primary);
}
.popular-post-date {
  font-size: 10.5px;
  color: var(--text-light);
  margin-top: 3px;
}

/* Category widget */
.cat-widget-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  transition: var(--transition);
}
.cat-widget-item:last-child {
  border-bottom: none;
}
.cat-widget-item a {
  color: var(--text-body);
  font-weight: 500;
}
.cat-widget-item:hover a {
  color: var(--primary);
  padding-left: 4px;
}
.cat-count {
  background: var(--primary-light);
  color: #8a1812;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Tag link widget */
.tag-link {
  background: var(--bg-surface-2);
  color: var(--text-body);
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.tag-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================================
   SIDEBAR WIDGETS — sw-* namespace
   ============================================================ */
.widget-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin-bottom: 0;
}
.widget-head {
  background: var(--accent);
  padding: 10px 14px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-head--gold {
  border-bottom-color: var(--gold);
}
.widget-head--accent {
  border-bottom-color: var(--primary);
}
.widget-head-icon {
  font-size: 14px;
  line-height: 1;
}
.widget-head-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}
.widget-body {
  padding: 10px 14px;
}
.widget-body--cats {
  padding: 6px 14px;
}

/* Popular post row */
.sw-post {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.sw-post:last-child {
  border-bottom: none;
}
.sw-post:hover .sw-post-title a {
  color: var(--primary);
}
.sw-post:hover {
  padding-left: 3px;
}
.sw-post-rank {
  min-width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.sw-post:nth-child(1) .sw-post-rank {
  background: #c4870a;
}
.sw-post:nth-child(2) .sw-post-rank {
  background: #7b8898;
}
.sw-post:nth-child(3) .sw-post-rank {
  background: #b56c3a;
}
.sw-post-thumb {
  width: 64px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface-2);
}
.sw-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw-no-thumb {
  width: 100%;
  height: 100%;
  background: var(--bg-surface-2);
}
.sw-post-body {
  flex: 1;
  min-width: 0;
}
.sw-post-title {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.sw-post-title a:hover {
  color: var(--primary);
}
.sw-post-meta {
  font-size: 10.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sw-views {
  letter-spacing: 0.2px;
}

/* Category rows */
.sw-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 13px;
  color: var(--text-body);
  font-weight: 500;
}
.sw-cat-row:last-child {
  border-bottom: none;
}
.sw-cat-row:hover {
  color: var(--primary);
  padding-left: 5px;
}
.sw-cat-row:hover .sw-cat-dot {
  background: var(--primary);
}
.sw-cat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: var(--transition);
}
.sw-cat-name {
  flex: 1;
}
.sw-cat-count {
  background: var(--primary-light);
  color: #8a1812;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Video rows */
.sw-video-item {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.sw-video-item:last-child {
  border-bottom: none;
}
.sw-video-item:hover .sw-post-title a {
  color: var(--primary);
}
.sw-video-thumb {
  width: 70px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface-2);
  position: relative;
}
.sw-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.45);
  color: #fff;
  font-size: 13px;
  transition: var(--transition);
}
.sw-video-thumb:hover .sw-play-btn {
  background: rgba(181, 33, 26, 0.7);
}

/* Tags cloud */
.sw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sw-tag {
  background: var(--bg-surface-2);
  color: var(--text-body);
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}
.sw-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Social follow widget */
.sw-socials {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sw-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid transparent;
}
.sw-social-btn:hover {
  transform: translateX(3px);
}
.sw-social-icon {
  font-size: 15px;
  font-weight: 900;
  width: 20px;
  text-align: center;
}
.sw-social-label {
  flex: 1;
}
.sw-social-action {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.8;
  border: 1px solid currentColor;
  padding: 1px 8px;
  border-radius: 2px;
}
.sw-social-fb {
  background: #e8f0fd;
  color: #1a56c4;
  border-color: #c4d8f8;
}
.sw-social-fb:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}
.sw-social-tw {
  background: #f0f0f0;
  color: #0f0f0f;
  border-color: #d5d5d5;
}
.sw-social-tw:hover {
  background: #0f0f0f;
  color: #fff;
  border-color: #0f0f0f;
}
.sw-social-yt {
  background: #fdecea;
  color: #b5211a;
  border-color: #f5c4c2;
}
.sw-social-yt:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}

/* ============================================================
   COMMENTS — cn-comments namespace
   ============================================================ */
.comments-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
  box-shadow: var(--shadow-xs);
}
.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 2px solid var(--border);
  background: var(--bg-surface);
  gap: 12px;
  flex-wrap: wrap;
}
.comments-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comments-icon {
  font-size: 18px;
  line-height: 1;
}
.comments-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}
.comments-write-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 5px 12px;
  border-radius: 2px;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.comments-write-btn:hover {
  background: var(--primary);
  color: #fff;
}
.comments-list {
  padding: 0 20px;
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-item--reply {
  margin-left: 36px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.comment-item--reply::before {
  content: "↩";
  position: absolute;
  left: -14px;
  top: 18px;
  font-size: 11px;
  color: var(--text-light);
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  margin-top: 1px;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.comment-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}
.comment-author-badge {
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.comment-date {
  font-size: 11px;
  color: var(--text-light);
  margin-left: auto;
}
.comment-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-body);
}
.comment-text p {
  margin-bottom: 8px;
}
.comment-text p:last-child {
  margin-bottom: 0;
}
.comment-pending {
  background: #fdf8ec;
  border: 1px solid #f0d78a;
  color: #7a6010;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}
.comment-reply-btn,
.comment-reply-btn a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
}
.comment-reply-btn a:hover {
  color: var(--primary);
}
.comment-edit-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}
.comment-edit-btn:hover {
  color: var(--primary);
}
.comment-pingback {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}
.comment-pagination {
  display: flex;
  gap: 4px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  justify-content: center;
}
.comment-pagination a,
.comment-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-body);
  text-decoration: none;
  transition: var(--transition);
}
.comment-pagination a:hover,
.comment-pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.comments-closed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}
.comment-form-wrap {
  padding: 0 20px 22px;
  border-top: 2px solid var(--border);
  margin-top: 4px;
}
.comment-form-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}
.comment-form-icon {
  font-size: 16px;
}
.comment-form-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
}
#cancel-comment-reply-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
  transition: var(--transition);
  display: none;
}
#cancel-comment-reply-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.comment-logged-in {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.comment-logged-in a {
  color: var(--primary);
  text-decoration: underline;
}
.comment-user-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
}
.cn-comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cf-field-group--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cf-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.2px;
}
.cf-field .required {
  color: var(--primary);
}
.cf-field input[type="text"],
.cf-field input[type="email"],
.cf-field textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  resize: vertical;
  line-height: 1.6;
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(181, 33, 26, 0.08);
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--text-light);
}
.cf-field textarea {
  min-height: 120px;
}
.cf-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cf-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
}
.cf-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.cf-submit-arrow {
  font-size: 16px;
  transition: var(--transition);
}
.cf-submit-btn:hover .cf-submit-arrow {
  transform: translateX(3px);
}
.cf-privacy-note {
  font-size: 11.5px;
  color: var(--text-light);
  margin: 0;
}

/* ============================================================
   SINGLE POST — additional styles
   ============================================================ */
.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.bc-sep {
  color: var(--text-light);
}
.bc-current {
  color: var(--text-dark);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}
.single-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-light);
}
.smb-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.smb-icon {
  font-size: 13px;
  line-height: 1;
}
.smb-dot {
  color: var(--border);
  font-size: 14px;
}
.smb-views {
  margin-left: auto;
}
.single-feat-img-wrap {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.single-feat-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.single-img-caption {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
  padding: 7px 16px;
  font-style: italic;
  text-align: center;
}
.single-no-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 140px;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.single-no-media span:first-child {
  font-size: 24px;
  opacity: 0.4;
}
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 18px;
  box-shadow: var(--shadow-xs);
}
.author-avatar {
  flex-shrink: 0;
}
.author-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border);
}
.author-info {
  flex: 1;
  min-width: 0;
}
.author-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 3px;
}
.author-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.author-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.author-posts-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: var(--transition);
}
.author-posts-link:hover {
  background: var(--primary);
  color: #fff;
}
.related-section {
  margin-top: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.related-card-thumb {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-light);
}
.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.related-card:hover .related-card-thumb img {
  transform: scale(1.04);
}
.related-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0.3;
  min-height: 90px;
}
.related-card-body {
  padding: 10px 12px 12px;
}
.related-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.related-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.related-card-title a:hover {
  color: var(--primary);
}
.related-card-date {
  font-size: 11px;
  color: var(--text-light);
}
.page-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}
.page-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.page-links a span {
  background: var(--bg-surface-2);
  color: var(--text-body);
  border: 1px solid var(--border);
}
.page-links a span:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .single-layout {
    grid-template-columns: 1fr 260px;
  }
  .content-sidebar-wrap {
    grid-template-columns: 1fr 260px;
  }
  .youtube-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .single-layout {
    grid-template-columns: 1fr;
  }
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }
  .single-title {
    font-size: 21px;
  }
  .youtube-layout {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .smb-views {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-toggle {
    display: block;
  }
  .main-nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--bg-nav);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav ul.open {
    display: flex;
  }
  .main-nav ul li a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none;
  }
  .header-search {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-side {
    grid-template-columns: 1fr;
  }
  .cat-mixed {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-item.span2 {
    grid-column: span 1;
    aspect-ratio: 1;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .cf-field-group--2col {
    grid-template-columns: 1fr;
  }
  .comments-list {
    padding: 0 14px;
  }
  .comment-form-wrap {
    padding: 0 14px 18px;
  }
  .comment-item--reply {
    margin-left: 16px;
  }
  .comment-date {
    margin-left: 0;
    width: 100%;
  }
  .cf-submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
    gap: 12px;
  }
  .bc-current {
    max-width: 180px;
  }
}
@media (max-width: 480px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .hero-main-img {
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }
  .hero-main-title a {
    font-size: 1.15rem;
  }
  .hero-main-overlay {
    padding: 50px 16px 16px;
  }
  .post-content {
    padding: 14px;
  }
  .single-header {
    padding: 14px;
  }
  .single-title {
    font-size: 19px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
