   /* ═══════════════════════════════════
       CSS VARIABLES — Original Colors + Gold
       ═══════════════════════════════════ */
    :root {
      --bg: #f2ede8;
      --bg-alt: #ede8e2;
      --bg-card: #faf7f4;
      --text-primary: #1a1512;
      --text-secondary: #4a4540;
      --text-muted: #8a847e;
      --accent: #6e8fa8;
      --accent-dark: #4a6d85;
      --accent-pale: #dce8f0;
      --accent-muted: rgba(110, 143, 168, 0.12);
      --border: #ddd7cf;
      --gold: #c4a35a;
      --gold-dark: #a88a3e;
      --gold-pale: rgba(196, 163, 90, 0.15);
      --gold-muted: rgba(196, 163, 90, 0.08);
      --shadow-sm: 0 2px 10px rgba(26, 21, 18, 0.07);
      --shadow-md: 0 10px 28px rgba(26, 21, 18, 0.12);
      --shadow-lg: 0 22px 55px rgba(26, 21, 18, 0.16);
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --container: 1200px;
      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --hero-bg: #0f1a24;
      --hero-bg-alt: #162636;
    }

    [data-theme="dark"] {
      --bg: #111009;
      --bg-alt: #161410;
      --bg-card: #1d1a15;
      --text-primary: #f0ebe4;
      --text-secondary: #c4bcb2;
      --text-muted: #8f877f;
      --accent: #8aacbf;
      --accent-dark: #6e8fa8;
      --accent-pale: #233641;
      --accent-muted: rgba(138, 172, 191, 0.16);
      --border: #2f2a23;
      --gold: #d4b86a;
      --gold-dark: #b89e4e;
      --gold-pale: rgba(212, 184, 106, 0.15);
      --gold-muted: rgba(212, 184, 106, 0.08);
      --hero-bg: #0a0f14;
      --hero-bg-alt: #0f1820;
    }

    /* ═══════════════════════════════════
       RESET & BASE
       ═══════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    html {
      scrollbar-width: thin;
      scrollbar-color: var(--gold) var(--bg-alt);
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
      width: 12px;
      height: 12px;
    }

    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track {
      background: linear-gradient(180deg, var(--bg-alt), var(--bg));
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, var(--gold), var(--gold-dark));
      border-radius: 999px;
      border: 2px solid var(--bg-alt);
    }

    html::-webkit-scrollbar-thumb:hover,
    body::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 88%, #fff), var(--gold));
    }

    body {
      font-family: "Cairo", "Tajawal", sans-serif;
      background: var(--bg);
      color: var(--text-primary);
      line-height: 1.75;
      transition: background var(--transition), color var(--transition);
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    button, input { font: inherit; }

    .container {
      width: min(var(--container), 100% - 2.5rem);
      margin-inline: auto;
    }

    .sr-only {
      position: absolute;
      width: 1px; height: 1px;
      padding: 0; margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      border: 0;
    }

    /* ═══════════════════════════════════
       NAVIGATION
       ═══════════════════════════════════ */
    .blog-topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: color-mix(in srgb, var(--bg) 85%, transparent);
      backdrop-filter: blur(20px) saturate(1.4);
      -webkit-backdrop-filter: blur(20px) saturate(1.4);
      border-bottom: 1px solid var(--border);
      transition: background var(--transition);
    }

    .topbar-inner {
      min-height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .brand {
      font-family: "Amiri", serif;
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .brand::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      background: var(--gold);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--gold-pale);
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 0.8rem;
    }

    .ghost-link {
      color: var(--text-secondary);
      font-weight: 600;
      font-size: 0.95rem;
      padding: 0.4rem 0.8rem;
      border-radius: var(--radius-sm);
      transition: color var(--transition), background var(--transition);
    }

    .ghost-link:hover {
      color: var(--accent-dark);
      background: var(--accent-muted);
    }

    .theme-toggle {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-primary);
      cursor: pointer;
      transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.15rem;
    }

    .theme-toggle:hover {
      transform: translateY(-2px) scale(1.05);
      border-color: var(--gold);
      box-shadow: 0 4px 15px var(--gold-pale);
    }

    [data-theme="light"] .theme-dark,
    [data-theme="dark"] .theme-light { display: none; }

    .mobile-menu-btn {
      display: none;
      width: 44px;
      height: 44px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--bg-card);
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      transition: border-color var(--transition);
    }

    .mobile-menu-btn:hover { border-color: var(--gold); }

    .mobile-menu-btn span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--text-primary);
      border-radius: 2px;
      transition: transform var(--transition), opacity var(--transition);
    }

    .mobile-menu-btn.active span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 95;
      background: color-mix(in srgb, var(--bg) 97%, transparent);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      padding: 100px 2rem 2rem;
      flex-direction: column;
      gap: 0.5rem;
      animation: fadeIn 0.3s ease;
    }

    .mobile-menu-overlay.active { display: flex; }

    .mobile-menu-overlay a {
      font-family: "Amiri", serif;
      font-size: 1.4rem;
      font-weight: 700;
      color: var(--text-primary);
      padding: 1rem;
      border-radius: var(--radius-md);
      transition: background var(--transition);
    }

    .mobile-menu-overlay a:hover {
      background: var(--accent-muted);
    }

    /* ═══════════════════════════════════
       HERO SECTION
       ═══════════════════════════════════ */
    .blog-hero {
      position: relative;
      min-height: clamp(480px, 75vh, 700px);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: linear-gradient(160deg, var(--hero-bg) 0%, var(--hero-bg-alt) 50%, color-mix(in srgb, var(--hero-bg) 80%, var(--accent-dark)) 100%);
    }

    .hero-pattern {
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 5L46 20L62 14L52 28L68 40L52 52L62 66L46 60L40 75L34 60L18 66L28 52L12 40L28 28L18 14L34 20Z' fill='none' stroke='%23c4a35a' stroke-width='0.35' opacity='0.18'/%3E%3Ccircle cx='40' cy='40' r='18' fill='none' stroke='%23c4a35a' stroke-width='0.2' opacity='0.1'/%3E%3C/svg%3E");
      background-size: 80px 80px;
      opacity: 0.7;
      animation: patternDrift 40s linear infinite;
    }

    @keyframes patternDrift {
      0% { background-position: 0 0; }
      100% { background-position: 80px 80px; }
    }

    .hero-glow {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: clamp(300px, 50vw, 600px);
      height: clamp(300px, 50vw, 600px);
      background: radial-gradient(circle, rgba(196, 163, 90, 0.12) 0%, rgba(110, 143, 168, 0.06) 40%, transparent 70%);
      pointer-events: none;
      animation: pulseGlow 6s ease-in-out infinite;
    }

    @keyframes pulseGlow {
      0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
      50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    }

    .hero-centerpiece {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: clamp(200px, 35vw, 400px);
      height: clamp(200px, 35vw, 400px);
      pointer-events: none;
      animation: rotateSlow 80s linear infinite;
      opacity: 0.5;
    }

    .hero-centerpiece svg {
      width: 100%;
      height: 100%;
      filter: drop-shadow(0 0 40px var(--gold-pale));
    }

    @keyframes rotateSlow {
      from { transform: translate(-50%, -50%) rotate(0deg); }
      to { transform: translate(-50%, -50%) rotate(360deg); }
    }

    .floating-geo {
      position: absolute;
      pointer-events: none;
      opacity: 0.25;
    }

    .floating-geo svg {
      filter: drop-shadow(0 0 8px var(--gold-pale));
    }

    .geo-1 {
      top: 12%;
      right: 8%;
      animation: floatGeo 7s ease-in-out infinite;
    }
    .geo-2 {
      bottom: 18%;
      left: 6%;
      animation: floatGeo 9s ease-in-out 1.5s infinite;
    }
    .geo-3 {
      top: 25%;
      left: 12%;
      animation: floatGeo 8s ease-in-out 3s infinite;
    }
    .geo-4 {
      bottom: 30%;
      right: 10%;
      animation: floatGeo 6s ease-in-out 2s infinite;
    }
    .geo-5 {
      top: 60%;
      left: 20%;
      animation: floatGeo 10s ease-in-out 4s infinite;
    }

    @keyframes floatGeo {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      33% { transform: translateY(-15px) rotate(60deg); }
      66% { transform: translateY(10px) rotate(120deg); }
    }

    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      padding: 5rem 0 3rem;
      /* margin-bottom: 30px; */
    }

    .hero-arch-frame {
      position: relative;
      display: inline-block;
      width: 100%;
      max-width: 720px;
    }

    .hero-arch-frame::before {
      content: "";
      position: absolute;
      top: -30px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 30px;
      border: 2px solid var(--gold);
      border-bottom: none;
      border-radius: 60px 60px 0 0;
      opacity: 0.5;
    }

    .hero-arch-frame::after {
      content: "";
      position: absolute;
      bottom: -20px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      opacity: 0.4;
    }

    .hero-kicker {
      margin: 0;
      font-size: 0.85rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 700;
      font-family: "Cairo", sans-serif;
      animation: fadeInUp 0.8s ease both;
    }

    .hero-ornament {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.8rem;
      margin: 0.8rem 0;
      animation: fadeInUp 0.8s ease 0.15s both;
    }

    .hero-ornament .line {
      width: 50px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold));
    }

    .hero-ornament .line:last-child {
      background: linear-gradient(90deg, var(--gold), transparent);
    }

    .hero-ornament .diamond {
      width: 8px;
      height: 8px;
      background: var(--gold);
      transform: rotate(45deg);
      opacity: 0.7;
    }

    .blog-hero h1 {
      margin: 0;
      font-size: clamp(2rem, 5.5vw, 3.6rem);
      font-family: "Amiri", serif;
      line-height: 1.25;
      color: #f0ebe4;
      animation: fadeInUp 0.8s ease 0.3s both;
    }

    .blog-hero h1 .gold-text {
      color: var(--gold);
    }

    .hero-subtitle {
      margin: 1rem auto 0;
      max-width: 580px;
      color: color-mix(in srgb, #f0ebe4 65%, transparent);
      font-size: 1.05rem;
      line-height: 1.8;
      animation: fadeInUp 0.8s ease 0.45s both;
    }

    .hero-search-wrap {
      margin-top: 2rem;
      animation: fadeInUp 0.8s ease 0.6s both;
    }

    .hero-search {
      width: min(600px, 100%);
      margin-inline: auto;
      position: relative;
    }

    .hero-search input {
      width: 100%;
      border-radius: 999px;
      border: 1px solid rgba(196, 163, 90, 0.25);
      padding: 1rem 1.5rem;
      padding-inline-start: 3rem;
      background: color-mix(in srgb, #0f1a24 60%, transparent);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: #f0ebe4;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
      outline: none;
      transition: border-color var(--transition), box-shadow var(--transition);
      font-family: "Cairo", sans-serif;
    }

    .hero-search input::placeholder {
      color: rgba(240, 235, 228, 0.4);
    }

    .hero-search input:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 4px var(--gold-pale), 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    .hero-search .search-icon {
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--gold);
      opacity: 0.5;
      font-size: 1.1rem;
      pointer-events: none;
    }

    [dir="rtl"] .hero-search input {
      padding-inline-start: 1.5rem;
      padding-inline-end: 3rem;
    }

    [dir="rtl"] .hero-search .search-icon {
      right: auto;
      left: 1rem;
    }

    .hero-categories {
      margin-top: 1.5rem;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.6rem;
      animation: fadeInUp 0.8s ease 0.75s both;
    }

    .hero-wave {
      position: absolute;
      bottom: -1px;
      left: 0;
      width: 100%;
      z-index: 3;
      line-height: 0;
    }

    .hero-wave svg {
      width: 100%;
      height: auto;
      display: block;
    }

    /* ═══════════════════════════════════
       ISLAMIC DECORATIVE ELEMENTS
       ═══════════════════════════════════ */
    .islamic-divider {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      padding: 1.5rem 0;
      margin: 0.5rem 0;
    }

    .islamic-divider .div-line {
      flex: 1;
      max-width: 120px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      opacity: 0.3;
    }

    .islamic-divider svg {
      opacity: 0.35;
      flex-shrink: 0;
    }

    .section-heading {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 1.5rem;
    }

    .section-heading .heading-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--gold-pale);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .section-heading .heading-icon svg {
      width: 16px;
      height: 16px;
    }

    .section-heading h2 {
      font-family: "Amiri", serif;
      font-size: 1.6rem;
      margin: 0;
    }

    /* ═══════════════════════════════════
       CATEGORY CHIPS
       ═══════════════════════════════════ */
    .category-chip {
      border: 1px solid rgba(196, 163, 90, 0.25);
      background: color-mix(in srgb, #0f1a24 50%, transparent);
      backdrop-filter: blur(8px);
      border-radius: 999px;
      padding: 0.5rem 1rem;
      color: color-mix(in srgb, #f0ebe4 70%, transparent);
      cursor: pointer;
      font-family: "Cairo", sans-serif;
      font-size: 0.88rem;
      font-weight: 600;
      transition: all var(--transition);
      white-space: nowrap;
    }

    .category-chip:hover {
      transform: translateY(-2px);
      border-color: var(--gold);
      color: #f0ebe4;
      box-shadow: 0 4px 15px var(--gold-pale);
    }

    .category-chip.active {
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      color: #1a1512;
      border-color: var(--gold);
      box-shadow: 0 6px 20px rgba(196, 163, 90, 0.4);
    }

    /* ═══════════════════════════════════
       BLOG LAYOUT
       ═══════════════════════════════════ */
    .blog-layout {
      display: grid;
      grid-template-columns: minmax(0, 2fr) 320px;
      gap: 2.5rem;
      padding: 2rem 0 4rem;
      direction: ltr;
    }

    .blog-main,
    .sidebar {
      direction: rtl;
    }

    .results-row {
      margin: 0.35rem 0 1.2rem;
    }

    .results-summary {
      margin: 0;
      color: var(--text-muted);
      font-size: 0.92rem;
    }

    .blog-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.2rem;
    }

    /* ═══════════════════════════════════
       BLOG CARDS
       ═══════════════════════════════════ */
    .blog-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
      cursor: pointer;
      position: relative;
    }

    .blog-card::before {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 40px;
      height: 40px;
      background: linear-gradient(225deg, var(--gold-pale) 50%, transparent 50%);
      z-index: 2;
      opacity: 0;
      transition: opacity var(--transition);
    }

    .blog-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-md);
      border-color: color-mix(in srgb, var(--gold) 30%, var(--border));
    }

    .blog-card:hover::before { opacity: 1; }

    .card-media {
      position: relative;
      aspect-ratio: 16/10;
      overflow: hidden;
    }

    .card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .blog-card:hover .card-media img {
      transform: scale(1.08);
    }

    .card-badge {
      position: absolute;
      inset: 0.8rem auto auto 0.8rem;
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      color: #1a1512;
      border-radius: 999px;
      padding: 0.3rem 0.75rem;
      font-size: 0.73rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      box-shadow: 0 4px 12px rgba(196, 163, 90, 0.3);
    }

    .card-body {
      padding: 1.1rem 1.2rem;
    }

    .card-meta {
      margin: 0;
      color: var(--text-muted);
      font-size: 0.78rem;
    }

    .card-title {
      margin: 0.4rem 0 0;
      font-size: 1.05rem;
      line-height: 1.45;
      font-weight: 700;
      font-family: "Cairo", sans-serif;
    }

    .card-desc {
      margin: 0.45rem 0 0;
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.7;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .card-footer {
      margin-top: 0.9rem;
      color: var(--accent-dark);
      font-size: 0.85rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      transition: color var(--transition);
    }

    .blog-card:hover .card-footer {
      color: var(--gold-dark);
    }

    .card-footer .arrow {
      transition: transform var(--transition);
      font-size: 0.9rem;
    }

    .blog-card:hover .card-footer .arrow {
      transform: translateX(-4px);
    }

    .no-results {
      margin-top: 1rem;
      background: var(--bg-card);
      border: 1px dashed var(--border);
      border-radius: var(--radius-md);
      padding: 2rem;
      text-align: center;
    }

    .no-results h3 { margin: 0 0 0.35rem; }
    .no-results p { margin: 0; color: var(--text-muted); }

    .pagination {
      margin-top: 1.4rem;
      display: flex;
      justify-content: center;
      gap: 0.45rem;
      flex-wrap: wrap;
    }

    .page-btn {
      min-width: 2.2rem;
      height: 2.2rem;
      border: 1px solid var(--border);
      border-radius: 0.65rem;
      background: var(--bg-card);
      color: var(--text-primary);
      font-family: "Cairo", sans-serif;
      font-weight: 700;
      cursor: pointer;
      transition: all var(--transition);
    }

    .page-btn:hover {
      border-color: var(--gold);
      color: var(--gold-dark);
      transform: translateY(-2px);
    }

    .page-btn.active {
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      color: #1a1512;
      border-color: var(--gold);
      box-shadow: 0 8px 22px rgba(196, 163, 90, 0.34);
    }

    /* ═══════════════════════════════════
       SIDEBAR
       ═══════════════════════════════════ */
    .sidebar {
      align-self: start;
      position: sticky;
      top: 90px;
    }

    .widget {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 1.2rem;
      margin-bottom: 1rem;
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
    }

    .widget::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
      opacity: 0.3;
    }

    .widget h3 {
      margin: 0 0 0.85rem;
      font-size: 1rem;
      font-family: "Amiri", serif;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .widget h3::before {
      content: "";
      display: inline-block;
      width: 6px;
      height: 6px;
      background: var(--gold);
      transform: rotate(45deg);
      flex-shrink: 0;
    }

    .widget p {
      margin: 0;
      color: var(--text-secondary);
      font-size: 0.92rem;
    }

    .widget-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.5rem;
    }

    .widget-list button,
    .widget-list a {
      width: 100%;
      text-align: start;
      border: 0;
      background: var(--bg);
      border-radius: var(--radius-sm);
      padding: 0.65rem 0.85rem;
      color: var(--text-secondary);
      cursor: pointer;
      font-family: "Cairo", sans-serif;
      transition: all var(--transition);
    }

    .widget-list button:hover,
    .widget-list a:hover {
      background: var(--gold-pale);
      color: var(--text-primary);
      transform: translateX(4px);
    }

    .tag-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }

    .tag-cloud span {
      font-size: 0.78rem;
      color: var(--text-secondary);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.3rem 0.65rem;
      transition: all var(--transition);
    }

    .tag-cloud span:hover {
      border-color: var(--gold);
      background: var(--gold-pale);
      color: var(--text-primary);
    }

    .newsletter-form {
      margin-top: 0.85rem;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 0.5rem;
    }

    .newsletter-form input {
      border: 1px solid var(--border);
      background: var(--bg);
      border-radius: var(--radius-sm);
      padding: 0.68rem 0.85rem;
      color: var(--text-primary);
      outline: none;
      transition: border-color var(--transition);
      font-family: "Cairo", sans-serif;
    }

    .newsletter-form input:focus {
      border-color: var(--gold);
    }

    .social-links {
      display: flex;
      gap: 0.45rem;
      flex-wrap: wrap;
    }

    .social-links a {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.4rem 0.75rem;
      font-size: 0.83rem;
      transition: all var(--transition);
    }

    .social-links a:hover {
      transform: translateY(-2px);
      border-color: var(--gold);
      box-shadow: 0 4px 12px var(--gold-pale);
    }

    /* ═══════════════════════════════════
       BUTTONS
       ═══════════════════════════════════ */
    .btn {
      border: none;
      background: linear-gradient(135deg, var(--gold), var(--gold-dark));
      color: #1a1512;
      border-radius: var(--radius-sm);
      padding: 0.62rem 1.1rem;
      cursor: pointer;
      font-weight: 700;
      font-family: "Cairo", sans-serif;
      transition: all var(--transition);
      box-shadow: 0 4px 15px rgba(196, 163, 90, 0.2);
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(196, 163, 90, 0.35);
    }

    .btn-outline {
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-primary);
      box-shadow: none;
      margin-bottom: 1rem;
    }

    .btn-outline:hover {
      border-color: var(--gold);
      background: var(--gold-pale);
      box-shadow: 0 4px 12px var(--gold-pale);
    }

    .btn-sm {
      margin-top: 0.85rem;
      font-size: 0.88rem;
      padding: 0.5rem 0.9rem;
    }

    /* ═══════════════════════════════════
       READER VIEW
       ═══════════════════════════════════ */
    .reader-view {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 1.5rem;
      box-shadow: var(--shadow-md);
      animation: readerIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reader-progress {
      width: 100%;
      height: 4px;
      background: var(--gold-muted);
      border-radius: 999px;
      margin-bottom: 1rem;
      overflow: hidden;
    }

    .reader-progress span {
      display: block;
      width: 0;
      height: 100%;
      background: linear-gradient(90deg, var(--gold), var(--accent));
      border-radius: 999px;
      transition: width 0.18s linear;
    }

    .reader-cover {
      border-radius: var(--radius-md);
      overflow: hidden;
      margin-bottom: 1rem;
      border: 1px solid var(--border);
    }

    .reader-cover img {
      width: 100%;
      aspect-ratio: 16/8;
      object-fit: cover;
    }

    .reader-meta {
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    .reader-title {
      margin: 0.5rem 0 0.35rem;
      font-size: clamp(1.5rem, 2.8vw, 2.2rem);
      font-family: "Amiri", serif;
      line-height: 1.3;
    }

    .reader-content {
      margin-top: 1rem;
      color: var(--text-secondary);
    }

    .reader-content p {
      margin: 1rem 0;
      line-height: 1.85;
    }

    .reader-content blockquote {
      margin: 1.2rem 0;
      border-inline-start: 4px solid var(--gold);
      background: var(--gold-pale);
      padding: 1rem 1.2rem;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      color: var(--text-primary);
      font-weight: 600;
    }

    .reader-content pre {
      margin: 1rem 0;
      background: #0f1117;
      color: #cdd7f2;
      border-radius: var(--radius-sm);
      padding: 1rem;
      font-size: 0.82rem;
      overflow-x: auto;
      direction: ltr;
      text-align: left;
      border: 1px solid var(--border);
    }

    .reader-content code {
      font-family: "JetBrains Mono", monospace;
    }

    .reader-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1.2rem;
    }

    .reader-tags span {
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.28rem 0.65rem;
      font-size: 0.8rem;
      color: var(--text-secondary);
      transition: all var(--transition);
    }

    .reader-tags span:hover {
      border-color: var(--gold);
      background: var(--gold-pale);
    }

    .reader-share {
      margin-top: 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .reader-share strong {
      font-family: "Amiri", serif;
    }

    .reader-share button {
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--bg);
      color: var(--text-secondary);
      padding: 0.4rem 0.75rem;
      cursor: pointer;
      font-family: "Cairo", sans-serif;
      font-size: 0.85rem;
      transition: all var(--transition);
    }

    .reader-share button:hover {
      border-color: var(--gold);
      color: var(--text-primary);
      box-shadow: 0 2px 8px var(--gold-pale);
    }

    /* ═══════════════════════════════════
       FOOTER
       ═══════════════════════════════════ */
    .blog-footer {
      background: var(--bg-alt);
      border-top: 1px solid var(--border);
      padding: 3rem 0 1.5rem;
      margin-top: 2rem;
      position: relative;
    }

    .blog-footer::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

    .footer-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      text-align: center;
    }

    .footer-brand {
      font-family: "Amiri", serif;
      font-size: 1.4rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .footer-brand::before {
      content: "";
      display: inline-block;
      width: 8px;
      height: 8px;
      background: var(--gold);
      border-radius: 50%;
    }

    .footer-desc {
      max-width: 450px;
      color: var(--text-muted);
      font-size: 0.9rem;
      margin: 0;
    }

    .footer-newsletter {
      width: min(560px, 100%);
    }

    .footer-newsletter h3 {
      margin: 0 0 0.5rem;
      font-size: 1rem;
      font-family: "Amiri", serif;
    }

    .footer-newsletter p {
      margin: 0;
      color: var(--text-muted);
      font-size: 0.92rem;
    }

    .footer-newsletter .newsletter-form {
      margin-top: 0.75rem;
    }

    .footer-inner .social-links {
      justify-content: center;
    }

    .footer-copy {
      color: var(--text-muted);
      font-size: 0.8rem;
      margin: 0;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
      width: 100%;
      text-align: center;
    }

    /* ═══════════════════════════════════
       SCROLL TO TOP
       ═══════════════════════════════════ */
    .scroll-top {
      position: fixed;
      bottom: 2rem;
      left: 2rem;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--bg-card);
      color: var(--text-primary);
      cursor: pointer;
      z-index: 80;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-md);
      opacity: 0;
      transform: translateY(20px);
      pointer-events: none;
      transition: all var(--transition);
    }

    .scroll-top.visible {
      opacity: 1;
      transform: translateY(0);
      pointer-events: all;
    }

    .scroll-top:hover {
      border-color: var(--gold);
      box-shadow: 0 4px 20px var(--gold-pale);
      transform: translateY(-3px);
    }

    /* ═══════════════════════════════════
       ANIMATIONS
       ═══════════════════════════════════ */
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

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

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    /* ═══════════════════════════════════
       RESPONSIVE
       ═══════════════════════════════════ */
    @media (max-width: 1024px) {
      .blog-layout {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
      }

      .widget { margin: 0; }
    }

    @media (max-width: 768px) {
      .container {
        width: min(var(--container), 100% - 1.5rem);
      }

      .mobile-menu-btn { display: flex; }

      .ghost-link { display: none; }

      .blog-hero {
        min-height: clamp(420px, 65vh, 550px);
      }

      .hero-centerpiece { display: none; }

      .floating-geo { display: none; }

      .blog-grid {
        grid-template-columns: 1fr;
      }

      .hero-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.3rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }

      .hero-categories::-webkit-scrollbar { display: none; }

      .sidebar {
        grid-template-columns: 1fr;
      }

      .newsletter-form {
        grid-template-columns: 1fr;
      }

      .blog-hero h1 {
        font-size: clamp(1.7rem, 6vw, 2.5rem);
      }

      .hero-subtitle {
        font-size: 0.95rem;
      }
    }

    @media (max-width: 480px) {
      .blog-hero {
        min-height: clamp(380px, 60vh, 500px);
      }

      .hero-content {
        padding: 3rem 0 2rem;
      }

      .card-body {
        padding: 0.9rem 1rem;
      }
    }
