/*
Theme Name: إدارة المحتوى - SW Theme
Theme URI: https://altheme.net
Author: SW Developer
Author URI: https://altheme.net
Description: ثيم ووردبريس احترافي لموقع إدارة المحتوى - صحافة مهنية بعين تراقب الحدث. ثيم متجاوب يدعم RTL بشكل كامل مع تصميم عصري.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sw-theme
Tags: news, rtl-language-support, custom-menu, featured-images, theme-options
*/

/* ═══════════════════════════════════════════════════════════════════════════
   CSS Variables & Base Styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --sw-blue:      #2E3192;
  --sw-blue-dark: #1a1d6e;
  --sw-blue-mid:  #3a3da8;
  --sw-blue-lite: #e8eaf8;
  --sw-red:       #E31B23;
  --sw-red-dark:  #b5141b;
  --sw-gold:      #f5c518;
  --sw-white:     #ffffff;
  --sw-off-white: #f7f8fc;
  --sw-gray-100:  #f0f1f5;
  --sw-gray-200:  #e2e4ee;
  --sw-gray-400:  #9095b0;
  --sw-gray-600:  #555a78;
  --sw-gray-900:  #16183a;
  --sw-font-main: 'Tajawal', 'Cairo', sans-serif;
  --sw-radius:    6px;
  --sw-radius-lg: 12px;
  --sw-radius-full: 50%;
  --sw-shadow-sm: 0 2px 8px rgba(46,49,146,0.10);
  --sw-shadow-md: 0 4px 20px rgba(46,49,146,0.14);
  --sw-shadow-lg: 0 8px 40px rgba(46,49,146,0.18);
  --sw-shadow-xl: 0 16px 60px rgba(46,49,146,0.22);
  --sw-transition: .22s cubic-bezier(.4,0,.2,1);
  --sw-transition-slow: .4s cubic-bezier(.4,0,.2,1);
  --sw-header-height: 72px;
  --sw-topbar-height: 34px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sw-font-main);
  background: var(--sw-off-white);
  color: var(--sw-gray-900);
  direction: rtl;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* Selection */
::selection {
  background: var(--sw-blue);
  color: var(--sw-white);
}

::-moz-selection {
  background: var(--sw-blue);
  color: var(--sw-white);
}

/* Focus Outline (Accessibility) */
:focus-visible {
  outline: 2px solid var(--sw-blue);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--sw-blue);
  outline-offset: 2px;
}

/* Skip to Content (Accessibility) */
.sw-skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--sw-blue);
  color: var(--sw-white);
  padding: 12px 24px;
  font-weight: 700;
  z-index: 10000;
  border-radius: 0 0 0 var(--sw-radius);
  transition: top var(--sw-transition);
}

.sw-skip-link:focus {
  top: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sw-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--sw-gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sw-blue);
}

a { text-decoration: none; color: inherit; transition: color var(--sw-transition); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.3;
  color: var(--sw-gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 700;
}

small {
  font-size: 0.85rem;
}

mark {
  background: var(--sw-gold);
  padding: 0 4px;
  border-radius: 2px;
}

hr {
  border: none;
  height: 1px;
  background: var(--sw-gray-200);
  margin: 2rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--sw-font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--sw-radius);
  cursor: pointer;
  transition: all var(--sw-transition);
  line-height: 1.4;
  white-space: nowrap;
}

.sw-btn-primary {
  background: var(--sw-blue);
  color: var(--sw-white);
}

.sw-btn-primary:hover {
  background: var(--sw-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--sw-shadow-md);
}

.sw-btn-red {
  background: var(--sw-red);
  color: var(--sw-white);
}

.sw-btn-red:hover {
  background: var(--sw-red-dark);
  transform: translateY(-1px);
  box-shadow: var(--sw-shadow-md);
}

.sw-btn-outline {
  background: transparent;
  color: var(--sw-blue);
  border: 2px solid var(--sw-blue);
}

.sw-btn-outline:hover {
  background: var(--sw-blue);
  color: var(--sw-white);
  transform: translateY(-1px);
}

.sw-btn-ghost {
  background: transparent;
  color: var(--sw-gray-600);
  border: 2px solid var(--sw-gray-200);
}

.sw-btn-ghost:hover {
  border-color: var(--sw-blue);
  color: var(--sw-blue);
  background: var(--sw-blue-lite);
}

.sw-btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.sw-btn-lg {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.sw-btn-full {
  width: 100%;
}

.sw-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES & PILLS
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  line-height: 1.4;
  white-space: nowrap;
}

.sw-badge-blue {
  background: var(--sw-blue-lite);
  color: var(--sw-blue);
}

.sw-badge-red {
  background: rgba(227,27,35,0.1);
  color: var(--sw-red);
}

.sw-badge-gold {
  background: rgba(245,197,24,0.15);
  color: #b8960d;
}

.sw-badge-dark {
  background: var(--sw-gray-900);
  color: var(--sw-white);
}

.sw-badge-live {
  background: var(--sw-red);
  color: var(--sw-white);
  position: relative;
  padding-right: 18px;
}

.sw-badge-live::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--sw-white);
  border-radius: 50%;
  animation: sw-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes sw-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-form-group {
  margin-bottom: 16px;
}

.sw-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sw-gray-900);
  margin-bottom: 6px;
}

.sw-form-input,
.sw-form-textarea,
.sw-form-select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--sw-font-main);
  font-size: 0.95rem;
  color: var(--sw-gray-900);
  background: var(--sw-white);
  border: 1.5px solid var(--sw-gray-200);
  border-radius: var(--sw-radius);
  outline: none;
  transition: border-color var(--sw-transition), box-shadow var(--sw-transition);
}

.sw-form-input:focus,
.sw-form-textarea:focus,
.sw-form-select:focus {
  border-color: var(--sw-blue);
  box-shadow: 0 0 0 3px rgba(46,49,146,0.1);
}

.sw-form-input::placeholder,
.sw-form-textarea::placeholder {
  color: var(--sw-gray-400);
}

.sw-form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.sw-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555a78' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
  cursor: pointer;
}

.sw-form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.sw-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sw-blue);
  cursor: pointer;
}

