/*
Theme Name: Meyari Urdu
Theme URI: https://example.com/meyari-urdu
Author: Meyari Urdu Team
Author URI: https://example.com
Description: A modern, RTL-first Urdu editorial magazine & blog theme with rich Urdu typography (Jameel Noori Nastaleeq, Noto Nastaliq, Gulzar, Noto Sans), multi-level submenus, and dark mode support.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: urdu-ufaq
Domain Path: /languages
Tags: blog, news, rtl-language-support, accessibility-ready, custom-logo, custom-menu, featured-images, translation-ready
*/

/* -------------------------------------------------------------------------
   1. Urdu Web Fonts (@font-face for Jameel Noori Nastaleeq)
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: local('Jameel Noori Nastaleeq'),
       local('Jameel Noori Nastaleeq Regular'),
       local('JameelNooriNastaleeq'),
       url('https://cdn.jsdelivr.net/gh/ayazabbasi/jameel-noori-nastaleeq-webfont/jameel-noori-nastaleeq.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/ayazabbasi/jameel-noori-nastaleeq-webfont/jameel-noori-nastaleeq.woff') format('woff'),
       url('https://cdn.jsdelivr.net/gh/ayazabbasi/jameel-noori-nastaleeq-webfont/jameel-noori-nastaleeq.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2. Design Tokens & CSS Custom Properties
   ------------------------------------------------------------------------- */
:root {
  /* Colors */
  --uu-bg: #f9fbf9;
  --uu-surface: #ffffff;
  --uu-surface-hover: #f3f7f4;
  --uu-text: #192b28;
  --uu-text-soft: #384e4a;
  --uu-muted: #5e736f;
  --uu-border: #e2e8e3;
  --uu-border-light: #edf2ee;
  --uu-accent: #184e46;
  --uu-accent-dark: #0f352f;
  --uu-accent-soft: #eaf3f0;
  --uu-accent-gold: #c29b38;
  --uu-accent-gold-soft: #fbf5e6;
  --uu-shadow-sm: 0 2px 8px rgba(18, 44, 40, .04);
  --uu-shadow: 0 10px 30px -4px rgba(18, 44, 40, .08);
  --uu-shadow-lg: 0 20px 45px -8px rgba(18, 44, 40, .14);
  --uu-radius-sm: 6px;
  --uu-radius: 10px;
  --uu-radius-lg: 16px;
  --uu-container: 1200px;
  --uu-reading: 780px;

  /* Curated Urdu Font Stacks */
  --uu-font-jameel: "Jameel Noori Nastaleeq", "Jameel Noori", "Noto Nastaliq Urdu", serif;
  --uu-font-noto-nastaliq: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --uu-font-gulzar: "Gulzar", "Noto Nastaliq Urdu", serif;
  --uu-font-noto-sans: "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --uu-font-amiri: "Amiri", serif;
  --uu-font-lateef: "Lateef", "Noto Nastaliq Urdu", serif;
  --uu-font-latin: "Outfit", system-ui, -apple-system, sans-serif;

  /* Permanent Typography - Jameel Noori Nastaleeq */
  --uu-font-heading: var(--uu-font-jameel);
  --uu-font-body: var(--uu-font-jameel);
  --uu-body-size: 21px;
  --uu-lead-size: 23px;
  --uu-line-height-body: 2.45;
  --uu-line-height-heading: 1.6;
}

/* Text Size Scale */
html[data-urdu-size="small"] { --uu-body-size: 17px; --uu-lead-size: 19px; }
html[data-urdu-size="medium"] { --uu-body-size: 19px; --uu-lead-size: 21px; }
html[data-urdu-size="large"] { --uu-body-size: 21px; --uu-lead-size: 23px; }
html[data-urdu-size="xlarge"] { --uu-body-size: 23px; --uu-lead-size: 25px; }

/* Dark Theme Variables */
html[data-theme="dark"] {
  --uu-bg: #0e1715;
  --uu-surface: #152220;
  --uu-surface-hover: #1c2e2b;
  --uu-text: #eaf2ef;
  --uu-text-soft: #c4d5cf;
  --uu-muted: #8da49e;
  --uu-border: #233834;
  --uu-border-light: #1b2c28;
  --uu-accent-soft: rgba(24, 78, 70, 0.35);
  --uu-accent-gold-soft: rgba(194, 155, 56, 0.2);
  --uu-shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --uu-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

/* -------------------------------------------------------------------------
   3. Global Reset & Base
   ------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  direction: rtl;
}
body {
  margin: 0;
  background: var(--uu-bg);
  color: var(--uu-text);
  font-family: var(--uu-font-jameel);
  font-size: var(--uu-body-size);
  line-height: var(--uu-line-height-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Explicit Jameel Noori Nastaleeq across all content */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, button, input, textarea, select,
.site-title-urdu,
.primary-menu a,
.entry-title,
.entry-content,
.post-card h3,
.shayari-quote,
.widget-title,
.section-heading h2 {
  font-family: var(--uu-font-jameel);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--uu-accent); }
button, input, textarea, select { font-family: var(--uu-font-jameel); font-size: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #000; display: block;
  font-size: 14px; height: auto; left: 10px; padding: 12px 16px; top: 10px; width: auto; z-index: 99999;
}

/* -------------------------------------------------------------------------
   4. Header Architecture
   ------------------------------------------------------------------------- */
.site-header {
  background: var(--uu-surface);
  position: relative;
  z-index: 100;
}

