/*
Theme Name: Slemani Daily
Theme URI: https://slemanidaily.com
Author: Slemani Daily Team
Description: ڕۆژنامەی ئەلەکترۆنی سڵێمانی دەیلی — تێمای مۆدێرنی وردپرێس بۆ ڕۆژنامەی کوردی
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slemani-daily
Tags: rtl-language, news, blog, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ══════════════════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════════════════ */
:root {
  --bg: #f5f6f8;
  --bg2: #ffffff;
  --bg3: #eef0f4;
  --bg4: #e1e4ea;
  --accent: #e63946;
  --text: #1a1a2e;
  --text2: #52526e;
  --text3: #94949e;
  --border: #dde0e8;
  --card: #ffffff;
  --shadow: 0 2px 16px rgba(0,0,0,.07);
  --radius: 12px;
  --tr: all .3s cubic-bezier(.4,0,.2,1);
  --font: 'Noto Sans Arabic', Tahoma, sans-serif;
  --font-size: 16px;
  --line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line-height);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--tr); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
ul, ol { list-style: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════════════════════ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ══════════════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════════════ */
.ticker-wrap {
  background: linear-gradient(90deg, var(--accent) 0%, #c1121f 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  height: 38px;
}
.ticker-title {
  flex-shrink: 0;
  background: rgba(0,0,0,.25);
  color: #fff;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  z-index: 2;
}
.ticker-view {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.ticker-track {
  display: flex;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
}
.ticker-move {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.ticker-item::before { content: '◆'; font-size: 8px; opacity: .6; }
.ticker-item a { color: #fff; }
.ticker-item a:hover { opacity: .8; }

/* ══════════════════════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--bg2);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

/* Logo */
.header-right { flex-shrink: 0; }
.site-logo-link { display: flex; align-items: center; gap: 10px; }
.site-logo-link img { max-height: 50px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 20px; font-weight: 900; letter-spacing: 1px; color: var(--text); }
.logo-sub  { font-size: 11px; color: var(--text3); letter-spacing: 2px; }

/* Main Nav */
.header-center { flex: 1; min-width: 0; }
.main-nav { overflow: hidden; }
.main-nav ul { display: flex; flex-wrap: nowrap; overflow-x: auto; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  position: relative;
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0; left: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-cat > a { color: var(--accent); }
.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item > a::after,
.main-nav ul li.current-cat > a::after { transform: scaleX(1); }

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  padding: 8px 0;
}
.main-nav .sub-menu.open { display: block; }
.main-nav .sub-menu li a { padding: 10px 18px; font-size: 13px; color: var(--text2); display: block; }
.main-nav .sub-menu li a:hover { color: var(--accent); background: var(--bg3); }

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
}
.header-date i { color: var(--accent); }
.header-social { display: flex; gap: 6px; }
.header-social a { color: var(--text3); font-size: 14px; padding: 4px; }
.header-social a:hover { color: var(--accent); }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: var(--tr);
}
.icon-btn:hover { background: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════════════════
   SEARCH MODAL
══════════════════════════════════════════════════════════ */
.search-modal {
  position: fixed; inset: 0;
  background: rgba(10,22,40,.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.search-modal.active { opacity: 1; pointer-events: all; }
.search-modal[hidden] { display: none; }
.search-modal-content { width: 90%; max-width: 600px; position: relative; }
.close-search {
  position: absolute;
  top: -44px; left: 0;
  color: rgba(255,255,255,.7);
  font-size: 22px;
  padding: 8px;
}
.close-search:hover { color: #fff; }
.search-form { display: flex; gap: 10px; }
.search-field {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  font-family: var(--font);
  border: none;
  border-radius: 8px;
  outline: none;
  direction: rtl;
}
.search-submit {
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  transition: var(--tr);
}
.search-submit:hover { background: #c1121f; }

/* ══════════════════════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════════════════════ */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 300;
}
.mobile-overlay.active { display: block; }

.mobile-menu {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: var(--bg2);
  z-index: 400;
  transition: right .35s ease;
  padding: 20px;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.active { right: 0; }
.mobile-menu .close-btn {
  position: absolute; top: 16px; left: 16px;
  font-size: 22px; color: var(--text2);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--bg3);
}
.mobile-menu .close-btn:hover { color: var(--accent); }
.mobile-logo { margin-top: 44px; }
.mobile-logo a { display: flex; align-items: center; gap: 10px; }
.mobile-logo .logo-main { font-size: 18px; font-weight: 900; }
.mobile-menu #mobile-nav ul { display: flex; flex-direction: column; }
.mobile-menu #mobile-nav ul li a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.mobile-menu #mobile-nav ul li a:hover { color: var(--accent); padding-right: 12px; }
.mobile-social { display: flex; gap: 12px; padding-top: 8px; }
.mobile-social a { color: var(--text3); font-size: 18px; }
.mobile-social a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   SITE MAIN LAYOUT (main content + sidebar)
══════════════════════════════════════════════════════════ */
.site-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: start;
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px;
}
.main-content { min-width: 0; }
.site-main > aside.sidebar { min-width: 0; position: sticky; top: 80px; }

/* ══════════════════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 460px;
  background: var(--bg3);
  margin-bottom: 32px;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: all; }
.slide > a { display: block; width: 100%; height: 100%; }
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: linear-gradient(to top, rgba(10,22,40,.95) 0%, rgba(10,22,40,.5) 50%, transparent 100%);
  padding: 60px 32px 28px;
  pointer-events: none;
}
.slide-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  pointer-events: all;
}
.slide-cat a { color: #fff; }
.slide-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 8px;
  display: block;
  transform-origin: right center;
}
.slide-title a { color: #fff; }
.slide-title a:hover { opacity: .85; }
.slide-excerpt { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 8px; }
.slide-meta { color: rgba(255,255,255,.6); font-size: 12px; }
.slide-meta i { margin-left: 4px; }

/* Slider controls */
.slider-nav {
  position: absolute;
  top: 50%;
  right: 16px; left: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
  transform: translateY(-50%);
  pointer-events: none;
}
.slider-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  transition: var(--tr);
  pointer-events: all;
}
.slider-nav button:hover { background: var(--accent); border-color: var(--accent); }

.slider-dots {
  position: absolute;
  bottom: 14px; left: 32px;
  display: flex; gap: 6px;
  z-index: 10;
}
.slider-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: var(--tr);
}
.slider-dots .dot.active { background: var(--accent); transform: scale(1.3); }

/* ══════════════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════════════ */
.section-block { margin-bottom: 36px; }
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  position: relative;
  padding-right: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 22px;
  background: var(--accent);
  border-radius: 2px;
}
.section-more {
  margin-right: auto;
  font-size: 12px;
  color: var(--text3);
  display: flex; align-items: center; gap: 4px;
}
.section-more:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   NEWS GRID (hero-style cards)
══════════════════════════════════════════════════════════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--tr);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  display: block;
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-cat {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: #fff;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.card-body { padding: 14px; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 13px; color: var(--text2); margin-bottom: 8px; line-height: 1.6; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text3); }
.card-meta i { color: var(--accent); font-size: 10px; }

/* Compact variant */
.news-card--compact .card-img-wrap { height: 130px; }
.news-card--compact .card-body { padding: 10px 12px; }
.news-card--compact .card-title { font-size: 13px; }

/* ══════════════════════════════════════════════════════════
   CAT GRID (2-col compact cards)
══════════════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
}
.widget-title {
  font-size: 15px;
  font-weight: 800;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border);
  position: relative;
  padding-right: 12px;
}
.widget-title::before {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* Most Read */
.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.most-read-item:last-child { border-bottom: none; }
.rank {
  font-size: 24px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  min-width: 26px;
}
.most-read-info { flex: 1; min-width: 0; }
.most-read-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--text);
}
.most-read-title:hover { color: var(--accent); }
.most-read-meta { font-size: 11px; color: var(--text3); }

/* WP Widgets inside sidebar */
.sidebar .widget { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 18px; }
.sidebar .widget-title { font-size: 15px; font-weight: 800; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--border); }
.sidebar .widget ul li { border-bottom: 1px solid var(--border); }
.sidebar .widget ul li a { display: block; padding: 8px 0; font-size: 13px; color: var(--text2); }
.sidebar .widget ul li a:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   PAGE HEADER (archive/category)
══════════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--text) 0%, #2d2d4e 100%);
  padding: 36px 0;
  margin-bottom: 28px;
  border-radius: var(--radius);
  border-bottom: 3px solid var(--accent);
  color: #fff;
}
.page-title { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.page-desc { color: rgba(255,255,255,.7); font-size: 14px; }

/* Archive grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Pagination */
.pagination-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination-wrap .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  color: var(--text2);
  transition: var(--tr);
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.no-results i { font-size: 48px; margin-bottom: 16px; }
.no-results p { font-size: 16px; margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════
   SINGLE ARTICLE
══════════════════════════════════════════════════════════ */
.single-article { margin-bottom: 40px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px;
  font-size: 12px; color: var(--text3);
  margin-bottom: 20px; padding-top: 4px;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); font-size: 10px; }

/* Article header */
.article-header { margin-bottom: 24px; }
.article-cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 12px;
}
.article-title { font-size: 26px; font-weight: 900; line-height: 1.5; margin-bottom: 16px; }
.article-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px;
  font-size: 12px; color: var(--text3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.article-meta i { color: var(--accent); margin-left: 4px; }

/* Featured image */
.article-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.article-featured-img img { width: 100%; max-height: 460px; object-fit: cover; }

/* Content */
.article-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text2);
  margin-bottom: 28px;
}
.article-content p { margin-bottom: 18px; }
.article-content img { border-radius: 8px; margin: 20px 0; }
.article-content h2, .article-content h3 { font-weight: 800; margin-bottom: 12px; color: var(--text); }
.article-content blockquote {
  border-right: 4px solid var(--accent);
  padding: 14px 20px;
  margin: 20px 0;
  background: var(--bg3);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text2);
}

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 12px; color: var(--text2);
  transition: var(--tr);
}
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Share */
.article-share {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.share-label { font-size: 13px; color: var(--text3); }
.share-btns { display: flex; gap: 10px; }
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--tr);
}
.share-btn:hover { transform: translateY(-2px); }
.share-fb:hover  { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-tw:hover  { background: #1da1f2; color: #fff; border-color: #1da1f2; }
.share-tg:hover  { background: #0088cc; color: #fff; border-color: #0088cc; }
.share-wa:hover  { background: #25d366; color: #fff; border-color: #25d366; }

/* Comments */
.comments-section { margin-top: 36px; }

/* ══════════════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════════════ */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}
.error-number { font-size: 120px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.error-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.error-desc { color: var(--text2); font-size: 15px; margin-bottom: 24px; }
.error-search {
  display: flex; gap: 10px; max-width: 400px;
  margin: 0 auto 24px;
}
.error-search input {
  flex: 1; padding: 12px 16px;
  font-family: var(--font); font-size: 14px;
  border: 1px solid var(--border); border-radius: 8px;
  outline: none; background: var(--bg2);
  direction: rtl;
}
.error-search button { padding: 0 18px; background: var(--accent); color: #fff; border-radius: 8px; font-size: 15px; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: var(--tr);
}
.btn-accent:hover { background: #c1121f; transform: translateY(-2px); color: #fff; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding: 50px 0 0;
  margin-top: 50px;
}
.footer-top { padding-bottom: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { max-height: 50px; filter: brightness(0) invert(1); }
.footer-logo-text { font-size: 22px; font-weight: 900; color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 16px; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; margin-bottom: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: 14px;
  border: 1px solid rgba(255,255,255,.12);
  transition: var(--tr);
}
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); }
.contact-item i { color: var(--accent); font-size: 13px; flex-shrink: 0; }
.contact-item a { color: rgba(255,255,255,.6); }
.contact-item a:hover { color: var(--accent); }
.site-footer h4 {
  font-size: 15px; font-weight: 800;
  color: #fff; margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.1);
}
.footer-post-list li { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-post-list li a {
  display: block; padding: 8px 0;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.footer-post-list li a:hover { color: var(--accent); padding-right: 8px; }
.footer-widget a { display: block; padding: 7px 0; font-size: 13px; color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-widget a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL  (JS adds .sd-will-reveal then .revealed)
   Content is ALWAYS visible — JS adds animation progressively
══════════════════════════════════════════════════════════ */
.reveal { transition: opacity .65s ease, transform .65s ease; }
.reveal.sd-will-reveal { opacity: 0; transform: translateY(24px); }
.reveal.sd-will-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   BACK TO TOP  (JS toggles .visible)
══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: var(--tr);
  z-index: 80;
  box-shadow: 0 4px 14px rgba(230,57,70,.4);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: #c1121f; transform: translateY(-3px); }

/* ══════════════════════════════════════════════════════════
   WP BLOCKS & MISC
══════════════════════════════════════════════════════════ */
.wp-caption { text-align: center; }
.wp-caption-text { font-size: 12px; color: var(--text3); margin-top: 6px; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft  { float: right; margin: 0 0 16px 16px; }
.alignright { float: left;  margin: 0 16px 16px 0; }
.page-links { clear: both; padding: 20px 0; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .site-main { grid-template-columns: 1fr; }
  .site-main > aside.sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-center { display: none; }
  .header-date, .header-social { display: none; }
  .hero-section { height: 280px; }
  .slide-overlay { padding: 36px 18px 20px; }
  .slide-title { font-size: 18px; }
  .slider-nav { display: none; }
  .news-grid, .archive-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 20px; }
  .error-number { font-size: 80px; }
  .site-main { padding: 16px; gap: 20px; }
}

@media (max-width: 480px) {
  .header-container { padding: 0 12px; }
  .logo-main { font-size: 16px; }
  .ticker-title { display: none; }
}

@media (max-width: 480px) {
  .header-container { padding: 0 12px; }
  .logo-main { font-size: 16px; }
  .ticker-title { display: none; }
}