.sw-form-error {
  font-size: 0.8rem;
  color: var(--sw-red);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ALERT / NOTICE BOXES
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-alert {
  padding: 14px 18px;
  border-radius: var(--sw-radius);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.sw-alert-info {
  background: var(--sw-blue-lite);
  color: var(--sw-blue);
  border-right: 4px solid var(--sw-blue);
}

.sw-alert-success {
  background: #e6f9ee;
  color: #0d7a3e;
  border-right: 4px solid #0d7a3e;
}

.sw-alert-warning {
  background: #fff8e6;
  color: #b8860b;
  border-right: 4px solid #b8860b;
}

.sw-alert-error {
  background: #fde8e9;
  color: var(--sw-red-dark);
  border-right: 4px solid var(--sw-red);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-topbar {
  background: var(--sw-blue-dark);
  color: rgba(255,255,255,.75);
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 2px solid var(--sw-red);
  height: var(--sw-topbar-height);
}

.sw-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.sw-topbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sw-topbar-date svg {
  width: 14px;
  height: 14px;
  fill: var(--sw-red);
}

.sw-topbar-social {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sw-topbar-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  transition: background var(--sw-transition);
  font-size: 0.8rem;
  color: #fff;
}

.sw-topbar-social a:hover {
  background: var(--sw-red);
}

.sw-topbar-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-ticker-label {
  background: var(--sw-red);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.sw-ticker-track {
  overflow: hidden;
  flex: 1;
}

.sw-ticker-inner {
  display: flex;
  gap: 40px;
  animation: sw-ticker 35s linear infinite;
  white-space: nowrap;
}

.sw-ticker-inner span {
  flex-shrink: 0;
}

.sw-ticker-inner a {
  color: rgba(255,255,255,.75);
  transition: color var(--sw-transition);
}

.sw-ticker-inner a:hover {
  color: var(--sw-white);
}

@keyframes sw-ticker {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-site-header {
  background: var(--sw-white);
  border-bottom: 3px solid var(--sw-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sw-shadow-md);
  height: var(--sw-header-height);
}

.sw-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.sw-site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sw-site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-logo-clock {
  width: 44px;
  height: 44px;
  position: relative;
}

.sw-logo-clock svg {
  width: 44px;
  height: 44px;
}

.sw-logo-text-ar {
  font-size: 2rem;
  font-weight: 900;
  color: var(--sw-blue);
  line-height: 1;
  letter-spacing: -1px;
}

.sw-logo-text-post {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sw-red);
  letter-spacing: .5px;
}

.sw-logo-stack {
  display: flex;
  flex-direction: column;
}

.sw-logo-url {
  font-size: 0.7rem;
  color: var(--sw-gray-400);
  letter-spacing: .5px;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sw-main-nav > li {
  position: relative;
}

.sw-main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: var(--sw-header-height);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sw-gray-900);
  transition: color var(--sw-transition);
  white-space: nowrap;
  position: relative;
}

.sw-main-nav > li > a:hover,
.sw-main-nav > li > a.sw-active {
  color: var(--sw-blue);
}

.sw-main-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--sw-red);
  transform: scaleX(0);
  transition: transform var(--sw-transition);
  transform-origin: right;
}

.sw-main-nav > li > a:hover::after,
.sw-main-nav > li > a.sw-active::after {
  transform: scaleX(1);
}

.sw-nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--sw-white);
  min-width: 200px;
  border-top: 3px solid var(--sw-red);
  box-shadow: var(--sw-shadow-lg);
  border-radius: 0 0 var(--sw-radius) var(--sw-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--sw-transition);
  z-index: 200;
}

.sw-main-nav > li:hover .sw-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sw-nav-dropdown li:last-child a {
  border-bottom: none;
}

.sw-nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sw-gray-900);
  border-bottom: 1px solid var(--sw-gray-100);
  transition: background var(--sw-transition), color var(--sw-transition), padding-right var(--sw-transition);
}

.sw-nav-dropdown a:hover {
  background: var(--sw-blue-lite);
  color: var(--sw-blue);
  padding-right: 22px;
}

.sw-nav-caret {
  font-size: 0.7rem;
  margin-top: 2px;
}

/* Mega Menu */
.sw-nav-mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--sw-white);
  border-top: 3px solid var(--sw-red);
  box-shadow: var(--sw-shadow-lg);
  border-radius: 0 0 var(--sw-radius) var(--sw-radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--sw-transition);
  z-index: 200;
  padding: 20px;
}

.sw-main-nav > li:hover .sw-nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sw-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sw-mega-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sw-blue);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--sw-red);
}

.sw-mega-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sw-gray-600);
  transition: color var(--sw-transition), padding-right var(--sw-transition);
}

.sw-mega-col a:hover {
  color: var(--sw-blue);
  padding-right: 6px;
}

.sw-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sw-gray-100);
  border-radius: 30px;
  padding: 6px 14px;
  border: 1.5px solid transparent;
  transition: border-color var(--sw-transition);
  flex-shrink: 0;
}

.sw-header-search:focus-within {
  border-color: var(--sw-blue);
  background: var(--sw-white);
}

.sw-header-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--sw-font-main);
  font-size: 0.9rem;
  width: 160px;
  color: var(--sw-gray-900);
}

.sw-header-search input::placeholder {
  color: var(--sw-gray-400);
}

.sw-header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sw-blue);
  display: grid;
  place-items: center;
  padding: 0;
}

.sw-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.sw-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sw-gray-900);
  border-radius: 2px;
  transition: all .3s;
}

.sw-hamburger.sw-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sw-hamburger.sw-active span:nth-child(2) {
  opacity: 0;
}

.sw-hamburger.sw-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER & SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

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

.sw-section {
  padding: 40px 0;
}

.sw-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sw-gray-200);
}

.sw-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--sw-gray-900);
}

.sw-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--sw-red), var(--sw-blue));
  border-radius: 2px;
  flex-shrink: 0;
}

.sw-section-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sw-blue);
  border: 1.5px solid var(--sw-blue);
  border-radius: 20px;
  padding: 4px 14px;
  transition: all var(--sw-transition);
  white-space: nowrap;
}

.sw-section-more:hover {
  background: var(--sw-blue);
  color: var(--sw-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION BACKGROUNDS
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-section-gray {
  background: var(--sw-gray-100);
}

.sw-section-dark {
  background: var(--sw-blue-dark);
}

.sw-section-dark .sw-section-title {
  color: var(--sw-white);
}

.sw-section-dark .sw-section-more {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.7);
}

.sw-section-dark .sw-section-more:hover {
  background: rgba(255,255,255,.1);
}

.sw-section-dark .sw-section-header {
  border-bottom-color: rgba(255,255,255,.1);
}

.sw-section-red-accent {
  border-top: 3px solid var(--sw-red);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRID LAYOUTS (general)
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sw-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Main Layout: Content + Sidebar */
.sw-grid-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

/* Hero Layout */
.sw-grid-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

/* Sub-grid inside main content */
.sw-grid-main-left {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   POST CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Card Base --- */
.sw-card {
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  overflow: hidden;
  box-shadow: var(--sw-shadow-sm);
  transition: all var(--sw-transition);
}

.sw-card:hover {
  box-shadow: var(--sw-shadow-md);
  transform: translateY(-3px);
}

/* --- Card Image Wrapper --- */
.sw-card-img {
  position: relative;
  overflow: hidden;
}

.sw-card-img img {
  transition: transform var(--sw-transition-slow);
}

.sw-card:hover .sw-card-img img {
  transform: scale(1.05);
}

/* Image Overlay Gradient */
.sw-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,24,58,0.85) 0%, rgba(22,24,58,0.2) 50%, transparent 100%);
  z-index: 1;
}