/* 4.1 Top Bar (Dark Minimalist Bar) */
.top-bar {
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  max-width: var(--uu-container);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.topbar-social-btn:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  transform: translateY(-1px);
}
.top-bar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-bar-meta .meta-icon {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
}
.top-bar-item.item-time {
  direction: ltr; /* Keeps pm 1:25:59 nicely aligned */
  font-family: var(--uu-font-latin), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.top-bar-item.item-date {
  font-family: var(--uu-font-jameel), var(--uu-font-noto-nastaliq), serif;
  font-size: 14.5px;
}

/* 4.2 Centered Masthead & Branding */
.masthead {
  padding: 28px 24px 22px;
  background: var(--uu-surface);
  border-bottom: 1px solid var(--uu-border);
}
.masthead-inner {
  max-width: var(--uu-container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-branding.masthead-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}
.site-logo-badge {
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-logo-badge .custom-logo-link {
  display: inline-block;
  line-height: 0;
}
.site-logo-badge .custom-logo {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.08));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-logo-badge .custom-logo:hover {
  transform: scale(1.05);
}

/* Fallback Circular Seal */
.brand-seal-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #252525 0%, #0d0d0d 100%);
  border: 3px solid var(--uu-accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-seal-circle:hover {
  transform: scale(1.05);
}
.brand-seal-circle .seal-ring {
  text-align: center;
  color: #fff;
}
.brand-seal-circle .seal-m {
  display: block;
  font-family: var(--uu-font-latin);
  font-size: 32px;
  font-weight: 800;
  color: var(--uu-accent-gold);
  line-height: 1;
}
.brand-seal-circle .seal-name {
  display: block;
  font-family: var(--uu-font-latin);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  margin-top: 2px;
}

/* Site Title & Tagline */
.site-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-title-urdu {
  font-family: var(--uu-font-jameel);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--uu-text);
  letter-spacing: -0.02em;
}
.site-title-urdu a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-title-urdu a:hover {
  color: var(--uu-accent-gold);
}
.site-tagline-sub {
  font-family: var(--uu-font-jameel);
  font-size: 12px;
  font-weight: 500;
  color: var(--uu-accent-gold);
  margin: 22px 0 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 4.3 Navigation Bar */
.main-navigation {
  background: var(--uu-surface);
  border-bottom: 1px solid var(--uu-border);
  position: relative;
  z-index: 110;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}
.main-navigation.is-sticky {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
html[data-theme="dark"] .main-navigation.is-sticky {
  background: rgba(21, 34, 32, 0.94);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: var(--uu-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.nav-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  direction: ltr; /* Left: dark mode, Right: search */
}
.nav-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  margin: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--uu-text);
  cursor: pointer;
  line-height: 0 !important;
  font-size: 0 !important;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-action-btn:hover {
  background: var(--uu-surface-hover);
  color: var(--uu-accent-gold);
  transform: scale(1.05);
}
.nav-action-btn svg {
  display: block !important;
  margin: auto !important;
  flex-shrink: 0;
}
.theme-mode-btn {
  background: var(--uu-surface-hover);
  border-color: var(--uu-border);
  color: var(--uu-text-soft);
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.theme-mode-btn:hover {
  background: var(--uu-accent-gold-soft);
  border-color: var(--uu-accent-gold);
  color: var(--uu-accent-gold);
}
.theme-mode-btn .mode-icon-light,
.theme-mode-btn .mode-icon-dark {
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
}

/* Light mode (default): show moon only */
.theme-mode-btn .mode-icon-light {
  display: inline-flex !important;
}
.theme-mode-btn .mode-icon-dark {
  display: none !important;
}

/* Dark mode: hide moon, show sun only */
html[data-theme="dark"] .theme-mode-btn .mode-icon-light {
  display: none !important;
}
html[data-theme="dark"] .theme-mode-btn .mode-icon-dark {
  display: inline-flex !important;
}
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.primary-menu > li {
  position: relative;
  margin: 0;
}
.primary-menu a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  color: var(--uu-text);
  font-family: var(--uu-font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 6px;
  transition: color 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.primary-menu a:hover {
  color: var(--uu-accent-gold);
}
.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu > li.current-menu-item > a {
  color: var(--uu-accent-gold) !important;
  font-weight: 600;
}
.primary-menu .menu-arrow {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 2px;
}
.menu-arrow-svg {
  display: inline-block;
  transition: transform 0.22s ease;
  opacity: 0.8;
}
.primary-menu li:hover > a .menu-arrow-svg,
.primary-menu li.is-focused > a .menu-arrow-svg {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--uu-accent-gold);
}
.menu-arrow-svg.nested-arrow {
  transform: rotate(0deg);
}
.primary-menu li:hover > a .menu-arrow-svg.nested-arrow,
.primary-menu li.is-focused > a .menu-arrow-svg.nested-arrow {
  transform: translateX(-3px);
}
.submenu-toggle {
  display: none;
}
.nav-actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--uu-text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.drawer-toggle:hover {
  background: var(--uu-surface-hover);
  color: var(--uu-accent);
}
.menu-icon-bars {
  display: flex;
  flex-direction: column;
  gap: 4.5px;
  width: 22px;
}
.menu-icon-bars span {
  display: block;
  height: 2.2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 4.4 Desktop Dropdown Submenus */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 210px;
  max-width: 320px;
  background: var(--uu-surface);
  border: 1px solid var(--uu-border);
  border-radius: var(--uu-radius);
  box-shadow: var(--uu-shadow-lg);
  padding: 8px 6px;
  margin: 0;
  list-style: none;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  pointer-events: none;
}
.primary-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu li.menu-item-has-children.is-focused > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.primary-menu .sub-menu li {
  position: relative;
  width: 100%;
  margin: 1px 0;
}
.primary-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 16px;
  color: var(--uu-text);
  border-radius: var(--uu-radius-sm);
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
  white-space: normal;
}
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a {
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  transform: translateX(-4px);
}
.primary-menu .sub-menu .sub-menu {
  top: -6px;
  right: 100%;
  left: auto;
  margin-right: 4px;
  transform: translateX(8px);
}
.primary-menu .sub-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu .sub-menu li.menu-item-has-children.is-focused > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* 4.5 Expandable Search Drawer */
.header-search-drawer {
  background: var(--uu-surface);
  border-bottom: 2px solid var(--uu-border);
  padding: 20px 24px 18px;
  box-shadow: var(--uu-shadow);
  animation: uuFadeIn 0.22s ease;
}
.search-drawer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-drawer-form-wrap {
  flex: 1;
}
.search-drawer-inner .search-form {
  width: 100%;
}
.search-close-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--uu-border);
  background: var(--uu-surface-hover);
  border-radius: 50%;
  color: var(--uu-text);
  transition: all 0.2s ease;
}
.search-close-btn:hover {
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  border-color: var(--uu-accent);
}
.search-quick-tags {
  max-width: 680px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
}
.search-tag-label {
  color: var(--uu-muted);
  font-size: 13px;
}
.search-quick-tags a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--uu-surface-hover);
  border: 1px solid var(--uu-border);
  color: var(--uu-text-soft);
  font-size: 13px;
  transition: all 0.18s ease;
}
.search-quick-tags a:hover {
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  border-color: var(--uu-accent);
}

