/*
Theme Name: bonione
Theme URI: https://www.bonione.com/
Author: bonione
Author URI: https://www.bonione.com/
Description: قالب ووردبريس احترافي مستوحى من تصميم موقع bonione. يدعم RTL، يتضمن لوحة تحكم متكاملة، تصنيفات، قوائم رئيسية وفرعية، صفحات وتصميم متجاوب.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bonione
Tags: rtl-language, blog, news, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
  --primary: #1b5a84;
  --primary-dark: #154669;
  --primary-light: #2a7ab8;
  --accent: #f47621;
  --accent-dark: #d45e0a;
  --text: #2c2c2c;
  --text-light: #666;
  --text-muted: #999;
  --bg: #f5f5f5;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  font-size: 16px;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  padding: 6px 0;
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-social a {
  color: #fff;
  margin-left: 10px;
  font-size: 14px;
  opacity: 0.85;
}
.top-bar-social a:hover { opacity: 1; color: var(--accent); }
.top-bar-links a {
  color: rgba(255,255,255,0.8);
  margin-right: 12px;
  font-size: 12px;
}
.top-bar-links a:hover { color: #fff; }

/* ===== Header ===== */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  height: 55px;
  width: auto;
  border-radius: 8px;
}
.site-logo .logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.site-logo .logo-text span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

/* Search Box */
.header-search {
  flex: 1;
  max-width: 380px;
}
.header-search form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
}
.header-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,90,132,0.15);
}
.header-search input {
  flex: 1;
  padding: 8px 16px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  direction: rtl;
}
.header-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}
.header-search button:hover { background: var(--primary-dark); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
  display: block;
}

/* ===== Navigation ===== */
.main-nav {
  background: var(--primary);
  position: relative;
}
.main-nav .container { position: relative; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  background: var(--primary-dark);
  color: var(--accent);
}
.nav-menu > li > a .nav-icon { font-size: 16px; }

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow-hover);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 999;
  border-top: 3px solid var(--accent);
}
.nav-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-right: 24px;
}
.sub-menu li a::before {
  content: '←';
  color: var(--accent);
  font-size: 12px;
}

/* Second level dropdown */
.sub-menu .sub-menu {
  top: 0;
  right: 100%;
  border-top: 3px solid var(--primary);
}

/* ===== Categories Bar ===== */
.cats-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats-bar::-webkit-scrollbar { display: none; }
.cats-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.cats-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: var(--bg);
  color: var(--text);
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.cats-list a:hover,
.cats-list a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cats-list a .count {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}
.cats-list a:not(:hover):not(.active) .count {
  background: var(--primary);
  color: #fff;
}

/* ===== Breaking News ===== */
.breaking-news {
  background: var(--accent);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}