.sw-card-img-overlay-bottom {
  background: linear-gradient(to top, rgba(22,24,58,0.9) 0%, transparent 60%);
}

/* Category Badge on Card */
.sw-card-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.sw-card-cat-bottom {
  top: auto;
  bottom: 12px;
  right: 12px;
}

/* --- Card Body --- */
.sw-card-body {
  padding: 16px;
}

.sw-card-body-compact {
  padding: 12px 14px;
}

/* --- Card Title --- */
.sw-card-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--sw-gray-900);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--sw-transition);
}

.sw-card-title-lg {
  font-size: 1.35rem;
  -webkit-line-clamp: 3;
}

.sw-card-title-sm {
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
}

.sw-card-title-white {
  color: var(--sw-white);
}

a.sw-card-title:hover {
  color: var(--sw-blue);
}

a.sw-card-title-white:hover {
  color: var(--sw-gold);
}

/* --- Card Excerpt --- */
.sw-card-excerpt {
  font-size: 0.88rem;
  color: var(--sw-gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Post Meta --- */
.sw-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--sw-gray-400);
  flex-wrap: wrap;
}

.sw-card-meta-white {
  color: rgba(255,255,255,.65);
}

.sw-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sw-card-meta-item svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

.sw-card-meta-separator {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Card: Standard Vertical --- */
.sw-card-vertical .sw-card-img {
  aspect-ratio: 16 / 10;
}

/* --- Card: Horizontal --- */
.sw-card-horizontal {
  display: flex;
  gap: 14px;
}

.sw-card-horizontal .sw-card-img {
  width: 130px;
  min-width: 130px;
  aspect-ratio: 1 / 1;
  border-radius: var(--sw-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.sw-card-horizontal .sw-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sw-card-horizontal .sw-card-excerpt {
  display: none;
}

/* --- Card: Hero Featured --- */
.sw-card-hero {
  position: relative;
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sw-card-hero .sw-card-img {
  position: absolute;
  inset: 0;
}

.sw-card-hero .sw-card-img img {
  width: 100%;
  height: 100%;
}

.sw-card-hero .sw-card-body {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: var(--sw-white);
}

.sw-card-hero .sw-card-title {
  font-size: 1.6rem;
  color: var(--sw-white);
  -webkit-line-clamp: 3;
  margin-bottom: 10px;
}

.sw-card-hero .sw-card-excerpt {
  color: rgba(255,255,255,.75);
  -webkit-line-clamp: 2;
  margin-bottom: 14px;
}

/* --- Card: Overlay (text on image) --- */
.sw-card-overlay {
  position: relative;
  border-radius: var(--sw-radius);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sw-card-overlay .sw-card-img {
  position: absolute;
  inset: 0;
}

.sw-card-overlay .sw-card-img img {
  width: 100%;
  height: 100%;
}

.sw-card-overlay .sw-card-body {
  position: relative;
  z-index: 2;
  padding: 16px;
  color: var(--sw-white);
}

.sw-card-overlay .sw-card-title {
  color: var(--sw-white);
  font-size: 1rem;
  -webkit-line-clamp: 2;
}

.sw-card-overlay .sw-card-meta {
  color: rgba(255,255,255,.65);
}

/* --- Card: List Item (mini) --- */
.sw-card-mini {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--sw-gray-100);
  transition: background var(--sw-transition);
}

.sw-card-mini:last-child {
  border-bottom: none;
}

.sw-card-mini .sw-card-img {
  width: 80px;
  min-width: 80px;
  aspect-ratio: 1 / 1;
  border-radius: var(--sw-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.sw-card-mini .sw-card-title {
  font-size: 0.88rem;
  -webkit-line-clamp: 2;
  margin-bottom: 6px;
}

.sw-card-mini .sw-card-meta {
  font-size: 0.75rem;
}

/* --- Card: Numbered --- */
.sw-card-numbered {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--sw-gray-100);
  transition: all var(--sw-transition);
  cursor: pointer;
}

.sw-card-numbered:last-child {
  border-bottom: none;
}

.sw-card-numbered-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--sw-gray-200);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  transition: color var(--sw-transition);
}

.sw-card-numbered:hover .sw-card-numbered-num {
  color: var(--sw-blue);
}

.sw-card-numbered:nth-child(1) .sw-card-numbered-num {
  color: var(--sw-red);
}

.sw-card-numbered .sw-card-title {
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
}

/* --- Card: Breaking News / Ticker Card --- */
.sw-breaking-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-sm);
  overflow: hidden;
}

.sw-breaking-card .sw-breaking-icon {
  background: var(--sw-red);
  color: var(--sw-white);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  animation: sw-pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.sw-breaking-card .sw-card-title {
  margin-bottom: 0;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-single-header {
  margin-bottom: 30px;
}

.sw-single-featured {
  position: relative;
  border-radius: var(--sw-radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
}

.sw-single-featured img {
  width: 100%;
  height: 100%;
}

.sw-single-featured .sw-card-cat {
  top: 16px;
  right: 16px;
}

.sw-single-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--sw-gray-900);
  margin-bottom: 16px;
}

.sw-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sw-gray-200);
  margin-bottom: 24px;
}

.sw-single-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--sw-gray-600);
}

.sw-single-meta-item svg {
  width: 16px;
  height: 16px;
  fill: var(--sw-gray-400);
}

.sw-single-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--sw-gray-200);
}

.sw-single-author-name {
  font-weight: 700;
  color: var(--sw-blue);
}

/* Share Buttons */
.sw-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sw-gray-200);
}

.sw-share-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sw-gray-600);
  margin-left: 8px;
}

.sw-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  color: var(--sw-white);
  font-size: 0.9rem;
  transition: all var(--sw-transition);
}

.sw-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sw-shadow-sm);
}

.sw-share-facebook { background: #1877f2; }
.sw-share-twitter { background: #1da1f2; }
.sw-share-whatsapp { background: #25d366; }
.sw-share-telegram { background: #0088cc; }
.sw-share-linkedin { background: #0077b5; }
.sw-share-copy { background: var(--sw-gray-600); }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sw-sidebar-widget {
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.sw-widget-header {
  background: var(--sw-blue);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-widget-header::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--sw-red);
  border-radius: 2px;
  flex-shrink: 0;
}

.sw-widget-header-red {
  background: var(--sw-red);
}

.sw-widget-header-dark {
  background: var(--sw-gray-900);
}

.sw-widget-body {
  padding: 14px;
}

/* Most Read Widget */
.sw-most-read-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--sw-gray-100);
  cursor: pointer;
  transition: background var(--sw-transition);
}

.sw-most-read-item:last-child {
  border-bottom: none;
}

.sw-most-read-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--sw-gray-200);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  transition: color var(--sw-transition);
}

.sw-most-read-item:hover .sw-most-read-num {
  color: var(--sw-blue);
}

.sw-most-read-item:nth-child(1) .sw-most-read-num {
  color: var(--sw-red);
}

.sw-most-read-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sw-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--sw-transition);
}