/* -------------------------------------------------------------------------
   4.7 Trending Topics Bar (اہم موضوعات کی پٹی)
   ------------------------------------------------------------------------- */
.trending-topics-bar {
  width: 100%;
  background: var(--uu-surface);
  border-top: 1px solid var(--uu-border-light);
  border-bottom: 1px solid var(--uu-border);
  min-height: 58px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  direction: rtl;
  margin-top: 18px;
  margin-bottom: 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

html[data-theme="dark"] .trending-topics-bar {
  background: var(--uu-surface);
  border-top-color: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.trending-inner {
  max-width: var(--uu-container);
  width: 100%;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

/* Badge (Physical Right / RTL Start) */
.trending-badge-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.trending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e69500;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  font-family: var(--uu-font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 20px 8px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
  user-select: none;
}

.trending-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.38);
  filter: brightness(1.05);
}

/* Middle Posts Slider Track */
.trending-track-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.trending-track {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: auto;
  will-change: scroll-position;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 8px;
  cursor: grab;
}

.trending-track::-webkit-scrollbar {
  display: none;
}

.trending-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.trending-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--uu-text);
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.trending-item:hover {
  color: var(--uu-accent-gold);
}

.trending-item-title {
  font-family: var(--uu-font-heading);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  letter-spacing: -0.2px;
  transition: color 0.18s ease;
}

.trending-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--uu-surface-hover);
  border: 1px solid var(--uu-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.trending-item:hover .trending-item-thumb {
  transform: scale(1.08);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  border-color: var(--uu-accent-gold);
}

.trending-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trending-thumb-placeholder {
  color: var(--uu-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation Circular Arrows (Physical Left / RTL End) */
.trending-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  direction: ltr; /* Keeps < on left and > on right matching screenshot */
  z-index: 2;
}

.trending-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--uu-border);
  background: var(--uu-surface);
  color: var(--uu-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--uu-shadow-sm);
}

.trending-arrow-btn:hover {
  background: var(--uu-surface-hover);
  border-color: var(--uu-accent-gold);
  color: var(--uu-accent-gold);
  transform: scale(1.08);
}

.trending-arrow-btn:active {
  transform: scale(0.95);
}

html[data-theme="dark"] .trending-arrow-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--uu-text);
}

html[data-theme="dark"] .trending-arrow-btn:hover {
  background: rgba(217, 119, 6, 0.15);
  border-color: var(--uu-accent-gold);
  color: var(--uu-accent-gold);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .trending-topics-bar {
    margin-top: 14px;
    margin-bottom: 20px;
  }
  .trending-inner {
    padding: 6px 14px;
    gap: 10px;
  }
  .trending-badge {
    font-size: 16px;
    padding: 5px 14px 7px;
    border-radius: 6px;
  }
  .trending-track {
    gap: 16px;
    padding: 3px 4px;
  }
  .trending-item {
    gap: 8px;
  }
  .trending-item-title {
    font-size: 15.5px;
  }
  .trending-item-thumb {
    width: 36px;
    height: 36px;
  }
  .trending-arrow-btn {
    width: 30px;
    height: 30px;
  }
}

