/* ==========================================================================
   Design B — "Sahiwal City Identity"  (preview-only)
   ISOLATION: every selector starts with .hd-b  (or .dark .hd-b for dark mode).
   Nothing here touches Classic, app-layout, or Designs A/C/D.
   No Tailwind dependency: this file is fully self-contained.
   ========================================================================== */

.hd-b {
  --b-pink: #ff05b6;
  --b-pink-2: #d90099;
  --b-blue: #1e3a8a;
  --b-blue-lt: #3b82f6;
  --b-green: #059669;
  --b-amber: #d97706;
  --b-ink: #1a1a2e;
  --b-muted: #64748b;
  --b-line: #e2e8f0;
  --b-card: #ffffff;
  --b-bg: #f8fafc;
  --b-soft: #fff0fa;
  --b-shadow: 0 4px 16px rgba(0,0,0,.06);
  --b-shadow-lg: 0 12px 32px rgba(0,0,0,.1);
  --b-radius: 14px;
  color: var(--b-ink);
  font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.45;
  padding-bottom: 0;
  overflow-x: clip;
  background: var(--b-bg);
}
.dark .hd-b {
  --b-ink: #f1f5f9;
  --b-muted: #94a3b8;
  --b-line: #334155;
  --b-card: #1e293b;
  --b-bg: #0f172a;
  --b-soft: #2a1426;
  --b-shadow: 0 4px 16px rgba(0,0,0,.3);
  --b-shadow-lg: 0 12px 32px rgba(0,0,0,.45);
}
.hd-b *, .hd-b *::before, .hd-b *::after { box-sizing: border-box; }
.hd-b a { color: inherit; text-decoration: none; }
.hd-b img { max-width: 100%; display: block; }
.hd-b h1, .hd-b h2, .hd-b h3, .hd-b h4, .hd-b p { margin: 0; }
.hd-b svg { flex-shrink: 0; }

.hd-b .hd-b__wrap { max-width: 1260px; margin: 0 auto; padding: 0 16px; }
.hd-b .hd-b__section { margin-top: 32px; }

/* ---------- Suppress old global header & mobile drawer ---------- */
html:has(.hd-b),
body:has(.hd-b) {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
body:has(.hd-b) > nav.sticky.top-0,
body:has(.hd-b) > .mobile-drawer-card,
body:has(.hd-b) > [x-show="mobileMenuOpen"] {
  display: none !important;
}

/* ---------- Level 1: Pink Brand Header ---------- */
.hd-b .hd-b__nav-top {
  background: linear-gradient(135deg, #FF05B6 0%, #c20087 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.hd-b .hd-b__nav-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 12px;
}
.hd-b .hd-b__nav-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hd-b .hd-b__nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #fff;
  white-space: nowrap;
}
.hd-b .hd-b__nav-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(4px);
}
.hd-b .hd-b__nav-loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  color: #fff;
}
.hd-b .hd-b__nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hd-b .hd-b__nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  transition: background .2s;
}
.hd-b .hd-b__nav-login-btn:hover { background: rgba(255,255,255,0.25); }
.hd-b .hd-b__nav-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  color: var(--b-pink);
  transition: transform .15s, box-shadow .15s;
}
.hd-b .hd-b__nav-post-cta:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ---------- Level 2: White Secondary Nav ---------- */
.hd-b .hd-b__nav-sub {
  background: var(--b-card);
  border-bottom: 1px solid var(--b-line);
  position: sticky;
  top: 52px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.dark .hd-b .hd-b__nav-sub { background: var(--b-card); }
.hd-b .hd-b__nav-sub-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
  height: 44px;
}
.hd-b .hd-b__nav-sub-inner::-webkit-scrollbar { display: none; }
.hd-b .hd-b__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--b-muted);
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.hd-b .hd-b__nav-link svg { width: 14px; height: 14px; }
.hd-b .hd-b__nav-link:hover { color: var(--b-pink); background: rgba(255,5,182,.05); }
.hd-b .hd-b__nav-link.is-active { color: var(--b-pink); font-weight: 800; background: rgba(255,5,182,.08); }