.sw-most-read-item:hover .sw-most-read-title {
  color: var(--sw-blue);
}

/* Tag Cloud Widget */
.sw-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.sw-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--sw-gray-200);
  color: var(--sw-gray-600);
  transition: all var(--sw-transition);
  cursor: pointer;
}

.sw-tag:hover {
  border-color: var(--sw-blue);
  color: var(--sw-blue);
  background: var(--sw-blue-lite);
}

/* Recent Posts Widget with Thumb */
.sw-widget-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--sw-gray-100);
}

.sw-widget-post:last-child {
  border-bottom: none;
}

.sw-widget-post-img {
  width: 70px;
  min-width: 70px;
  aspect-ratio: 1 / 1;
  border-radius: var(--sw-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.sw-widget-post-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sw-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--sw-transition);
}

.sw-widget-post:hover .sw-widget-post-title {
  color: var(--sw-blue);
}

.sw-widget-post-date {
  font-size: 0.75rem;
  color: var(--sw-gray-400);
  margin-top: 4px;
}

/* Categories Widget */
.sw-widget-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--sw-gray-100);
  transition: all var(--sw-transition);
}

.sw-widget-category:last-child {
  border-bottom: none;
}

.sw-widget-category-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sw-gray-900);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--sw-transition);
}

.sw-widget-category-name::before {
  content: '›';
  color: var(--sw-red);
  font-weight: 900;
}

.sw-widget-category:hover .sw-widget-category-name {
  color: var(--sw-blue);
}

.sw-widget-category-count {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--sw-gray-100);
  color: var(--sw-gray-600);
  padding: 2px 10px;
  border-radius: 20px;
  min-width: 30px;
  text-align: center;
}

/* Social Widget */
.sw-widget-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}

.sw-widget-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: var(--sw-radius);
  color: var(--sw-white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--sw-transition);
}

.sw-widget-social a:hover {
  transform: translateY(-2px);
  box-shadow: var(--sw-shadow-md);
}

.sw-widget-social-fb { background: #1877f2; }
.sw-widget-social-tw { background: #1da1f2; }
.sw-widget-social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sw-widget-social-yt { background: #ff0000; }
.sw-widget-social-tg { background: #0088cc; }
.sw-widget-social-wa { background: #25d366; }

/* Newsletter Widget */
.sw-widget-newsletter {
  padding: 20px;
  text-align: center;
}

.sw-widget-newsletter-icon {
  width: 56px;
  height: 56px;
  background: var(--sw-blue-lite);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 1.5rem;
  color: var(--sw-blue);
}

.sw-widget-newsletter-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sw-gray-900);
  margin-bottom: 6px;
}

.sw-widget-newsletter-desc {
  font-size: 0.85rem;
  color: var(--sw-gray-600);
  margin-bottom: 14px;
  line-height: 1.6;
}

.sw-widget-newsletter-form {
  display: flex;
  gap: 6px;
}

.sw-widget-newsletter-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--sw-gray-200);
  border-radius: var(--sw-radius);
  font-family: var(--sw-font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--sw-transition);
}

.sw-widget-newsletter-form input:focus {
  border-color: var(--sw-blue);
}

.sw-widget-newsletter-form button {
  padding: 10px 16px;
  background: var(--sw-red);
  color: var(--sw-white);
  border: none;
  border-radius: var(--sw-radius);
  font-family: var(--sw-font-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--sw-transition);
}

.sw-widget-newsletter-form button:hover {
  background: var(--sw-red-dark);
}

/* Calendar Widget */
.sw-widget-calendar {
  padding: 14px;
}

.sw-widget-calendar table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.85rem;
}

.sw-widget-calendar th {
  padding: 6px 0;
  font-weight: 700;
  color: var(--sw-blue);
  border-bottom: 1px solid var(--sw-gray-200);
}

.sw-widget-calendar td {
  padding: 5px 0;
  color: var(--sw-gray-600);
}

.sw-widget-calendar td a {
  color: var(--sw-blue);
  font-weight: 700;
}

.sw-widget-calendar caption {
  font-weight: 800;
  color: var(--sw-gray-900);
  margin-bottom: 10px;
  padding-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AD BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-ad-banner {
  background: linear-gradient(135deg, var(--sw-blue) 0%, var(--sw-blue-dark) 100%);
  border-radius: var(--sw-radius);
  padding: 20px;
  text-align: center;
  color: #fff;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.sw-ad-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  pointer-events: none;
}

.sw-ad-banner-label {
  font-size: 0.75rem;
  opacity: .6;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sw-ad-banner-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.sw-ad-banner-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 18px;
  background: var(--sw-red);
  color: var(--sw-white);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--sw-transition);
}

.sw-ad-banner-link:hover {
  background: var(--sw-red-dark);
}

.sw-ad-banner-horizontal {
  margin: 24px 0;
  padding: 16px;
}

.sw-ad-banner-sidebar {
  margin-bottom: 24px;
  padding: 14px;
}

.sw-ad-banner img {
  border-radius: var(--sw-radius);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-site-footer {
  background: var(--sw-gray-900);
  color: rgba(255,255,255,.7);
}

.sw-footer-top {
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 48px 0 32px;
}

.sw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.sw-footer-brand .sw-logo-text-ar {
  color: var(--sw-white);
}

.sw-footer-brand .sw-logo-text-post {
  color: var(--sw-red);
}

.sw-footer-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 16px 0;
  color: rgba(255,255,255,.55);
}

.sw-footer-social {
  display: flex;
  gap: 8px;
}

.sw-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  transition: all var(--sw-transition);
}

.sw-footer-social a:hover {
  background: var(--sw-red);
  border-color: var(--sw-red);
  color: #fff;
  transform: translateY(-2px);
}

.sw-footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-footer-col-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

.sw-footer-links li {
  margin-bottom: 10px;
}

.sw-footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  transition: color var(--sw-transition), padding-right var(--sw-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw-footer-links a::before {
  content: '›';
  color: var(--sw-red);
  font-weight: 900;
  transition: transform var(--sw-transition);
}

.sw-footer-links a:hover {
  color: var(--sw-white);
  padding-right: 4px;
}

.sw-footer-links a:hover::before {
  transform: translateX(-3px);
}

/* Footer Newsletter */
.sw-footer-newsletter {
  margin-top: 16px;
}

.sw-footer-newsletter-form {
  display: flex;
  gap: 6px;
}

.sw-footer-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--sw-radius);
  color: var(--sw-white);
  font-family: var(--sw-font-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--sw-transition);
}