/* 4.6 Off-Canvas Drawer (Responsive Sidebar & Mobile Menu) */
.site-offcanvas-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  transition: visibility 0.3s ease;
}
.site-offcanvas-drawer.is-open {
  visibility: visible;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-offcanvas-drawer.is-open .drawer-overlay {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(390px, 88vw);
  background: var(--uu-surface);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  direction: rtl;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.site-offcanvas-drawer.is-open .drawer-panel {
  transform: translateX(0);
}
.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--uu-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.drawer-brand {
  display: flex;
  flex-direction: column;
}
.drawer-title {
  font-family: var(--uu-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--uu-accent);
  line-height: 1.2;
}
.drawer-subtitle {
  font-size: 13px;
  color: var(--uu-accent-gold);
  line-height: 1.4;
  margin-top: 2px;
}
.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--uu-border);
  background: var(--uu-surface-hover);
  color: var(--uu-text);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.drawer-close-btn:hover {
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  border-color: var(--uu-accent);
}
.drawer-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.drawer-search-wrap .search-form {
  width: 100%;
}
.drawer-section-heading {
  font-family: var(--uu-font-heading);
  font-size: 19px;
  color: var(--uu-accent);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--uu-border-light);
  position: relative;
}
.drawer-section-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 36px;
  height: 2px;
  background: var(--uu-accent-gold);
}
.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer-menu > li {
  border-bottom: 1px solid var(--uu-border-light);
  position: relative;
}
.drawer-menu li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.drawer-menu a {
  display: block;
  padding: 12px 6px;
  font-size: 18px;
  font-family: var(--uu-font-heading);
  color: var(--uu-text);
  flex: 1;
  text-decoration: none;
  transition: color 0.18s ease;
}
.drawer-menu a:hover,
.drawer-menu .current-menu-item > a {
  color: var(--uu-accent-gold);
}
.drawer-menu .menu-arrow {
  display: none;
}
.drawer-menu .submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--uu-surface-hover);
  border: 0;
  color: var(--uu-muted);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease;
}
.drawer-menu li.is-expanded > .submenu-toggle {
  transform: rotate(180deg);
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
}
.drawer-menu .sub-menu {
  width: 100%;
  list-style: none;
  padding: 4px 14px 10px;
  margin: 0;
  background: var(--uu-surface-hover);
  border-radius: var(--uu-radius-sm);
  display: none;
  animation: uuFadeIn 0.2s ease;
}
.drawer-menu li.is-expanded > .sub-menu {
  display: block;
}
.drawer-menu .sub-menu a {
  padding: 8px 8px;
  font-size: 16px;
  color: var(--uu-text-soft);
}
.drawer-social-section {
  margin-top: 8px;
}
.drawer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.drawer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--uu-border);
  background: var(--uu-surface-hover);
  color: var(--uu-text);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.drawer-social-btn:hover {
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  border-color: var(--uu-accent);
}
body.drawer-is-open {
  overflow: hidden;
}
/* -------------------------------------------------------------------------
   6. Main Layout & Sidebar
   ------------------------------------------------------------------------- */
.site-main {
  max-width: var(--uu-container);
  margin: 0 auto;
  padding: 34px 24px 70px;
}
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.content-column {
  min-width: 0;
}
.sidebar {
  min-width: 0;
}

/* Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--uu-border);
  position: relative;
}
.section-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 72px;
  height: 2px;
  background: var(--uu-accent-gold);
}
.section-heading h2 {
  margin: 0;
  font-family: var(--uu-font-heading);
  font-size: 26px;
  line-height: 1.4;
  color: var(--uu-accent);
}
.section-link {
  color: var(--uu-accent);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { color: var(--uu-accent-gold); }

/* -------------------------------------------------------------------------
   8. Shayari Carousel (Poetry Hero)
   ------------------------------------------------------------------------- */
.shayari-carousel {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  margin-bottom: 46px;
  background: linear-gradient(135deg, #0e2a25 0%, #173f38 50%, #122f29 100%);
  border-radius: var(--uu-radius-lg);
  box-shadow: var(--uu-shadow-lg);
  border: 1px solid rgba(194, 155, 56, 0.25);
}
.shayari-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.shayari-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.shayari-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.shayari-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(14, 42, 37, 0.65) 0%, rgba(14, 42, 37, 0.94) 100%);
}
.shayari-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  min-height: 410px;
  margin: 0 auto;
  padding: 60px 80px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.shayari-label {
  display: inline-block;
  color: #fff;
  background: var(--uu-accent-gold);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(194, 155, 56, 0.3);
  text-align: center;
}
.shayari-quote {
  margin: 0 0 16px;
  font-family: var(--uu-font-heading);
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.7;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.shayari-quote::before {
  content: "❝ ";
  color: var(--uu-accent-gold);
}
.shayari-quote::after {
  content: " ❞";
  color: var(--uu-accent-gold);
}
.shayari-author {
  margin: 0 0 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.shayari-author::before {
  content: "—";
  color: var(--uu-accent-gold);
}
.shayari-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
}
.shayari-link:hover {
  background: var(--uu-accent-gold);
  border-color: var(--uu-accent-gold);
  color: #fff;
  transform: translateY(-2px);
}
.shayari-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 42, 37, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.shayari-arrow:hover {
  background: var(--uu-accent-gold);
  border-color: var(--uu-accent-gold);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(194, 155, 56, 0.45);
}
.shayari-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.shayari-prev { right: 22px; left: auto; }
.shayari-next { left: 22px; right: auto; }
.shayari-dots {
  position: absolute;
  z-index: 6;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.shayari-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}
.shayari-dot.is-active {
  background: var(--uu-accent-gold);
  border-color: var(--uu-accent-gold);
  transform: scale(1.2);
}

/* -------------------------------------------------------------------------
   9. Post Cards & Blog Feed
   ------------------------------------------------------------------------- */
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--uu-border);
  transition: background 0.2s ease;
}
.post-card:first-child { padding-top: 10px; }
.post-card:last-child { border-bottom: 0; }
.post-card-image {
  order: 2;
  position: relative;
  overflow: hidden;
  border-radius: var(--uu-radius);
  aspect-ratio: 16 / 10;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.post-card:hover .post-card-image img {
  transform: scale(1.05);
}
.post-card-body {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-category {
  display: inline-block;
  align-self: flex-start;
  color: var(--uu-accent);
  background: var(--uu-accent-soft);
  border: 1px solid rgba(24, 78, 70, 0.12);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 8px;
}
.post-card h3 {
  margin: 4px 0 8px;
  font-family: var(--uu-font-heading);
  font-size: 24px;
  line-height: 1.55;
  color: var(--uu-text);
  transition: color 0.2s ease;
}
.post-card h3 a:hover {
  color: var(--uu-accent);
}
.post-excerpt {
  margin: 0 0 10px;
  color: var(--uu-text-soft);
  font-size: 15.5px;
  line-height: 2;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  color: var(--uu-muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-icon {
  opacity: 0.75;
  flex-shrink: 0;
}

.more-posts-wrap {
  text-align: center;
  margin-top: 36px;
}
.more-posts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--uu-surface);
  border: 2px solid var(--uu-accent);
  color: var(--uu-accent);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.more-posts:hover {
  background: var(--uu-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 78, 70, 0.18);
}

/* -------------------------------------------------------------------------
   9.5. Pagination (صفحات کی نیوی گیشن)
   ------------------------------------------------------------------------- */
.pagination {
  margin: 44px 0 24px;
  text-align: center;
  direction: rtl;
  width: 100%;
}
.pagination .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--uu-surface);
  border: 1px solid var(--uu-border);
  border-radius: 999px;
  box-shadow: var(--uu-shadow-sm);
}
.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--uu-font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--uu-text);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pagination a.page-numbers:hover {
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  transform: translateY(-1px);
}
.pagination .page-numbers.current {
  background: var(--uu-accent);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(24, 78, 70, 0.28);
}
.pagination .page-numbers.dots {
  color: var(--uu-muted);
  padding: 0 6px;
}
.pagination .prev.page-numbers,
.pagination .next.page-numbers {
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   10. Sidebar & Widgets
   ------------------------------------------------------------------------- */
.widget {
  padding: 24px;
  margin-bottom: 22px;
  background: var(--uu-surface);
  border: 1px solid var(--uu-border);
  border-radius: var(--uu-radius);
  box-shadow: var(--uu-shadow-sm);
}
.widget-title {
  margin: 0 0 16px;
  font-family: var(--uu-font-heading);
  font-size: 21px;
  color: var(--uu-accent);
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--uu-border-light);
}
.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 44px;
  height: 2px;
  background: var(--uu-accent-gold);
}
.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--uu-border-light);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widget li:last-child { border-bottom: 0; }
.widget li a:hover { color: var(--uu-accent); }
.widget .count {
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   10. Search UI (Gutenberg Block Search & Classic Search Form)
   ------------------------------------------------------------------------- */
/* Gutenberg Block Search (Sidebar Widgets & Page Content) */
.wp-block-search {
  margin-bottom: 24px;
  direction: rtl;
  width: 100%;
}

.wp-block-search .wp-block-search__label,
.widget_search .widget-title {
  display: block;
  font-family: var(--uu-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--uu-accent);
  margin-bottom: 12px;
  text-align: right;
  line-height: 1.4;
}

/* Force container to 100% full width and eliminate broken width constraints */
.wp-block-search.aligncenter .wp-block-search__inside-wrapper,
.wp-block-search .wp-block-search__inside-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--uu-surface) !important;
  border: 1.5px solid var(--uu-border) !important;
  border-radius: var(--uu-radius) !important;
  padding: 5px 6px 5px 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box !important;
  direction: rtl !important;
}

