/*
Theme Name: Sada News
Author: Sada Themes
Description: قالب ووردبريس عربي إخباري سريع ومتجاوب، مزود بسلايدر تلقائي ومناطق إعلانات وصفحة رئيسية ديناميكية.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sada-news
Tags: news, blog, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --sada-primary: #6c2cf3;
  --sada-primary-dark: #4d16c9;
  --sada-accent: #ff315b;
  --sada-ink: #14151a;
  --sada-muted: #70737d;
  --sada-line: #e8e9ee;
  --sada-surface: #ffffff;
  --sada-soft: #f5f6f8;
  --sada-dark: #15171c;
  --sada-radius: 10px;
  --sada-shadow: 0 8px 30px rgba(19, 20, 29, .08);
  --sada-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sada-soft);
  color: var(--sada-ink);
  font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--sada-primary); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 32px), var(--sada-container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; right: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: #111; }

/* Top bar and masthead */
.topbar { background: linear-gradient(110deg, var(--sada-primary-dark), var(--sada-primary)); color: #fff; font-size: 12px; }
.topbar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 15px; opacity: .93; }
.topbar__links > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 13px; }
.topbar__date { opacity: .82; white-space: nowrap; }
.masthead { background: #fff; }
.masthead__inner { min-height: 104px; display: grid; grid-template-columns: minmax(150px, 260px) 1fr; align-items: center; gap: 35px; }
.site-branding { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 56px; width: auto; }
.site-title { margin: 0; font-size: clamp(27px, 4vw, 42px); font-weight: 900; letter-spacing: -2px; }
.site-title a { color: var(--sada-ink); }
.site-title b { color: var(--sada-primary); }
.site-description { margin: 7px 0 0; color: var(--sada-muted); font-size: 11px; line-height: 1.4; }
.header-ad { justify-self: end; width: min(100%, 730px); min-height: 72px; display: flex; justify-content: center; align-items: center; overflow: hidden; border-radius: 7px; background: #202229; color: #fff; }
.header-ad img { width: 100%; max-height: 90px; object-fit: cover; }
.header-ad__placeholder { padding: 14px 24px; text-align: center; }
.header-ad__placeholder small { display: block; color: #aeb0b8; font-size: 10px; letter-spacing: 2px; }
.header-ad__placeholder strong { font-size: 16px; }

/* Main navigation */
.nav-shell { position: relative; z-index: 40; background: var(--sada-dark); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.nav-shell.is-sticky { position: sticky; top: 0; }
.nav-row { min-height: 52px; display: flex; align-items: stretch; }
.home-link { width: 54px; display: grid; place-items: center; background: var(--sada-primary); color: #fff; }
.home-link:hover { color: #fff; background: var(--sada-primary-dark); }
.home-link svg { width: 19px; }
.primary-nav { flex: 1; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.primary-nav li { position: relative; }
.primary-nav a { height: 52px; display: flex; align-items: center; padding: 0 15px; color: #fff; font-size: 13px; font-weight: 700; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: rgba(255,255,255,.09); color: #fff; }
.primary-nav .sub-menu { position: absolute; top: 100%; right: 0; min-width: 210px; display: none; flex-direction: column; background: #202229; box-shadow: var(--sada-shadow); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { height: auto; min-height: 44px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-promote { margin: 7px 8px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; background: linear-gradient(110deg, var(--sada-primary), #9b6cff); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 5px 18px rgba(108,44,243,.3); }
.nav-promote:hover { color: #fff; transform: translateY(-1px); }
.nav-promote span { font-size: 18px; font-weight: 400; }
.nav-actions { display: flex; margin-inline-start: auto; }
.icon-button { width: 48px; border: 0; border-inline-start: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; background: transparent; color: #fff; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.icon-button svg { width: 19px; }
.menu-toggle { display: none; }
.search-panel { display: none; position: absolute; inset-inline: 0; top: 100%; padding: 14px 0; background: #fff; box-shadow: var(--sada-shadow); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; border: 1px solid var(--sada-line); border-radius: 7px; padding: 10px 14px; outline: none; }
.search-field:focus { border-color: var(--sada-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sada-primary) 12%, transparent); }
.search-submit, .button { border: 0; border-radius: 7px; padding: 9px 18px; background: var(--sada-primary); color: #fff; font-weight: 700; }
.search-submit:hover, .button:hover { background: var(--sada-primary-dark); color: #fff; }

/* Breaking ticker */
.ticker { margin: 18px auto; min-height: 42px; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--sada-line); border-radius: 7px; background: #fff; }
.ticker__label { align-self: stretch; padding: 0 18px; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; background: var(--sada-accent); color: #fff; font-size: 12px; font-weight: 800; }
.ticker__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.18); }
.ticker__track { position: relative; flex: 1; min-width: 0; height: 42px; overflow: hidden; }
.ticker__item { position: absolute; inset: 0; padding: 0 18px; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(100%); transition: .45s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker__item.is-active { opacity: 1; transform: translateY(0); }
.ticker__item time { color: var(--sada-muted); font-size: 11px; }

/* Shared content components */
.site-main { padding-bottom: 45px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.panel { border: 1px solid var(--sada-line); border-radius: var(--sada-radius); background: var(--sada-surface); box-shadow: 0 3px 18px rgba(20,20,30,.035); }
.section-block { margin-top: 28px; }
.section-heading { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading__title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.35; }
.section-heading__title::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: var(--section-color, var(--sada-primary)); }
.section-heading__line { flex: 1; height: 1px; background: var(--sada-line); }
.section-heading__link { color: var(--sada-muted); font-size: 12px; white-space: nowrap; }
.post-thumb { position: relative; overflow: hidden; background: linear-gradient(135deg, #292c35, #626775); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .post-thumb img, .post-thumb:hover img { transform: scale(1.045); }
.post-thumb--empty::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 80% 60%, #fff 0 1px, transparent 1.5px); background-size: 24px 24px, 31px 31px; }
.post-thumb--tone-1 { background: linear-gradient(135deg, #311b68, #7947ea); }
.post-thumb--tone-2 { background: linear-gradient(135deg, #063f4b, #0fa3a1); }
.post-thumb--tone-3 { background: linear-gradient(135deg, #5b1b35, #de4168); }
.post-thumb--tone-4 { background: linear-gradient(135deg, #14345c, #2e7ed1); }
.post-thumb--tone-5 { background: linear-gradient(135deg, #5c3a0e, #d18e29); }
.post-thumb__brand { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; color: rgba(255,255,255,.88); text-align: center; }
.post-thumb__brand svg { width: clamp(35px, 12%, 62px); }
.post-thumb__brand b { max-width: 80%; font-size: clamp(11px, 1.5vw, 17px); }
.post-category { display: inline-flex; width: max-content; max-width: 100%; padding: 3px 9px; border-radius: 4px; background: var(--cat-color, var(--sada-primary)); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.7; }
.post-category:hover { color: #fff; opacity: .88; }
.post-title { margin: 0; font-weight: 800; line-height: 1.55; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; color: var(--sada-muted); font-size: 10px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-excerpt { margin: 8px 0 0; color: var(--sada-muted); font-size: 12px; line-height: 1.8; }

/* Hero */
.hero-grid { min-height: 480px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); grid-template-rows: 1fr 1fr; gap: 4px; overflow: hidden; border-radius: var(--sada-radius); background: #202229; box-shadow: var(--sada-shadow); }
.hero-slider { position: relative; grid-row: 1 / 3; min-height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity .65s ease, transform 1s ease, visibility .65s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 2; }
.hero-slide .post-thumb, .hero-side .post-thumb { position: absolute; inset: 0; }
.hero-slide::after, .hero-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,10,13,.92) 0, rgba(9,10,13,.15) 70%); pointer-events: none; }
.hero-content { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; padding: 30px; color: #fff; }
.hero-content .post-title { margin-top: 10px; font-size: clamp(22px, 3vw, 35px); }
.hero-content .post-meta { margin-top: 8px; color: rgba(255,255,255,.72); }
.hero-dots { position: absolute; z-index: 5; top: 18px; inset-inline-start: 18px; display: flex; gap: 6px; }
.hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 20px; background: rgba(255,255,255,.5); transition: width .25s, background .25s; }
.hero-dot.is-active { width: 24px; background: #fff; }
.hero-arrows { position: absolute; z-index: 6; inset-inline-end: 18px; top: 18px; display: flex; gap: 6px; }
.hero-arrow { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(10,11,15,.34); color: #fff; font-size: 17px; backdrop-filter: blur(7px); transition: .2s ease; }
.hero-arrow:hover { border-color: #fff; background: #fff; color: var(--sada-ink); transform: scale(1.06); }
.hero-slide.is-active .post-thumb img { animation: sadaHeroZoom 7s ease-out both; }
.hero-side { position: relative; min-height: 218px; overflow: hidden; }
.hero-side__content { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; padding: 19px; color: #fff; }
.hero-side__content .post-title { margin-top: 7px; font-size: 15px; }

/* Post grids */
.news-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); gap: 20px; padding: 18px; }
.lead-card .post-thumb { aspect-ratio: 1.45; border-radius: 7px; }
.lead-card .post-category { margin-top: 14px; }
.lead-card .post-title { margin-top: 7px; font-size: 20px; }
.lead-card .post-meta { margin-top: 7px; }
.compact-list { display: flex; flex-direction: column; }
.compact-card { padding: 0 0 12px; margin-bottom: 12px; display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; border-bottom: 1px solid var(--sada-line); }
.compact-card:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.compact-card .post-thumb { height: 72px; border-radius: 6px; }
.compact-card .post-title { font-size: 12px; }
.compact-card .post-meta { margin-top: 6px; }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.standard-card { overflow: hidden; }
.standard-card .post-thumb { aspect-ratio: 1.65; }
.standard-card__body { padding: 15px; }
.standard-card .post-title { margin: 7px 0; font-size: 16px; }
.dark-section { padding: 23px; border-radius: var(--sada-radius); background: #1e2128; color: #fff; }
.dark-section .section-heading__line { background: rgba(255,255,255,.12); }
.dark-section .section-heading__link { color: rgba(255,255,255,.65); }
.dark-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.dark-card .post-thumb { aspect-ratio: 1.25; border-radius: 7px; }
.dark-card .post-title { margin-top: 9px; font-size: 14px; }
.dark-card .post-meta { margin-top: 6px; color: rgba(255,255,255,.55); }

/* Extended home sections */
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.showcase-card { position: relative; min-height: 330px; overflow: hidden; border-radius: var(--sada-radius); background: #1e2128; box-shadow: var(--sada-shadow); }
.showcase-card .post-thumb { position: absolute; inset: 0; }
.showcase-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,9,12,.92), rgba(8,9,12,.05) 72%); pointer-events: none; }
.showcase-card__content { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; padding: 24px; color: #fff; }
.showcase-card__content .post-title { margin-top: 9px; font-size: 20px; }
.showcase-card__content .post-meta { margin-top: 7px; color: rgba(255,255,255,.67); }
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.latest-grid .standard-card .post-title { font-size: 14px; }
.latest-grid .post-excerpt { display: none; }
.section-heading__note { color: var(--sada-muted); font-size: 11px; }
.important-section { padding: 24px; border-radius: 14px; background: linear-gradient(145deg, #171920, #242833); color: #fff; box-shadow: var(--sada-shadow); }
.important-section .section-heading__line { background: rgba(255,255,255,.12); }
.important-section .section-heading__note { color: rgba(255,255,255,.55); }
.important-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, 185px); gap: 12px; }
.important-card { position: relative; min-width: 0; overflow: hidden; border-radius: 9px; background: #30333d; }
.important-card--lead { grid-row: 1 / 3; }
.important-card__image, .important-card .post-thumb { position: absolute; inset: 0; }
.important-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,8,.94), rgba(5,6,8,.04) 78%); pointer-events: none; }
.important-card__content { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; padding: 14px; }
.important-card__content .post-title { margin-top: 6px; font-size: 13px; }
.important-card--lead .important-card__content { padding: 22px; }
.important-card--lead .important-card__content .post-title { font-size: 21px; }
.important-card__content .post-meta { margin-top: 5px; color: rgba(255,255,255,.6); }
.category-cloud { margin-top: 28px; padding: 22px; display: flex; align-items: center; gap: 20px; }
.category-cloud > strong { flex: 0 0 auto; font-size: 16px; }
.category-cloud > div { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.category-cloud a { padding: 7px 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; background: var(--sada-soft); font-size: 11px; font-weight: 700; }
.category-cloud a:hover { background: var(--sada-primary); color: #fff; transform: translateY(-2px); }
.category-cloud a span { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.09); font-size: 9px; }

/* Promotional directory */
.directory-home { padding: clamp(20px, 3vw, 34px); border: 1px solid #e9e3fb; border-radius: 16px; background: linear-gradient(145deg, #fff, #faf8ff); box-shadow: var(--sada-shadow); }
.directory-home__head { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.directory-home__head > div > span, .directory-hero__eyebrow { color: var(--sada-primary); font-size: 10px; font-weight: 900; letter-spacing: .5px; }
.directory-home__head h2 { margin: 3px 0 4px; font-size: clamp(23px, 3vw, 34px); line-height: 1.45; }
.directory-home__head p { max-width: 690px; margin: 0; color: var(--sada-muted); font-size: 12px; }
.directory-home__head .button { flex: 0 0 auto; padding: 11px 20px; }
.directory-categories { margin: 24px 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.directory-categories > a { position: relative; min-height: 118px; padding: 16px 10px 12px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--sada-line); border-radius: 10px; background: #fff; text-align: center; transition: .25s ease; }
.directory-categories > a::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--profile-color); }
.directory-categories > a:hover { border-color: var(--profile-color); color: var(--profile-color); transform: translateY(-5px); box-shadow: 0 11px 25px rgba(20,20,30,.08); }
.directory-categories > a > span { font-size: 27px; line-height: 1.2; }
.directory-categories > a b { font-size: 11px; }
.directory-categories > a small { color: var(--sada-muted); font-size: 9px; }
.directory-home__subhead { margin: 22px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.directory-home__subhead h3 { margin: 0; font-size: 17px; }
.directory-home__subhead a { color: var(--sada-primary); font-size: 11px; font-weight: 700; }
.profiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.profiles-grid--home { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.profile-card { position: relative; overflow: hidden; transition: .3s ease; }
.profile-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--profile-color) 45%, #fff); box-shadow: 0 14px 32px rgba(20,20,30,.1); }
.profile-card__visual { position: relative; height: 115px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--profile-color) 88%, #171923), color-mix(in srgb, var(--profile-color) 55%, #fff)); color: #fff; }
.profile-card__visual::before, .profile-card__visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.profile-card__visual::before { width: 100px; height: 100px; inset-inline-end: -35px; top: -42px; }
.profile-card__visual::after { width: 65px; height: 65px; inset-inline-start: -22px; bottom: -32px; }
.profile-card__icon { position: relative; z-index: 2; font-size: 42px; filter: drop-shadow(0 4px 7px rgba(0,0,0,.13)); }
.profile-card__visual > img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-badge { position: absolute; z-index: 3; top: 9px; inset-inline-start: 9px; padding: 3px 7px; border-radius: 4px; background: rgba(0,0,0,.28); color: #fff; font-size: 8px; backdrop-filter: blur(5px); }
.profile-card__body { padding: 14px; }
.profile-card__category { color: var(--profile-color); font-size: 9px; font-weight: 800; }
.profile-card__body .post-title { margin-top: 3px; font-size: 13px; }
.profile-card__specialty { min-height: 38px; margin: 5px 0; color: var(--sada-muted); font-size: 10px; line-height: 1.7; }
.profile-card__location { min-height: 32px; padding-top: 7px; border-top: 1px solid var(--sada-line); color: #858791; font-size: 9px; line-height: 1.5; }
.profile-card__more { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--profile-color); font-size: 10px; font-weight: 800; }
.profile-card__more span { font-size: 15px; transition: transform .2s; }
.profile-card:hover .profile-card__more span { transform: translateX(-4px); }
.directory-hero { padding: clamp(24px, 4vw, 45px); display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; background: radial-gradient(circle at 15% 10%, rgba(108,44,243,.09), transparent 30%), #fff; }
.directory-hero h1 { margin: 4px 0 7px; font-size: clamp(27px, 4vw, 42px); line-height: 1.4; }
.directory-hero p { max-width: 720px; margin: 0; color: var(--sada-muted); font-size: 13px; }
.directory-hero__button { flex: 0 0 auto; }
.directory-page .profiles-grid { margin-top: 20px; }
.demo-notice { margin-bottom: 18px; padding: 13px 17px; border: 1px solid #f0d68a; border-radius: 8px; background: #fff9df; color: #745900; font-size: 11px; }
.profile-single-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.profile-single-header { padding: clamp(22px,4vw,38px); display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: center; gap: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--profile-color) 8%, #fff), #fff); }
.profile-single-icon { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 22px; background: var(--profile-color); color: #fff; font-size: 52px; box-shadow: 0 10px 25px color-mix(in srgb, var(--profile-color) 25%, transparent); }
.profile-single-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-single-header .article-title { margin-top: 8px; font-size: clamp(24px,3vw,37px); }
.profile-single-header p { margin: 5px 0 0; color: var(--sada-muted); }
.profile-contact { position: sticky; top: 75px; padding: 21px; }
.profile-contact h2 { margin: 0 0 12px; font-size: 17px; }
.profile-contact > div { padding: 10px 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--sada-line); }
.profile-contact > div span { color: var(--sada-muted); font-size: 9px; }
.profile-contact > div strong { font-size: 12px; }
.profile-contact .button { margin-top: 15px; display: block; text-align: center; }
.profile-map-link { margin-top: 10px; display: block; color: var(--sada-primary); font-size: 11px; font-weight: 700; text-align: center; }
.profile-contact > small { margin-top: 13px; display: block; color: var(--sada-muted); font-size: 9px; text-align: center; }
.promote-intro { margin: -10px -10px 25px; padding: 25px; border-radius: 12px; background: linear-gradient(135deg, #29105f, #7140dc); color: #fff; }
.promote-intro > span { color: #d9cbff; font-size: 10px; font-weight: 800; }
.promote-intro h2 { margin: 4px 0 7px; font-size: clamp(21px,3vw,31px); }
.promote-intro p { margin: 0; color: rgba(255,255,255,.75); font-size: 12px; }
.promote-form { padding: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid label, .form-consent { display: flex; flex-direction: column; gap: 5px; color: #3b3d45; font-size: 11px; font-weight: 800; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--sada-line); border-radius: 7px; background: #fff; outline: none; font-weight: 400; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--sada-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sada-primary) 12%, transparent); }
.form-grid__full { grid-column: 1 / 3; }
.form-consent { margin: 17px 0; flex-direction: row; align-items: center; font-weight: 400; }
.form-consent input { width: auto; }
.promote-submit { min-width: 180px; padding-block: 11px; }
.form-success { margin-bottom: 20px; padding: 13px 16px; border-radius: 7px; background: #e8fff4; color: #087747; font-size: 12px; font-weight: 700; }
.form-error { margin-bottom: 20px; padding: 13px 16px; border-radius: 7px; background: #fff0f1; color: #aa2031; font-size: 12px; font-weight: 700; }
.sada-honeypot { position: absolute !important; inset-inline-start: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Ads */
.ad-zone { width: 100%; min-height: 90px; margin: 25px 0; display: grid; place-items: center; overflow: hidden; border: 1px dashed #d5d6dc; border-radius: 8px; background: #fff; color: #999ca5; text-align: center; }
.ad-zone:empty::before { content: "مساحة إعلانية"; font-size: 11px; letter-spacing: 1px; }
.ad-zone img { margin: auto; max-height: 250px; object-fit: contain; }
.ad-zone .widget { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
.ad-zone .widget-title { display: none; }
.article-inline-ad { margin-block: 28px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-promo { position: relative; min-height: 310px; padding: 26px 22px 20px; overflow: hidden; border-radius: 14px; background: radial-gradient(circle at 10% 0, rgba(255,255,255,.16), transparent 35%), linear-gradient(145deg, #5d26db, #29105f 72%); color: #fff; box-shadow: 0 14px 35px rgba(64,25,145,.22); }
.sidebar-promo::before { content: ""; position: absolute; width: 180px; height: 180px; inset-inline-end: -75px; bottom: -65px; border: 28px solid rgba(255,255,255,.055); border-radius: 50%; }
.sidebar-promo__eyebrow { position: relative; z-index: 1; display: block; color: #dacdff; font-size: 10px; font-weight: 700; }
.sidebar-promo__logo { position: relative; z-index: 1; margin-top: 9px; color: #fff; font-size: 36px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.sidebar-promo__logo span { color: #bfa8ff; }
.sidebar-promo h2 { position: relative; z-index: 1; margin: 18px 0 8px; font-size: 20px; line-height: 1.55; }
.sidebar-promo p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.8; }
.sidebar-promo__features { position: relative; z-index: 1; margin: 15px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-promo__features span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; background: rgba(255,255,255,.08); font-size: 9px; }
.sidebar-promo > a { position: relative; z-index: 1; min-height: 41px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 7px; background: #fff; color: #351276; font-size: 11px; font-weight: 800; }
.sidebar-promo > a:hover { color: var(--sada-primary); transform: translateY(-2px); }
.sidebar-promo > small { position: absolute; top: 12px; inset-inline-start: 12px; color: rgba(255,255,255,.5); font-size: 8px; }
.widget { padding: 18px; border: 1px solid var(--sada-line); border-radius: var(--sada-radius); background: #fff; box-shadow: 0 3px 18px rgba(20,20,30,.035); }
.widget-title { margin: -18px -18px 16px; padding: 13px 18px; border-bottom: 1px solid var(--sada-line); font-size: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--sada-line); }
.widget li:last-child { border-bottom: 0; }
.widget select { width: 100%; }
.widget_recent_entries a { font-size: 13px; font-weight: 700; line-height: 1.6; }
.widget_recent_entries .post-date { display: block; color: var(--sada-muted); font-size: 10px; }
.social-box { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.social-box a { padding: 12px; border-radius: 6px; background: var(--sada-soft); font-size: 11px; font-weight: 800; text-align: center; }
.social-box a:first-child { background: #1877f2; color: #fff; }
.social-box a:nth-child(2) { background: #111; color: #fff; }
.social-box a:nth-child(3) { background: #25d366; color: #fff; }
.social-box a:nth-child(4) { background: #e1306c; color: #fff; }
.sidebar-posts { display: flex; flex-direction: column; gap: 12px; }
.sidebar-post { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 11px; }
.sidebar-post .post-thumb { height: 62px; border-radius: 5px; }
.sidebar-post .post-title { font-size: 11px; }
.directory-widget__list { display: flex; flex-direction: column; }
.directory-widget__list a { min-height: 43px; display: grid; grid-template-columns: 28px minmax(0,1fr) 25px; align-items: center; gap: 8px; border-bottom: 1px solid var(--sada-line); }
.directory-widget__list a:last-child { border-bottom: 0; }
.directory-widget__list a > span { font-size: 18px; }
.directory-widget__list a b { font-size: 10px; }
.directory-widget__list a small { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--sada-soft); color: var(--sada-muted); font-size: 8px; }
.directory-widget__cta { margin-top: 12px; padding: 9px; display: block; border-radius: 6px; background: var(--sada-primary); color: #fff; font-size: 10px; font-weight: 800; text-align: center; }
.directory-widget__cta:hover { background: var(--sada-primary-dark); color: #fff; }
.sidebar .widget_media_image, .sidebar .widget_custom_html:has(.ad, [class*="ads"], ins) { padding: 8px; overflow: hidden; border: 0; background: transparent; box-shadow: none; }
.sidebar .widget_media_image img, .sidebar .widget_custom_html img { width: 100%; border-radius: 10px; }
.sidebar ins.adsbygoogle { overflow: hidden; border-radius: 10px; background: #fff; }

/* Motion */
.standard-card, .compact-card, .widget, .showcase-card, .sidebar-promo { transition: transform .3s ease, box-shadow .3s ease, opacity .5s ease; }
.standard-card:hover, .widget:hover { transform: translateY(-4px); box-shadow: 0 13px 32px rgba(20,20,30,.1); }
.reveal-init { opacity: 0; transform: translateY(24px); }
.reveal-init.is-revealed { opacity: 1; transform: translateY(0); }
@keyframes sadaHeroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Inner pages */
.page-shell { padding-top: 25px; }
.breadcrumbs { margin-bottom: 17px; color: var(--sada-muted); font-size: 11px; }
.breadcrumbs span { margin-inline: 5px; }
.archive-header { margin-bottom: 20px; padding: 22px; }
.archive-title { margin: 0; font-size: 25px; }
.archive-description { margin-top: 6px; color: var(--sada-muted); font-size: 13px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.pagination { margin-top: 25px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 37px; height: 37px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--sada-line); border-radius: 6px; background: #fff; }
.pagination .current, .pagination a:hover { border-color: var(--sada-primary); background: var(--sada-primary); color: #fff; }
.single-article { overflow: hidden; }
.article-header { padding: clamp(20px, 4vw, 38px); }
.article-header .post-category { margin-bottom: 12px; }
.article-title { margin: 0; font-size: clamp(27px, 4vw, 42px); line-height: 1.45; }
.article-header .post-meta { margin-top: 14px; font-size: 11px; }
.article-hero { width: 100%; max-height: 650px; object-fit: cover; }
.article-content { padding: clamp(20px, 4vw, 40px); font-size: 17px; line-height: 2; }
.article-content > :first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { line-height: 1.55; margin-top: 1.8em; }
.article-content a { color: var(--sada-primary); text-decoration: underline; }
.article-content blockquote { margin: 25px 0; padding: 18px 22px; border-inline-start: 4px solid var(--sada-primary); background: var(--sada-soft); font-size: 18px; font-weight: 700; }
.article-content iframe { max-width: 100%; }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th, .article-content td { padding: 9px; border: 1px solid var(--sada-line); }
.article-resources { margin-top: 30px; padding: 18px 20px; border: 1px solid #ded4f7; border-radius: 9px; background: #faf8ff; }
.article-resources h2 { margin: 0 0 8px; font-size: 17px; }
.article-resources ul { margin: 0; padding-inline-start: 20px; }
.article-resources li { margin: 5px 0; }
.article-tags { padding: 0 clamp(20px,4vw,40px) 28px; display: flex; flex-wrap: wrap; gap: 7px; }
.article-tags a { padding: 4px 10px; border-radius: 4px; background: var(--sada-soft); color: var(--sada-muted); font-size: 11px; }
.author-box { margin-top: 22px; padding: 22px; display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 16px; }
.author-box img { border-radius: 50%; }
.author-box h3 { margin: 0 0 5px; }
.author-box p { margin: 0; color: var(--sada-muted); font-size: 12px; }
.comments-area { margin-top: 22px; padding: 24px; }
.comments-title { margin-top: 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--sada-line); }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; border: 1px solid var(--sada-line); border-radius: 6px; padding: 10px; }
.comment-form .submit { border: 0; border-radius: 6px; padding: 10px 18px; background: var(--sada-primary); color: #fff; }
.empty-state { padding: 55px 25px; text-align: center; }
.empty-state h1 { margin: 0; font-size: 32px; }
.empty-state p { color: var(--sada-muted); }

/* Footer */
.site-footer { margin-top: 10px; background: #191b21; color: #d9dae0; }
.footer-widgets { padding: 45px 0 35px; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.site-footer .widget { padding: 0; border: 0; background: transparent; box-shadow: none; }
.site-footer .widget-title { margin: 0 0 16px; padding: 0 0 10px; border-color: rgba(255,255,255,.1); color: #fff; }
.site-footer .widget li { border-color: rgba(255,255,255,.08); }
.footer-bottom { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.08); color: #94969e; font-size: 11px; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 13px; }
.footer-promo-links { display: flex; gap: 13px; }
.footer-promo-links a { color: #c6c7cc; }
.back-to-top { position: fixed; z-index: 50; inset-inline-end: 20px; bottom: 20px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sada-primary); color: #fff; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fixed-ad { position: fixed; z-index: 60; left: 50%; bottom: 16px; width: min(calc(100% - 32px), 760px); min-height: 66px; padding-block: 8px; padding-inline: 48px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: linear-gradient(110deg, #1a1d25, #272b37); color: #fff; box-shadow: 0 12px 42px rgba(0,0,0,.32); transform: translateX(-50%); }
.fixed-ad[hidden] { display: none; }
.fixed-ad__label { flex: 0 0 auto; padding: 3px 7px; border-radius: 4px; background: rgba(255,255,255,.13); color: #c6c8d1; font-size: 9px; }
.fixed-ad__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: #fff; }
.fixed-ad__link:hover { color: #fff; }
.fixed-ad__link strong { color: #a784ff; font-size: 21px; }
.fixed-ad__link span { flex: 1; font-size: 12px; font-weight: 700; line-height: 1.5; }
.fixed-ad__link b { flex: 0 0 auto; padding: 7px 13px; border-radius: 6px; background: var(--sada-primary); font-size: 11px; }
.fixed-ad__close { position: absolute; inset-inline-start: 12px; top: 50%; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; line-height: 1; transform: translateY(-50%); }

/* WordPress alignment */
.alignwide { margin-inline: -5%; max-width: 110%; }
.alignfull { width: calc(100% + 80px); max-width: none; margin-inline: -40px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--sada-muted); font-size: 11px; text-align: center; }
.sticky { outline: 2px solid color-mix(in srgb, var(--sada-primary) 25%, transparent); }
.bypostauthor { display: block; }

@media (max-width: 1020px) {
  .content-grid { grid-template-columns: minmax(0,1fr) 285px; gap: 18px; }
  .hero-grid { min-height: 420px; }
  .hero-slider { min-height: 420px; }
  .header-ad { min-height: 64px; }
  .primary-nav a { padding-inline: 10px; font-size: 12px; }
  .dark-grid { grid-template-columns: repeat(2,1fr); }
  .dark-card:last-child { display: none; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .important-grid { grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(4, 150px); }
  .important-card--lead { grid-row: 1 / 3; }
  .directory-categories { grid-template-columns: repeat(3,1fr); }
  .profiles-grid--home { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 800px) {
  .container { width: min(calc(100% - 24px), var(--sada-container)); }
  .topbar__links { display: none; }
  .masthead__inner { min-height: 82px; grid-template-columns: 1fr; justify-items: center; }
  .site-branding { align-items: center; }
  .site-description { display: none; }
  .header-ad { display: none; }
  .menu-toggle { display: grid; }
  .primary-nav { position: fixed; z-index: 100; top: 0; right: 0; width: min(82vw, 330px); height: 100dvh; padding-top: 65px; overflow-y: auto; background: #17191e; transform: translateX(105%); transition: transform .3s ease; box-shadow: -10px 0 30px rgba(0,0,0,.25); }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { height: auto; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .primary-nav .sub-menu { position: static; min-width: 0; display: flex; padding-inline-start: 15px; box-shadow: none; background: rgba(255,255,255,.03); }
  .menu-overlay { position: fixed; z-index: 90; inset: 0; visibility: hidden; opacity: 0; background: rgba(0,0,0,.55); transition: .3s; }
  .menu-overlay.is-open { visibility: visible; opacity: 1; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { margin-top: 8px; }
  .hero-grid { min-height: 520px; grid-template-columns: 1fr 1fr; grid-template-rows: 330px 190px; }
  .hero-slider { grid-column: 1 / 3; grid-row: 1; min-height: 330px; }
  .hero-side { min-height: 190px; }
  .hero-content { padding: 22px; }
  .hero-content .post-title { font-size: 23px; }
  .news-layout { grid-template-columns: 1fr; }
  .compact-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
  .compact-card { grid-template-columns: 90px 1fr; margin: 0; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .showcase-card { min-height: 280px; }
  .category-cloud { align-items: flex-start; flex-direction: column; }
  .important-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 280px repeat(2, 160px); }
  .important-card--lead { grid-column: 1 / 3; grid-row: 1; }
  .nav-promote { margin-inline-start: auto; }
  .profiles-grid, .profiles-grid--home { grid-template-columns: repeat(2,1fr); }
  .profile-single-grid { grid-template-columns: 1fr; }
  .profile-contact { position: static; }
  .directory-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .topbar__inner { justify-content: center; }
  .ticker { margin-block: 12px; }
  .ticker__label { padding-inline: 12px; font-size: 0; }
  .ticker__label::after { content: "عاجل"; font-size: 11px; }
  .ticker__item { padding-inline: 12px; font-size: 11px; }
  .ticker__item time { display: none; }
  .hero-grid { min-height: 490px; grid-template-rows: 310px 180px; gap: 3px; }
  .hero-slider { min-height: 310px; }
  .hero-content { padding: 18px; }
  .hero-content .post-title { font-size: 19px; }
  .hero-content .post-meta { display: none; }
  .hero-side__content { padding: 12px; }
  .hero-side__content .post-title { font-size: 12px; line-height: 1.5; }
  .hero-side .post-category { display: none; }
  .news-layout { padding: 13px; }
  .compact-list { grid-template-columns: 1fr; }
  .compact-card { grid-template-columns: 105px 1fr; }
  .cards-grid, .archive-grid, .dark-grid, .showcase-grid, .latest-grid { grid-template-columns: 1fr; }
  .dark-card:last-child { display: block; }
  .dark-section { padding: 16px; }
  .footer-widgets { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; align-items: center; text-align: center; }
  .article-content { font-size: 16px; }
  .article-title { font-size: 27px; }
  .showcase-card { min-height: 260px; }
  .important-section { padding: 15px; }
  .important-grid { grid-template-columns: 1fr; grid-template-rows: 270px repeat(4, 175px); }
  .important-card--lead { grid-column: 1; grid-row: 1; }
  .important-card--lead .important-card__content .post-title { font-size: 18px; }
  .section-heading__note { display: none; }
  .nav-promote { padding-inline: 10px; font-size: 0; }
  .nav-promote span { font-size: 19px; }
  .directory-home__head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .directory-home__head .button { width: 100%; text-align: center; }
  .directory-categories { grid-template-columns: repeat(2,1fr); }
  .directory-categories > a { min-height: 105px; }
  .profiles-grid, .profiles-grid--home { grid-template-columns: 1fr; }
  .profile-card { display: grid; grid-template-columns: 115px minmax(0,1fr); }
  .profile-card__visual { height: 100%; min-height: 175px; }
  .profile-card__icon { font-size: 36px; }
  .profile-single-header { grid-template-columns: 76px minmax(0,1fr); }
  .profile-single-icon { width: 76px; height: 76px; border-radius: 15px; font-size: 37px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid__full { grid-column: auto; }
  .alignfull { width: calc(100% + 40px); margin-inline: -20px; }
  .fixed-ad { bottom: 8px; width: calc(100% - 16px); min-height: 58px; padding-inline-end: 10px; gap: 7px; }
  .fixed-ad__label, .fixed-ad__link strong { display: none; }
  .fixed-ad__link { gap: 7px; }
  .fixed-ad__link span { font-size: 10px; }
  .fixed-ad__link b { padding: 6px 8px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