/* ---------- Wide Hero with Cityscape Gradient ---------- */
.hd-b .hd-b__hero {
  position: relative;
  padding: 56px 0 48px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 40%, #06b6d4 70%, #059669 100%);
  overflow: hidden;
  color: #fff;
}
.hd-b .hd-b__hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hd-b .hd-b__hero-overlay::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(30,58,138,.7), transparent);
}
.hd-b .hd-b__hero-overlay::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  filter: blur(60px);
}
.hd-b .hd-b__hero-cityscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
  opacity: .2;
}
.hd-b .hd-b__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hd-b .hd-b__hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hd-b .hd-b__hero h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.hd-b .hd-b__hero h1 span {
  display: block;
  font-size: 48px;
  background: linear-gradient(90deg, #fff 30%, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hd-b .hd-b__hero-tagline {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.hd-b .hd-b__hero-search {
  margin-top: 22px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 9-Category Icon Strip ---------- */
.hd-b .hd-b__cat-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  margin-top: 28px;
}
@media (max-width: 768px) {
  .hd-b .hd-b__cat-strip { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 480px) {
  .hd-b .hd-b__cat-strip { grid-template-columns: repeat(3, 1fr); }
}
.hd-b .hd-b__cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 6px 10px;
  border-radius: 14px;
  background: var(--b-card);
  border: 1px solid var(--b-line);
  box-shadow: var(--b-shadow);
  transition: transform .15s, box-shadow .15s;
  text-align: center;
  cursor: pointer;
}
.hd-b .hd-b__cat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-shadow-lg);
}
.hd-b .hd-b__cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.hd-b .hd-b__cat-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--b-ink);
  line-height: 1.2;
}
.hd-b .hd-b__cat-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--b-muted);
  margin-top: 2px;
}

/* ---------- Breaking News Ticker ---------- */
.hd-b .hd-b__news-strip {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 24px;
  box-shadow: var(--b-shadow);
}
.hd-b .hd-b__news-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--b-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hd-b .hd-b__news-badge .hd-b__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: hd-b-pulse 1.5s ease-in-out infinite;
}
@keyframes hd-b-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hd-b .hd-b__news-scroll {
  flex-grow: 1;
  overflow: hidden;
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-left: none;
  border-radius: 0 14px 14px 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.hd-b .hd-b__news-marquee {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: hd-b-marquee 40s linear infinite;
  will-change: transform;
  font-size: 13px;
  font-weight: 600;
  color: var(--b-ink);
}
.hd-b .hd-b__news-marquee:hover { animation-play-state: paused; }
@keyframes hd-b-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- Section Header ---------- */
.hd-b .hd-b__sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--b-line);
  margin-bottom: 16px;
}
.hd-b .hd-b__sec-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--b-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-b .hd-b__sec-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.hd-b .hd-b__sec-view-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--b-pink);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.hd-b .hd-b__sec-view-all:hover { text-decoration: underline; }

/* ---------- 3-Column Layout ---------- */
.hd-b .hd-b__three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 991px) {
  .hd-b .hd-b__three-col { grid-template-columns: 1fr; }
}
.hd-b .hd-b__col-card {
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  box-shadow: var(--b-shadow);
  overflow: hidden;
}
.hd-b .hd-b__col-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--b-line);
}
.hd-b .hd-b__col-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--b-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-b .hd-b__col-body { padding: 12px 16px; }

/* Business list item */
.hd-b .hd-b__biz-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background .15s;
}
.hd-b .hd-b__biz-item:hover { background: rgba(0,0,0,.03); }
.dark .hd-b .hd-b__biz-item:hover { background: rgba(255,255,255,.05); }
.hd-b .hd-b__biz-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark .hd-b .hd-b__biz-thumb { background: #334155; }
.hd-b .hd-b__biz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hd-b .hd-b__biz-placeholder {
  font-size: 10px;
  font-weight: 800;
  color: var(--b-muted);
}
.hd-b .hd-b__biz-info { min-width: 0; flex-grow: 1; }
.hd-b .hd-b__biz-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--b-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-b .hd-b__biz-item:hover .hd-b__biz-name { color: var(--b-pink); }
.hd-b .hd-b__biz-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--b-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-b .hd-b__biz-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--b-muted);
}