.wp-block-search .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--uu-accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(194, 155, 56, 0.16) !important;
}

.wp-block-search .wp-block-search__input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  color: var(--uu-text) !important;
  font-family: var(--uu-font-heading) !important;
  font-size: 16.5px !important;
  padding: 8px 12px !important;
  outline: none !important;
  box-shadow: none !important;
  direction: rtl !important;
  text-align: right !important;
  line-height: 1.5 !important;
}

.wp-block-search .wp-block-search__input::placeholder {
  color: var(--uu-muted) !important;
  opacity: 0.75;
  font-family: var(--uu-font-heading);
}

.wp-block-search .wp-block-search__button {
  flex-shrink: 0 !important;
  border: none !important;
  background: var(--uu-accent) !important;
  color: #ffffff !important;
  font-family: var(--uu-font-heading) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  box-shadow: 0 2px 8px rgba(24, 78, 70, 0.25) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wp-block-search .wp-block-search__button:hover {
  background: var(--uu-accent-gold) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 155, 56, 0.35) !important;
}

.wp-block-search .wp-block-search__button:active {
  transform: translateY(0);
}

/* Dark mode for Gutenberg Search */
html[data-theme="dark"] .wp-block-search .wp-block-search__inside-wrapper {
  background: var(--uu-surface) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .wp-block-search .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--uu-accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(194, 155, 56, 0.2) !important;
}

html[data-theme="dark"] .wp-block-search .wp-block-search__button {
  background: var(--uu-accent-gold) !important;
  color: #122b27 !important;
  box-shadow: 0 2px 8px rgba(194, 155, 56, 0.3) !important;
}

html[data-theme="dark"] .wp-block-search .wp-block-search__button:hover {
  background: #d4ab46 !important;
}

/* Classic Search Form (Used in searchform.php, Off-Canvas Drawer, Header) */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  width: 100%;
  direction: rtl;
}

.search-form label,
.search-form .search-label-wrap {
  flex: 1;
  width: 100%;
  margin: 0;
}

.search-field {
  width: 100%;
  border: 1.5px solid var(--uu-border);
  background: var(--uu-surface);
  padding: 10px 14px;
  border-radius: var(--uu-radius);
  color: var(--uu-text);
  font-family: var(--uu-font-heading);
  font-size: 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
}

.search-field:focus {
  outline: none;
  border-color: var(--uu-accent-gold);
  box-shadow: 0 0 0 3px rgba(194, 155, 56, 0.16);
}

.search-submit {
  border: 0;
  background: var(--uu-accent);
  color: #ffffff;
  min-width: 46px;
  height: 44px;
  border-radius: var(--uu-radius);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(24, 78, 70, 0.2);
}

.search-submit:hover {
  background: var(--uu-accent-gold);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(194, 155, 56, 0.35);
}

.about-widget p {
  margin: 0;
  font-size: 15px;
  color: var(--uu-text-soft);
  line-height: 2.1;
}

