/*
Theme Name: نيو وظايف
Theme URI: https://example.com/new-wazayef
Author: Naif Al-Shaibani
Description: قالب مدونة إخبارية للوظائف السعودية - تصميم أزرق مريح للعين
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: new-wazayef
Tags: rtl-language, right-to-left, news, arabic, jobs, blog
*/

/* ── Logo — نموذج ج متعدد السطور ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon-box {
  width: 68px;
  height: 68px;
  background: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--tr);
  opacity: 0;
  transform: scale(.4) rotate(-15deg);
  animation: nw-icon-pop .55s cubic-bezier(.34,1.56,.64,1) .1s forwards;
}
.site-logo:hover .logo-icon-box { background: var(--blue2); }

@keyframes nw-icon-pop {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.logo-icon-box svg path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: nw-draw-line .4s ease forwards;
}
.logo-icon-box svg path:nth-child(1) { animation-delay: .52s; }
.logo-icon-box svg path:nth-child(2) { animation-delay: .62s; }
.logo-icon-box svg path:nth-child(3) { animation-delay: .72s; }

@keyframes nw-draw-line {
  to { stroke-dashoffset: 0; }
}

.logo-text-box {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* سطر 1 — نيو */
.logo-name-top {
  font-family: var(--font);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.02em;
  display: block;
  opacity: 0;
  transform: translateX(20px);
  animation: nw-slide-in .4s cubic-bezier(.25,.46,.45,.94) .36s forwards;
}

/* سطر 2 — وظائف */
.logo-name-bottom {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue2);
  line-height: 1.1;
  letter-spacing: -.01em;
  display: block;
  opacity: 0;
  transform: translateX(20px);
  animation: nw-slide-in .4s cubic-bezier(.25,.46,.45,.94) .46s forwards;
}

/* سطر 3 — فرصتك تبدأ هنا */
.logo-tagline {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 4px;
  margin-top: 5px;
  display: block;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateX(14px);
  animation: nw-slide-in .4s cubic-bezier(.25,.46,.45,.94) .58s forwards;
}

@keyframes nw-slide-in {
  to { opacity: 1; transform: translateX(0); }
}

/* Footer — بدون أنيميشن */
.footer-logo .logo-icon-box,
.footer-logo .logo-name-top,
.footer-logo .logo-name-bottom,
.footer-logo .logo-tagline,
.footer-logo .logo-icon-box svg path {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  stroke-dashoffset: 0 !important;
}

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

:root {
  --blue:        #2563a8;
  --blue2:       #1a4f8a;
  --blue3:       #17406e;
  --blue-light:  #eaf2fb;
  --blue-mid:    #c2daf0;
  --text:        #1a1a2e;
  --muted:       #5a6a82;
  --border:      #d4e3f0;
  --bg:          #f0f5fb;
  --white:       #fff;
  --font:        'Tajawal', sans-serif;
  --max:         1200px;
  --radius:      8px;
  --tr:          0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; width: 100%; }
ul { list-style: none; }

/* ═══════════════════════════════════════
   BREAKING NEWS BAR
═══════════════════════════════════════ */
.breaking-bar {
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  font-size: 13px;
  overflow: hidden;
  height: 36px;
}
.breaking-label {
  background: rgba(0,0,0,0.22);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
  gap: 6px;
  flex-shrink: 0;
}
.breaking-label .badge {
  background: #fff;
  color: var(--blue2);
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}
.breaking-marquee-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.breaking-marquee {
  display: flex;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.breaking-marquee a {
  color: #fff;
  padding: 0 28px;
  opacity: .9;
  font-size: 12.5px;
  transition: opacity .2s;
}
.breaking-marquee a:hover { opacity: 1; text-decoration: underline; }
.breaking-marquee a::before { content: '◀'; font-size: 9px; margin-left: 8px; opacity: .55; }

@keyframes marquee {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ═══════════════════════════════════════
   TOP BAR
═══════════════════════════════════════ */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  font-size: 12px;
  color: var(--muted);
}
.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.top-social { display: flex; gap: 7px; align-items: center; }
.top-social a {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: var(--tr);
  color: var(--muted);
}
.top-social a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ═══════════════════════════════════════
   LOGO BAR
═══════════════════════════════════════ */
.logo-bar {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  padding: 8px 0;
}
.logo-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 136px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 28px; height: 28px; }
.logo-text { font-size: 1.5rem; font-weight: 900; color: var(--blue); letter-spacing: -.02em; line-height: 1; }
.logo-text span { color: var(--blue2); font-weight: 400; font-size: 1rem; display: block; }