/* Property list item */
.hd-b .hd-b__prop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background .15s;
}
.hd-b .hd-b__prop-item:hover { background: rgba(0,0,0,.03); }
.hd-b .hd-b__prop-thumb {
  width: 56px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-b .hd-b__prop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hd-b .hd-b__prop-info { min-width: 0; flex-grow: 1; }
.hd-b .hd-b__prop-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--b-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-b .hd-b__prop-price {
  font-size: 11px;
  font-weight: 800;
  color: var(--b-pink);
  margin-top: 2px;
}
.hd-b .hd-b__prop-loc {
  font-size: 10px;
  font-weight: 600;
  color: var(--b-muted);
}

/* Job list item */
.hd-b .hd-b__job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  transition: background .15s;
}
.hd-b .hd-b__job-item:hover { background: rgba(0,0,0,.03); }
.hd-b .hd-b__job-info { min-width: 0; flex-grow: 1; }
.hd-b .hd-b__job-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--b-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-b .hd-b__job-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--b-muted);
}
.hd-b .hd-b__apply-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--b-pink), var(--b-pink-2));
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  flex-shrink: 0;
  transition: transform .12s;
}
.hd-b .hd-b__apply-btn:hover { transform: scale(1.05); }

/* ---------- Promote CTA Banner ---------- */
.hd-b .hd-b__promo-banner {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--b-radius);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hd-b .hd-b__promo-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,5,182,.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hd-b .hd-b__promo-banner h3 {
  font-size: 22px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.hd-b .hd-b__promo-banner p {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.hd-b .hd-b__promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--b-pink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform .15s, box-shadow .15s;
  position: relative;
  z-index: 1;
}
.hd-b .hd-b__promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,5,182,.35);
}

/* ---------- Featured Listings Horizontal Row ---------- */
.hd-b .hd-b__featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991px) {
  .hd-b .hd-b__featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hd-b .hd-b__featured-grid { grid-template-columns: 1fr; }
}
.hd-b .hd-b__feat-card {
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  overflow: hidden;
  box-shadow: var(--b-shadow);
  transition: transform .15s, box-shadow .15s;
}
.hd-b .hd-b__feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-shadow-lg);
}
.hd-b .hd-b__feat-img {
  width: 100%;
  height: 160px;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
}
.hd-b .hd-b__feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hd-b .hd-b__feat-card:hover .hd-b__feat-img img { transform: scale(1.06); }
.hd-b .hd-b__feat-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #94a3b8;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.hd-b .hd-b__feat-body { padding: 12px 14px; }
.hd-b .hd-b__feat-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--b-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-b .hd-b__feat-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--b-pink);
  margin-top: 4px;
}
.hd-b .hd-b__feat-loc {
  font-size: 10px;
  font-weight: 600;
  color: var(--b-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.hd-b .hd-b__feat-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--b-muted);
  margin-top: 4px;
}

/* ---------- Community + Events + Advertise Row ---------- */
.hd-b .hd-b__community-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 991px) {
  .hd-b .hd-b__community-row { grid-template-columns: 1fr; }
}
.hd-b .hd-b__comm-card {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--b-card);
  border: 1px solid var(--b-line);
  transition: border-color .15s;
}
.hd-b .hd-b__comm-card:hover { border-color: var(--b-pink); }
.hd-b .hd-b__comm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--b-soft);
  color: var(--b-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  border: 1px solid rgba(255,5,182,.2);
}
.hd-b .hd-b__comm-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--b-ink);
}
.hd-b .hd-b__comm-text {
  font-size: 10px;
  color: var(--b-muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Event item */
.hd-b .hd-b__event-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--b-card);
  border: 1px solid var(--b-line);
}
.hd-b .hd-b__event-date {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--b-pink);
}
.hd-b .hd-b__event-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--b-ink);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-b .hd-b__event-loc {
  font-size: 10px;
  color: var(--b-muted);
  margin-top: 2px;
}

/* Advertise CTA box */
.hd-b .hd-b__adv-cta {
  padding: 24px;
  border-radius: var(--b-radius);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a2e;
  text-align: center;
}
.hd-b .hd-b__adv-cta h3 {
  font-size: 20px;
  font-weight: 900;
}
.hd-b .hd-b__adv-cta p {
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  color: rgba(26,26,46,.7);
}
.hd-b .hd-b__adv-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--b-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform .15s;
}
.hd-b .hd-b__adv-cta-btn:hover { transform: scale(1.04); }