/* -------------------------------------------------------------------------
   11. Single Article View & Typography
   ------------------------------------------------------------------------- */
.entry-header {
  max-width: var(--uu-reading);
  margin: 0 auto 34px;
  text-align: right;
}
.entry-title {
  margin: 10px 0 14px;
  font-family: var(--uu-font-heading);
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.6;
  color: var(--uu-text);
}
.entry-summary {
  color: var(--uu-muted);
  font-size: var(--uu-lead-size);
  line-height: 2.2;
  margin-bottom: 16px;
  font-weight: 500;
}
.entry-meta {
  color: var(--uu-muted);
  font-size: 13.5px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--uu-border);
}
.featured-image {
  margin: 0 auto 38px;
  max-width: 980px;
}
.featured-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--uu-radius-lg);
  box-shadow: var(--uu-shadow);
}
.entry-content {
  max-width: var(--uu-reading);
  margin: 0 auto;
  font-family: var(--uu-font-body);
  font-size: var(--uu-body-size);
  line-height: var(--uu-line-height-body);
  color: var(--uu-text);
}
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--uu-font-heading);
  line-height: 1.65;
  color: var(--uu-accent);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.entry-content h2 { font-size: 32px; border-bottom: 2px solid var(--uu-border-light); padding-bottom: 8px; }
.entry-content h3 { font-size: 26px; }
.entry-content a {
  color: var(--uu-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 16px 26px;
  background: var(--uu-surface-hover);
  border-inline-start: 4px solid var(--uu-accent-gold);
  border-radius: var(--uu-radius-sm);
  color: var(--uu-text-soft);
  font-size: 1.05em;
  font-style: normal;
}

/* Urdu Poetry Couplet (شعر و سخن) Calligraphic Block */
.urdu-sher,
.poetry-block,
blockquote.sher,
blockquote.poetry {
  margin: 2.2em auto;
  max-width: 640px;
  padding: 24px 32px;
  background: linear-gradient(135deg, var(--uu-surface-hover) 0%, rgba(194, 155, 56, 0.07) 100%);
  border: 1.5px solid rgba(194, 155, 56, 0.32);
  border-radius: var(--uu-radius);
  text-align: center;
  position: relative;
  box-shadow: var(--uu-shadow-sm);
}
.urdu-sher::before,
.poetry-block::before,
blockquote.sher::before,
blockquote.poetry::before {
  content: "❦";
  display: block;
  font-size: 18px;
  color: var(--uu-accent-gold);
  margin-bottom: 8px;
  opacity: 0.85;
}
.urdu-sher p,
.poetry-block p,
blockquote.sher p,
blockquote.poetry p {
  margin: 0;
  font-family: var(--uu-font-heading);
  font-size: clamp(21px, 2.5vw, 26px);
  line-height: 2.3;
  color: var(--uu-text);
  font-weight: 600;
}
.urdu-sher .misra-1,
.urdu-sher .misra-2 {
  display: block;
}
.urdu-sher-poet {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--uu-accent-gold);
  font-family: var(--uu-font-heading);
}
.entry-footer {
  max-width: var(--uu-reading);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--uu-border);
}

/* Social Share Bar */
.social-share-bar {
  max-width: var(--uu-reading);
  margin: 32px auto 0;
  padding: 16px 20px;
  background: var(--uu-surface);
  border: 1px solid var(--uu-border);
  border-radius: var(--uu-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--uu-accent);
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.92; color: #fff; }
.share-btn-whatsapp { background: #25d366; }
.share-btn-facebook { background: #1877f2; }
.share-btn-twitter { background: #000000; }
.share-copy-btn {
  background: var(--uu-surface-hover);
  color: var(--uu-text);
  border: 1px solid var(--uu-border);
}
.share-copy-btn:hover { background: var(--uu-accent-soft); color: var(--uu-accent); }

/* Author Bio Box */
.author-bio-box {
  max-width: var(--uu-reading);
  margin: 40px auto 0;
  padding: 24px;
  background: var(--uu-surface);
  border: 1px solid var(--uu-border);
  border-radius: var(--uu-radius);
  display: flex;
  align-items: center;
  gap: 20px;
}
.author-bio-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--uu-accent-gold);
}
.author-bio-title {
  margin: 0 0 4px;
  font-family: var(--uu-font-heading);
  font-size: 20px;
  color: var(--uu-accent);
}
.author-bio-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--uu-text-soft);
  line-height: 1.9;
}

/* Post Navigation (Next / Prev Cards) */
.post-navigation {
  max-width: var(--uu-reading);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}
.nav-prev-wrap,
.nav-next-wrap {
  width: 100%;
  display: flex;
}
.nav-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 18px 22px !important;
  background: var(--uu-surface) !important;
  border: 1.5px solid var(--uu-border) !important;
  border-radius: var(--uu-radius) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.nav-card:hover {
  border-color: var(--uu-accent) !important;
  transform: translateY(-2px);
  box-shadow: var(--uu-shadow);
}
.nav-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--uu-accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--uu-font-heading);
}
.nav-card-title {
  font-family: var(--uu-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--uu-text);
  line-height: 1.55;
  transition: color 0.2s ease;
}
.nav-card:hover .nav-card-title {
  color: var(--uu-accent);
}

/* Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--uu-accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--uu-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999999;
}
.copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Tags */
.tags-links { display: flex; gap: 8px; flex-wrap: wrap; }
.tags-links a {
  background: var(--uu-accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--uu-accent);
  font-size: 13px;
  border: 1px solid rgba(24, 78, 70, 0.1);
}
.tags-links a:hover {
  background: var(--uu-accent);
  color: #fff;
}

