/* ============================================================
   Urdu Coverage — Front Page Editorial Magazine (Jannah RTL style)
   Clean editorial: warm paper background, white blocks, thin rules,
   red accent, Noto Nastaliq Urdu. No bento cards, no emoji chips.
   v6.0.0
   ============================================================ */

.uj-wrap {
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}
.uj-wrap > * { min-width: 0; }

.uj-wrap a { color: inherit; }
.uj-wrap .ic { width: 1em; height: 1em; fill: none; vertical-align: -0.15em; }
.uj-wrap svg.ic use { stroke-width: inherit; }
.uj-wrap #i-flame, .uj-wrap #i-play, .uj-wrap #i-camera, .uj-wrap #i-search { fill: currentColor; stroke: none; }
.uj-wrap .num { font-family: 'Libre Franklin', sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Category badge ---------- */
.uj-cat-badge {
  display: inline-block;
  background: var(--up-red, #c41e3a);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px 8px;
  border-radius: 2px;
}

/* ---------- 1. Ticker ---------- */
.uj-ticker {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--up-border, #d4c9b8);
  border-top: 2px solid var(--up-red, #c41e3a);
  margin-top: 1rem;
  overflow: hidden;
}
.uj-ticker-label {
  flex-shrink: 0;
  background: var(--up-red, #c41e3a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
}
.uj-ticker-label::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: var(--up-red, #c41e3a);
  border-left: none;
}
.uj-ticker-trackbox { overflow: hidden; flex-grow: 1; }
.uj-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 0;
  animation: uj-tick 60s linear infinite;
}
.uj-ticker-trackbox:hover .uj-ticker-track { animation-play-state: paused; }
.uj-ticker-item a { font-size: 13.5px; }
.uj-ticker-item a:hover { color: var(--up-red, #c41e3a); }
.uj-ticker-sep { color: var(--up-red, #c41e3a); margin: 0 12px; font-size: 11px; }
@keyframes uj-tick { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- 2. Featured: slider + side grid ---------- */
.uj-featured {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.uj-slider {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: #1a1613;
}
.uj-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.uj-slide.on { opacity: 1; z-index: 2; }
.uj-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uj-slide-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,10,8,.88) 0%, rgba(15,10,8,.35) 45%, rgba(15,10,8,0) 70%);
}
.uj-slide-cap {
  position: absolute;
  right: 0; left: 0; bottom: 0;
  padding: 20px 22px 46px;
  color: #fff;
}
.uj-slide-cap h2 { font-size: 21px; line-height: 2.1; margin: 8px 0 2px; }
.uj-slide-cap h2 a:hover { color: #f3d9b0; }
.uj-slide-meta { font-size: 12px; color: #d8cfc4; display: flex; align-items: center; gap: 8px; }
.uj-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 38px; height: 38px;
  background: rgba(20,14,10,.55);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.uj-slider-arrow:hover { background: var(--up-red, #c41e3a); }
.uj-slider-arrow .ic { width: 18px; height: 18px; }
.uj-prev { right: 10px; }
.uj-next { left: 10px; }
.uj-slider-dots {
  position: absolute; bottom: 14px; right: 20px; z-index: 5;
  display: flex; gap: 6px;
}
.uj-slider-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.uj-slider-dots button.on { background: var(--up-red, #c41e3a); border-color: var(--up-red, #c41e3a); }

.uj-sidegrid {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}
.uj-sidepost { position: relative; overflow: hidden; background: #1a1613; min-height: 100px; }
.uj-sidepost img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform .5s ease; }
.uj-sidepost:hover img { transform: scale(1.05); }
.uj-sidepost h3 {
  position: absolute; right: 0; left: 0; bottom: 0;
  color: #fff; font-size: 13.5px; line-height: 1.9;
  padding: 26px 12px 10px;
}

/* ---------- 3. Main row ---------- */
.uj-mainrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.uj-maincol, .uj-sidebar, .uj-block, .uj-duo > .uj-block { min-width: 0; }

/* ---------- Block (mag box) ---------- */
.uj-block {
  background: #fff;
  border: 1px solid #e7e0d3;
  padding: 18px 20px 20px;
  margin-bottom: 24px;
}
.uj-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid #efe9dd;
  padding-bottom: 0;
  margin-bottom: 16px;
}
.uj-block-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  position: relative;
  padding-bottom: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.uj-block-title::after {
  content: '';
  position: absolute;
  right: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--up-red, #c41e3a);
}
.uj-more {
  font-size: 12px;
  color: var(--up-text-muted, #7a6b5e);
  white-space: nowrap;
  margin-right: auto;
  padding-bottom: 10px;
}
.uj-more:hover { color: var(--up-red, #c41e3a); }
.uj-more::before { content: '← '; }

/* ---------- Jannah-style news tabs ---------- */
.uj-jtabs-wrap {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid #efe9dd;
  margin-bottom: 18px;
}
.uj-jtabs-scroll { flex-grow: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.uj-jtabs-scroll::-webkit-scrollbar { display: none; }
.uj-jtabs { display: flex; }
.uj-jtabs button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--up-font-main);
  font-size: 13px;
  color: var(--up-text, #2c1e1a);
  padding: 6px 16px 12px;
  white-space: nowrap;
  transition: color .15s;
}
.uj-jtabs button + button { border-inline-start: 1px solid #eee5d8; }
.uj-jtabs button:not(.on):hover { color: var(--up-red, #c41e3a); }
.uj-jtabs button.on {
  background: #e7b90f;
  color: #241c10;
  font-weight: 700;
}
.uj-jmore {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--up-text-muted, #7a6b5e);
  padding: 6px 0 12px 14px;
  margin-inline-start: 6px;
  border-inline-start: 1px solid #eee5d8;
}
.uj-jmore:hover { color: var(--up-red, #c41e3a); }
.uj-jmore .ic { width: 12px; height: 12px; }

.uj-jpanel { display: none; }
.uj-jpanel.on {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0 22px;
  align-items: start;
}

/* Featured article (right column) */
.uj-jfeat { position: relative; min-width: 0; }
.uj-jfeat-img { display: block; position: relative; overflow: hidden; }
.uj-jfeat-img img { width: 100%; height: 310px; object-fit: cover; display: block; transition: transform .5s ease; }
.uj-jfeat-img:hover img { transform: scale(1.04); }
.uj-jbadge { position: absolute; bottom: 12px; left: 12px; }
.uj-jfeat-title { font-size: 19px; line-height: 2.1; margin: 14px 0 4px; }
.uj-jfeat-title a:hover { color: var(--up-red, #c41e3a); }
.uj-jfeat-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--up-text-muted, #7a6b5e);
  margin-bottom: 4px;
}
.uj-jfeat-numchip {
  width: 21px; height: 21px;
  background: #16130f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.uj-date-rtl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  direction: rtl;
  unicode-bidi: isolate;
}
.uj-jfeat-author { color: var(--up-text, #2c1e1a); font-weight: 600; }
.uj-jfeat-ex { font-size: 13px; color: var(--up-text-muted, #7a6b5e); line-height: 2.2; margin: 0; }

/* List column (left) */
.uj-jside { min-width: 0; }
.uj-jlist { border-top: 1px solid #f0e9dc; }
.uj-jitem {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #f3eee4;
}
.uj-jitem img {
  width: 98px;
  height: 74px;
  object-fit: cover;
  flex-shrink: 0;
}
.uj-jitem-txt { min-width: 0; flex-grow: 1; }
.uj-jitem h3 { font-size: 13.5px; line-height: 2; margin: 0 0 3px; transition: color .15s; }
.uj-jitem:hover h3 { color: var(--up-red, #c41e3a); }
.uj-jitem-date { font-size: 11px; color: var(--up-text-muted, #7a6b5e); }
.uj-jitem.hidden { display: none; }

/* List pagination arrows */
.uj-jnav { display: flex; gap: 6px; padding-top: 12px; justify-content: flex-start; }
.uj-jnav button {
  width: 30px; height: 30px;
  border: 1px solid #e0d8c8;
  background: #fff;
  color: var(--up-text-muted, #7a6b5e);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.uj-jnav button:hover:not(:disabled) { background: var(--up-red, #c41e3a); color: #fff; border-color: var(--up-red, #c41e3a); }
.uj-jnav button:disabled { opacity: .35; cursor: default; }
.uj-jnav .ic { width: 13px; height: 13px; }

/* Lead + stack layout */
.uj-lead { margin-bottom: 14px; }
.uj-lead-img { display: block; position: relative; overflow: hidden; }
.uj-lead-img img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .5s ease; }
.uj-lead-img:hover img { transform: scale(1.04); }
.uj-lead-img .uj-cat-badge { position: absolute; top: 12px; right: 12px; }
.uj-lead-title { font-size: 18px; line-height: 2.1; margin: 12px 0 4px; }
.uj-lead-title a:hover { color: var(--up-red, #c41e3a); }
.uj-lead-ex { font-size: 13.5px; color: var(--up-text-muted, #7a6b5e); line-height: 2.2; margin: 0 0 6px; }
.uj-meta { font-size: 11.5px; color: var(--up-text-muted, #7a6b5e); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.uj-meta .ic { width: 13px; height: 13px; }
.uj-meta-sep { color: #c9bfae; }
.uj-cook { color: var(--up-red, #c41e3a); font-weight: 700; }
.uj-cat-inline { color: var(--up-red, #c41e3a); font-weight: 700; }

/* Stack list */
.uj-stack { border-top: 1px solid #efe9dd; }
.uj-stack-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f3eee4;
}
.uj-stack-item:last-child { border-bottom: none; }
.uj-stack-txt { flex-grow: 1; }
.uj-stack-item h3 { font-size: 14px; line-height: 2; margin: 0 0 2px; transition: color .2s; }
.uj-stack-item:hover h3 { color: var(--up-red, #c41e3a); }
.uj-stack-item img {
  width: 96px; height: 72px;
  object-fit: cover; flex-shrink: 0; display: block;
}

/* ---------- Duo (dictionary + names) ---------- */
.uj-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.uj-duo .uj-block { margin-bottom: 24px; }

.uj-searchform { position: relative; margin-bottom: 12px; }
.uj-searchform input,
.uj-searchwrap input {
  width: 100%;
  border: 1px solid #e0d8c8;
  background: #fbf9f4;
  padding: 8px 40px 10px 12px;
  font-family: var(--up-font-main);
  font-size: 13.5px;
  color: var(--up-text, #2c1e1a);
  outline: none;
}
.uj-searchform input:focus,
.uj-searchwrap input:focus { border-color: var(--up-red, #c41e3a); background: #fff; }
.uj-searchform button {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 36px;
  background: none; border: none; cursor: pointer;
  color: var(--up-text-muted, #7a6b5e);
  display: flex; align-items: center; justify-content: center;
}
.uj-searchform button .ic { width: 16px; height: 16px; }
.uj-searchwrap { position: relative; margin-bottom: 14px; }
.uj-livedrop {
  display: none;
  position: absolute; top: 100%; right: 0; left: 0;
  background: #fff;
  border: 1px solid #e0d8c8;
  box-shadow: 0 10px 28px rgba(44,30,26,.12);
  z-index: 30;
  margin-top: 3px;
  padding: 4px;
}

/* Legacy Word boxes */
.uj-wordbox {
  background: #faf7f0;
  border-right: 3px solid var(--up-red, #c41e3a);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.uj-wordbox-top { display: flex; justify-content: space-between; align-items: center; }
.uj-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--up-red, #c41e3a);
  letter-spacing: .3px;
}
.uj-kicker-green { color: #2e7d4f; }
.uj-word { font-size: 24px; font-weight: 700; color: var(--up-red-dark, #9a1830); line-height: 2.1; }
.uj-word-phon { font-size: 12px; color: var(--up-text-muted, #7a6b5e); margin-bottom: 2px; }
.uj-word-meaning, .uj-word-eng, .uj-word-lucky { font-size: 12.5px; color: var(--up-text, #2c1e1a); line-height: 2; }
.uj-word-eng { color: var(--up-text-muted, #7a6b5e); }
.uj-word-link { display: inline-block; font-size: 12px; font-weight: 700; color: var(--up-red, #c41e3a); margin-top: 4px; }
.uj-word-link:hover { color: var(--up-red-dark, #9a1830); }
.uj-word-row { display: flex; align-items: baseline; gap: 10px; }
.uj-poplist { font-size: 12px; color: var(--up-text-muted, #7a6b5e); display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.uj-poplist a { color: var(--up-text, #2c1e1a); padding: 0 2px; border-bottom: 1px dotted #c9bfae; }
.uj-poplist a:hover { color: var(--up-red, #c41e3a); border-bottom-color: var(--up-red, #c41e3a); }
.uj-poplist a:not(:first-of-type)::before { content: '·'; margin-left: 8px; color: #c9bfae; border: none; }

/* ---------- Kids 6-Story Illustrated Showcase ---------- */
.uj-kids-showcase {
  background: #ffffff;
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: 0 4px 18px -4px rgba(245, 158, 11, 0.08);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.uj-kids-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #fef3c7;
}
.uj-kids-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.uj-kids-balloon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  animation: ujKidsFloat 3s ease-in-out infinite alternate;
  flex-shrink: 0;
}
@keyframes ujKidsFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
.uj-kids-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.8;
  padding: 2px 0;
}
.uj-kids-sub {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.7;
  padding: 1px 0;
}
.uj-kids-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  color: #0f172a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.6;
}
.uj-kids-all-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.uj-kids-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.uj-kids-search-box {
  position: relative;
  flex: 1 1 auto;
  height: 40px;
}
.uj-kids-search-box input {
  width: 100%;
  height: 40px;
  padding: 8px 38px 8px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
  transition: all 0.2s;
  box-sizing: border-box;
}
.uj-kids-search-box input:focus {
  border-color: #38bdf8;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.uj-kids-search-ico {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  pointer-events: none;
  opacity: 0.65;
  z-index: 2;
}

.uj-kids-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.uj-kpill {
  padding: 5px 13px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s;
  outline: none;
  user-select: none;
}
.uj-kpill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
.uj-kpill.on {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* 6-Story Storybook Cards Grid */
.uj-kids-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  box-sizing: border-box;
}
.uj-kcard {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.uj-kcard:hover {
  border-color: #f59e0b;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px -4px rgba(245, 158, 11, 0.18);
  background: #fffdfa;
}
.uj-kcard-thumb {
  width: 100%;
  height: 142px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.uj-kcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}
.uj-kcard:hover .uj-kcard-thumb img {
  transform: scale(1.06);
}
.uj-kcard-badge-cat {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
}
.uj-kcard-badge-cat.is-moral { background: rgba(254, 243, 199, 0.95); color: #b45309; }
.uj-kcard-badge-cat.is-islamic { background: rgba(209, 250, 229, 0.95); color: #065f46; }
.uj-kcard-badge-cat.is-animal { background: rgba(255, 237, 213, 0.95); color: #c2410c; }
.uj-kcard-badge-cat.is-poem { background: rgba(243, 232, 255, 0.95); color: #7e22ce; }
.uj-kcard-badge-cat.is-fact { background: rgba(224, 242, 254, 0.95); color: #0369a1; }

.uj-kcard-badge-time {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.uj-kcard-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.uj-kcard-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: 52px;
}
.uj-kcard:hover .uj-kcard-title {
  color: #d97706;
}
.uj-kcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #f1f5f9;
}
.uj-kcard-read {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 800;
  line-height: 1.6;
}
.uj-kcard:hover .uj-kcard-read {
  color: #d97706;
}
.uj-kcard-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 900px) {
  .uj-kids-grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .uj-kids-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }
  .uj-kids-search-box {
    flex: none;
    width: 100%;
    height: 40px;
  }
  .uj-kids-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .uj-kids-filter-pills::-webkit-scrollbar {
    display: none;
  }
  .uj-kpill {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
@media (max-width: 580px) {
  .uj-kids-showcase {
    padding: 16px 14px 18px;
  }
  .uj-kids-grid-6 {
    grid-template-columns: 1fr;
  }
  .uj-kids-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .uj-kids-all-btn {
    align-self: flex-start;
  }
}

/* Legacy fallback support */
.uj-kidslist { border-top: 1px solid #efe9dd; }
.uj-kidsitem { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f3eee4; align-items: flex-start; }
.uj-kidsitem:last-child { border-bottom: none; }
.uj-kidsitem img { width: 120px; height: 84px; object-fit: cover; flex-shrink: 0; }
.uj-kidsitem h3 { font-size: 14.5px; line-height: 2; margin: 2px 0; }
.uj-kidsitem:hover h3 { color: var(--up-red, #c41e3a); }
.uj-kidsmoral { font-size: 12px; color: var(--up-text-muted, #7a6b5e); margin: 0; }

/* ---------- Food & Recipes (Editorial Video / Showcase Style) ---------- */
.uj-foodrow {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.uj-foodhero {
  position: relative;
  min-height: 310px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1613;
}
.uj-foodhero-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.uj-foodhero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.uj-foodhero:hover .uj-foodhero-media img {
  transform: scale(1.04);
}
.uj-foodhero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,10,8,0.92) 0%, rgba(15,10,8,0.35) 55%, rgba(15,10,8,0.05) 100%);
}
.uj-foodhero-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--up-gold, #c9a84c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}
.uj-foodhero-cap {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 16px 18px;
  color: #fff;
  z-index: 2;
}
.uj-foodhero-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #facc15;
  margin-bottom: 2px;
}
.uj-foodhero-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  line-height: 2.1;
  margin: 2px 0 6px;
}
.uj-foodhero-meta {
  font-size: 12px;
  color: #fed7aa;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.uj-foodlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}
.uj-fooditem {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #faf7f2;
  border: 1px solid #efe8da;
  border-radius: 6px;
  padding: 9px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.uj-fooditem:hover {
  background: #fff;
  border-color: var(--up-gold, #c9a84c);
  transform: translateX(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}
.uj-foodth {
  position: relative;
  width: 104px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f0e9dc;
}
.uj-foodth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uj-foodth-time {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: rgba(0,0,0,0.8);
  color: #facc15;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px 2px;
  border-radius: 3px;
  line-height: 1.3;
}
.uj-foodtxt {
  flex-grow: 1;
  min-width: 0;
}
.uj-fooditem-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 2px;
}
.uj-fooditem h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  line-height: 1.9;
  margin: 0 0 2px;
  transition: color 0.15s ease;
}
.uj-fooditem:hover h4 {
  color: var(--up-red, #c41e3a);
}
.uj-fooditem-more {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--up-red, #c41e3a);
}

@media (max-width: 640px) {
  .uj-foodrow {
    grid-template-columns: 1fr;
  }
  .uj-foodhero {
    min-height: 250px;
  }
}

/* ---------- Mobile Phones Prices Showcase (UrduPoint Style) ---------- */
.uj-mobiles-section {
  background: #fff;
  border: 1px solid #e7e0d3;
  padding: 18px 20px 20px;
  border-top: 3px solid var(--up-red, #c41e3a);
  margin-bottom: 24px;
}
.uj-block-head-right {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.uj-block-subtag {
  font-size: 12px;
  color: var(--up-text-muted, #7a6b5e);
  font-weight: 500;
}
.uj-mobgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 14px 0 16px;
}
.uj-mobcard {
  position: relative;
  background: #fbf9f5;
  border: 1px solid #efe7d8;
  border-radius: 8px;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.uj-mobcard:hover {
  background: #fff;
  border-color: var(--up-red, #c41e3a);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.uj-mobbrand-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f1ebd8;
  color: #78350f;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.uj-mobimg {
  display: block;
  height: 135px;
  padding: 8px 0;
  margin-bottom: 8px;
  text-decoration: none;
  overflow: hidden;
}
.uj-mobimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.uj-mobcard:hover .uj-mobimg img {
  transform: scale(1.08);
}
.uj-mobinfo {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.uj-mobtitle {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 4px;
}
.uj-mobtitle a {
  color: var(--up-text, #2c1e1a);
  text-decoration: none;
  transition: color 0.15s ease;
}
.uj-mobtitle a:hover {
  color: var(--up-red, #c41e3a);
}
.uj-mobspecs {
  font-size: 11px;
  color: var(--up-text-muted, #7a6b5e);
  line-height: 1.5;
  margin-bottom: 8px;
  direction: ltr;
  text-align: center;
}
.uj-mobprice-wrap {
  background: #fef2f2;
  border: 1px dashed #fecdd3;
  border-radius: 6px;
  padding: 5px 8px 6px;
  margin-bottom: 10px;
}
.uj-mobcard .uj-mobprice-wrap:last-child {
  margin-bottom: 0;
}
.uj-mobprice-lbl {
  display: block;
  font-size: 10.5px;
  color: #991b1b;
  line-height: 1.4;
}
.uj-mobprice-val {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--up-red-dark, #9a1830);
  line-height: 1.3;
}
.uj-mobbtn {
  display: block;
  background: #f5eee0;
  color: var(--up-text, #2c1e1a) !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px 7px;
  border-radius: 5px;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.7;
}
.uj-mobbtn:hover {
  background: var(--up-red, #c41e3a);
  color: #fff !important;
}
.uj-mobbrands-bar {
  background: #faf7f0;
  border: 1px solid #eee5d3;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.uj-mobbrands-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  flex-shrink: 0;
}
.uj-mobbrands-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.uj-brandpill {
  background: #fff;
  border: 1px solid #e0d7c5;
  color: var(--up-text, #2c1e1a);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 10px 4px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.uj-brandpill:hover {
  background: var(--up-red, #c41e3a);
  color: #fff;
  border-color: var(--up-red, #c41e3a);
}

@media (max-width: 900px) {
  .uj-mobgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .uj-mobgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .uj-mobcard {
    padding: 8px;
  }
  .uj-mobimg {
    height: 110px;
  }
  .uj-mobtitle {
    font-size: 13px;
  }
  .uj-mobprice-val {
    font-size: 13.5px;
  }
}

/* ---------- Women & Lifestyle (Editorial Showcase) ---------- */
.uj-womenrow {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.uj-womenhero {
  position: relative;
  min-height: 310px;
  border-radius: 6px;
  overflow: hidden;
  background: #1f1118;
}
.uj-womenhero-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.uj-womenhero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.uj-womenhero:hover .uj-womenhero-media img {
  transform: scale(1.04);
}
.uj-womenhero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35,10,22,0.92) 0%, rgba(35,10,22,0.35) 55%, rgba(35,10,22,0.05) 100%);
}
.uj-womenhero-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}
.uj-womenhero-cap {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 16px 18px;
  color: #fff;
  z-index: 2;
}
.uj-womenhero-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #fbcfe8;
  background: rgba(225,29,72,0.3);
  padding: 1px 8px 2px;
  border-radius: 3px;
  margin-bottom: 4px;
}
.uj-womenhero-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  line-height: 2.1;
  margin: 2px 0 6px;
}
.uj-womenhero-meta {
  font-size: 12px;
  color: #fbcfe8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.uj-womenlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}
.uj-womenitem {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fffafb;
  border: 1px solid #fae8ec;
  border-radius: 6px;
  padding: 9px 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.uj-womenitem:hover {
  background: #fff;
  border-color: #e11d48;
  transform: translateX(-3px);
  box-shadow: 0 3px 10px rgba(225,29,72,0.06);
}
.uj-womenth {
  position: relative;
  width: 104px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fdf2f4;
}
.uj-womenth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uj-womenth-tag {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: rgba(159,18,57,0.85);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px 2px;
  border-radius: 3px;
  line-height: 1.3;
}
.uj-womentxt {
  flex-grow: 1;
  min-width: 0;
}
.uj-womenitem-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #be123c;
  margin-bottom: 2px;
}
.uj-womenitem h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  line-height: 1.9;
  margin: 0 0 2px;
  transition: color 0.15s ease;
}
.uj-womenitem:hover h4 {
  color: #e11d48;
}
.uj-womenitem-more {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #e11d48;
}

@media (max-width: 640px) {
  .uj-womenrow {
    grid-template-columns: 1fr;
  }
  .uj-womenhero {
    min-height: 250px;
  }
}

/* ---------- 3-Part Poetry Showcase (شعرِ امروز) ---------- */
.uj-poetry-trio {
  background: #fdfbf7;
  border: 1px solid #ebdcc5;
  border-top: 3px solid var(--up-gold, #c9a84c);
  border-radius: 6px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(120, 90, 40, 0.05);
  overflow: hidden;
}
.uj-poetry-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee1cd;
  background: #faf6ee;
}
.uj-poetry-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.uj-poetry-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.uj-poetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #881337;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(136, 19, 55, 0.2);
}
.uj-poetry-badge .ic {
  width: 14px;
  height: 14px;
}
.uj-poet-avatars {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  width: 100%;
}
.uj-poet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 5px;
  background: #fff;
  border: 1px solid #ded3c1;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.uj-poet-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.uj-poet-pill-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #4a3b32;
}
.uj-poet-pill:hover,
.uj-poet-pill.active {
  background: #881337;
  border-color: #881337;
}
.uj-poet-pill:hover .uj-poet-pill-name,
.uj-poet-pill.active .uj-poet-pill-name {
  color: #fff;
}
.uj-poetry-grid {
  display: grid;
  grid-template-columns: 200px 1fr 190px;
  gap: 14px;
  padding: 16px;
  align-items: stretch;
}
.uj-poetry-col {
  min-width: 0;
}

/* Part 1: Poet Card (Right in RTL) */
.uj-poet-card {
  background: #fff;
  border: 1px solid #ebdcc5;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.uj-poet-avatar-frame {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #c9a84c, #881337, #c9a84c);
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.uj-poet-avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #fff;
}
.uj-poet-era-tag {
  position: absolute;
  bottom: -4px;
  right: 50%;
  transform: translateX(50%);
  background: #1a1613;
  color: #f5d580;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 600;
}
.uj-poet-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #1a1613;
  margin: 4px 0 2px;
}
.uj-poet-title {
  font-size: 11px;
  color: #7a6b5e;
  margin: 0 0 10px;
  font-weight: 500;
}
.uj-poet-profile-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #881337;
  border: 1px solid #ebd0d6;
  background: #fdf6f7;
  padding: 3px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: all .2s ease;
}
.uj-poet-profile-btn:hover {
  background: #881337;
  color: #fff;
  border-color: #881337;
}

/* Part 2: Couplet Box (Center in RTL) */
.uj-couplet-box {
  background: #fff;
  border: 1px solid #ebdcc5;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  position: relative;
}
.uj-couplet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #e6d7c3;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.uj-couplet-ornament {
  font-family: serif;
  font-size: 24px;
  line-height: 1;
  color: #c9a84c;
  opacity: 0.85;
}
.uj-couplet-topic {
  font-size: 11.5px;
  font-weight: 700;
  color: #881337;
  background: #faf0f2;
  padding: 2px 10px;
  border-radius: 12px;
}
.uj-couplet-dots {
  display: flex;
  gap: 4px;
}
.uj-cdot {
  background: #f0e9df;
  border: 1px solid #ded5c7;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 4px;
  cursor: pointer;
  color: #5a4a3f;
  transition: all .2s;
}
.uj-cdot.active,
.uj-cdot:hover {
  background: #881337;
  color: #fff;
  border-color: #881337;
  font-weight: 700;
}
.uj-couplet-verse {
  text-align: center;
  padding: 6px 4px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.verse-line {
  font-family: var(--up-font-poetry, 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif) !important;
  font-size: 17.5px;
  font-weight: 600;
  color: #881337;
  line-height: 2.2;
}
.verse-line.line-2 {
  color: #1e293b;
}
.uj-couplet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #e6d7c3;
  padding-top: 8px;
  margin-top: auto;
}
.uj-couplet-src-info {
  font-size: 12px;
  color: #7a6b5e;
}
.uj-couplet-poet-ref {
  font-weight: 700;
  color: #1a1613;
}
.uj-couplet-book-ref {
  color: #8c7b6c;
  margin-right: 4px;
}
.uj-couplet-actions {
  display: flex;
  gap: 6px;
}
.uj-btn-caction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #ded5c7;
  background: #fbf9f5;
  color: #4a3b32;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.uj-btn-caction:hover {
  background: #f3ece0;
  border-color: #c9a84c;
  color: #1a1613;
}
.uj-btn-whatsapp {
  color: #075e54;
  border-color: #dcf8c6;
  background: #f0fbf0;
}
.uj-btn-whatsapp:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

/* Part 3: Library Book (Left in RTL) */
.uj-library-book-card {
  background: #fff;
  border: 1px solid #ebdcc5;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.uj-book-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: #c9a84c;
  background: #fcf6e8;
  border: 1px solid #f0dfb8;
  padding: 1px 8px;
  border-radius: 10px;
}
.uj-book-3d-wrapper {
  perspective: 600px;
  margin: 6px auto;
  display: flex;
  justify-content: center;
}
.uj-book-3d {
  width: 100px;
  height: 130px;
  position: relative;
  border-radius: 2px 6px 6px 2px;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  box-shadow: 4px 6px 14px rgba(0,0,0,0.22), -2px 0 4px rgba(0,0,0,0.1);
  transition: transform .3s ease;
}
.uj-book-3d:hover {
  transform: rotateY(-2deg) rotateX(0deg) scale(1.03);
}
.uj-book-spine {
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 100%;
  background: rgba(0,0,0,0.25);
  border-radius: 2px 0 0 2px;
  border-left: 1px solid rgba(255,255,255,0.2);
  z-index: 3;
}
.uj-book-cover {
  width: 100%;
  height: 100%;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 2px 6px 6px 2px;
  position: relative;
  overflow: hidden;
}
.uj-book-real-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px 6px 6px 2px;
  display: block;
}
.uj-book-real-img.hidden,
.uj-book-cover-border.hidden {
  display: none !important;
}
.uj-book-cover-border {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  padding: 4px 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.15);
}
.uj-book-emblem {
  font-size: 9px;
  color: #fff;
  opacity: 0.8;
  margin-bottom: 2px;
}
.uj-book-title {
  font-family: var(--up-font-urdu, serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.uj-book-decor-line {
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin: 3px auto;
}
.uj-book-author {
  font-size: 9.5px;
  opacity: 0.9;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}
/* Book Themes */
.uj-book-3d.emerald .uj-book-cover { background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #065f46 100%); color: #fef08a; }
.uj-book-3d.ruby .uj-book-cover { background: linear-gradient(135deg, #881337 0%, #be123c 50%, #9f1239 100%); color: #fde047; }
.uj-book-3d.sapphire .uj-book-cover { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%); color: #e0f2fe; }
.uj-book-3d.amber .uj-book-cover { background: linear-gradient(135deg, #78350f 0%, #b45309 50%, #92400e 100%); color: #fef3c7; }
.uj-book-3d.darkstone .uj-book-cover { background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%); color: #cbd5e1; }
.uj-book-3d.rose .uj-book-cover { background: linear-gradient(135deg, #831843 0%, #db2777 50%, #9d174d 100%); color: #fce7f3; }
.uj-book-3d.bronze .uj-book-cover { background: linear-gradient(135deg, #451a03 0%, #78350f 50%, #5c2409 100%); color: #fef3c7; }

.uj-book-subtitle {
  font-size: 10px;
  color: #7a6b5e;
  margin: 4px 0 6px;
  line-height: 1.3;
  height: 26px;
  overflow: hidden;
}
.uj-book-read-btn {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--up-gold, #c9a84c);
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all .2s;
}
.uj-book-read-btn:hover {
  background: #b08f37;
}

/* Responsive */
@media (max-width: 900px) {
  .uj-poetry-grid {
    grid-template-columns: 180px 1fr 160px;
  }
}
@media (max-width: 768px) {
  .uj-poetry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .uj-poet-avatars {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}


/* ---------- World-Class Video Gallery ---------- */
.uj-vid-ic { width: 20px; height: 20px; color: #ff0000; vertical-align: -3px; }
.uj-vidrow {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.uj-vplayer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 270px;
  max-height: 270px;
  overflow: hidden;
  background: #0d0a08;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  align-self: start;
}
.uj-vplayer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.uj-vplayer:hover img {
  transform: scale(1.02);
}
.uj-vov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 6, 4, 0.94) 0%, rgba(10, 6, 4, 0.4) 50%, rgba(10, 6, 4, 0.12) 100%);
  pointer-events: none;
}
.uj-vtop-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}
.uj-vtop-bar .uj-cat-badge {
  background: #c41e3a;
  color: #fff;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(196, 30, 58, 0.4);
}
.uj-vyt-badge {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.uj-vyt-badge svg { color: #ff0000; flex-shrink: 0; }
.uj-vplay {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.25);
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .25s ease, background-color .2s;
}
.uj-vplay .ic { width: 18px; height: 18px; margin-right: -2px; }
.uj-vplayer:hover .uj-vplay {
  transform: translate(50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(255, 0, 0, 0.75), 0 0 0 5px rgba(255, 255, 255, 0.35);
  background: #e60000;
}
.uj-vplay-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 0, 0.6);
  animation: ujPulse 2s infinite ease-out;
  pointer-events: none;
}
@keyframes ujPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0.2; }
  100% { transform: scale(1.4); opacity: 0; }
}
.uj-vcap {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 8px 12px 10px;
  color: #fff;
  z-index: 3;
  pointer-events: auto;
}
.uj-vcap h3 {
  font-family: var(--up-font-main);
  font-size: 13.5px;
  line-height: 1.85;
  margin: 0 0 2px;
  padding: 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uj-vcap h3 a {
  color: #fff;
  text-decoration: none;
  transition: color .2s;
}
.uj-vcap h3 a:hover {
  color: #ffcccc;
}
.uj-meta-light {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #e2d9cd;
}
.uj-vdur-pill {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1px 7px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
}
.uj-vlive-tag {
  color: #ffd166;
  font-weight: 600;
  font-size: 11px;
}
.uj-vyt-link {
  color: #ff9999;
  text-decoration: none;
  font-size: 11px;
  margin-right: auto;
  transition: color .2s;
}
.uj-vyt-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.uj-vembed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000;
}
.uj-vembed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.uj-vplayer.is-playing .uj-vcap,
.uj-vplayer.is-playing .uj-vplay,
.uj-vplayer.is-playing .uj-vtop-bar,
.uj-vplayer.is-playing #vImg,
.uj-vplayer.is-playing .uj-vov {
  display: none !important;
}
.uj-vplayer.is-playing .uj-vembed-frame {
  display: block !important;
}
.uj-vlist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 270px;
  max-height: 270px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 2px;
}
.uj-vlist::-webkit-scrollbar { width: 4px; }
.uj-vlist::-webkit-scrollbar-track { background: #f3eee4; border-radius: 4px; }
.uj-vlist::-webkit-scrollbar-thumb { background: #c41e3a; border-radius: 4px; }
.uj-vli {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  border-right: 3px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
  flex: 0 0 auto;
}
.uj-vli:hover {
  background: #fbf8f2;
  border-color: #eedcc6;
}
.uj-vli.on {
  background: #fff5f5;
  border-color: #f7d5d5;
  border-right-color: #c41e3a;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.08);
}
.uj-vli.on h4 {
  color: #c41e3a;
  font-weight: 700;
}
.uj-vth {
  position: relative;
  width: 76px;
  height: 43px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.uj-vth img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.uj-vli:hover .uj-vth img {
  transform: scale(1.06);
}
.uj-vdur {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 3px;
  line-height: 1.4;
}
.uj-vth-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity .2s ease;
}
.uj-vli:hover .uj-vth-play {
  opacity: 1;
}
.uj-vplaying-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #c41e3a;
  border-radius: 3px;
  padding: 2px 4px;
  display: none;
  align-items: flex-end;
  gap: 1.5px;
  height: 12px;
}
.uj-vplaying-badge .bar {
  width: 2px;
  background: #fff;
  border-radius: 1px;
  animation: ujEqu 0.8s ease infinite alternate;
}
.uj-vplaying-badge .bar-1 { height: 6px; animation-delay: 0.1s; }
.uj-vplaying-badge .bar-2 { height: 10px; animation-delay: 0.3s; }
.uj-vplaying-badge .bar-3 { height: 7px; animation-delay: 0.2s; }
@keyframes ujEqu {
  0% { height: 3px; }
  100% { height: 10px; }
}
.uj-vli.on .uj-vplaying-badge {
  display: flex;
}
.uj-vinfo {
  flex-grow: 1;
  min-width: 0;
}
.uj-vmini-cat {
  display: inline-block;
  font-size: 10px;
  color: #c41e3a;
  font-weight: 700;
  margin-bottom: 1px;
}
.uj-vli h4 {
  font-family: var(--up-font-main);
  font-size: 12.5px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  color: var(--up-text, #2c1e1a);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

/* ---------- Sidebar ---------- */
.uj-sidebar { position: sticky; top: 74px; }
.uj-widget {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-top: 3px solid var(--up-red, #c41e3a);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.uj-widget-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #efe9dd;
}
.uj-widget-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #efe9dd;
}
.uj-widget-titlebar .uj-widget-title { margin: 0; padding: 0; border: none; }
.uj-widget-more { font-size: 12px; font-weight: 700; color: var(--up-red, #c41e3a); display: inline-block; margin-top: 8px; }
.uj-widget-more:hover { color: var(--up-red-dark, #9a1830); }

/* Weather */
.uj-weather {
  border-top-color: #16324f;
  background: linear-gradient(150deg, #1c3a5b 0%, #122538 100%);
  color: #fff;
  border-color: #122538;
}
.uj-wc { display: flex; justify-content: space-between; align-items: flex-start; }
.uj-wcity { font-size: 15.5px; font-weight: 700; color: #9ec9ef; }
.uj-wcond { font-size: 12px; color: #cdd8e4; margin-top: 1px; }
.uj-wsm { font-size: 11px; color: #8fa4ba; display: flex; gap: 10px; margin-top: 4px; }
.uj-wdeg { font-size: 32px; font-weight: 700; color: #f3c66b; line-height: 1.4; }
.uj-wdeg sup { font-size: 14px; }
.uj-wforecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 12px;
  padding-top: 10px;
  font-size: 11px;
  color: #cdd8e4;
}
.uj-wforecast .ic { display: block; margin: 4px auto; width: 16px; height: 16px; color: #f3c66b; }
.uj-wforecast b { font-size: 12px; color: #fff; }

/* Rates table */
.uj-ratestable { width: 100%; border-collapse: collapse; }
.uj-ratestable td {
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px dashed #efe9dd;
  color: var(--up-text, #2c1e1a);
}
.uj-ratestable td:last-child { text-align: left; color: var(--up-red-dark, #9a1830); font-weight: 600; }
.uj-ratestable tr:last-child td { border-bottom: none; }

/* Prayer - Compact Worldwide Widget */
.uj-prayer-widget {
  background: #fdfdfc;
  border-top: 3px solid #0f5132;
}
.uj-prayer-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.uj-prayer-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.uj-prayer-badge {
  background: #0f5132;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}
.uj-prayer-citysel {
  font-family: var(--up-font-main);
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid #d4cbb8;
  background: #fff;
  color: var(--up-text, #2c1e1a);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  max-width: 140px;
}
.uj-prayer-citysel optgroup {
  font-weight: 700;
  color: #0f5132;
  background: #f4f8f5;
}
.uj-prayer-tabs {
  display: flex;
  gap: 3px;
  background: #f0eee6;
  padding: 3px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.uj-ptab {
  flex: 1;
  font-family: var(--up-font-main);
  font-size: 11.5px;
  padding: 3px 0 4px;
  border: none;
  background: transparent;
  color: #5a4b41;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.uj-ptab:hover { color: #0f5132; }
.uj-ptab.on {
  background: #0f5132;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.uj-prayer-next-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.uj-pnext-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.uj-pnext-label strong {
  color: #0f5132;
  font-weight: 700;
}
.uj-pnext-time {
  font-weight: 700;
  color: #0f5132;
  background: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11.5px;
}
.uj-prayer-list {
  display: flex;
  flex-direction: column;
}
.uj-prow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 4.5px 4px;
  border-bottom: 1px dashed #efe9dd;
  color: var(--up-text, #2c1e1a);
  border-radius: 3px;
  transition: background 0.15s ease;
}
.uj-prow:last-child { border-bottom: none; }
.uj-prow.active {
  background: #fdf3f4;
  color: #9a1830;
  font-weight: 700;
}
.uj-prow .pname {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.uj-prow .pname .pen {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 9.5px;
  color: #8c7b70;
  direction: ltr;
}
.uj-prow .ptime {
  font-weight: 600;
}


/* Horoscope */
.uj-langtoggle { display: flex; gap: 3px; }
.up-lang-btn {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid #e0d8c8;
  background: #fff;
  cursor: pointer;
  color: var(--up-text-muted, #7a6b5e);
}
.up-lang-btn.active { background: var(--up-red, #c41e3a); color: #fff; border-color: var(--up-red, #c41e3a); }
.uj-zodiac {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.up-zodiac-btn {
  font-family: var(--up-font-main);
  font-size: 11px;
  padding: 5px 2px 4px;
  border: 1px solid #e0d8c8;
  background: #fbf9f4;
  color: var(--up-text, #2c1e1a);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.up-zodiac-btn .z-ico {
  display: block;
  color: #8a6d2f;
  transition: transform 0.15s ease, color 0.15s ease;
}
.up-zodiac-btn .z-lbl {
  line-height: 1.2;
}
.up-zodiac-btn:hover {
  border-color: #8a6d2f;
  background: #fffdf7;
}
.up-zodiac-btn:hover .z-ico {
  transform: scale(1.15);
}
.up-zodiac-btn.active {
  background: #8a6d2f;
  color: #fff;
  border-color: #8a6d2f;
  box-shadow: 0 1px 3px rgba(138, 109, 47, 0.25);
}
.up-zodiac-btn.active .z-ico {
  color: #ffffff;
  transform: scale(1.1);
}
.uj-horobox {
  background: #faf7f0;
  border-right: 3px solid var(--up-gold, #c9a84c);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.9;
  border-radius: 0 4px 4px 0;
  transition: all 0.2s ease;
}
.uj-horobox.uj-horobox-ltr {
  direction: ltr !important;
  text-align: left !important;
  border-right: none;
  border-left: 3px solid var(--up-gold, #c9a84c);
  border-radius: 4px 0 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
.uj-horobox.uj-horobox-ltr .uj-horotitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.2px;
}
.uj-horobox.uj-horobox-ltr .uj-horodesc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #334155;
}
.uj-horobox.uj-horobox-ltr .uj-horometa {
  direction: ltr;
}
.uj-horotitle { font-weight: 700; color: #8a6d2f; margin-bottom: 3px; font-size: 13px; }
.uj-horodesc { margin: 0; color: var(--up-text, #2c1e1a); }
.uj-horometa {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e6dcc4;
  font-size: 11px;
  color: #8a6d2f;
}


/* Ranked popular list */
.uj-ranked { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.uj-ranked li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f3eee4;
}
.uj-ranked li:last-child { border-bottom: none; }
.uj-rank {
  font-size: 20px;
  font-weight: 700;
  color: #d8cfc0;
  line-height: 1.8;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.uj-ranked li:first-child .uj-rank { color: var(--up-red, #c41e3a); }
.uj-ranked a { font-size: 13px; line-height: 2; }
.uj-ranked a:hover { color: var(--up-red, #c41e3a); }

/* Topics */
.uj-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 14px; }
.uj-topics a {
  display: block;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dotted #e6dcc4;
}
.uj-topics li:last-child a, .uj-topics li:nth-last-child(2) a { border-bottom: none; }
.uj-topics a:hover { color: var(--up-red, #c41e3a); }

/* Prize bond */
.uj-bond { border-top-color: #2e7d4f; }
.uj-bondnext { font-size: 13.5px; font-weight: 700; color: #2e7d4f; margin-bottom: 8px; }
.uj-countdown { display: flex; gap: 6px; }
.uj-countdown span {
  flex: 1;
  text-align: center;
  background: #f2f8f3;
  border: 1px solid #d8ecdc;
  font-size: 10px;
  color: #2e7d4f;
  padding: 5px 0 7px;
  display: flex;
  flex-direction: column;
}
.uj-countdown b { font-size: 15px; color: #1f5c37; }

/* ---------- Live market block ---------- */
.uj-live-dot {
  margin-right: auto;
  font-size: 11px;
  font-weight: 700;
  color: #2e7d4f;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
}
.uj-live-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2e7d4f;
  animation: uj-pulse 1.6s ease infinite;
}
@keyframes uj-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
/* ---------- Gold / PSX / Fuel tabbed widget ---------- */
.uj-goldbox { border-top: 1px solid #e7e0d3; }
.uj-goldbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #efe9dd;
}
.uj-goldbox-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  margin: 0;
  padding: 0;
  border: none;
  text-align: right;
}
.uj-goldbox-head .uj-live-dot { margin: 0; padding: 0; flex-shrink: 0; }
.uj-gtabs {
  display: flex;
  gap: 4px;
  background: #f5f0e6;
  border: 1px solid #eee5d8;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 12px;
}
.uj-gtabs button {
  flex: 1;
  font-family: var(--up-font-main);
  font-size: 12px;
  color: var(--up-text, #2c1e1a);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 4px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.uj-gtabs button:not(.on):hover { color: var(--up-red, #c41e3a); }
.uj-gtabs button.on { background: var(--up-red, #c41e3a); color: #fff; font-weight: 700; }
.uj-gtabs .uj-gen { font-family: 'Libre Franklin', sans-serif; font-size: 10px; font-weight: 600; opacity: .85; }
.uj-gpanel { display: none; }
.uj-gpanel.on { display: block; }
.uj-grow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #faf6ef;
  border: 1px solid #f0e8d8;
  border-radius: 6px;
  padding: 8px 12px 11px;
  margin-bottom: 6px;
}
.uj-grow:last-child { margin-bottom: 0; }
.uj-grow-label { font-size: 12.5px; color: var(--up-text, #2c1e1a); }
.uj-grow-val {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--up-red-dark, #9a1830);
  white-space: nowrap;
}
.uj-grow-val small { font-size: 10px; color: var(--up-text-muted, #7a6b5e); font-weight: 400; font-family: var(--up-font-main); }
.uj-chg { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.uj-chg.down { color: var(--up-red, #c41e3a); }
.uj-chg.up { color: #2e7d4f; }
.uj-goldbox-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--up-red, #c41e3a);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e6dcc4;
}
.uj-goldbox-link:hover { color: var(--up-red-dark, #9a1830); }

/* ---------- Currency Converter Widget ---------- */
.uj-conv-widget {
  border-top: 1px solid #e7e0d3;
}
.uj-conv-header-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.uj-conv-subtitle {
  font-size: 11px;
  color: var(--up-text-muted, #7a6b5e);
  font-weight: 500;
}
.uj-conv-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uj-conv-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.uj-conv-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--up-text, #2c1e1a);
  text-align: right;
  line-height: 1.8;
}
.uj-conv-input {
  width: 100%;
  height: 40px;
  padding: 6px 14px;
  border: 1px solid #e0d8c8;
  border-radius: 8px;
  background: #fbf9f4;
  font-size: 15px;
  font-weight: 600;
  color: var(--up-text, #2c1e1a);
  outline: none;
  transition: all 0.2s ease;
  direction: ltr;
  text-align: left;
}
.uj-conv-input:focus {
  border-color: var(--up-red, #c41e3a);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.08);
}
.uj-conv-select {
  width: 100%;
  height: 40px;
  padding: 6px 12px;
  border: 1px solid #e0d8c8;
  border-radius: 8px;
  background: #fbf9f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a6b5e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 12px center;
  font-size: 13px;
  font-weight: 600;
  color: var(--up-text, #2c1e1a);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
  font-family: inherit;
}
.uj-conv-select:focus {
  border-color: var(--up-red, #c41e3a);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.08);
}
.uj-conv-resultbox {
  background: #fffcf5;
  border: 1.5px dashed #d6b86d;
  border-radius: 8px;
  padding: 12px 10px 14px;
  text-align: center;
  margin-top: 4px;
}
.uj-conv-result-title {
  font-size: 13.5px;
  color: #6b5c4b;
  line-height: 1.9;
  margin-bottom: 2px;
}
.uj-conv-result-val {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  direction: rtl;
}
.uj-conv-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--up-red-dark, #9a1830);
  line-height: 1.3;
}
.uj-conv-curr {
  font-size: 15px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
}
.uj-conv-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.uj-conv-pill {
  border: 1px solid #e0d8c8;
  background: #fff;
  border-radius: 18px;
  padding: 2px 14px 4px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.uj-conv-pill:hover,
.uj-conv-pill.active {
  border-color: var(--up-red, #c41e3a);
  color: var(--up-red, #c41e3a);
  background: #fdf5f6;
}

/* ---------- Prize Bond Widget ---------- */
.uj-bond-widget {
  border-top: 1px solid #e7e0d3;
}
.uj-bond-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uj-bond-dual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  border-radius: 8px 8px 0 0;
  padding: 7px 12px;
  border: 1px solid #334155;
  border-bottom: 0;
}
.uj-bond-dual-tag {
  font-size: 11px;
  font-weight: 700;
  color: #facc15;
}
.uj-bond-dual-date {
  font-size: 11.5px;
  color: #38bdf8;
  font-weight: 700;
}
.uj-bond-dual-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.uj-bond-nextcard {
  background: #1e293b;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  border: 1px solid #334155;
}
.uj-bond-dual-grid .uj-bond-dual-card {
  border-radius: 6px;
}
.uj-bond-next-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.uj-bond-next-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
}
.uj-draw-num-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.uj-bond-next-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.uj-bond-next-title b {
  color: #fff;
  font-size: 14px;
  font-family: 'Libre Franklin', sans-serif;
}
.uj-bond-next-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  margin: 2px 0 8px;
}
.uj-bond-card-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.uj-bond-card-link:hover {
  color: #facc15;
}
.uj-bond-next-tag {
  color: #facc15;
  font-weight: 700;
  font-size: 11.5px;
}
.uj-bond-next-info {
  color: #e2e8f0;
  font-size: 12px;
}
.uj-bond-next-info b {
  color: #38bdf8;
  font-family: 'Libre Franklin', sans-serif;
}
.uj-bond-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  direction: ltr;
}
.uj-cd-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 4px 2px 5px;
  text-align: center;
}
.uj-cd-box b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.uj-cd-box span {
  display: block;
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 2px;
  font-family: var(--up-font-main);
}
.uj-bond-resultbox {
  background: #fffdf5;
  border: 1.5px dashed #d6b86d;
  border-radius: 8px;
  padding: 12px 12px 14px;
  text-align: center;
  margin-top: 4px;
}
.uj-bond-res-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0e8d8;
}
.uj-bond-res-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2c1e1a;
}
.uj-bond-res-prize {
  font-size: 14px;
  font-weight: 700;
  color: var(--up-red-dark, #9a1830);
}
.uj-bond-winner-wrap {
  background: #fdf6ea;
  border: 1px solid #faeccd;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 6px 0;
}
.uj-bond-winner-label {
  display: block;
  font-size: 11.5px;
  color: #78350f;
  margin-bottom: 2px;
}
.uj-bond-winner-number {
  font-size: 26px;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 2.5px;
  line-height: 1.2;
}
.uj-bond-meta {
  font-size: 11.5px;
  color: #7a6b5e;
  margin: 6px 0 10px;
}
.uj-bond-btn {
  display: block;
  background: var(--up-red, #c41e3a);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px 8px;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.8;
}
.uj-bond-btn:hover {
  background: var(--up-red-dark, #9a1830);
  transform: translateY(-1px);
}
.uj-bond-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.uj-bond-pill {
  border: 1px solid #e0d8c8;
  background: #fff;
  border-radius: 14px;
  padding: 2px 9px 3px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  cursor: pointer;
  transition: all 0.15s ease;
}
.uj-bond-pill:hover,
.uj-bond-pill.active {
  background: var(--up-red, #c41e3a);
  color: #fff;
  border-color: var(--up-red, #c41e3a);
}

/* ---------- Cricket widget ---------- */
.uj-ckicker {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--up-text-muted, #7a6b5e);
  background: #f5f0e6;
  border: 1px solid #eee5d8;
  border-radius: 4px;
  padding: 3px 10px 5px;
  margin-bottom: 10px;
  text-align: center;
}
.uj-cbody { min-height: 120px; }
.uj-cmsg { text-align: center; font-size: 12px; color: var(--up-text-muted, #7a6b5e); padding: 18px 0; }
.uj-cmatch {
  background: #faf6ef;
  border: 1px solid #f0e8d8;
  border-radius: 6px;
  padding: 8px 12px 10px;
  margin-bottom: 6px;
}
.uj-ctop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.uj-cfmt {
  background: #eee5d8;
  color: #6b5b49;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px 3px;
  border-radius: 3px;
  flex-shrink: 0;
}
.uj-cseries {
  font-size: 10.5px;
  color: var(--up-text-muted, #7a6b5e);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uj-crow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
}
.uj-cteam {
  font-size: 12.5px;
  color: var(--up-text, #2c1e1a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uj-cteam.batting { color: var(--up-red-dark, #9a1830); font-weight: 700; }
.uj-cscore {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--up-red-dark, #9a1830);
  white-space: nowrap;
}
.uj-cscore small { color: var(--up-text-muted, #7a6b5e); font-weight: 400; font-size: 10px; }
.uj-cstat {
  font-size: 11px;
  color: var(--up-text-muted, #7a6b5e);
  line-height: 1.9;
  border-top: 1px dashed #e6dcc4;
  margin-top: 5px;
  padding-top: 4px;
}
.uj-cstat.is-live { color: var(--up-red, #c41e3a); font-weight: 700; }
.uj-cstat.is-upcoming { color: #8a6d2f; }
.uj-cstat.is-recent { color: #047857; font-weight: 600; }
.uj-cmatch-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 6px;
  transition: transform 0.15s ease;
}
.uj-cmatch-card-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.uj-cmatch-card-link:hover .uj-cmatch {
  background: #f4ecdf;
  border-color: #dfd2be;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}
.cric-flag {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Mobile Prices Hub (Archive & Single Pages) ---------- */
.uj-mplist { list-style: none; margin: 0; padding: 0; }
.uj-mplist a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  background: #faf6ef;
  border: 1px solid #f0e8d8;
  border-radius: 6px;
  padding: 7px 12px 9px;
  margin-bottom: 6px;
  transition: border-color .15s;
}
.uj-mplist a:hover { border-color: var(--up-red, #c41e3a); }
.uj-mp-name { font-size: 12.5px; color: var(--up-text, #2c1e1a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uj-mplist a:hover .uj-mp-name { color: var(--up-red, #c41e3a); }
.uj-mp-price { white-space: nowrap; flex-shrink: 0; font-size: 11px; }
.uj-mp-val { font-weight: 700; color: var(--up-red-dark, #9a1830); font-size: 12px; }
.uj-mp-exp { color: #8a6d2f; font-weight: 600; }

/* Breadcrumbs */
.um-crumbs {
  font-size: 13px;
  color: var(--up-text-muted, #7a6b5e);
  margin: 16px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.um-crumbs a { color: var(--up-text-muted, #7a6b5e); text-decoration: none; }
.um-crumbs a:hover { color: var(--up-red, #c41e3a); }
.um-crumb-active { color: var(--up-red, #c41e3a); font-weight: 700; }

/* ============================================================
   WORLD NO. 1 MOBILE PRICES PORTAL STYLING (GSMArena / UrduPoint Luxury)
   ============================================================ */

.um-portal-page {
  padding-bottom: 4rem;
}

/* 1. Grand Portal Hero Banner */
.um-portal-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--up-red, #c41e3a);
  border-radius: 12px;
  padding: 32px 30px 26px;
  margin-bottom: 28px;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.45);
  overflow: hidden;
  color: #fff;
}
.um-hero-glow {
  position: absolute;
  top: -80px;
  left: 20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.25) 0%, rgba(196, 30, 58, 0) 70%);
  pointer-events: none;
  z-index: 1;
}
.um-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.um-hero-badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.um-hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px 5px;
  border-radius: 20px;
}
.um-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: um-pulse 1.5s infinite;
}
@keyframes um-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}
.um-hero-pta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px 5px;
  border-radius: 20px;
}
.um-portal-heading {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.8;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.um-portal-desc {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 2.1;
  margin: 0 auto 20px;
}
.um-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 24px;
  backdrop-filter: blur(8px);
}
.um-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.um-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
}
.um-stat-lbl {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}
.um-stat-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
}

/* Common Section Headers */
.um-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #efe8da;
}
.um-sec-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--up-text, #2c1e1a);
  margin: 0 0 3px;
  line-height: 1.8;
}
.um-sec-sub {
  font-size: 13px;
  color: var(--up-text-muted, #7a6b5e);
  display: block;
}

/* 2. Spotlight Trending Flagships */
.um-spotlight-section {
  margin-bottom: 30px;
}
.um-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.um-spotcard {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.um-spotcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--up-red, #c41e3a);
}
.um-spotcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.um-spotrank {
  background: linear-gradient(135deg, #c41e3a, #9a1830);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px 4px;
  border-radius: 4px;
}
.um-spotbadge {
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.um-spotimg-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf9f5;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.um-spotimg-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.um-spotcard:hover .um-spotimg-wrap img {
  transform: scale(1.08);
}
.um-spotbrand {
  font-size: 11px;
  font-weight: 700;
  color: var(--up-red, #c41e3a);
  text-transform: uppercase;
}
.um-spottitle {
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0 6px;
  line-height: 1.5;
}
.um-spottitle a {
  color: var(--up-text, #2c1e1a);
  text-decoration: none;
}
.um-spottitle a:hover {
  color: var(--up-red, #c41e3a);
}
.um-spotspecs {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 12px;
  flex-grow: 1;
}
.um-spotprice-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed #e7e0d3;
}
.um-spotprice-pkr {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--up-red-dark, #9a1830);
  line-height: 1.2;
}
.um-spotprice-usd {
  font-size: 10px;
  color: #94a3b8;
}
.um-spotbtn {
  background: #fdf2f4;
  color: var(--up-red, #c41e3a);
  border: 1px solid #f9d2d8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px 6px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.um-spotbtn:hover {
  background: var(--up-red, #c41e3a);
  color: #fff;
  border-color: var(--up-red, #c41e3a);
}

/* 3. Visual Brand Directory */
.um-branddir-section {
  margin-bottom: 28px;
}
.um-brand-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 10px;
}
.um-brand-tile {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.um-brand-tile:hover {
  border-color: var(--up-red, #c41e3a);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.1);
}
.um-brand-tile.active {
  background: var(--up-red, #c41e3a);
  border-color: var(--up-red, #c41e3a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.25);
}
.um-btile-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.um-btile-info {
  display: flex;
  flex-direction: column;
}
.um-btile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  line-height: 1.4;
}
.um-brand-tile.active .um-btile-name {
  color: #fff;
}
.um-btile-en {
  font-size: 10px;
  color: var(--up-text-muted, #7a6b5e);
}
.um-brand-tile.active .um-btile-en {
  color: rgba(255, 255, 255, 0.85);
}

/* 4. Smart Control Center */
.um-control-center {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.um-control-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.um-search-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background: #fbf9f5;
  border: 1px solid #dcd3c1;
  border-radius: 8px;
  padding: 2px 4px 2px 14px;
  transition: all 0.2s ease;
}
.um-search-wrap:focus-within {
  border-color: var(--up-red, #c41e3a);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.08);
}
.um-search-icon {
  color: #94a3b8;
  margin-left: 8px;
  flex-shrink: 0;
}
.um-search-wrap input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 8px 6px;
  font-family: var(--up-font-main);
  font-size: 14px;
  color: var(--up-text, #2c1e1a);
  outline: none;
}
.um-search-submit {
  background: var(--up-red, #c41e3a);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px 8px;
  font-family: var(--up-font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.um-search-submit:hover {
  background: var(--up-red-dark, #9a1830);
}
.um-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.um-sort-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
}
.um-sort-select {
  border: 1px solid #dcd3c1;
  background: #fbf9f5;
  border-radius: 6px;
  padding: 8px 12px 10px;
  font-family: var(--up-font-main);
  font-size: 12.5px;
  color: var(--up-text, #2c1e1a);
  outline: none;
  cursor: pointer;
}
.um-prange-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed #efe7d8;
}
.um-prange-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--up-text-muted, #7a6b5e);
}
.um-prange-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.um-prange-chip {
  background: #faf6ee;
  border: 1px solid #e2d8c3;
  color: var(--up-text, #2c1e1a);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 12px 5px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.um-prange-chip:hover,
.um-prange-chip.active {
  background: var(--up-red, #c41e3a);
  color: #fff;
  border-color: var(--up-red, #c41e3a);
}
.um-clear-filter-btn {
  margin-right: auto;
  color: var(--up-red, #c41e3a);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 3px 8px;
}
.um-clear-filter-btn:hover {
  text-decoration: underline;
}

/* 5. Main Mobiles Listing Grid */
.um-main-listing-section {
  margin-bottom: 36px;
}
.um-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--up-text-muted, #7a6b5e);
  margin-bottom: 14px;
}
.um-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}
.um-card {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.um-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--up-red, #c41e3a);
}
.um-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.um-brand-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px 4px;
  border-radius: 4px;
  text-transform: uppercase;
}
.um-status-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px 3px;
  border-radius: 4px;
  color: #fff;
}
.um-status-tag.verified { background: #16a34a; }
.um-status-tag.expected { background: #d97706; }

.um-card-img {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf9f5;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.um-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.um-card:hover .um-card-img img {
  transform: scale(1.08);
}
.um-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.um-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.5;
}
.um-card-title a {
  color: var(--up-text, #2c1e1a);
  text-decoration: none;
}
.um-card-title a:hover {
  color: var(--up-red, #c41e3a);
}
.um-microspecs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #faf7f0;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.um-mspec-item {
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.um-price-container {
  padding: 8px 0;
  margin-top: auto;
  border-top: 1px dashed #efe7d8;
  margin-bottom: 10px;
}
.um-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--up-text-muted, #7a6b5e);
  margin-bottom: 2px;
}
.um-pkr-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--up-red-dark, #9a1830);
  line-height: 1.2;
}
.um-card-btn {
  display: block;
  text-align: center;
  background: var(--up-red, #c41e3a);
  color: #fff;
  border-radius: 6px;
  padding: 8px 12px 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.um-card-btn:hover {
  background: var(--up-red-dark, #9a1830);
  color: #fff;
}

.um-pagination {
  margin: 28px 0 16px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.um-pagination .page-numbers {
  display: inline-block;
  background: #fff;
  border: 1px solid #dcd3c1;
  color: var(--up-text, #2c1e1a);
  padding: 6px 14px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s ease;
}
.um-pagination .page-numbers.current,
.um-pagination .page-numbers:hover {
  background: var(--up-red, #c41e3a);
  color: #fff;
  border-color: var(--up-red, #c41e3a);
}

.um-no-results {
  background: #fff;
  border: 1px solid #e7e0d3;
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
}
.um-no-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.um-btn-reset {
  display: inline-block;
  background: var(--up-red, #c41e3a);
  color: #fff;
  padding: 8px 20px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
}

/* 6. Price Brackets Explorer */
.um-brackets-section {
  margin-bottom: 36px;
}
.um-brackets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.um-bracket-box {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.um-bracket-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.um-bracket-box.b1 { border-top: 3px solid #16a34a; }
.um-bracket-box.b2 { border-top: 3px solid #2563eb; }
.um-bracket-box.b3 { border-top: 3px solid #9333ea; }
.um-bracket-box.b4 { border-top: 3px solid #d97706; }
.um-bbox-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.um-bbox-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  margin: 0 0 2px;
  line-height: 1.4;
}
.um-bbox-info span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--up-red, #c41e3a);
  display: block;
  margin-bottom: 4px;
}
.um-bbox-info p {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* 7. PTA Guide */
.um-guide-section {
  margin-bottom: 36px;
}
.um-guide-card {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-top: 3px solid #2563eb;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.um-guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #efe7d8;
}
.um-guide-shield {
  font-size: 32px;
}
.um-guide-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--up-text, #2c1e1a);
  margin: 0 0 4px;
}
.um-guide-sub {
  font-size: 13px;
  color: var(--up-text-muted, #7a6b5e);
}
.um-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.um-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  position: relative;
}
.um-step-num {
  font-size: 22px;
  font-weight: 900;
  color: #cbd5e1;
  display: block;
  margin-bottom: 6px;
}
.um-step-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  margin: 0 0 6px;
}
.um-step-card p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.8;
}
.um-guide-tips {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #854d0e;
  line-height: 1.9;
}

/* 8. FAQs Accordions */
.um-faqs-section {
  margin-bottom: 20px;
}
.um-faqs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.um-faq-item {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.um-faq-item[open] {
  border-color: var(--up-red, #c41e3a);
}
.um-faq-q {
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}
.um-faq-q::-webkit-details-marker { display: none; }
.um-faq-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.um-faq-item[open] .um-faq-arrow {
  transform: rotate(180deg);
  color: var(--up-red, #c41e3a);
}
.um-faq-a {
  padding: 0 18px 16px;
  font-size: 13px;
  color: #475569;
  line-height: 2;
  border-top: 1px dashed #efe7d8;
  padding-top: 12px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
  .um-spotlight-grid,
  .um-portal-grid,
  .um-brackets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .um-spotlight-grid,
  .um-portal-grid,
  .um-brackets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .um-steps-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .um-portal-hero {
    padding: 22px 16px;
  }
  .um-portal-heading {
    font-size: 22px;
  }
  .um-hero-stats {
    gap: 10px;
    padding: 10px 14px;
  }
  .um-stat-num {
    font-size: 16px;
  }
  .um-control-row {
    flex-direction: column;
    align-items: stretch;
  }
  .um-spotlight-grid,
  .um-portal-grid,
  .um-brackets-grid {
    grid-template-columns: 1fr;
  }
}

/* Single Mobile Page Styling */
.um-single-page { padding-bottom: 3rem; }
.um-hero-card {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-top: 3px solid var(--up-red, #c41e3a);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}
.um-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: start;
}
.um-gallery-col {
  background: #fbf9f5;
  border: 1px solid #efe7d8;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}
.um-main-img-wrap {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #f0e8dc;
  overflow: hidden;
  padding: 12px;
}
.um-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}
.um-main-img-wrap:hover .um-main-img { transform: scale(1.06); }
.um-img-brand-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f1ebd8;
  color: #78350f;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.um-img-status-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
}
.um-img-status-tag.verified { background: #16a34a; }
.um-img-status-tag.expected { background: #d97706; }
.um-img-caption {
  font-size: 12px;
  color: var(--up-text-muted, #7a6b5e);
  margin-top: 10px;
}

.um-info-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.um-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  line-height: 1.8;
  margin: 0;
}
.um-brand-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.um-brand-pill {
  background: #faf4e6;
  border: 1px solid #ebd9b8;
  color: #78350f;
  font-size: 12px;
  padding: 2px 10px 4px;
  border-radius: 4px;
}
.um-pta-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px 4px;
  border-radius: 4px;
}
.um-stock-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px 4px;
  border-radius: 4px;
}

.um-price-panel {
  background: #fdf5f5;
  border: 1px solid #f9dcdc;
  border-right: 4px solid var(--up-red, #c41e3a);
  border-radius: 6px;
  padding: 16px 18px;
}
.um-price-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.um-price-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--up-red, #c41e3a);
}
.um-currency-tag {
  font-size: 11px;
  color: var(--up-text-muted, #7a6b5e);
  background: #fff;
  border: 1px solid #e9d1d1;
  padding: 1px 6px;
  border-radius: 3px;
}
.um-price-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}
.um-price-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--up-red-dark, #9a1830);
  line-height: 1.3;
}
.um-price-usd {
  font-size: 14px;
  color: var(--up-text-muted, #7a6b5e);
  font-weight: 600;
}
.um-price-note {
  font-size: 12px;
  color: #574c43;
  line-height: 1.8;
  border-top: 1px dashed #eed4d4;
  padding-top: 8px;
  margin-top: 6px;
}

.um-quick-specs {
  background: #fbf9f5;
  border: 1px solid #efe7d8;
  border-radius: 6px;
  padding: 14px 16px;
}
.um-qspecs-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  margin: 0 0 10px;
}
.um-qspecs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 14px;
}
.um-qspec-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece4d4;
  border-radius: 4px;
  padding: 6px 10px 7px;
}
.um-qs-lbl { font-size: 11px; color: var(--up-text-muted, #7a6b5e); margin-bottom: 2px; }
.um-qs-val { font-size: 13px; color: var(--up-text, #2c1e1a); font-weight: 700; }

.um-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.um-share-lbl { font-size: 12px; font-weight: 700; color: var(--up-text, #2c1e1a); }
.um-share-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff !important;
  padding: 4px 12px 6px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.um-share-btn:hover { opacity: 0.9; }
.um-share-btn.wa { background: #25d366; }
.um-share-btn.fb { background: #1877f2; }
.um-share-btn.tw { background: #0f1419; }

/* Specs Section & Table */
.um-specs-section,
.um-review-card,
.um-related-section {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 6px;
  padding: 20px 22px 22px;
  margin-bottom: 24px;
}
.um-specs-table-wrap { overflow-x: auto; }
.um-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.um-specs-table tr { border-bottom: 1px solid #f2ecdf; }
.um-specs-table .um-table-cat th {
  background: #f8f4eb;
  color: var(--up-red-dark, #9a1830);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px 12px;
  text-align: right;
  border-top: 2px solid #e2d8c3;
}
.um-td-lbl {
  width: 32%;
  background: #fdfbf7;
  font-size: 13px;
  font-weight: 700;
  color: #4b3d32;
  padding: 10px 14px;
  border-left: 1px solid #f2ecdf;
}
.um-td-val {
  font-size: 13.5px;
  color: var(--up-text, #2c1e1a);
  padding: 10px 14px;
  line-height: 1.8;
}

.um-content-body {
  font-size: 14.5px;
  line-height: 2.3;
  color: var(--up-text, #2c1e1a);
}
.um-content-body p { margin: 0 0 14px; }

/* Responsive */
@media (max-width: 860px) {
  .um-hero-grid { grid-template-columns: 1fr; }
  .um-main-img-wrap { height: 260px; }
  .um-qspecs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .um-hero-card,
  .um-archive-hero,
  .um-specs-section,
  .um-review-card,
  .um-related-section {
    padding: 14px;
  }
  .um-page-title,
  .um-archive-title {
    font-size: 18px;
  }
  .um-price-val { font-size: 24px; }
  .um-td-lbl { width: 40%; font-size: 12px; padding: 8px 10px; }
  .um-td-val { font-size: 12.5px; padding: 8px 10px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .uj-featured { grid-template-columns: 1fr; }
  .uj-slider { height: 380px; }
  .uj-sidegrid { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); }
  .uj-sidepost { min-height: 150px; }
  .uj-mainrow { grid-template-columns: 1fr; }
  .uj-sidebar { position: static; }
}
@media (max-width: 720px) {
  .uj-duo { grid-template-columns: 1fr; }
  .uj-lead-img img { height: 220px; }
  .uj-vidrow { grid-template-columns: 1fr; gap: 12px; }
  .uj-vplayer { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9; }
  .uj-vlist { height: auto; max-height: 320px; }
  .uj-ticker-label { padding: 0 10px; font-size: 12px; }
  .uj-slide-cap h2 { font-size: 16px; }
  .uj-wrap { padding: 0 .7rem 2rem; }
  .uj-block { padding: 14px; overflow-x: clip; }
  .uj-sidegrid { grid-template-columns: 1fr; }
  .uj-verse { font-size: 17px; }
  .uj-block-title { white-space: normal; flex-shrink: 1; padding-bottom: 8px; }
  .uj-block-head { align-items: baseline; }
  .uj-linklist a { flex-wrap: wrap; }
  .uj-jpanel.on { grid-template-columns: 1fr; gap: 18px 0; }
  .uj-jfeat-img img { height: 220px; }
  .uj-jfeat-title { font-size: 16px; }
  .uj-jtabs button { padding: 6px 12px 10px; font-size: 12.5px; }
  .uj-jnav { justify-content: center; }
}

/* ============================================================
   URDU CARS SHOWCASE & CAR BUYER'S PORTAL STYLING
   ============================================================ */

/* Homepage Car Section */
.uj-cars-section {
  margin-top: 24px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.uj-cargrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}
.uj-carcard {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 8px;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.uj-carcard:hover {
  transform: translateY(-4px);
  border-color: var(--up-red, #c41e3a);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.uj-carbrand-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}
.uj-carimg {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf9f5;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
.uj-carimg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}
.uj-carcard:hover .uj-carimg img {
  transform: scale(1.06);
}
.uj-carinfo {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}
.uj-cartitle {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.uj-cartitle a {
  color: var(--up-text, #2c1e1a);
  text-decoration: none;
}
.uj-cartitle a:hover {
  color: var(--up-red, #c41e3a);
}
.uj-carspecs {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.35;
  height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.uj-carprice-wrap {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed #efe7d8;
  margin-bottom: 10px;
  min-width: 0;
}
.uj-carcard .uj-carprice-wrap:last-child {
  margin-bottom: 0;
}
/* Tractor Showcase Specific Spacing */
.uj-tractorgrid {
  gap: 16px;
}
.uj-tractorcard {
  padding: 12px 12px 14px;
}
.uj-tractorcard .uj-carspecs {
  margin: 6px 0 12px;
  line-height: 1.55;
  min-height: 36px;
  height: auto;
}
.uj-tractor-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.uj-tractor-price-row .uj-carprice-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--up-text-muted, #7a6b5e);
}
.uj-tractor-price-row .uj-carprice-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--up-red-dark, #9a1830);
  white-space: nowrap;
}
.uj-carprice-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 2px;
}
.uj-carprice-lbl {
  font-size: 10px;
  color: var(--up-text-muted, #7a6b5e);
}
.uj-carlakh-val {
  font-size: 11px;
  font-weight: 800;
  color: var(--up-red, #c41e3a);
}
.uj-carprice-val {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--up-red-dark, #9a1830);
  display: block;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uj-carbtn {
  display: block;
  text-align: center;
  background: var(--up-red, #c41e3a);
  color: #fff;
  border-radius: 6px;
  padding: 6px 6px 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.uj-carbtn:hover {
  background: var(--up-red-dark, #9a1830);
  color: #fff;
}
.uj-carbrands-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #faf7f0;
  border: 1px solid #efe7d8;
  border-radius: 8px;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
}
.uj-carbrands-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--up-text, #2c1e1a);
  flex-shrink: 0;
}
.uj-carbrands-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Cars Archive Portal & Hero Specifics */
.um-car-hero {
  background: linear-gradient(135deg, #090d16 0%, #151c28 50%, #0c1017 100%);
  border-top-color: #e11d48;
}
.um-spotprice-lakh {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}
.um-car-card .um-card-img {
  height: 160px;
}

/* WHT & Savings Tax Table */
.um-tax-table-wrap,
.um-car-tax-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.um-car-tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #fff;
  direction: rtl;
  text-align: right;
}
.um-car-tax-table th {
  display: table-cell !important;
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  text-align: right;
  vertical-align: middle;
}
.um-car-tax-table td {
  display: table-cell !important;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-align: right;
  vertical-align: middle;
}
td.num, th.num {
  display: table-cell !important;
}
.um-car-tax-table th.text-center,
.um-car-tax-table td.text-center {
  text-align: center !important;
}
.um-car-tax-table tr:nth-child(even) {
  background: #f8fafc;
}
.font-green {
  color: #16a34a !important;
  font-weight: 700;
}
.font-red {
  color: #dc2626 !important;
  font-weight: 700;
}

/* Single Car Review Page */
.um-car-single-page {
  padding-bottom: 4rem;
}
.um-car-hero-card {
  border-top-color: #e11d48;
}
.um-car-img-wrap {
  height: 360px;
  background: #fbf9f5;
}
.um-car-viewbadge {
  margin-top: 10px;
  font-size: 12px;
  color: var(--up-text-muted, #7a6b5e);
  font-weight: 600;
}
.um-car-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.um-year-pill {
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.um-car-tagline {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}
.um-car-price-hero {
  background: #fdfbf7;
  border: 1px solid #efe7d8;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.um-car-price-primary {
  display: flex;
  flex-direction: column;
}
.um-cpr-label {
  font-size: 12px;
  color: var(--up-text-muted, #7a6b5e);
  margin-bottom: 2px;
}
.um-cpr-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.um-cpr-val {
  font-size: 24px;
  color: var(--up-red-dark, #9a1830);
  line-height: 1.2;
}
.um-cpr-lakh {
  font-size: 14px;
  font-weight: 700;
  color: var(--up-red, #c41e3a);
}
.um-car-onroad-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 6px;
  padding: 10px 14px;
}
.um-onroad-item {
  display: flex;
  flex-direction: column;
}
.um-onroad-lbl {
  font-size: 11px;
  color: #64748b;
}
.um-onroad-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--up-text, #2c1e1a);
}
.um-onroad-divider {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
}
.um-car-install-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}
.um-install-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.um-install-info strong {
  color: #166534;
  display: inline-block;
  margin-left: 6px;
}
.um-install-info span {
  font-weight: 800;
  color: #15803d;
}
.um-install-info small {
  color: #64748b;
  display: block;
}
.um-car-highlights-grid {
  margin-top: 4px;
}
.um-car-jump-btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.um-jump-btn {
  padding: 8px 16px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.um-jump-btn.primary {
  background: var(--up-red, #c41e3a);
  color: #fff;
}
.um-jump-btn.primary:hover {
  background: var(--up-red-dark, #9a1830);
  color: #fff;
}
.um-jump-btn.secondary {
  background: #fff;
  border: 1px solid #dcd3c1;
  color: var(--up-text, #2c1e1a);
}
.um-jump-btn.secondary:hover {
  border-color: var(--up-red, #c41e3a);
  color: var(--up-red, #c41e3a);
}

/* 6-Category Specs Table */
.um-car-specs-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.um-car-spec-block {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.um-cspec-heading {
  background: #f8fafc;
  color: var(--up-text, #2c1e1a);
  font-size: 15px;
  font-weight: 800;
  padding: 12px 18px;
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
}
.um-cspec-table {
  width: 100%;
  border-collapse: collapse;
}
.um-cspec-table th {
  width: 32%;
  background: #fff;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  text-align: right;
}
.um-cspec-table td {
  background: #fff;
  color: var(--up-text, #2c1e1a);
  font-size: 13px;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.um-cspec-table tr:last-child th,
.um-cspec-table tr:last-child td {
  border-bottom: none;
}

/* Pros & Cons Section */
.um-proscons-section {
  margin-bottom: 28px;
}
.um-proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.um-pros-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 18px;
}
.um-pro-title {
  color: #166534;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}
.um-pro-list {
  margin: 0;
  padding-right: 18px;
  color: #15803d;
  font-size: 13px;
  line-height: 1.9;
}
.um-cons-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 18px;
}
.um-con-title {
  color: #92400e;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
}
.um-con-list {
  margin: 0;
  padding-right: 18px;
  color: #b45309;
  font-size: 13px;
  line-height: 1.9;
}

/* Tax Breakdown Section */
.um-tax-breakdown-section {
  margin-bottom: 28px;
}
.um-tax-table-card {
  background: #fff;
  border: 1px solid #e7e0d3;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.um-car-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.um-car-calc-table th {
  background: #f8fafc;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: right;
  font-weight: 800;
}
.um-car-calc-table td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
}
.um-calc-total-row {
  background: #fef2f2;
}
.um-calc-note {
  margin-top: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #1e40af;
  line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 1180px) {
  .uj-cargrid, .uj-bikegrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .um-proscons-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .uj-cargrid, .uj-bikegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 640px) {
  .um-car-jump-btns {
    flex-direction: column;
  }
  .um-car-onroad-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .um-onroad-divider {
    display: none;
  }
  .um-cspec-table th {
    width: 40%;
  }
}
@media (max-width: 520px) {
  .uj-cargrid, .uj-bikegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .uj-carcard, .uj-bikecard {
    padding: 8px 8px 10px;
  }
  .uj-carimg {
    height: 100px;
    padding: 4px;
  }
  .uj-cartitle {
    font-size: 12px;
    min-height: 32px;
  }
  .uj-carspecs {
    font-size: 10px;
    height: 26px;
  }
  .uj-carprice-val {
    font-size: 13px;
  }
  .uj-carbtn {
    font-size: 10.5px;
    padding: 5px 4px 6px;
  }
}

/* ============================================================
   UNIVERSAL YOUTUBE VIDEO STYLES & FACADE PLAYER
   ============================================================ */
.um-card-img {
  position: relative;
}
.um-card-video-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}
.um-card-video-pill::before {
  content: "▶";
  color: #ef4444;
  font-size: 10px;
}
.um-card:hover .um-card-video-pill {
  background: #dc2626;
  border-color: #ef4444;
}
.um-card:hover .um-card-video-pill::before {
  color: #fff;
}

/* Hero Media Switcher & Video Facade */
.um-main-img-wrap {
  position: relative;
}
.um-media-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.um-mtab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.um-mtab:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.um-mtab.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.um-mtab-photo.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.um-hero-video-play-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  z-index: 5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.um-hero-video-play-btn .um-play-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding-left: 2px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}
.um-hero-video-play-btn:hover {
  background: #dc2626;
  border-color: #ef4444;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}
.um-hero-video-play-btn:hover .um-play-icon {
  background: #fff;
  color: #dc2626;
}

.um-video-embed-16-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.um-video-embed-16-9 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Dedicated Video Review Section */
.um-video-review-section {
  margin-top: 36px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.um-video-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.um-video-review-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.um-video-review-sub {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}
.um-yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  transition: all 0.2s ease;
}
.um-yt-subscribe-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}
.um-video-facade-card {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.um-video-facade-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.um-video-facade-card:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}
.um-video-facade-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 10;
}
.um-video-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(15, 23, 42, 0.85);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}
.um-video-facade-card:hover .um-video-facade-play {
  background: #dc2626;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}
.um-video-facade-play svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.um-video-facade-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 4;
}

/* ==========================================================================
   AGRICULTURE & LIVESTOCK MEGA PORTAL STYLES (زراعت و لائیو اسٹاک)
   ========================================================================== */

.um-agri-hero {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #fff;
  border-radius: 16px;
  padding: 36px 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(6, 78, 59, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.um-agri-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.um-agri-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #d1fae5;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.um-agri-hero h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 12px 0;
  color: #ffffff;
}
.um-agri-hero p {
  font-size: 15.5px;
  color: #ecfdf5;
  max-width: 820px;
  line-height: 1.7;
  margin: 0 0 24px 0;
}
.um-agri-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.um-agri-stat-pill {
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
}
.um-agri-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #34d399;
  display: block;
}
.um-agri-stat-lbl {
  font-size: 12px;
  color: #d1fae5;
  font-weight: 600;
}

/* Gateway Cards (Gateways into Portal Sections) */
.um-agri-gateways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 35px;
}
.um-agri-gateway-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.um-agri-gateway-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(6, 78, 59, 0.12);
  border-color: #10b981;
}
.um-agri-gateway-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
}
.um-agri-gateway-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.um-agri-gateway-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 14px 0;
  flex-grow: 1;
}
.um-agri-gateway-link {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Daily Mandi Rates Live Board */
.um-mandi-board {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.um-mandi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 16px;
}
.um-mandi-title {
  font-size: 22px;
  font-weight: 800;
  color: #064e3b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.um-mandi-date-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.um-mandi-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.um-mandi-tab {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.um-mandi-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.um-mandi-tab.active {
  background: #059669;
  color: #fff;
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* Modern Mandi Table */
.um-rates-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.um-rates-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13.5px;
}
.um-rates-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 2px solid #e2e8f0;
}
.um-rates-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.um-rates-table tr:hover td {
  background: #fdfdfd;
}
.um-rate-item-name {
  font-weight: 800;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.um-rate-price-range {
  font-weight: 800;
  color: #065f46;
  font-size: 15px;
}
.um-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
}
.um-trend-badge.up {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.um-trend-badge.down {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.um-trend-badge.stable {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Farm Implements Specific Cards */
.um-subsidy-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #15803d;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.35);
  z-index: 3;
}
.um-tractor-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 4px;
}
.um-net-price-box {
  background: #f0fdf4;
  border: 1px dashed #22c55e;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
}
.um-net-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.um-net-price-highlight {
  font-size: 18px;
  font-weight: 900;
  color: #15803d;
}

/* Livestock & Cattle Showcase */
.um-livestock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}
.um-livestock-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.um-livestock-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.um-livestock-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.um-livestock-body {
  padding: 18px;
}
.um-livestock-body h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #0f172a;
}
.um-livestock-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

/* Kisan Subsidies & Govt Schemes Box */
.um-agri-schemes-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 35px;
}
.um-agri-schemes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.um-agri-scheme-item {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.um-agri-scheme-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: #166534;
  margin: 0 0 6px 0;
}
.um-agri-scheme-item p {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .um-agri-hero {
    padding: 24px 18px;
  }
  .um-agri-hero h1 {
    font-size: 24px;
  }
  .um-agri-gateways {
    grid-template-columns: 1fr;
  }
  .um-mandi-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   AGRICULTURE STANDALONE SUB-PORTALS STYLING (Dairy, Goats, Poultry, Subsidies)
   ============================================================ */

/* Breed Showcase Cards */
.um-breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.um-breed-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.um-breed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.um-breed-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
}
.um-breed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.um-breed-card:hover .um-breed-img {
  transform: scale(1.04);
}
.um-breed-origin-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 78, 59, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.um-breed-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.um-breed-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.um-breed-body p {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 14px 0;
  flex-grow: 1;
}
.um-breed-specs {
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #edf2f7;
}
.um-breed-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.um-breed-spec-item:last-child {
  border-bottom: none;
}
.um-breed-spec-item span {
  color: #64748b;
}
.um-breed-spec-item strong {
  color: #065f46;
}

/* Feed & Nutrition Box */
.um-nutrition-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.um-nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13.5px;
}
.um-nutrition-table th {
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
  padding: 10px 14px;
  text-align: right;
  border-bottom: 2px solid #bbf7d0;
}
.um-nutrition-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.um-nutrition-table tr:hover td {
  background: #f8fafc;
}

/* 35-Day Broiler Lifecycle Timeline */
.um-poultry-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 35px 0;
}
.um-timeline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #059669;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.um-timeline-phase {
  font-size: 12px;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.um-timeline-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.um-timeline-card ul {
  margin: 0;
  padding-right: 18px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.7;
}

/* Subsidy Step-by-Step Flow */
.um-scheme-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.um-scheme-step {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px 16px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.um-step-num {
  position: absolute;
  top: -12px;
  right: 16px;
  background: #064e3b;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.um-scheme-step h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 6px 0;
}
.um-scheme-step p {
  font-size: 12.5px;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Eligibility Checklist Card */
.um-checklist-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 15px 0;
}
.um-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}
.um-check-item:last-child {
  margin-bottom: 0;
}
.um-check-icon {
  color: #059669;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

/* ==========================================================================
   🇨🇳🇵🇰 CPEC MEGA PORTAL & EDITORIAL DOSSIERS STYLING (High-End Journalistic)
   ========================================================================== */

/* 1. Master Editorial Masthead */
.cpec-editorial-masthead {
  background: linear-gradient(140deg, #071326 0%, #0c2340 50%, #132e52 100%);
  border-radius: 14px;
  padding: 38px 32px;
  color: #ffffff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 19, 38, 0.15);
  border-right: 5px solid #d97706;
}
.cpec-masthead-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.45);
  color: #fde68a;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.cpec-editorial-title {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 900;
  color: #ffffff !important;
  margin: 0 0 14px 0;
  letter-spacing: -0.2px;
}
.cpec-editorial-deck {
  font-size: 15.5px;
  line-height: 1.8;
  color: #cbd5e1 !important;
  max-width: 1050px;
  margin: 0 0 24px 0;
}
.cpec-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #94a3b8;
}
.cpec-byline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cpec-byline-item strong {
  color: #f1f5f9;
}

/* Macro Indicator Strip */
.cpec-macro-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.cpec-macro-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  backdrop-filter: blur(8px);
}
.cpec-macro-val {
  font-size: 24px;
  font-weight: 900;
  color: #fde68a;
  display: block;
  font-family: monospace;
  margin-bottom: 3px;
}
.cpec-macro-lbl {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* 2. Sleek Sub-Portal Editorial Tabs (2 Lines & Centralized) */
.cpec-editorial-tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 35px;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 0;
}
.cpec-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 800;
  color: #334155;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1 1 180px;
  max-width: 235px;
  position: relative;
  bottom: -2px;
  line-height: 1.35;
}
.cpec-nav-tab:hover {
  background: #f1f5f9;
  color: #0c2340;
  border-color: #94a3b8;
  transform: translateY(-2px);
}
.cpec-nav-tab.active {
  background: #0c2340;
  color: #ffffff;
  border-color: #0c2340;
  border-bottom: 2px solid #0c2340;
  box-shadow: 0 -4px 12px rgba(12, 35, 64, 0.18);
  transform: translateY(-1px);
}
.cpec-nav-tab span:first-child {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.cpec-nav-tab-en {
  font-size: 11px;
  opacity: 0.82;
  font-weight: 600;
  display: block;
  line-height: 1.3;
  direction: ltr;
  letter-spacing: 0.2px;
}
.cpec-nav-tab.active .cpec-nav-tab-en {
  color: #cbd5e1;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .cpec-editorial-masthead {
    padding: 22px 16px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
  }
  .cpec-editorial-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    color: #ffffff !important;
    word-break: break-word;
  }
  .cpec-editorial-deck {
    font-size: 13.5px !important;
    line-height: 1.75 !important;
    margin-bottom: 16px !important;
    color: #cbd5e1 !important;
  }
  .cpec-masthead-kicker {
    font-size: 11.5px !important;
    padding: 4px 10px !important;
    margin-bottom: 12px !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
  }
  .cpec-byline-bar {
    gap: 8px 14px !important;
    padding-top: 14px !important;
    font-size: 11.5px !important;
  }
  .cpec-macro-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }
  .cpec-macro-card {
    padding: 10px 12px !important;
  }
  .cpec-macro-val {
    font-size: 17px !important;
  }
  .cpec-macro-lbl {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
  .cpec-editorial-tabs {
    gap: 8px;
    justify-content: center;
  }
  .cpec-nav-tab {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
    font-size: 13.5px;
    padding: 10px 12px;
  }
  .cpec-editorial-container {
    padding: 22px 16px !important;
    margin-bottom: 24px !important;
  }
  .cpec-section-heading {
    font-size: 19px !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 480px) {
  .cpec-editorial-masthead {
    padding: 18px 14px !important;
  }
  .cpec-editorial-title {
    font-size: 19.5px !important;
    line-height: 1.45 !important;
  }
  .cpec-macro-strip {
    grid-template-columns: 1fr !important;
  }
  .cpec-nav-tab {
    flex: 1 1 100%;
  }
}

/* 3. High-End Editorial Story Layout */
.cpec-editorial-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 34px 30px;
  margin-bottom: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.cpec-section-heading {
  font-size: 23px;
  font-weight: 900;
  color: #0c2340;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cpec-section-subhead {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
  display: block;
}

/* Two-column analytical prose */
.cpec-editorial-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 28px;
}
@media (max-width: 860px) {
  .cpec-editorial-prose {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.cpec-dropcap {
  float: right;
  font-size: 42px;
  line-height: 38px;
  font-weight: 900;
  color: #0c2340;
  padding-left: 10px;
  margin-top: 4px;
}

/* Editorial Pullquote */
.cpec-pullquote {
  background: #fffdf5;
  border-right: 4px solid #d97706;
  padding: 20px 24px;
  margin: 22px 0;
  border-radius: 0 10px 10px 0;
  border-top: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
  border-left: 1px solid #fef3c7;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: #92400e;
}

/* 4. Authoritative Ledger Tables */
.cpec-ledger-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.cpec-ledger-header {
  background: #0c2340;
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.cpec-ledger-header h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}
.cpec-ledger-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.cpec-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: right;
}
.cpec-ledger-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  padding: 12px 16px;
  border-bottom: 2px solid #cbd5e1;
  white-space: nowrap;
}
.cpec-ledger-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}
.cpec-ledger-table tr:nth-child(even) td {
  background: #f8fafc;
}
.cpec-ledger-table tr:hover td {
  background: #f0fdf4;
}
.cpec-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.cpec-status-pill.operational {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.cpec-status-pill.construction {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.cpec-status-pill.pipeline {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* 5. Route Comparison Editorial Matrix */
.cpec-route-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.cpec-route-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 22px;
  border-top: 4px solid #0c2340;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cpec-route-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.cpec-route-card.western {
  border-top-color: #059669;
}
.cpec-route-card.eastern {
  border-top-color: #0284c7;
}
.cpec-route-card.central {
  border-top-color: #d97706;
}
.cpec-route-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.cpec-route-card.western .cpec-route-badge {
  background: #dcfce7;
  color: #166534;
}
.cpec-route-card.eastern .cpec-route-badge {
  background: #e0f2fe;
  color: #0369a1;
}
.cpec-route-card.central .cpec-route-badge {
  background: #fef3c7;
  color: #92400e;
}
.cpec-route-card h4 {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.cpec-route-path {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
  border: 1px dashed #cbd5e1;
  margin-bottom: 14px;
}
.cpec-route-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748b;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cpec-route-meta:last-child {
  border-bottom: none;
}
.cpec-route-meta strong {
  color: #0f172a;
}

/* 6. Chronological Milestone Ribbon */
.cpec-timeline-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.cpec-timeline-node {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  border-right: 3px solid #0c2340;
}
.cpec-timeline-year {
  font-size: 18px;
  font-weight: 900;
  color: #0c2340;
  font-family: monospace;
  margin-bottom: 4px;
  display: block;
}
.cpec-timeline-event {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

/* 7. Fact-Check & Sovereign Debt Debunker Box */
.cpec-factcheck-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
}
.cpec-factcheck-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cpec-factcheck-header h3 {
  font-size: 20px;
  font-weight: 900;
  color: #166534;
  margin: 0;
}
.cpec-factcheck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.cpec-factcheck-item {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 14px 16px;
}
.cpec-factcheck-item h5 {
  font-size: 13.5px;
  font-weight: 800;
  color: #166534;
  margin: 0 0 6px 0;
}
.cpec-factcheck-item p {
  font-size: 12.5px;
  color: #374151;
  margin: 0;
  line-height: 1.6;
}

/* ── Homepage Tourism Showcase Box ── */
.uj-tourism-section {
  margin-bottom: 24px;
}
.uj-tourism-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  box-sizing: border-box;
  margin-top: 14px;
}
.uj-tourism-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.uj-tourism-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.uj-tourism-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.uj-tourism-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.uj-tourism-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.uj-tourism-card:hover .uj-tourism-img {
  transform: scale(1.07);
}
.uj-tourism-body {
  padding: 12px 14px 14px;
  background: #ffffff;
  flex: 1;
  display: flex;
  align-items: center;
}
.uj-tourism-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.5;
  transition: color 0.2s ease;
  font-family: inherit;
}
.uj-tourism-card:hover .uj-tourism-title {
  color: #059669;
}

@media (max-width: 900px) {
  .uj-tourism-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 540px) {
  .uj-tourism-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .uj-tourism-title {
    font-size: 14.5px;
  }
}

/* ─────────────────────────────────────────────────────────────
   HEALTH ARTICLES SHOWCASE (صحت کے مضامین)
───────────────────────────────────────────────────────────── */
.uj-health-articles-section {
  margin-top: 1.5rem;
}
.uj-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.uj-health-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.uj-health-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
  border-color: #059669;
}
.uj-health-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.uj-health-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.uj-health-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.uj-health-card:hover .uj-health-img {
  transform: scale(1.07);
}
.uj-health-body {
  padding: 12px 14px 14px;
  background: #ffffff;
  flex: 1;
  display: flex;
  align-items: center;
}
.uj-health-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.55;
  transition: color 0.2s ease;
  font-family: inherit;
}
.uj-health-card:hover .uj-health-title {
  color: #059669;
}

@media (max-width: 900px) {
  .uj-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 540px) {
  .uj-health-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .uj-health-title {
    font-size: 14.5px;
  }
}