/* ---------- Articles Grid ---------- */
.hd-b .hd-b__articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991px) {
  .hd-b .hd-b__articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hd-b .hd-b__articles-grid { grid-template-columns: 1fr; }
}
.hd-b .hd-b__article-card {
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: var(--b-radius);
  overflow: hidden;
  box-shadow: var(--b-shadow);
  transition: transform .15s;
}
.hd-b .hd-b__article-card:hover { transform: translateY(-3px); }
.hd-b .hd-b__article-img {
  width: 100%;
  height: 140px;
  background: #f1f5f9;
  overflow: hidden;
}
.hd-b .hd-b__article-img img { width: 100%; height: 100%; object-fit: cover; }
.hd-b .hd-b__article-body { padding: 12px 14px; }
.hd-b .hd-b__article-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--b-pink);
}
.hd-b .hd-b__article-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--b-ink);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hd-b .hd-b__article-meta {
  font-size: 10px;
  color: var(--b-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Dark Footer ---------- */
.hd-b .hd-b__footer {
  margin-top: 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: 40px 0 24px;
}
.hd-b .hd-b__footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 768px) {
  .hd-b .hd-b__footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .hd-b .hd-b__footer-grid { grid-template-columns: 1fr; }
}
.hd-b .hd-b__footer-brand {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-b .hd-b__footer-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--b-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.hd-b .hd-b__footer-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.6;
}
.hd-b .hd-b__footer h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hd-b .hd-b__footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hd-b .hd-b__footer-links li { margin-bottom: 8px; }
.hd-b .hd-b__footer-links a {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  transition: color .15s;
}
.hd-b .hd-b__footer-links a:hover { color: var(--b-pink); }
.hd-b .hd-b__footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.hd-b .hd-b__footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  transition: background .2s, color .2s;
}
.hd-b .hd-b__footer-social a:hover { background: var(--b-pink); color: #fff; }
.hd-b .hd-b__footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.hd-b .hd-b__footer-copy {
  font-size: 11px;
  color: #64748b;
}
.hd-b .hd-b__footer-copy a { color: var(--b-pink); }

/* ---------- Empty State ---------- */
.hd-b .hd-b__empty {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--b-muted);
}

/* ---------- Responsive Hero ---------- */
@media (max-width: 640px) {
  .hd-b .hd-b__hero { padding: 36px 0 32px; }
  .hd-b .hd-b__hero h1 { font-size: 28px; }
  .hd-b .hd-b__hero h1 span { font-size: 34px; }
  .hd-b .hd-b__hero-tagline { font-size: 13px; }
  .hd-b .hd-b__nav-post-cta .hd-b__post-text-full { display: none; }
  .hd-b .hd-b__nav-post-cta .hd-b__post-text-short { display: inline; }
}
@media (min-width: 641px) {
  .hd-b .hd-b__nav-post-cta .hd-b__post-text-short { display: none; }
}

/* ---------- Responsive Nav ---------- */
@media (max-width: 640px) {
  .hd-b .hd-b__wrap { padding: 0 10px; }
  .hd-b .hd-b__nav-top-inner { gap: 6px; }
  .hd-b .hd-b__nav-loc-chip { display: none; }
  .hd-b .hd-b__nav-login-btn span { display: none; }
  .hd-b .hd-b__nav-login-btn { padding: 6px 8px; }
  .hd-b .hd-b__nav-actions { gap: 5px; }
  .hd-b .hd-b__nav-post-cta { padding: 6px 10px; font-size: 11px; }
}

/* ==========================================================================
   Design B — Inner Pages Reusable Theme System
   Scoped strictly under .hd-b and .hd-b--shell
   ========================================================================== */

.hd-b--shell {
  min-height: 80vh;
  background-color: var(--b-bg) !important;
  color: var(--b-ink) !important;
  font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif !important;
  overflow-x: clip;
  max-width: 100vw;
  box-sizing: border-box;
}

/* ---------- Universal Design B Card Refinement ---------- */
.hd-b--shell .theme-card,
.hd-b--shell .bg-white,
.hd-b--shell .dark\:bg-slate-900,
.hd-b--shell .dark\:bg-slate-800 {
  border-radius: var(--b-radius) !important;
  border-color: var(--b-line) !important;
  box-shadow: var(--b-shadow) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.hd-b--shell .theme-card:hover,
.hd-b--shell .bg-white.hover\:shadow-md:hover,
.hd-b--shell .bg-white.hover\:-translate-y-1:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--b-shadow-lg) !important;
  border-color: rgba(255, 5, 182, 0.25) !important;
}

