:root {
  --bg: #0b1220;
  --bg-soft: #111827;
  --card: #111827;
  --text: #e5e7eb;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-soft: rgba(96, 165, 250, .12);
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, .12);
  --white: #111827;
  --shadow: 0 20px 40px rgba(0, 0, 0, .28);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, .22);
  --radius: 22px;
}

body {
  background:
    radial-gradient(circle at top right, rgba(184, 137, 59, .06), transparent 20%),
    radial-gradient(circle at bottom left, rgba(122, 75, 47, .05), transparent 24%),
    var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  transition: .2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.navbar {
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234, 223, 206, .95);
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
}

.nav-link {
  color: var(--text-soft);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.btn-main {
  background: var(--primary);
  color: var(--white);
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(184, 137, 59, .18);
}

.btn-main:hover,
.btn-main:focus {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline-primary {
  color: var(--primary-dark);
  border-color: #dcc29a;
  background: #fffaf3;
  border-radius: 999px;
  font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.hero,
.page-hero {
  padding: 38px 0 24px;
}

.article-hero {
  padding: 34px 0 22px;
}

.related-section {
  padding: 34px 0 46px;
}

.section {
  padding: 28px 0;
}

.hero-box {
  background:
    radial-gradient(circle at top right, rgba(184, 137, 59, .10), transparent 28%),
    radial-gradient(circle at bottom left, rgba(122, 75, 47, .08), transparent 30%),
    var(--bg-soft);
  border: 1px solid rgba(234, 223, 206, .95);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.mini-badge,
.category-badge,
.article-category,
.article-badge,
.card-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #ead7b8;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
}

.hero-title,
.article-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.3;
  font-weight: 800;
}

.hero-desc,
.hero-stat span,
.section-subtitle,
.article-excerpt,
.feature-text,
.popular-text,
.category-text,
.author-text,
.article-lead {
  color: var(--muted);
  line-height: 1.9;
}

.search-wrap,
.filter-box,
.sidebar-box,
.sidebar-card,
.category-card,
.article-card,
.feature-card,
.featured-card,
.newsletter-box,
.article-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.search-wrap {
  padding: 10px;
}

.search-wrap .form-control,
.form-control,
.form-select {
  border-radius: 14px;
  border-color: var(--border);
  min-height: 48px;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #dcc29a;
}

.tag-list,
.chip-list,
.share-list,
.article-tags,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-chip,
.chip,
.article-tag,
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ead7b8;
  background: var(--bg);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .82rem;
  font-weight: 700;
}

.tag-chip:hover,
.chip:hover,
.chip.active,
.article-tag:hover,
.share-btn:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #ead7b8;
}

.feature-card,
.featured-card,
.article-shell {
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image,
.featured-image,
.article-cover,
.article-thumb,
.mini-post-thumb {
  display: block;
  width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-image {
  height: 250px;
}

.feature-body,
.featured-body,
.article-body,
.sidebar-card .card-body,
.filter-box,
.sidebar-box {
  padding: 22px;
}

.feature-title,
.featured-title,
.section-title,
.author-name,
.sidebar-title,
.filter-title {
  font-weight: 800;
  color: var(--text);
}

.feature-title {
  font-size: 1.55rem;
  line-height: 1.5;
}

.featured-title {
  font-size: 1.7rem;
  line-height: 1.55;
}

.section-title {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.meta,
.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #8b7866;
  font-size: .92rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.article-card {
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.article-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 30px rgba(69, 45, 20, .09);
}

.article-thumb {
  height: 190px;
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12));
}

.thumb-1 {
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12)), url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1200&q=80");
}

.thumb-2 {
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12)), url("https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&w=1200&q=80");
}

.thumb-3 {
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12)), url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80");
}

.thumb-4 {
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12)), url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1200&q=80");
}

.thumb-5 {
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12)), url("https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=1200&q=80");
}

.thumb-6 {
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12)), url("https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1200&q=80");
}

.article-body {
  padding: 20px;
}

.article-title {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 10px;
  color: var(--text);
}

.article-title a,
.feature-title a,
.featured-title a,
.popular-title a,
.category-title a {
  color: inherit;
}

.category-card {
  padding: 24px;
}