.sw-footer-newsletter-form input::placeholder {
  color: rgba(255,255,255,.4);
}

.sw-footer-newsletter-form input:focus {
  border-color: var(--sw-red);
}

.sw-footer-newsletter-form button {
  padding: 10px 18px;
  background: var(--sw-red);
  color: var(--sw-white);
  border: none;
  border-radius: var(--sw-radius);
  font-family: var(--sw-font-main);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--sw-transition);
}

.sw-footer-newsletter-form button:hover {
  background: var(--sw-red-dark);
}

/* Footer Bottom */
.sw-footer-bottom {
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.35);
}

.sw-footer-bottom a {
  color: var(--sw-red);
  transition: color var(--sw-transition);
}

.sw-footer-bottom a:hover {
  color: var(--sw-white);
}

.sw-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sw-footer-bottom-links {
  display: flex;
  gap: 16px;
}

.sw-footer-bottom-links a {
  color: rgba(255,255,255,.45);
  font-size: 0.82rem;
}

.sw-footer-bottom-links a:hover {
  color: var(--sw-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sw-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--sw-shadow-md);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: all var(--sw-transition);
  opacity: 0;
  visibility: hidden;
  z-index: 90;
}

.sw-back-to-top.sw-visible {
  opacity: 1;
  visibility: visible;
}

.sw-back-to-top:hover {
  background: var(--sw-red);
  transform: translateY(-3px);
  box-shadow: var(--sw-shadow-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-breadcrumb-bar {
  background: var(--sw-gray-100);
  border-bottom: 1px solid var(--sw-gray-200);
  padding: 8px 0;
}

.sw-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--sw-gray-400);
  flex-wrap: wrap;
}

.sw-breadcrumb a {
  color: var(--sw-blue);
  transition: color var(--sw-transition);
}

.sw-breadcrumb a:hover {
  color: var(--sw-red);
}

.sw-breadcrumb span {
  color: var(--sw-gray-400);
}

.sw-breadcrumb-separator {
  color: var(--sw-gray-200);
  font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.sw-reveal.sw-visible {
  opacity: 1;
  transform: translateY(0);
}

.sw-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.sw-reveal-right.sw-visible {
  opacity: 1;
  transform: translateX(0);
}

.sw-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s ease, transform .6s ease;
}

.sw-reveal-left.sw-visible {
  opacity: 1;
  transform: translateX(0);
}

.sw-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity .6s ease, transform .6s ease;
}

.sw-reveal-scale.sw-visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PLACEHOLDER IMAGES
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sw-blue-lite) 0%, var(--sw-gray-200) 100%);
  display: grid;
  place-items: center;
}

.sw-img-ph-dark {
  background: linear-gradient(135deg, var(--sw-blue-mid) 0%, var(--sw-blue-dark) 100%);
}

.sw-img-ph svg {
  width: 40px;
  height: 40px;
  fill: var(--sw-gray-400);
  opacity: .4;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-skeleton {
  background: linear-gradient(90deg, var(--sw-gray-100) 25%, var(--sw-gray-200) 50%, var(--sw-gray-100) 75%);
  background-size: 200% 100%;
  animation: sw-skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--sw-radius);
}

.sw-skeleton-text {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.sw-skeleton-text-short {
  width: 60%;
}

.sw-skeleton-title {
  height: 20px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.sw-skeleton-img {
  aspect-ratio: 16 / 10;
  border-radius: var(--sw-radius);
}

.sw-skeleton-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

@keyframes sw-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORDPRESS SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--sw-gray-900);
}

.sw-entry-content p {
  margin-bottom: 1.5rem;
}

.sw-entry-content h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sw-gray-200);
}

.sw-entry-content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
  font-weight: 800;
}

.sw-entry-content h4 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
  font-weight: 700;
}

.sw-entry-content h5,
.sw-entry-content h6 {
  margin: 1.2rem 0 0.5rem;
  font-weight: 700;
}

.sw-entry-content ul,
.sw-entry-content ol {
  margin: 1rem 0 1.5rem;
  padding-right: 1.5rem;
}

.sw-entry-content ul {
  list-style: disc;
}

.sw-entry-content ol {
  list-style: decimal;
}

.sw-entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.sw-entry-content li::marker {
  color: var(--sw-blue);
}

.sw-entry-content blockquote {
  border-right: 4px solid var(--sw-red);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--sw-gray-100);
  border-radius: 0 var(--sw-radius) var(--sw-radius) 0;
  font-style: italic;
  color: var(--sw-gray-600);
}

.sw-entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.sw-entry-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  color: var(--sw-blue);
}

.sw-entry-content img {
  border-radius: var(--sw-radius);
  margin: 1.5rem 0;
  height: auto;
}

.sw-entry-content img.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
  max-width: 50%;
}

.sw-entry-content img.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 50%;
}

.sw-entry-content img.aligncenter {
  margin: 1.5rem auto;
  display: block;
}

.sw-entry-content .wp-caption {
  max-width: 100%;
  margin: 1.5rem 0;
}

.sw-entry-content .wp-caption-text {
  font-size: 0.85rem;
  color: var(--sw-gray-400);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.sw-entry-content a {
  color: var(--sw-blue);
  border-bottom: 1px dashed var(--sw-blue);
  transition: all var(--sw-transition);
}

.sw-entry-content a:hover {
  color: var(--sw-red);
  border-bottom-color: var(--sw-red);
}

/* Tables */
.sw-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.sw-entry-content thead {
  background: var(--sw-blue);
  color: var(--sw-white);
}

.sw-entry-content th {
  padding: 12px 14px;
  font-weight: 700;
  text-align: right;
  border: 1px solid var(--sw-gray-200);
}

.sw-entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--sw-gray-200);
}

.sw-entry-content tbody tr:nth-child(even) {
  background: var(--sw-gray-100);
}

.sw-entry-content tbody tr:hover {
  background: var(--sw-blue-lite);
}

/* Code & Pre */
.sw-entry-content code {
  background: var(--sw-gray-100);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--sw-red-dark);
  direction: ltr;
}

.sw-entry-content pre {
  background: var(--sw-gray-900);
  color: #e0e0e0;
  padding: 20px;
  border-radius: var(--sw-radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  direction: ltr;
  text-align: left;
  line-height: 1.6;
  font-size: 0.9rem;
}

.sw-entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Video Embed Responsive */
.sw-entry-content .wp-video,
.sw-entry-content .video-wrapper,
.sw-entry-content iframe[src*="youtube"],
.sw-entry-content iframe[src*="vimeo"],
.sw-entry-content iframe[src*="facebook"] {
  width: 100%;
  max-width: 100%;
  border-radius: var(--sw-radius);
  margin: 1.5rem 0;
}

.sw-video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: var(--sw-radius);
}