/* ---------- Design B Buttons & CTAs ---------- */
.hd-b--shell .theme-btn-primary,
.hd-b--shell .bg-gradient-to-r.from-pink-600.to-purple-600,
.hd-b--shell .bg-gradient-to-r.from-pink-500.to-purple-500,
.hd-b--shell .bg-\[\#FF05B6\] {
  background: linear-gradient(135deg, var(--b-pink) 0%, var(--b-pink-2) 100%) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(255, 5, 182, 0.25) !important;
  font-weight: 800 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.hd-b--shell .theme-btn-primary:hover,
.hd-b--shell .bg-gradient-to-r.from-pink-600.to-purple-600:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(255, 5, 182, 0.35) !important;
}

/* ---------- Design B Badges & Pills ---------- */
.hd-b--shell .rounded-full {
  border-radius: 20px !important;
}

/* Verified Badges */
.hd-b--shell .text-blue-500,
.hd-b--shell .text-blue-600,
.hd-b--shell .bg-blue-50 {
  color: var(--b-blue-lt) !important;
}

/* Design B Price Highlights */
.hd-b--shell .text-pink-600,
.hd-b--shell .text-pink-500,
.hd-b--shell .text-\[\#FF05B6\] {
  color: var(--b-pink) !important;
  font-weight: 800 !important;
}

/* ---------- Category Filter Strip in Inner Pages ---------- */
.hd-b--shell .filter-pill,
.hd-b--shell .category-pill {
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  transition: all 0.15s ease !important;
}

.hd-b--shell .filter-pill.is-active,
.hd-b--shell .category-pill.is-active {
  background: var(--b-pink) !important;
  color: #ffffff !important;
  border-color: var(--b-pink) !important;
}

/* ---------- WhatsApp Action Buttons ---------- */
.hd-b--shell a[href*="wa.me"],
.hd-b--shell a[href*="whatsapp.com"],
.hd-b--shell .btn-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
}

.hd-b--shell a[href*="wa.me"]:hover,
.hd-b--shell a[href*="whatsapp.com"]:hover,
.hd-b--shell .btn-whatsapp:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.35) !important;
}

/* ---------- Directory Business Cards (Design B Style) ---------- */
.hd-b--shell .business-card,
.hd-b--shell .dir-card {
  border-radius: var(--b-radius) !important;
  border: 1px solid var(--b-line) !important;
  background: var(--b-card) !important;
  box-shadow: var(--b-shadow) !important;
  overflow: hidden !important;
}

.hd-b--shell .business-card:hover,
.hd-b--shell .dir-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--b-shadow-lg) !important;
}

/* ---------- Property Cards (Design B Sahiwal City Style) ---------- */
.hd-b--shell .property-card {
  border-radius: var(--b-radius) !important;
  border: 1px solid var(--b-line) !important;
  background: var(--b-card) !important;
  box-shadow: var(--b-shadow) !important;
  overflow: hidden !important;
}

.hd-b--shell .property-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--b-shadow-lg) !important;
}

/* ---------- Jobs Cards (Design B Careers Style) ---------- */
.hd-b--shell .job-card {
  border-radius: var(--b-radius) !important;
  border: 1px solid var(--b-line) !important;
  background: var(--b-card) !important;
  box-shadow: var(--b-shadow) !important;
}

.hd-b--shell .job-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--b-shadow-lg) !important;
  border-color: rgba(30, 58, 138, 0.2) !important;
}

/* ---------- Services Cards (Design B Experts Style) ---------- */
.hd-b--shell .service-card {
  border-radius: var(--b-radius) !important;
  border: 1px solid var(--b-line) !important;
  background: var(--b-card) !important;
  box-shadow: var(--b-shadow) !important;
}

.hd-b--shell .service-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--b-shadow-lg) !important;
}

/* ---------- Community Feed Cards (Design B Social Hub) ---------- */
.hd-b--shell .community-card,
.hd-b--shell .feed-post-card {
  border-radius: var(--b-radius) !important;
  border: 1px solid var(--b-line) !important;
  background: var(--b-card) !important;
  box-shadow: var(--b-shadow) !important;
}

/* ---------- Form Controls in Design B ---------- */
.hd-b--shell input[type="text"],
.hd-b--shell input[type="search"],
.hd-b--shell select,
.hd-b--shell textarea {
  border-radius: 10px !important;
  border-color: var(--b-line) !important;
  font-family: inherit !important;
}

.hd-b--shell input[type="text"]:focus,
.hd-b--shell input[type="search"]:focus,
.hd-b--shell select:focus,
.hd-b--shell textarea:focus {
  border-color: var(--b-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 5, 182, 0.15) !important;
}

/* ---------- Responsive Overflow Protection ---------- */
@media (max-width: 768px) {
  .hd-b--shell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