.header-search {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: 280px;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--blue); }
.header-search input {
  flex: 1; border: none;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  background: none;
  direction: rtl;
  color: var(--text);
}
.header-search button {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--tr);
}
.header-search button:hover { background: var(--blue2); }

/* ═══════════════════════════════════════
   MAIN NAV
═══════════════════════════════════════ */
#main-nav {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
#main-nav a {
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 14px;
  white-space: nowrap;
  display: block;
  transition: var(--tr);
  border-bottom: 3px solid transparent;
}
#main-nav a:hover,
#main-nav .current-menu-item > a,
#main-nav .current-menu-ancestor > a {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-bottom-color: #fff;
}
.nav-home { font-size: 15px !important; padding: 12px 18px !important; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  color: #fff;
  font-size: 1.3rem;
  margin-right: auto;
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.site-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ═══════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════ */
.sec-head {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--blue);
}
.sec-head h2 {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  margin-bottom: -3px;
  white-space: nowrap;
}
.sec-head-line { flex: 1; height: 3px; background: var(--border); margin-bottom: -3px; }

/* ═══════════════════════════════════════
   FEATURED GRID
═══════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.feat-main {
  grid-row: span 2;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue2);
  display: block;
}
.feat-main img,
.feat-main .feat-thumb {
  height: 340px;
  width: 100%;
  object-fit: cover;
  opacity: .88;
  transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
}
.feat-main:hover img { opacity: .72; }
.feat-main .feat-thumb { background: linear-gradient(135deg, #0d2f5a, #2563a8); font-size: 5rem; }
.feat-main .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 100%);
}
.feat-main .overlay h3 { color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.feat-main .overlay time { color: rgba(255,255,255,.7); font-size: 12px; }
.feat-main .cat-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 3px;
}
.feat-side {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--tr);
  text-decoration: none;
}
.feat-side:hover { box-shadow: 0 4px 20px rgba(37,99,168,.12); transform: translateY(-2px); }
.feat-side img, .feat-side .feat-side-thumb {
  height: 130px; width: 100%; object-fit: cover;
  background: linear-gradient(135deg, #0d2f5a, #2d72b0);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.feat-side-body { padding: 12px 12px 14px; flex: 1; }
.feat-side-body .cat { font-size: 11px; color: var(--blue); font-weight: 700; margin-bottom: 5px; }
.feat-side-body h3 { font-size: .88rem; font-weight: 700; line-height: 1.45; margin-bottom: 6px; color: var(--text); transition: color .2s; }
.feat-side:hover h3 { color: var(--blue); }
.feat-side-body time { font-size: 11.5px; color: var(--muted); }

/* ═══════════════════════════════════════
   POST LIST
═══════════════════════════════════════ */
.posts-list { display: flex; flex-direction: column; gap: 0; }

.post-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: none;
  display: flex;
  overflow: hidden;
  transition: var(--tr);
  text-decoration: none;
}
.posts-list .post-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.posts-list .post-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 1px solid var(--border); }
.posts-list .post-item:only-child  { border-radius: var(--radius); border-bottom: 1px solid var(--border); }
.post-item:hover { background: var(--blue-light); box-shadow: inset 3px 0 0 var(--blue); }