.category-icon,
.author-avatar,
.popular-number,
.sidebar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.category-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.author-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  border: 1px solid #ead7b8;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.category-count {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .95rem;
}

.popular-list,
.sidebar-list,
.category-links {
  display: grid;
  gap: 14px;
}

.popular-item,
.sidebar-item,
.category-link {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: start;
}

.category-link {
  justify-content: space-between;
  align-items: center;
  color: var(--text-soft);
  font-weight: 700;
}

.category-link:hover,
.category-link.active {
  color: var(--primary-dark);
  border-color: #ead7b8;
  background: var(--primary-soft);
}

.popular-number,
.sidebar-num {
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
}

.popular-title,
.sidebar-item-title {
  font-weight: 800;
  color: var(--text);
  line-height: 1.7;
}

.sidebar-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.sidebar-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.breadcrumb-wrap {
  margin-bottom: 12px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.article-breadcrumbs::-webkit-scrollbar {
  display: none;
}

.article-breadcrumbs>* {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  max-width: none;
}

.article-breadcrumbs a,
.article-breadcrumbs span {
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
  text-decoration: none;
}

.article-breadcrumbs a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.article-breadcrumbs a:hover {
  color: var(--white);
}

.article-breadcrumbs .separator {
  color: var(--white);
  opacity: 0.9;
  font-size: 0.82rem;
  line-height: 1;
}

.article-breadcrumbs .current {
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

html[dir="rtl"] .article-breadcrumbs {
  direction: rtl;
  justify-content: flex-start;
  text-align: right;
}

html[dir="ltr"] .article-breadcrumbs {
  direction: ltr;
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 767.98px) {
  .breadcrumb-wrap {
    margin-bottom: 10px;
  }

  .article-breadcrumbs {
    gap: 6px;
    font-size: 0.78rem;
    padding-bottom: 0;
  }

  .article-breadcrumbs a,
  .article-breadcrumbs .current {
    font-size: 0.78rem;
  }

  .article-breadcrumbs .separator {
    font-size: 0.7rem;
  }
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #FFFFFF;
}

html[dir="rtl"] .breadcrumb-item+.breadcrumb-item::before {
  float: right;
  padding-left: var(--bs-breadcrumb-item-padding-x);
  padding-right: 0;
  content: "•"
}

.breadcrumb-item.active {
  color: var(--muted);
}

.article-shell {
  border-radius: 30px;
}

.article-header,
.article-content-wrap {
  padding: 34px;
}

.article-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.article-cover {
  height: 420px;
  background-image: linear-gradient(rgba(43, 34, 24, .10), rgba(43, 34, 24, .18));
}

.article-content {
  font-size: 1.08rem;
  line-height: 2.15;
  color: var(--text-soft);
}

.article-content>*:first-child {
  margin-top: 0;
}

.article-content>*:last-child {
  margin-bottom: 0;
}

.article-content p {
  margin: 0 0 18px;
  line-height: 2.15;
  font-size: 1.08rem;
  color: var(--text-soft);
  text-align: justify;
  text-align-last: right;
  margin-bottom: 18px;
}

.article-content h2 {
  font-size: 1.72rem;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 38px 0 16px;
}

.article-content h3 {
  font-size: 1.28rem;
  line-height: 1.7;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 30px 0 14px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-right: 1.35rem;
  line-height: 2.05;
}

.article-content li {
  margin-bottom: 10px;
  color: var(--text-soft);
}

.article-content li::marker {
  color: var(--primary);
}

.article-content strong {
  color: var(--text);
  font-weight: 800;
}

.article-content a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.article-content blockquote {
  background: linear-gradient(180deg, #fffefb 0%, #fcf7f1 100%);
  border: 1px solid var(--border);
  border-right: 4px solid var(--primary);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 28px 0;
  color: var(--text);
  box-shadow: var(--shadow-soft);

  font-size: 1.03rem;
  line-height: 2.05;
}

.article-content .note-box {
  background: var(--bg-soft);
  border: 1px solid #eddcbe;
  border-radius: 20px;
  padding: 18px 20px;
  margin: 26px 0;
  line-height: 2;
}

.article-content .inline-image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin: 30px 0;
}

.article-content .inline-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content .inline-image .caption {
  padding: 12px 16px;
  font-size: .92rem;
  line-height: 1.9;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

html[dir="rtl"] .article-content {
  font-family: "Noto Kufi Arabic", "Readex Pro", "Segoe UI", sans-serif;
  letter-spacing: 0;
  word-spacing: 0.03em;
}

html[dir="rtl"] .article-content p,
html[dir="rtl"] .article-content li,
html[dir="rtl"] .article-content blockquote {
  text-align: right;
}

@media (max-width: 767.98px) {
  
  .article-content {
    font-size: 1rem!important;
    line-height: 2.1;
  }

  .article-content p {
    margin-bottom: 16px;
  }

  .article-content h2 {
    font-size: 1.42rem;
    line-height: 1.6;
    margin: 30px 0 14px;
  }

  .article-content h3 {
    font-size: 1.16rem;
    line-height: 1.7;
    margin: 24px 0 12px;
  }

  .article-content ul,
  .article-content ol {
    padding-right: 1.1rem;
  }

  .article-content blockquote,
  .article-content .note-box {
    padding: 16px 16px;
    border-radius: 16px;
  }
}

.sidebar-card {
  margin-bottom: 22px;
  overflow: hidden;
}

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

.toc-list li+li {
  margin-top: 10px;
}

.toc-list a {
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.8;
  display: block;
}

.mini-post {
  display: flex;
  gap: 12px;
  align-items: start;
}

.mini-post+.mini-post {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mini-post-thumb {
  width: 82px;
  min-width: 82px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background-image: linear-gradient(rgba(43, 34, 24, .08), rgba(43, 34, 24, .12));
}

.sidebar-card .mini-post-thumb {
  height: 72px !important;
  min-height: auto;
}

.mini-post-title {
  font-size: .98rem;
  line-height: 1.75;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.mini-post-meta {
  color: var(--muted);
  font-size: .88rem;
}

.author-box {
  margin-top: 30px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.footer {
  padding: 24px 0 40px;
  color: var(--muted);
}

.footer-box {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.pagination {
  gap: 8px;
}

.page-link {
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 14px !important;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #fff;
  box-shadow: none !important;
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-link:hover {
  color: var(--primary-dark);
  background: #fffaf3;
  border-color: #dcc29a;
}

@media (max-width:991.98px) {

  .hero-box,
  .article-header,
  .article-content-wrap,
  .feature-body,
  .featured-body,
  .article-body,
  .filter-box,
  .sidebar-box {
    padding: 24px;
  }

  .feature-image,
  .featured-image {
    min-height: 260px;
    height: 260px;
  }

  .article-cover {
    height: 320px;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width:767.98px) {
  .article-title {
    font-size: 2rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-cover {
    height: 240px;
  }

  .author-box {
    padding: 18px;
  }
}

@media (max-width:575.98px) {
  .hero-box {
    border-radius: 24px;
    padding: 18px;
  }

  .feature-image,
  .featured-image {
    min-height: 220px;
    height: 220px;
  }

  .article-thumb {
    height: 190px;
  }

  .newsletter-box {
    padding: 22px 18px;
  }
}

.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: block;
    animation: cookieSlideUp .35s ease;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent__content {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.28);
    backdrop-filter: blur(14px);
}

.cookie-consent__icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.12);
    color: #93c5fd;
    font-size: 1.2rem;
}

.cookie-consent__text {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.cookie-consent__desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #cbd5e1;
}

.cookie-consent__desc a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all .2s ease;
    cursor: pointer;
}

.btn-cookie--primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.btn-cookie--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-cookie--secondary {
    background: rgba(255,255,255,0.05);
    color: #e5e7eb;
    border-color: rgba(255,255,255,0.10);
}

.btn-cookie--secondary:hover {
    background: rgba(255,255,255,0.09);
}

.btn-cookie--ghost {
    background: transparent;
    color: #cbd5e1;
    border-color: rgba(255,255,255,0.08);
}

.btn-cookie--ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html[dir="rtl"] .cookie-consent__content {
    text-align: right;
}

html[dir="ltr"] .cookie-consent__content {
    text-align: left;
}

@media (max-width: 991.98px) {
    .cookie-consent {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .cookie-consent__content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .cookie-consent__icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 14px;
    }

    .cookie-consent__actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent__actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent__desc {
        font-size: 0.9rem;
        line-height: 1.8;
    }
}