.sw-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* WordPress Gallery */
.sw-entry-content .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 1.5rem 0;
}

.sw-entry-content .gallery img {
  border-radius: var(--sw-radius);
  margin: 0;
  transition: transform var(--sw-transition);
}

.sw-entry-content .gallery img:hover {
  transform: scale(1.03);
}

.sw-entry-content .gallery-caption {
  font-size: 0.82rem;
  color: var(--sw-gray-400);
  text-align: center;
  margin-top: 6px;
}

/* WordPress Align Classes */
.sw-entry-content .alignleft {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.sw-entry-content .alignright {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.sw-entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sw-entry-content .alignwide {
  max-width: 100%;
  margin-left: -40px;
  margin-right: -40px;
}

.sw-entry-content .alignfull {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Separator */
.sw-entry-content hr {
  border: none;
  height: 1px;
  background: var(--sw-gray-200);
  margin: 2rem 0;
}

.sw-entry-content .wp-block-separator {
  border: none;
  height: 2px;
  background: linear-gradient(to left, transparent, var(--sw-gray-400), transparent);
  margin: 2.5rem 0;
}

/* Pullquote */
.sw-entry-content .wp-block-pullquote {
  border-right: 4px solid var(--sw-red);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--sw-gray-100);
  border-radius: 0 var(--sw-radius) var(--sw-radius) 0;
}

.sw-entry-content .wp-block-pullquote blockquote {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 1.3rem;
}

.sw-entry-content .wp-block-pullquote cite {
  color: var(--sw-blue);
  font-weight: 700;
}

/* Post Navigation */
.sw-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding-top: 20px;
  border-top: 1px solid var(--sw-gray-200);
}

.sw-post-nav-link {
  padding: 16px;
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-sm);
  transition: all var(--sw-transition);
  display: block;
}

.sw-post-nav-link:hover {
  box-shadow: var(--sw-shadow-md);
  transform: translateY(-2px);
}

.sw-post-nav-label {
  font-size: 0.8rem;
  color: var(--sw-gray-400);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sw-post-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sw-gray-900);
  line-height: 1.4;
}

.sw-post-nav-link:hover .sw-post-nav-title {
  color: var(--sw-blue);
}

.sw-post-nav-next {
  text-align: left;
}

/* Author Box */
.sw-author-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--sw-gray-100);
  border-radius: var(--sw-radius-lg);
  margin: 30px 0;
  align-items: flex-start;
}

.sw-author-box-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--sw-white);
  box-shadow: var(--sw-shadow-sm);
}

.sw-author-box-info {
  flex: 1;
}

.sw-author-box-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sw-blue);
  margin-bottom: 4px;
}

.sw-author-box-bio {
  font-size: 0.9rem;
  color: var(--sw-gray-600);
  line-height: 1.7;
}

/* Related Posts */
.sw-related-posts {
  margin: 40px 0;
}

.sw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tags in Post */
.sw-post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--sw-gray-200);
}

.sw-post-tags-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sw-gray-900);
}

/* Comments */
.sw-comments-area {
  margin: 40px 0;
  padding: 24px;
  background: var(--sw-white);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow-sm);
}

.sw-comments-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sw-gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-comments-count {
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--sw-blue-lite);
  color: var(--sw-blue);
  padding: 2px 10px;
  border-radius: 20px;
}

.sw-comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sw-comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--sw-gray-100);
  display: flex;
  gap: 14px;
}

.sw-comment:last-child {
  border-bottom: none;
}

.sw-comment-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.sw-comment-content {
  flex: 1;
}

.sw-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sw-comment-author {
  font-weight: 700;
  color: var(--sw-blue);
  font-size: 0.95rem;
}

.sw-comment-meta {
  font-size: 0.82rem;
  color: var(--sw-gray-400);
}

.sw-comment-text {
  font-size: 0.95rem;
  color: var(--sw-gray-600);
  line-height: 1.7;
}

.sw-comment-text p {
  margin-bottom: 0.5rem;
}

.sw-comment-reply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sw-blue);
  margin-top: 8px;
  transition: color var(--sw-transition);
}

.sw-comment-reply:hover {
  color: var(--sw-red);
}

/* Comment Children (Nested) */
.sw-comment .children {
  list-style: none;
  padding-right: 30px;
  margin-top: 16px;
  border-right: 2px solid var(--sw-gray-100);
}

/* Comment Form */
.sw-comment-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--sw-gray-200);
}

.sw-comment-form-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.sw-comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sw-comment-form .sw-form-textarea {
  min-height: 140px;
}

.sw-comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--sw-gray-600);
  margin-bottom: 14px;
}

.sw-comment-form .comment-form-cookies-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--sw-blue);
}

.sw-comment-notes {
  font-size: 0.85rem;
  color: var(--sw-gray-400);
  margin-bottom: 14px;
  font-style: italic;
}

.sw-logged-in-as {
  font-size: 0.88rem;
  color: var(--sw-gray-600);
  margin-bottom: 14px;
}

.sw-logged-in-as a {
  color: var(--sw-blue);
  font-weight: 700;
}

/* Pagination */
.sw-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.sw-pagination a,
.sw-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--sw-radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--sw-transition);
}

.sw-pagination a {
  background: var(--sw-white);
  color: var(--sw-gray-900);
  box-shadow: var(--sw-shadow-sm);
}

.sw-pagination a:hover {
  background: var(--sw-blue);
  color: #fff;
  transform: translateY(-1px);
}

.sw-pagination .current {
  background: var(--sw-red);
  color: #fff;
  box-shadow: var(--sw-shadow-sm);
}

.sw-pagination .dots {
  background: none;
  box-shadow: none;
  color: var(--sw-gray-400);
  cursor: default;
}

.sw-pagination .prev,
.sw-pagination .next {
  font-weight: 700;
}

/* Load More Button */
.sw-load-more {
  text-align: center;
  margin: 30px 0;
}

/* Search Form */
.sw-search-form {
  display: flex;
  gap: 8px;
}

.sw-search-form input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--sw-gray-200);
  border-radius: 30px;
  font-family: var(--sw-font-main);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--sw-transition), box-shadow var(--sw-transition);
}

.sw-search-form input[type="search"]:focus {
  border-color: var(--sw-blue);
  box-shadow: 0 0 0 3px rgba(46,49,146,0.1);
}

.sw-search-form button {
  padding: 12px 24px;
  background: var(--sw-blue);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: var(--sw-font-main);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--sw-transition);
}