.post-thumb {
  width: 160px; min-width: 160px; height: 110px;
  object-fit: cover; flex-shrink: 0;
}
.post-thumb-placeholder {
  width: 160px; min-width: 160px; height: 110px;
  background: linear-gradient(135deg, #0d2f5a, #2d72b0);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.post-item-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post-item-body .cat { font-size: 11px; color: var(--blue); font-weight: 700; margin-bottom: 4px; }
.post-item-body h2,
.post-item-body h3 { font-size: .9rem; font-weight: 700; line-height: 1.45; color: var(--text); margin-bottom: 6px; transition: color .2s; }
.post-item:hover h2,
.post-item:hover h3 { color: var(--blue); }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 3px; }

/* ═══════════════════════════════════════
   LOAD MORE / PAGINATION
═══════════════════════════════════════ */
/* ── Category Sections ── */
.cat-section {
  margin-bottom: 28px;
  animation: nw-fadeup .45s ease both;
}
@keyframes nw-fadeup {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sec-head-more {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
  padding: 0 10px;
  margin-bottom: -3px;
  white-space: nowrap;
  transition: var(--tr);
  text-decoration: none;
}
.sec-head-more:hover { color: var(--blue2); text-decoration: underline; }

.load-more { text-align: center; margin-top: 16px; }
.btn-more {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 11px 32px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  display: inline-block;
}
.btn-more:hover { background: var(--blue2); transform: translateY(-1px); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  transition: var(--tr);
}
.pagination .page-numbers:hover,
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-title,
.widget-head {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.widget-title::before,
.widget-head::before { content: ''; width: 3px; height: 14px; background: #fff; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.widget-body, .widget .widget-content { padding: 12px 14px; }

/* Sidebar recent posts */
.sw-list { display: flex; flex-direction: column; gap: 0; }
.sw-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
  cursor: pointer;
  transition: var(--tr);
}
.sw-item:last-child { border-bottom: none; padding-bottom: 0; }
.sw-item:hover .sw-title { color: var(--blue); }
.sw-thumb {
  width: 72px; min-width: 72px; height: 52px;
  border-radius: 4px;
  background: linear-gradient(135deg, #eaf2fb, #c2daf0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
  flex-shrink: 0;
}
.sw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sw-title { font-size: .82rem; font-weight: 700; line-height: 1.4; color: var(--text); transition: color .2s; }
.sw-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Category list in sidebar */
.cat-list { display: flex; flex-direction: column; gap: 0; }
.cat-list a,
.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: var(--tr);
  color: var(--text);
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list a:hover { background: var(--blue-light); color: var(--blue); }
.cat-list a:hover .cat-count { background: var(--blue2); }
.cat-count {
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 3px;
  font-weight: 700;
}

/* Tags cloud */
.tagcloud,
.tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px; }
.tag-cloud-link,
.tag-item {
  font-size: 12px !important;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--tr);
  font-weight: 600;
  font-family: var(--font);
}
.tag-cloud-link:hover,
.tag-item:hover { background: var(--blue); color: #fff; }

/* Ad space */
.ad-space {
  border: 2px dashed var(--blue-mid);
  border-radius: var(--radius);
  background: var(--blue-light);
  padding: 24px 16px;
  text-align: center;
}
.ad-space .ad-icon { font-size: 2.5rem; margin-bottom: 8px; }
.ad-space .ad-label { font-size: 13px; font-weight: 700; color: var(--blue); }
.ad-space .ad-size { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════ */
.single-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.single-content { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.single-featured-img { width: 100%; height: 380px; object-fit: cover; }
.single-featured-placeholder {
  width: 100%; height: 340px;
  background: linear-gradient(135deg, #0d2f5a, #2563a8);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.single-body { padding: 24px; }
.single-cat-label {
  font-size: 12px; font-weight: 700; color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.single-cat-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.single-title { font-size: 1.5rem; font-weight: 900; line-height: 1.35; margin-bottom: 12px; color: var(--text); }
.single-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.single-meta-bar span { display: flex; align-items: center; gap: 5px; }
.single-meta-bar strong { color: var(--text); }

.entry-content p { font-size: .93rem; line-height: 1.9; color: #2a2a3a; margin-bottom: 14px; }
.entry-content h2,
.entry-content h3 {
  font-size: 1.05rem; font-weight: 800;
  color: var(--blue);
  margin: 22px 0 10px;
  padding-right: 12px;
  border-right: 4px solid var(--blue);
}
.entry-content ul { margin: 10px 0 16px; display: flex; flex-direction: column; gap: 7px; }
.entry-content li { font-size: .9rem; color: #2a2a3a; display: flex; gap: 8px; align-items: flex-start; }
.entry-content li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* Apply box */
.apply-box {
  background: var(--blue-light);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
  text-align: center;
}
.apply-box h4 { font-size: 1.05rem; font-weight: 800; color: var(--blue); margin-bottom: 8px; }
.apply-box p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.btn-apply-big {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px 36px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
  display: inline-block;
  text-decoration: none;
}
.btn-apply-big:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,168,.3); color: #fff; }

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.share-label { font-size: 13px; font-weight: 700; color: var(--text); }
.share-btn {
  padding: 7px 14px;
  border-radius: 5px;
  border: none;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tr);
}
.share-wa  { background: #25d366; color: #fff; } .share-wa:hover  { background: #1eb655; }
.share-tw  { background: #000;    color: #fff; } .share-tw:hover  { background: #222; }
.share-li  { background: #0077b5; color: #fff; } .share-li:hover  { background: #005885; }
.share-cp  { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.share-cp:hover { background: var(--border); }

/* Breadcrumb */
.breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.breadcrumb-inner a { color: var(--muted); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--blue); }
.breadcrumb-inner .sep { margin: 0 6px; }
.breadcrumb-inner .current { color: var(--text); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
#site-footer { background: var(--blue3); color: rgba(255,255,255,.85); }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-about .logo-text { color: #fff; font-size: 1.3rem; }
.footer-about .logo-text span { color: rgba(255,255,255,.6); }
.footer-about p { font-size: 13px; line-height: 1.8; opacity: .8; margin-top: 10px; }
.footer-col h4 {
  color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px; opacity: .78; transition: opacity .2s;
  display: flex; align-items: center; gap: 5px;
}
.footer-col a::before { content: '›'; opacity: .5; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-bottom {
  background: rgba(0,0,0,.18);
  padding: 14px 16px;
  max-width: 100%;
}
.footer-bottom-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  opacity: .8;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; transition: var(--tr);
}
.footer-social a:hover { background: rgba(255,255,255,.28); }

/* ═══════════════════════════════════════
   NO POSTS / ERROR
═══════════════════════════════════════ */
.no-posts {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.no-posts .icon { font-size: 3rem; margin-bottom: 12px; }
.no-posts h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .logo-icon-box,
  .logo-name-top,
  .logo-name-bottom,
  .logo-tagline,
  .logo-icon-box svg path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

@media (max-width: 960px) {
  .site-wrap,
  .single-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .featured-grid { grid-template-columns: 1fr; }
  .feat-main { grid-row: auto; }
  .feat-main img,
  .feat-main .feat-thumb { height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .sidebar { grid-template-columns: 1fr; }
  .logo-bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; min-height: auto; padding: 12px 16px; }
  .header-search { width: 100%; }
  .logo-icon-box { width: 50px; height: 50px; border-radius: 9px; }
  .logo-icon-box svg { width: 28px; height: 28px; }
  .logo-name { font-size: 1.8rem; }
  .logo-tagline { font-size: 11px; }
  .site-logo-img, .site-logo img, .custom-logo { height: 85px; max-width: 260px; }
  .post-thumb, .post-thumb-placeholder { width: 100px; min-width: 100px; height: 85px; }
  .post-thumb-placeholder { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .nav-mobile-toggle { display: block; }
  .nav-inner { display: none; }
  .nav-inner.open { display: flex; flex-direction: column; background: var(--blue2); position: absolute; top: 100%; right: 0; left: 0; z-index: 300; padding: 8px 0; }
  #main-nav { position: relative; }
  .single-featured-img,
  .single-featured-placeholder { height: 220px; font-size: 3.5rem; }
  .feat-main img, .feat-main .feat-thumb { height: 200px; font-size: 3rem; }
}
@media print {
  .breaking-bar, .top-bar, #main-nav, .sidebar, #site-footer, .share-bar, .apply-box { display: none !important; }
  .single-wrap { grid-template-columns: 1fr; }
}