/* -------------------------------------------------------------------------
   12. Comments Area & Respond Card
   ------------------------------------------------------------------------- */
.comments-area {
  max-width: var(--uu-reading);
  margin: 50px auto 0;
  direction: rtl;
}

/* Comment Form Card */
.comment-respond {
  background: var(--uu-surface);
  border: 1.5px solid var(--uu-border);
  border-radius: var(--uu-radius-lg);
  padding: 34px 38px 38px;
  margin-top: 36px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  direction: rtl;
}

.comment-reply-title {
  margin: 0 0 16px;
  font-family: var(--uu-font-heading);
  font-size: 26px;
  color: var(--uu-accent);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--uu-border-light);
}
.comment-reply-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 54px;
  height: 2px;
  background: var(--uu-accent-gold);
}
.comment-reply-title-icon {
  color: var(--uu-accent-gold);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.cancel-reply-wrap a {
  font-size: 13.5px;
  color: #e04545;
  text-decoration: underline;
  margin-inline-start: 12px;
  font-family: var(--uu-font-body);
}

/* Logged-in User Banner */
.logged-in-as-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--uu-surface-hover);
  border: 1px solid var(--uu-border);
  border-radius: var(--uu-radius);
  margin-bottom: 22px;
  font-size: 15px;
}
.logged-in-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--uu-accent-gold);
  display: block;
}
.logged-in-text {
  color: var(--uu-text-soft);
  line-height: 1.6;
}
.logged-in-text strong {
  color: var(--uu-accent);
  font-weight: 700;
}
.logged-out-link {
  color: #e04545;
  margin-inline-start: 10px;
  font-weight: 600;
  text-decoration: underline;
}

/* Helper note */
.comment-notes,
.comment-notes-guide {
  margin: 0 0 18px;
  color: var(--uu-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Form Groups & Inputs */
.comment-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comment-field-label {
  font-family: var(--uu-font-heading);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--uu-text);
  margin-bottom: 4px;
  display: block;
}
.comment-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
.comment-form-comment textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1.5px solid var(--uu-border) !important;
  background: var(--uu-surface-hover) !important;
  color: var(--uu-text) !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  font-family: var(--uu-font-heading) !important;
  font-size: 16.5px !important;
  line-height: 1.6 !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  direction: rtl !important;
  text-align: right !important;
}

#commentform textarea:focus,
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
.comment-form-comment textarea:focus {
  border-color: var(--uu-accent-gold) !important;
  background: var(--uu-surface) !important;
  box-shadow: 0 0 0 3px rgba(194, 155, 56, 0.16) !important;
}

#commentform textarea,
.comment-form-comment textarea {
  min-height: 140px;
  resize: vertical;
}

#commentform textarea::placeholder,
#commentform input::placeholder {
  color: var(--uu-muted) !important;
  opacity: 0.75;
  font-family: var(--uu-font-heading);
}

/* Cookie consent */
.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 22px;
  font-size: 14px;
  color: var(--uu-text-soft);
  cursor: pointer;
}
.comment-form-cookies-consent input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--uu-accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Submit Button */
.form-submit {
  margin: 22px 0 0;
}
#commentform .submit,
#commentform button[type="submit"],
#commentform input[type="submit"],
.comment-submit-btn {
  width: auto !important;
  min-width: 180px;
  height: 48px;
  padding: 10px 28px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--uu-accent) !important;
  color: #ffffff !important;
  font-family: var(--uu-font-heading) !important;
  font-size: 16.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 3px 12px rgba(24, 78, 70, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#commentform .submit:hover,
#commentform button[type="submit"]:hover,
#commentform input[type="submit"]:hover,
.comment-submit-btn:hover {
  background: var(--uu-accent-gold) !important;
  color: #122b27 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(194, 155, 56, 0.35) !important;
}
#commentform .submit:active,
#commentform button[type="submit"]:active,
#commentform input[type="submit"]:active,
.comment-submit-btn:active {
  transform: translateY(0);
}

/* Existing Comments List */
.comments-title {
  font-family: var(--uu-font-heading);
  font-size: 26px;
  color: var(--uu-accent);
  margin: 44px 0 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--uu-border-light);
}
.comments-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 44px;
  height: 2px;
  background: var(--uu-accent-gold);
}
.comment-list {
  padding: 0;
  list-style: none;
  margin: 0 0 30px;
}
.comment-body {
  padding: 22px 24px;
  background: var(--uu-surface);
  border: 1px solid var(--uu-border);
  border-radius: var(--uu-radius);
  margin-bottom: 16px;
  box-shadow: var(--uu-shadow-sm);
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--uu-muted);
  font-size: 13.5px;
  margin-bottom: 10px;
}
.comment-author .fn {
  font-family: var(--uu-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--uu-accent);
}
.comment-content {
  font-family: var(--uu-font-body);
  font-size: 17px;
  line-height: 2;
  color: var(--uu-text);
}
.reply a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--uu-accent-soft);
  color: var(--uu-accent);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.reply a:hover {
  background: var(--uu-accent);
  color: #fff;
}

/* Dark mode for comments */
html[data-theme="dark"] .comment-respond {
  background: var(--uu-surface);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] #commentform textarea,
html[data-theme="dark"] #commentform input[type="text"],
html[data-theme="dark"] #commentform input[type="email"],
html[data-theme="dark"] #commentform input[type="url"],
html[data-theme="dark"] .comment-form-comment textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] #commentform textarea:focus,
html[data-theme="dark"] #commentform input:focus,
html[data-theme="dark"] .comment-form-comment textarea:focus {
  background: var(--uu-surface) !important;
  border-color: var(--uu-accent-gold) !important;
}
html[data-theme="dark"] .logged-in-as-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] #commentform .submit,
html[data-theme="dark"] #commentform button[type="submit"],
html[data-theme="dark"] #commentform input[type="submit"],
html[data-theme="dark"] .comment-submit-btn {
  background: var(--uu-accent-gold) !important;
  color: #122b27 !important;
}
html[data-theme="dark"] #commentform .submit:hover,
html[data-theme="dark"] #commentform button[type="submit"]:hover,
html[data-theme="dark"] #commentform input[type="submit"]:hover,
html[data-theme="dark"] .comment-submit-btn:hover {
  background: #d4ab46 !important;
}