.sw-search-form button:hover {
  background: var(--sw-red);
}

/* 404 Page */
.sw-404 {
  text-align: center;
  padding: 80px 20px;
}

.sw-404-title {
  font-size: 8rem;
  font-weight: 900;
  color: var(--sw-blue);
  line-height: 1;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.sw-404-title::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: -10px;
  right: -10px;
  height: 8px;
  background: var(--sw-red);
  opacity: .3;
  border-radius: 4px;
}

.sw-404-text {
  font-size: 1.7rem;
  color: var(--sw-gray-600);
  margin-bottom: 12px;
  font-weight: 700;
}

.sw-404-desc {
  font-size: 1rem;
  color: var(--sw-gray-400);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.sw-404-search {
  max-width: 480px;
  margin: 0 auto 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORDPRESS WIDGET DEFAULTS OVERRIDES
   ═══════════════════════════════════════════════════════════════════════════ */

.widget {
  margin-bottom: 24px;
}

.widgettitle,
.widget-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sw-gray-200);
  color: var(--sw-gray-900);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--sw-gray-100);
  font-size: 0.9rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--sw-gray-600);
  transition: color var(--sw-transition);
}

.widget ul li a:hover {
  color: var(--sw-blue);
}

.widget select {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--sw-gray-200);
  border-radius: var(--sw-radius);
  font-family: var(--sw-font-main);
  background: var(--sw-white);
}

.widget .textwidget {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--sw-gray-600);
}

.widget .search-form {
  display: flex;
  gap: 6px;
}

.widget .search-form .search-field {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--sw-gray-200);
  border-radius: var(--sw-radius);
  font-family: var(--sw-font-main);
  font-size: 0.9rem;
  outline: none;
}

.widget .search-form .search-submit {
  padding: 8px 16px;
  background: var(--sw-blue);
  color: var(--sw-white);
  border: none;
  border-radius: var(--sw-radius);
  font-family: var(--sw-font-main);
  font-weight: 700;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .sw-grid-hero {
    grid-template-columns: 1fr;
  }

  .sw-card-hero {
    min-height: 320px;
  }

  .sw-mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1100px) {
  .sw-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .sw-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-single-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 860px) {
  .sw-grid-main {
    grid-template-columns: 1fr;
  }

  .sw-grid-main-left {
    grid-template-columns: repeat(2, 1fr);
  }

  .sw-main-nav {
    display: none;
  }

  .sw-hamburger {
    display: flex;
  }

  .sw-header-search {
    display: none;
  }

  .sw-card-hero {
    min-height: 280px;
  }

  .sw-card-hero .sw-card-title {
    font-size: 1.3rem;
  }

  .sw-comment-form-row {
    grid-template-columns: 1fr;
  }

  .sw-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .sw-grid-4,
  .sw-grid-3,
  .sw-grid-2,
  .sw-grid-main-left {
    grid-template-columns: 1fr;
  }

  .sw-footer-grid {
    grid-template-columns: 1fr;
  }

  .sw-topbar-social {
    display: none;
  }

  .sw-topbar-ticker {
    display: none;
  }

  .sw-post-navigation {
    grid-template-columns: 1fr;
  }

  .sw-single-title {
    font-size: 1.4rem;
  }

  .sw-single-header {
    margin-bottom: 20px;
  }

  .sw-single-meta {
    gap: 10px;
    font-size: 0.82rem;
  }

  .sw-related-grid {
    grid-template-columns: 1fr;
  }

  .sw-section {
    padding: 28px 0;
  }

  .sw-section-header {
    margin-bottom: 18px;
  }

  .sw-section-title {
    font-size: 1.15rem;
  }

  .sw-404-title {
    font-size: 5rem;
  }

  .sw-404-text {
    font-size: 1.3rem;
  }

  .sw-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sw-share-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .sw-share-label {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .sw-entry-content h2 {
    font-size: 1.4rem;
  }

  .sw-entry-content h3 {
    font-size: 1.2rem;
  }

  .sw-entry-content .alignwide {
    margin-left: 0;
    margin-right: 0;
  }

  .sw-back-to-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .sw-comment .children {
    padding-right: 16px;
  }

  .sw-widget-social {
    grid-template-columns: 1fr;
  }

  .sw-search-form {
    flex-direction: column;
  }

  .sw-widget-newsletter-form {
    flex-direction: column;
  }

  .sw-footer-newsletter-form {
    flex-direction: column;
  }
}

/* Mobile Navigation */
.sw-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: var(--sw-white);
  z-index: 1000;
  transition: right var(--sw-transition);
  box-shadow: var(--sw-shadow-xl);
  overflow-y: auto;
}

.sw-mobile-nav.sw-open {
  right: 0;
}

.sw-mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--sw-transition);
  backdrop-filter: blur(2px);
}

.sw-mobile-nav-overlay.sw-open {
  opacity: 1;
  visibility: visible;
}

.sw-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--sw-gray-200);
  background: var(--sw-off-white);
}

.sw-mobile-nav-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--sw-gray-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--sw-transition);
  color: var(--sw-gray-900);
}

.sw-mobile-nav-close:hover {
  background: var(--sw-red);
  color: #fff;
}

.sw-mobile-nav-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--sw-gray-100);
}

.sw-mobile-nav-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--sw-gray-200);
  border-radius: 30px;
  font-family: var(--sw-font-main);
  font-size: 0.9rem;
  outline: none;
}

.sw-mobile-nav-search input:focus {
  border-color: var(--sw-blue);
}

.sw-mobile-nav-menu {
  padding: 8px 0;
}

.sw-mobile-nav-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sw-gray-900);
  border-bottom: 1px solid var(--sw-gray-100);
  transition: all var(--sw-transition);
}

.sw-mobile-nav-menu > li > a:hover,
.sw-mobile-nav-menu > li > a.sw-active {
  background: var(--sw-blue-lite);
  color: var(--sw-blue);
}

.sw-mobile-nav-menu .sw-sub-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--sw-gray-100);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--sw-transition);
  flex-shrink: 0;
}

.sw-mobile-nav-menu .sw-sub-toggle:hover {
  background: var(--sw-blue);
  color: var(--sw-white);
}

.sw-mobile-nav-menu .sw-sub-toggle.sw-rotated {
  transform: rotate(180deg);
}

.sw-mobile-nav-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: var(--sw-gray-100);
}

.sw-mobile-nav-menu .sub-menu.sw-open {
  max-height: 500px;
}

.sw-mobile-nav-menu .sub-menu a {
  display: block;
  padding: 10px 20px 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sw-gray-600);
  border-bottom: 1px solid var(--sw-gray-200);
  transition: all var(--sw-transition);
}