.breaking-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}
.breaking-label {
  background: var(--primary);
  color: #fff;
  padding: 3px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.breaking-text {
  flex: 1;
  overflow: hidden;
}
.breaking-text marquee {
  color: #fff;
  font-size: 13px;
}
.breaking-text a { color: #fff; }
.breaking-text a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.site-content { padding: 25px 0; }
.content-area {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 25px;
}

/* ===== Posts Grid ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 5px;
  height: 22px;
  background: var(--accent);
  border-radius: 3px;
  display: inline-block;
}
.section-more {
  font-size: 13px;
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 15px;
}
.section-more:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.posts-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Post Card */
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.post-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.post-card-body { padding: 15px; }
.post-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.post-card-meta span { display: flex; align-items: center; gap: 4px; }
.post-card-meta .meta-cat { color: var(--accent); font-weight: 600; }

/* Featured Post */
.post-card.featured { grid-column: span 2; }
.post-card.featured .post-card-img { aspect-ratio: 21/9; }
.post-card.featured .post-card-title { font-size: 20px; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 22px; }

.widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}

/* Popular Posts Widget */
.popular-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.popular-post:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-img {
  width: 75px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.popular-post-img img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-body { flex: 1; }
.popular-post-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.popular-post-title:hover { color: var(--primary); }
.popular-post-date { font-size: 11px; color: var(--text-muted); }

/* Categories Widget */
.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.cat-item:last-child { border-bottom: none; }
.cat-item a { color: var(--text); display: flex; align-items: center; gap: 6px; }
.cat-item a::before { content: '📂'; font-size: 14px; }
.cat-item a:hover { color: var(--primary); }
.cat-item .cat-count {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Tags Widget */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-cloud a {
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
  transition: var(--transition);
}
.tags-cloud a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Stats Widget */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-box {
  text-align: center;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-label { font-size: 11px; color: var(--text-light); }

/* Social Widget */
.social-links-widget { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.social-link-btn:hover { opacity: 0.9; transform: scale(0.98); color: #fff; }
.social-link-btn.youtube { background: #ff0000; }
.social-link-btn.facebook { background: #1877f2; }
.social-link-btn.twitter { background: #1da1f2; }
.social-link-btn.telegram { background: #0088cc; }
.social-link-btn.whatsapp { background: #25d366; }
.social-link-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ===== Single Post ===== */
.single-post-header { margin-bottom: 25px; }
.single-post-cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 15px;
  font-size: 12px;
  margin-bottom: 12px;
}
.single-post-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 15px;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.single-post-meta span { display: flex; align-items: center; gap: 5px; }
.single-post-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 25px;
  max-height: 450px;
}
.single-post-img img { width: 100%; object-fit: cover; }

/* Post Content */
.entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.entry-content h2 {
  font-size: 22px;
  color: var(--primary);
  margin: 25px 0 12px;
  padding-right: 12px;
  border-right: 4px solid var(--accent);
}
.entry-content h3 {
  font-size: 18px;
  color: var(--text);
  margin: 20px 0 10px;
}
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol {
  margin: 16px 0 16px 20px;
  padding-right: 20px;
}
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.entry-content blockquote {
  border-right: 4px solid var(--primary);
  background: var(--bg);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-light);
  font-style: italic;
}

/* Post Tags */
.post-tags { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tags-title { font-weight: 700; margin-bottom: 10px; color: var(--text-light); font-size: 14px; }

/* Author Box */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 25px;
  margin-top: 30px;
  border: 1px solid var(--border);
  align-items: flex-start;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}
.author-box-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.author-box-info p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* Related Posts */
.related-posts { margin-top: 35px; }

/* ===== Comments ===== */
.comments-area {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-top: 25px;
}
.comments-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 25px;
}
.comment {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.comment-body { flex: 1; }
.comment-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 4px;
}
.comment-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.comment-content { font-size: 14px; line-height: 1.7; }
.comment-reply-link {
  font-size: 12px;
  color: var(--primary);
  margin-top: 8px;
  display: inline-block;
}

/* Comment Form */
.comment-form { margin-top: 30px; }
.comment-form h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  direction: rtl;
  transition: var(--transition);
  background: var(--bg-white);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27,90,132,0.1);
}
.form-group textarea { height: 130px; resize: vertical; }
.submit-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.submit-btn:hover { background: var(--accent); }

/* ===== Page Templates ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 40px 0;
  margin-bottom: 30px;
  text-align: center;
}
.page-header h1 { font-size: 32px; font-weight: 800; }
.page-header .breadcrumb { margin-top: 10px; font-size: 14px; opacity: 0.8; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb a:hover { color: #fff; }

.page-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-white);
  transition: var(--transition);
}
.pagination a:hover, .pagination span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); margin-top: 40px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 45px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img { height: 55px; margin-bottom: 12px; border-radius: 8px; }
.footer-logo .logo-text { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 16px; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); }

.footer-widget h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.footer-links a::before { content: '←'; color: var(--accent); font-size: 12px; }
.footer-links a:hover { color: #fff; padding-right: 4px; }

.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 15px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  border: none;
  z-index: 999;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ===== Hero Slider ===== */
.hero-slider {
  background: var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
}
.slide {
  display: none;
  position: relative;
}
.slide.active { display: block; }
.slide-img { aspect-ratio: 16/7; overflow: hidden; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.slide-body {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 30px 25px 20px;
  color: #fff;
}
.slide-cat {
  background: var(--accent);
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 8px;
}
.slide-title { font-size: 20px; font-weight: 800; line-height: 1.4; }
.slide-title a { color: #fff; }
.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 10px;
  pointer-events: none;
}
.slider-btn {
  background: rgba(255,255,255,0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  pointer-events: all;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--accent); color: #fff; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ===== Notification Bar ===== */
.notification-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}
.notification-bar a { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .content-area { grid-template-columns: 1fr 280px; }
}

@media (max-width: 768px) {
  .content-area { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; gap: 25px; }
  .menu-toggle { display: flex; }

  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-menu { flex-direction: column; gap: 0; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: none;
    border-radius: 0;
    display: none;
    background: rgba(0,0,0,0.2);
  }
  .nav-menu > li.open > .sub-menu { display: block; }
  .sub-menu li a { padding-right: 35px; color: rgba(255,255,255,0.8); }

  .header-inner { flex-wrap: wrap; }
  .header-search { max-width: 100%; width: 100%; order: 3; }
  .top-bar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .single-post-title { font-size: 22px; }
  .social-links-widget { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .posts-grid.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Print ===== */
@media print {
  .site-header, .main-nav, .sidebar, .site-footer, #back-to-top, .breaking-news { display: none; }
  .content-area { grid-template-columns: 1fr; }
}

/* ===== Social Share ===== */
.social-share { margin: 25px 0; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.share-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; display: block; }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 5px; color: #fff; font-size: 13px; font-weight: 600; transition: var(--transition); }
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); color: #fff; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.telegram { background: #0088cc; }
.share-btn.whatsapp { background: #25d366; }

/* ===== Reading Progress ===== */
#reading-progress { transition: width .15s linear; }