/* -------------------------------------------------------------------------
   13. Footer Architecture
   ------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--uu-border);
  background: var(--uu-surface);
  color: var(--uu-text);
  margin-top: 40px;
}
.footer-top {
  border-bottom: 1px solid var(--uu-border);
  padding: 50px 0 40px;
}
.footer-top-inner {
  max-width: var(--uu-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-title {
  font-family: var(--uu-font-heading);
  font-size: 28px;
  color: var(--uu-accent);
  margin: 0 0 6px;
}
.footer-brand-en {
  font-family: var(--uu-font-latin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--uu-accent-gold);
  text-transform: uppercase;
}
.footer-desc {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--uu-muted);
  line-height: 2;
  max-width: 440px;
}
.footer-heading {
  font-family: var(--uu-font-heading);
  font-size: 20px;
  color: var(--uu-accent);
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--uu-border-light);
}
.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--uu-accent-gold);
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li {
  padding: 6px 0;
  font-size: 14.5px;
}
.footer-links-list a { color: var(--uu-muted); }
.footer-links-list a:hover { color: var(--uu-accent); }

.footer-bottom {
  padding: 22px 0;
  background: var(--uu-surface-hover);
}
.footer-bottom-inner {
  max-width: var(--uu-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13.5px;
  color: var(--uu-muted);
}
.footer-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* -------------------------------------------------------------------------
   14. Animations & Keyframes
   ------------------------------------------------------------------------- */
@keyframes uuFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes uuModalPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes uuSlideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 600px; }
}

/* -------------------------------------------------------------------------
   15. Responsive Breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .nav-menu-wrapper {
    display: none; /* Main menu collapses into the Off-Canvas Drawer on tablet & mobile */
  }
  .nav-inner {
    padding: 0 16px;
    min-height: 50px;
  }
  .masthead {
    padding: 22px 16px 18px;
  }
  .site-logo-badge .custom-logo {
    width: 82px;
    height: 82px;
  }
  .site-title-urdu {
    font-size: 28px;
  }
  .site-tagline-sub {
    font-size: 11.5px;
    margin-top: 8px;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-top-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .shayari-content { padding: 48px 64px; }
}

@media (max-width: 640px) {
  .top-bar-inner {
    padding: 6px 14px;
    gap: 10px;
  }
  .top-bar-social {
    gap: 4px;
  }
  .topbar-social-btn {
    width: 25px;
    height: 25px;
  }
  .top-bar-meta {
    gap: 10px;
    font-size: 12px;
  }
  .top-bar-item.item-time {
    font-size: 11.5px;
  }
  .top-bar-item.item-date {
    font-size: 13px;
  }

  .masthead {
    padding: 18px 12px 14px;
  }
  .site-logo-badge .custom-logo {
    width: 72px;
    height: 72px;
  }
  .site-title-urdu {
    font-size: 26px;
  }
  .site-tagline-sub {
    font-size: 11px;
    margin-top: 7px;
  }

  .nav-inner, .site-main, .footer-top-inner, .footer-bottom-inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .shayari-carousel { min-height: 420px; }
  .shayari-content { padding: 36px 48px; min-height: 420px; }
  .shayari-arrow { width: 38px; height: 38px; }
  .shayari-prev { right: 10px; }
  .shayari-next { left: 10px; }

  .post-card {
    grid-template-columns: 1fr 115px;
    gap: 16px;
  }
  .post-card-image { aspect-ratio: 1 / 1; }
  .post-card h3 { font-size: 19px; }
  .post-excerpt { display: none; }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-navigation { grid-template-columns: 1fr; gap: 14px; }
  .author-bio-box { flex-direction: column; text-align: center; }
  .comment-respond { padding: 24px 18px 26px; }
  .comment-reply-title { font-size: 22px; }
  .comment-fields-grid { grid-template-columns: 1fr; }
  #commentform .submit,
  #commentform button[type="submit"],
  #commentform input[type="submit"],
  .comment-submit-btn { width: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shayari-slide, .primary-menu .sub-menu, .font-modal-dialog { transition: none; animation: none; }
}

/* -------------------------------------------------------------------------
   16. Reading Progress Bar & Floating Back to Top
   ------------------------------------------------------------------------- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--uu-accent), var(--uu-accent-gold));
  z-index: 9999999;
  transition: width 0.08s linear;
  box-shadow: 0 1px 4px rgba(194, 155, 56, 0.35);
  pointer-events: none;
}

.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--uu-accent);
  color: #ffffff;
  border: 1.5px solid rgba(194, 155, 56, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-btn:hover {
  background: var(--uu-accent-gold);
  border-color: var(--uu-accent-gold);
  color: #122b27;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(194, 155, 56, 0.45);
}
html[data-theme="dark"] .back-to-top-btn {
  background: var(--uu-surface-hover);
  color: var(--uu-accent-gold);
  border-color: var(--uu-accent-gold);
}
html[data-theme="dark"] .back-to-top-btn:hover {
  background: var(--uu-accent-gold);
  color: #122b27;
}

@media (max-width: 640px) {
  .back-to-top-btn {
    bottom: 20px;
    left: 18px;
    width: 40px;
    height: 40px;
  }
}