.sw-mobile-nav-menu .sub-menu a:hover {
  background: var(--sw-blue-lite);
  color: var(--sw-blue);
}

.sw-mobile-nav-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--sw-gray-200);
}

.sw-mobile-nav-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.sw-mobile-nav-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sw-gray-100);
  display: grid;
  place-items: center;
  color: var(--sw-gray-600);
  font-size: 0.9rem;
  transition: all var(--sw-transition);
}

.sw-mobile-nav-social a:hover {
  background: var(--sw-red);
  color: var(--sw-white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media print {
  .sw-topbar,
  .sw-site-header,
  .sw-back-to-top,
  .sw-sidebar,
  .sw-share-bar,
  .sw-post-tags,
  .sw-post-navigation,
  .sw-comments-area,
  .sw-comment-form,
  .sw-related-posts,
  .sw-ad-banner,
  .sw-mobile-nav,
  .sw-mobile-nav-overlay,
  .sw-footer-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
    direction: rtl;
  }

  .sw-entry-content {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .sw-entry-content a {
    color: #000;
    border-bottom: none;
    text-decoration: underline;
  }

  .sw-entry-content img {
    max-width: 100%;
    height: auto;
  }

  .sw-breadcrumb-bar {
    display: block !important;
    border-bottom: 1px solid #ccc;
  }

  .sw-footer-bottom {
    display: block !important;
    font-size: 10pt;
    color: #666;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.sw-text-center { text-align: center; }
.sw-text-left { text-align: left; }
.sw-text-right { text-align: right; }

.sw-mt-0 { margin-top: 0; }
.sw-mt-1 { margin-top: 8px; }
.sw-mt-2 { margin-top: 16px; }
.sw-mt-3 { margin-top: 24px; }
.sw-mt-4 { margin-top: 32px; }

.sw-mb-0 { margin-bottom: 0; }
.sw-mb-1 { margin-bottom: 8px; }
.sw-mb-2 { margin-bottom: 16px; }
.sw-mb-3 { margin-bottom: 24px; }
.sw-mb-4 { margin-bottom: 32px; }

.sw-p-0 { padding: 0; }
.sw-p-1 { padding: 8px; }
.sw-p-2 { padding: 16px; }
.sw-p-3 { padding: 24px; }

.sw-d-none { display: none; }
.sw-d-block { display: block; }
.sw-d-flex { display: flex; }
.sw-d-grid { display: grid; }

.sw-gap-1 { gap: 8px; }
.sw-gap-2 { gap: 16px; }
.sw-gap-3 { gap: 24px; }

.sw-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sw-rounded { border-radius: var(--sw-radius); }
.sw-rounded-lg { border-radius: var(--sw-radius-lg); }
.sw-rounded-full { border-radius: var(--sw-radius-full); }

.sw-shadow-sm { box-shadow: var(--sw-shadow-sm); }
.sw-shadow-md { box-shadow: var(--sw-shadow-md); }
.sw-shadow-lg { box-shadow: var(--sw-shadow-lg); }

.sw-overflow-hidden { overflow: hidden; }
.sw-relative { position: relative; }

.sw-w-full { width: 100%; }

.sw-text-blue { color: var(--sw-blue); }
.sw-text-red { color: var(--sw-red); }
.sw-text-gold { color: var(--sw-gold); }
.sw-text-white { color: var(--sw-white); }
.sw-text-muted { color: var(--sw-gray-400); }

.sw-bg-blue { background: var(--sw-blue); }
.sw-bg-red { background: var(--sw-red); }
.sw-bg-white { background: var(--sw-white); }
.sw-bg-gray { background: var(--sw-gray-100); }
.sw-bg-dark { background: var(--sw-gray-900); }

.sw-fw-400 { font-weight: 400; }
.sw-fw-700 { font-weight: 700; }
.sw-fw-800 { font-weight: 800; }
.sw-fw-900 { font-weight: 900; }

.sw-fs-sm { font-size: 0.85rem; }
.sw-fs-md { font-size: 1rem; }
.sw-fs-lg { font-size: 1.2rem; }
.sw-fs-xl { font-size: 1.5rem; }

/* Screen reader only */
.sw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* No scrollbar utility */
.sw-no-scrollbar::-webkit-scrollbar {
  display: none;
}

.sw-no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Truncate */
.sw-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sw-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive visibility */
@media (max-width: 860px) {
  .sw-hide-tablet { display: none !important; }
  .sw-show-tablet { display: block !important; }
}

@media (max-width: 600px) {
  .sw-hide-mobile { display: none !important; }
  .sw-show-mobile { display: block !important; }
}

@media (min-width: 861px) {
  .sw-show-tablet { display: none !important; }
}

@media (min-width: 601px) {
  .sw-show-mobile { display: none !important; }
}


/* =========================
   Post Header
========================= */
.sw-post-header {
    margin-bottom: 20px;
}

/* =========================
   Category Badge
========================= */
.sw-slide-cat {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.sw-slide-cat:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* =========================
   Title
========================= */
.sw-post-title {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 700;
    color: #111;
    margin: 10px 0;
}

/* =========================
   Meta Top
========================= */
.sw-post-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* =========================
   Author Inline
========================= */
.sw-author-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-author-inline img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sw-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* =========================
   Meta Inline
========================= */
.sw-meta-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.sw-meta-inline span {
    font-size: 13px;
    color: #777;
    margin-left: 12px;
    white-space: nowrap;
}

/* =========================
   Featured Image
========================= */
.sw-post-thumbnail {
    margin: 20px 0;
}

.sw-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* =========================
   Content
========================= */
.sw-entry-content {
    font-size: 17px;
    line-height: 1.9;
    color: #222;
}

.sw-entry-content p {
    margin-bottom: 15px;
}

/* =========================
   Tags
========================= */
.sw-post-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sw-tag {
    background: #f1f1f1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
    transition: all 0.25s ease;
}

.sw-tag:hover {
    background: #0073aa;
    color: #fff;
}

/* =========================
   Author Box (Bottom)
========================= */
.sw-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
}

.sw-author-box img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.sw-author-info {
    display: flex;
    flex-direction: column;
}

.sw-author-title {
    font-size: 13px;
    color: #888;
}

.sw-author-desc {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

/* =========================
   Navigation
========================= */
.sw-post-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.sw-post-nav-link {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    background: #f7f7f7;
    text-decoration: none;
    color: #222;
    transition: 0.3s;
}

.sw-post-nav-link:hover {
    background: #0073aa;
    color: #fff;
}

.sw-post-nav-title {
    font-size: 14px;
    margin-top: 5px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {

    .sw-post-title {
        font-size: 22px;
    }

    .sw-post-meta-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .sw-meta-inline span {
        margin-left: 0;
        margin-right: 10px;
    }

    .sw-post-navigation {
        flex-direction: column;
    }
}