/*
Theme Name:   Justify PK
Theme URI:    https://justify.pk
Author:       Justify.pk — Zeshan Haider Advocate
Author URI:   https://justify.pk
Description:  Premium Legal Aid & Consultation WordPress Theme for Justify.pk — Pakistan's trusted legal platform. Featuring Pakistani national flag colors, fully responsive design, Elementor compatible, bilingual English/Urdu support, practice area pages, client & advocate registration, AI-powered legal draft generator, and comprehensive legal service features.
Version:      2.13.2
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  justify-pk
Tags:         legal, law, pakistan, green, responsive, elementor, bilingual, rtl-ready, legal-drafts
*/

/* =====================================================
   CSS CUSTOM PROPERTIES — JUSTIFY.PK DESIGN SYSTEM
   Pakistani Flag Color DNA
   ===================================================== */
:root {
  /* === PRIMARY PALETTE === */
  --justify-green-deep:    #006600;
  --justify-green-bright:  #00A651;
  --justify-green-dark:    #004d00;
  --justify-green-light:   #e6f4eb;
  --justify-gold:          #D4AF37;
  --justify-gold-light:    #faf0c0;
  --justify-gold-dark:     #b8962e;
  --justify-white:         #FFFFFF;
  --justify-gray-bg:       #F5F5F5;
  --justify-gray-mid:      #E0E0E0;
  --justify-gray-dark:     #AAAAAA;
  --justify-text-dark:     #1A1A1A;
  --justify-text-mid:      #444444;
  --justify-text-light:    #777777;
  --justify-red:           #C0392B;

  /* === TYPOGRAPHY === */
  --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  --font-urdu:     'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --font-mono:     'Courier New', monospace;

  /* === SPACING === */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* === LAYOUT === */
  --container-max:     1200px;
  --container-wide:    1440px;
  --container-narrow:  800px;
  --section-py:        80px;
  --gutter:            24px;
  --border-radius:     8px;
  --border-radius-lg:  16px;
  --border-radius-xl:  24px;

  /* === SHADOWS === */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.10);
  --shadow-green: 0 8px 32px rgba(0,102,0,0.25);
  --shadow-gold:  0 8px 32px rgba(212,175,55,0.25);

  /* === TRANSITIONS === */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* === Z-INDEX === */
  --z-topbar:  100;
  --z-header:  200;
  --z-mobile:  300;
  --z-overlay: 400;
  --z-modal:   500;
  --z-toast:   600;
  --z-float:   700;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--justify-text-dark);
  background: var(--justify-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--justify-green-deep); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--justify-green-bright); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute; top: -60px; left: 0;
  background: var(--justify-green-deep); color: white;
  padding: 8px 16px; z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--justify-text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--justify-green-bright);
  margin-bottom: var(--space-sm);
  padding: 4px 12px;
  background: var(--justify-green-light);
  border-radius: 100px;
  border: 1px solid rgba(0,166,81,0.2);
}

.section-title {
  font-family: var(--font-display);
  color: var(--justify-text-dark);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--justify-text-mid);
  line-height: 1.6;
  max-width: 680px;
}
.section-subtitle.centered { margin: 0 auto; text-align: center; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn:focus-visible { outline: 3px solid var(--justify-gold); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn-lg  { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm  { padding: 8px 16px; font-size: 0.8rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--justify-green-bright) 0%, var(--justify-green-deep) 100%);
  color: white;
  box-shadow: var(--shadow-green);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--justify-green-deep) 0%, var(--justify-green-dark) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,102,0,0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--justify-gold) 0%, var(--justify-gold-dark) 100%);
  color: var(--justify-text-dark);
  box-shadow: var(--shadow-gold);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.40);
  color: var(--justify-text-dark);
}

.btn-outline {
  background: transparent;
  color: var(--justify-green-deep);
  border-color: var(--justify-green-deep);
}
.btn-outline:hover {
  background: var(--justify-green-deep);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.65);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.30);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

.btn-call {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 20px rgba(231,76,60,0.30);
}
.btn-call:hover {
  transform: translateY(-2px);
  color: white;
}

/* =====================================================
   TOP INFO BAR
   ===================================================== */
#justify-topbar {
  background: var(--justify-green-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 0;
  z-index: var(--z-topbar);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.topbar-contact a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar-contact a:hover { color: var(--justify-gold); }
.topbar-right { display: flex; align-items: center; gap: var(--space-lg); }
.topbar-free-badge {
  background: var(--justify-gold);
  color: var(--justify-text-dark);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}
.topbar-lang {
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.78rem;
}
.topbar-lang:hover { color: var(--justify-gold); }

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
#justify-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition-base);
}
#justify-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 14px 0;
}

/* Logo */
.justify-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-bright));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-green);
  transition: transform var(--transition-base);
}
.justify-logo:hover .logo-emblem { transform: scale(1.05) rotate(-3deg); }
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--justify-green-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--justify-text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Nav */
.justify-nav-wrap { flex: 1; display: flex; justify-content: flex-end; }
.justify-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.justify-nav > li { position: relative; }
.justify-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--justify-text-mid);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.justify-nav > li > a:hover,
.justify-nav > li > a.current-menu-item {
  color: var(--justify-green-deep);
  background: var(--justify-green-light);
}
.nav-register-btn {
  background: linear-gradient(135deg, var(--justify-green-bright), var(--justify-green-deep)) !important;
  color: white !important;
  border-radius: var(--border-radius) !important;
  padding: 8px 14px !important;
}
.nav-register-btn:hover {
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-dark)) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

/* Nav — defensive spacing tightening for medium desktop widths (laptops
   ~1024–1400px), where the full item set is most likely to overflow the
   nowrap nav before the 768px mobile-hamburger breakpoint kicks in. This
   is a safety net on top of the item reordering above (which guarantees
   the Account/Dashboard dropdown is never the item that gets clipped). */
@media (max-width: 1400px) {
  .justify-nav { gap: 0; }
  .justify-nav > li > a { padding: 8px 9px; font-size: 0.82rem; }
}

/* Dropdown */
.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  padding: var(--space-sm);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--justify-text-mid);
  border-radius: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--justify-green-light);
  color: var(--justify-green-deep);
}
.nav-dropdown-icon { font-size: 1rem; flex-shrink: 0; }

/* Header inline law search */
.justify-header-search-panel a { white-space: normal; }
.justify-header-search-panel input:focus-visible {
  outline: 2px solid var(--justify-green-bright);
  outline-offset: 1px;
}
.justify-header-search-panel #headerPakCodeLink:hover { color: var(--justify-green-deep); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--justify-green-deep);
  transition: all var(--transition-base);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* =====================================================
   MOBILE NAV
   ===================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--justify-green-dark) 0%, var(--justify-green-deep) 100%);
  z-index: var(--z-mobile);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav:not([hidden]) { transform: translateX(0); }
.mobile-nav[hidden] { display: flex; }
.mobile-nav-close {
  align-self: flex-end;
  color: white;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 24px;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.2); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav li a {
  display: block;
  padding: 13px 16px;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.mobile-nav li a:hover { background: rgba(255,255,255,0.1); color: white; }

/* =====================================================
   HERO SECTION — REDESIGNED
   ===================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--justify-green-dark) 0%, var(--justify-green-deep) 50%, #005500 100%);
  overflow: hidden;
  padding: 80px 0 60px;
}

/* Animated background elements */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(212,175,55,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,166,81,0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-crescent {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,0.025);
  pointer-events: none;
}
.hero-crescent::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  right: -40px;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(0,77,0,0.5);
}
.hero-crescent::after {
  content: '⭐';
  position: absolute;
  top: 50%;
  right: 120px;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: 0.12;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero content */
.hero-content { color: white; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--justify-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-title-accent { color: var(--justify-gold); }

.hero-title-urdu {
  display: block;
  font-family: var(--font-urdu);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-lg);
  direction: rtl;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat { text-align: center; }
.hero-stat .number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--justify-gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero card */
.hero-visual { position: relative; }
.hero-badge-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
}
.hero-badge-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--justify-gold), transparent 50%);
  border-radius: calc(var(--border-radius-xl) + 2px);
  z-index: -1;
  opacity: 0.4;
}
.hero-badge-icon {
  width: 56px;
  height: 56px;
  background: var(--justify-green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-md);
}
.hero-badge-card h3 {
  font-size: 1.3rem;
  color: var(--justify-green-deep);
  margin-bottom: 6px;
}
.hero-badge-card p {
  font-size: 0.87rem;
  color: var(--justify-text-mid);
  margin-bottom: var(--space-md);
}
.hero-quick-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-quick-form input,
.hero-quick-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  color: var(--justify-text-dark);
  background: white;
  transition: border-color var(--transition-fast);
  outline: none;
}
.hero-quick-form input:focus,
.hero-quick-form select:focus { border-color: var(--justify-green-bright); box-shadow: 0 0 0 3px rgba(0,166,81,0.12); }

/* =====================================================
   TRUST BAR
   ===================================================== */
.trust-bar {
  background: linear-gradient(135deg, var(--justify-green-light), white);
  border-top: 3px solid var(--justify-green-bright);
  border-bottom: 1px solid var(--justify-gray-mid);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--justify-text-mid);
  padding: 6px 20px;
  white-space: nowrap;
}
.trust-icon { font-size: 1.1rem; }
.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--justify-gray-mid);
}

/* =====================================================
   SECTIONS — BASE
   ===================================================== */
section { padding: var(--section-py) 0; }
.bg-white { background: white; }
.bg-gray { background: var(--justify-gray-bg); }
.bg-green { background: var(--justify-green-deep); }
.bg-dark { background: #0d1b0d; }
.text-center { text-align: center; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================================
   PRACTICE AREAS
   ===================================================== */
.practice-areas-section { background: white; }
.practice-areas-header { text-align: center; margin-bottom: 48px; }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: white;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--justify-green-bright), var(--justify-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.practice-card:hover {
  border-color: var(--justify-green-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--justify-green-deep);
}
.practice-card:hover::before { transform: scaleX(1); }
.practice-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
  transition: transform var(--transition-base);
}
.practice-card:hover .practice-icon { transform: scale(1.1); }
.practice-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--justify-text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.practice-desc {
  font-size: 0.73rem;
  color: var(--justify-text-light);
  line-height: 1.4;
}
.practice-all-link { text-align: center; }

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--justify-green-dark) 0%, var(--justify-green-deep) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--border-radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-base);
}
.stat-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--justify-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  line-height: 1.4;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section { background: var(--justify-gray-bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--justify-gold);
  color: var(--justify-text-dark);
  border-radius: var(--border-radius-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-gold);
  text-align: center;
}
.about-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-content .section-title { color: var(--justify-green-deep); }
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.values-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--justify-text-mid);
}
.values-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--justify-green-light);
  color: var(--justify-green-bright);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* =====================================================
   TEAM SECTION
   ===================================================== */
.team-section { background: white; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--justify-gray-mid);
  transition: all var(--transition-base);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.team-card-header {
  height: 100px;
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-bright));
  position: relative;
}
.team-avatar {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}
.team-card-body {
  padding: 52px 20px 24px;
  text-align: center;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--justify-text-dark);
  margin-bottom: 4px;
}
.team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--justify-green-bright);
  background: var(--justify-green-light);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.team-divider {
  height: 1px;
  background: var(--justify-gray-mid);
  margin: 12px 0;
}
.team-specialization {
  font-size: 0.78rem;
  color: var(--justify-text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--justify-green-deep) 0%, #004400 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '⚖️';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 180px;
  opacity: 0.04;
  pointer-events: none;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band-inner h2 {
  font-family: var(--font-display);
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.cta-band-inner p { color: rgba(255,255,255,0.75); margin: 0; font-size: 1rem; }
.cta-band-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; flex-shrink: 0; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: var(--justify-gray-bg); }
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (min-width:1100px) { .testimonials-slider { grid-template-columns: repeat(5,1fr); gap:16px; } }
.testimonial-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--justify-gray-mid);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: var(--justify-gold); font-size: 0.85rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.875rem;
  color: var(--justify-text-mid);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px;
  height: 36px;
  background: var(--justify-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.82rem; color: var(--justify-text-dark); }
.author-meta {
  font-size: 0.72rem;
  color: var(--justify-green-bright);
  font-weight: 600;
}

/* =====================================================
   BLOG / KNOWLEDGE HUB
   ===================================================== */
.blog-section { background: white; }

/* Two-column layout used by the Legal Knowledge Hub (index.php) and
   Search Results (search.php): main content + 300px sidebar, collapsing
   to a single column on tablets/phones. */
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .hub-layout { grid-template-columns: 1fr; gap: 32px; }
}

.sidebar-cta {
  background: var(--justify-green-deep);
  color: white;
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.sidebar-cta h4 {
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 4px 0 8px;
}
.sidebar-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.blog-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--justify-gray-mid);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--justify-green-light);
}
.blog-thumbnail img { width:100%; height:100%; object-fit:cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-thumbnail img { transform: scale(1.05); }
.blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--justify-green-deep);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.blog-body { padding: 20px; flex: 1; }
.blog-meta { font-size: 0.75rem; color: var(--justify-text-light); font-weight: 600; margin-bottom: 8px; }
.blog-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--justify-text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--justify-green-deep); }
.blog-excerpt { font-size: 0.82rem; color: var(--justify-text-light); line-height: 1.6; }
.blog-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--justify-gray-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--justify-green-deep);
}
.read-more:hover { color: var(--justify-green-bright); }

/* =====================================================
   LEGAL DRAFT SECTION (NEW!)
   ===================================================== */
.legal-draft-section {
  background: linear-gradient(135deg, #0d1b0d 0%, var(--justify-green-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.legal-draft-section::before {
  content: '📄';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  opacity: 0.05;
}
.legal-draft-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.legal-draft-content { color: white; }
.legal-draft-content .section-eyebrow {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.3);
  color: var(--justify-gold);
}
.legal-draft-content .section-title { color: white; }
.legal-draft-content p { color: rgba(255,255,255,0.75); }
.legal-draft-features { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.draft-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
}
.draft-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(212,175,55,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.legal-draft-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.draft-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.draft-type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--border-radius);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.draft-type-item:hover {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.3);
  color: var(--justify-gold);
}

/* =====================================================
   EMERGENCY SECTION
   ===================================================== */
.emergency-section {
  background: linear-gradient(135deg, #8B0000, #C0392B);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.emergency-section::before {
  content: '🚨';
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.1;
  pointer-events: none;
}
.emergency-section::after {
  content: '🚨';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.1;
  pointer-events: none;
}
.emergency-inner { position: relative; z-index: 1; }
.emergency-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.emergency-title {
  color: white;
  font-size: clamp(1.8rem,4vw,2.8rem);
  margin-bottom: 12px;
}
.emergency-title span { color: var(--justify-gold); }
.emergency-subtitle { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 28px; }
.emergency-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   REGISTRATION SECTION
   ===================================================== */
.registration-section { background: var(--justify-gray-bg); }
.registration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.reg-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--justify-gray-mid);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.reg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.reg-card.client::before { background: linear-gradient(90deg, var(--justify-green-bright), var(--justify-green-deep)); }
.reg-card.advocate::before { background: linear-gradient(90deg, var(--justify-gold), var(--justify-gold-dark)); }
.reg-card.student::before { background: linear-gradient(90deg, var(--justify-gold), var(--justify-green-deep)); }
.reg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.reg-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}
.reg-card h3 {
  font-size: 1.5rem;
  color: var(--justify-text-dark);
  margin-bottom: 12px;
}
.reg-card p { color: var(--justify-text-mid); margin-bottom: var(--space-md); }
.reg-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.reg-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--justify-text-mid);
}
.reg-features li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: var(--justify-green-light);
  color: var(--justify-green-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
#justify-footer {
  background: #0a150a;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--justify-gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--justify-gold); padding-left: 4px; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 14px 0;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--justify-gold); }
.footer-urdu-tagline {
  font-family: var(--font-urdu);
  font-size: 1.1rem;
  color: var(--justify-gold);
  direction: rtl;
  margin-top: 12px;
  opacity: 0.8;
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-copyright strong { color: var(--justify-gold); }
.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  max-width: 550px;
  line-height: 1.6;
}
.footer-disclaimer strong { color: rgba(255,255,255,0.5); }

/* Legal disclaimer bar */
.legal-disclaimer-bar {
  background: rgba(0,0,0,0.4);
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.legal-disclaimer-bar p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin: 0;
}

/* =====================================================
   FLOATING BUTTONS
   ===================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: var(--z-float);
  transition: all var(--transition-base);
  animation: float-bob 3s ease-in-out infinite;
}
.floating-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}

.floating-call {
  position: fixed;
  bottom: 32px;
  right: 24px;
  background: linear-gradient(135deg, var(--justify-green-bright), var(--justify-green-deep));
  color: white;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  box-shadow: var(--shadow-green), 0 2px 8px rgba(0,0,0,0.2);
  z-index: var(--z-float);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition-base);
}
.floating-call:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 32px rgba(0,102,0,0.5);
}
.floating-call-icon { font-size: 1.2rem; }

@keyframes float-bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
#back-to-top {
  position: fixed;
  bottom: 190px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: white;
  color: var(--justify-green-deep);
  border: 2px solid var(--justify-green-light);
  border-radius: 50%;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: var(--z-float);
  transition: all var(--transition-base);
  cursor: pointer;
}
#back-to-top.show { display: flex; }
#back-to-top:hover {
  background: var(--justify-green-deep);
  color: white;
  transform: translateY(-2px);
}

/* =====================================================
   PROCESS / HOW IT WORKS SECTION
   ===================================================== */
.process-section { background: var(--justify-green-light); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--justify-green-bright), var(--justify-gold));
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--justify-green-bright), var(--justify-green-deep));
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-green);
  border: 4px solid white;
  transition: all var(--transition-base);
}
.process-step:hover .step-number { transform: scale(1.1); }
.step-icon { font-size: 1.8rem; margin-bottom: 8px; }
.step-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--justify-green-deep);
  margin-bottom: 6px;
}
.step-desc { font-size: 0.82rem; color: var(--justify-text-mid); line-height: 1.6; }

/* =====================================================
   FORMS — BASE SYSTEM
   Shared across Client Registration, Advocate Registration,
   Clerk/Munshi Hiring, NTN Calculator, Contact, Consultation.
   ===================================================== */
.form-container {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--justify-green-deep);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--justify-text-dark);
  margin-bottom: 10px;
}
.form-subtitle {
  color: var(--justify-text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.form-section-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--justify-green-deep);
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--justify-green-light);
}
.form-section-heading:first-of-type { margin-top: 0; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--justify-text-dark);
  margin-bottom: 7px;
}
.form-group .required { color: var(--justify-red); font-weight: 800; }
.form-group .optional { color: var(--justify-text-light); font-weight: 400; font-size: 0.78rem; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--justify-text-dark);
  background: white;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: 8px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control::placeholder { color: var(--justify-gray-dark); }
.form-control:focus {
  outline: none;
  border-color: var(--justify-green-bright);
  box-shadow: 0 0 0 3px rgba(0,166,81,0.12);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.6; }

.form-radio-group, .form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.form-radio, .form-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--justify-text-mid);
  cursor: pointer;
  font-weight: 600;
}
.form-radio input, .form-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--justify-green-bright);
  cursor: pointer;
  flex-shrink: 0;
}

/* Trust / verification callouts */
.trust-notice, .verification-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--justify-green-light);
  border: 1px solid rgba(0,102,0,0.15);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--justify-green-deep);
  line-height: 1.6;
}
.verification-notice {
  background: var(--justify-gold-light);
  border-color: rgba(212,175,55,0.35);
  color: #5a4500;
  margin-bottom: 24px;
}
.verification-notice strong { color: inherit; }

/* Step indicator (multi-step forms) */
.form-step-indicator {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form-step {
  flex: 1 1 0;
  min-width: 140px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--justify-gray-bg);
  color: var(--justify-text-light);
  border: 1.5px solid var(--justify-gray-mid);
  transition: all var(--transition-base);
}
.form-step.active {
  background: var(--justify-green-deep);
  border-color: var(--justify-green-deep);
  color: white;
}
.form-step.done {
  background: var(--justify-green-light);
  border-color: var(--justify-green-bright);
  color: var(--justify-green-deep);
}

/* File upload dropzone */
.upload-zone {
  border: 2px dashed var(--justify-gray-mid);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--justify-gray-bg);
  transition: all var(--transition-fast);
}
.upload-zone:hover {
  border-color: var(--justify-green-bright);
  background: var(--justify-green-light);
}
.upload-zone .upload-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.upload-zone .upload-text { font-weight: 700; color: var(--justify-text-dark); margin: 0 0 4px; font-size: 0.9rem; }
.upload-zone .upload-hint { font-size: 0.76rem; color: var(--justify-text-light); margin: 0; }
.upload-zone.has-file { border-color: var(--justify-green-bright); border-style: solid; background: var(--justify-green-light); }

.justify-form-success {
  text-align: center;
  padding: 40px 24px;
}

/* =====================================================
   ROLE TOGGLE — Register Hub (Client / Advocate / Clerk)
   POSITION TOGGLE — Hiring form (Advocate / Clerk)
   ===================================================== */
.role-toggle, .position-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 32px;
}
.position-toggle { grid-template-columns: 1fr 1fr; }

.role-toggle-card, .position-toggle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--justify-gray-mid);
  border-radius: var(--border-radius-lg);
  padding: 24px 18px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.role-toggle-card input, .position-toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-toggle-card:hover, .position-toggle-card:hover {
  border-color: var(--justify-green-bright);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.role-toggle-card.active, .position-toggle-card.active {
  border-color: var(--justify-green-deep);
  background: var(--justify-green-light);
  box-shadow: var(--shadow-md);
}
.role-toggle-icon, .position-toggle-icon { font-size: 30px; }
.role-toggle-title, .position-toggle-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--justify-text-dark);
}
.role-toggle-desc, .position-toggle-desc {
  font-size: 0.78rem;
  color: var(--justify-text-light);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .form-container { padding: 24px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .role-toggle, .position-toggle { grid-template-columns: 1fr; }
  .form-step-indicator { flex-direction: column; }
}

/* =====================================================
   SIDEBAR & WIDGETS
   ===================================================== */
.sidebar-widget {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--justify-gray-mid);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--justify-green-deep);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--justify-green-light);
}

/* =====================================================
   404 PAGE
   ===================================================== */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 .error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  color: var(--justify-green-light);
  line-height: 1;
  margin-bottom: 16px;
}

/* =====================================================
   RESPONSIVE — TABLET (max 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  :root { --section-py: 60px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-section { min-height: auto; padding: 60px 0; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { max-width: 500px; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }

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

  .team-grid { grid-template-columns: repeat(2,1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }

  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }

  .legal-draft-inner { grid-template-columns: 1fr; gap: 40px; }

  .nav-dropdown { grid-template-columns: 1fr; }
}

/* =====================================================
   RESPONSIVE — MOBILE (max 768px)
   ===================================================== */
@media (max-width: 768px) {
  :root { --section-py: 48px; --gutter: 16px; }

  .justify-nav-wrap { display: none; }
  .hamburger { display: flex; }

  #justify-topbar { display: none; }

  .hero-stats { gap: 16px; }
  .hero-stat .number { font-size: 1.5rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .practice-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }

  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .stat-number { font-size: 2.2rem; }

  .team-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }

  .testimonials-slider { grid-template-columns: 1fr; }

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

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

  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { flex-direction: column; width: 100%; }
  .cta-band-actions .btn { width: 100%; }

  .emergency-actions { flex-direction: column; align-items: center; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }

  .footer-bottom { flex-direction: column; gap: 12px; }

  .floating-call .call-text { display: none; }
  .floating-call { padding: 12px; border-radius: 50%; }

  .process-steps { grid-template-columns: 1fr; }

  .values-list { grid-template-columns: 1fr; }

  .draft-types { grid-template-columns: 1fr; }

  .trust-bar-inner { gap: 8px; }
  .trust-divider { display: none; }
  .trust-item { font-size: 0.78rem; padding: 4px 8px; }

  .hero-eyebrow { font-size: 0.7rem; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ===================================================== */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { justify-content: center; }
}

/* =====================================================
   RTL SUPPORT
   ===================================================== */
[dir="rtl"] .justify-nav { flex-direction: row-reverse; }
[dir="rtl"] .values-list li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .hero-title-urdu { direction: rtl; }

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  #justify-topbar, #justify-header, #justify-footer,
  .floating-whatsapp, .floating-call, #back-to-top,
  .mobile-nav { display: none !important; }
  body { font-size: 12pt; }
  a { color: black; }
  .hero-section { min-height: auto; background: none; color: black; padding: 20pt 0; }
}

/* =====================================================
   ANIMATIONS / UTILITIES
   ===================================================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

.stagger-children > * { opacity: 0; transform: translateY(16px); }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.10s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.20s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.30s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(n+9) { transition-delay: 0.45s; }

/* =====================================================
   SINGLE ARTICLE TEMPLATE (single.php)
   ===================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
}

.article-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) { .article-card { padding: 20px; } }

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--justify-text-light);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--justify-gray-mid);
}
.article-meta-category {
  background: var(--justify-green-light);
  color: var(--justify-green-deep);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
}

.article-thumb { border-radius: 8px; overflow: hidden; margin-bottom: 28px; }

.article-toc {
  background: var(--justify-green-light);
  border: 1px solid rgba(0,102,0,0.15);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.article-toc-title { font-size: 1rem; font-family: var(--font-display); color: var(--justify-green-deep); margin: 0 0 10px; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin-bottom: 6px; font-size: 0.9rem; }
.article-toc li.toc-h3 { list-style: none; margin-left: 16px; font-size: 0.85rem; }
.article-toc a, .sidebar-toc-sticky a { color: var(--justify-text-mid); text-decoration: none; }
.article-toc a:hover, .sidebar-toc-sticky a:hover { color: var(--justify-green-deep); text-decoration: underline; }

.entry-content { font-size: 16px; line-height: 1.8; color: var(--justify-text-mid); }
.entry-content h2 { font-family: var(--font-display); color: var(--justify-green-deep); margin-top: 2em; scroll-margin-top: 100px; }
.entry-content h3 { font-family: var(--font-display); color: var(--justify-text-dark); margin-top: 1.6em; scroll-margin-top: 100px; }
.entry-content a { color: var(--justify-green-bright); }
.entry-content blockquote { border-left: 4px solid var(--justify-gold); padding: 12px 20px; background: var(--justify-gray-bg); border-radius: 0 8px 8px 0; }

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--justify-gray-mid);
  border-bottom: 1px solid var(--justify-gray-mid);
}
.article-share-label { font-size: 0.85rem; font-weight: 700; color: var(--justify-text-mid); margin-right: 4px; }
.article-share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--justify-gray-bg);
  border: none; cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.article-share-btn:hover { transform: translateY(-2px); background: var(--justify-green-light); }

.article-footer { margin-top: 1.5rem; }
.article-tags { font-size: 13px; color: var(--justify-text-light); }

.article-author-box {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
  padding: 20px;
  background: var(--justify-gray-bg);
  border-radius: 10px;
  border-top: 3px solid var(--justify-gold);
}
.article-author-avatar img { border-radius: 50%; }
.author-avatar-fallback {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--justify-green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.article-author-name { font-weight: 800; color: var(--justify-green-deep); margin-bottom: 6px; }
.article-author-bio { font-size: 0.88rem; color: var(--justify-text-mid); margin: 0 0 12px; line-height: 1.6; }
@media (max-width: 480px) { .article-author-box { flex-direction: column; } }

.related-articles { margin-top: 48px; }
.related-articles-title { font-family: var(--font-display); color: var(--justify-green-deep); margin-bottom: 20px; font-size: 1.4rem; }

.article-sidebar { position: relative; }
.sidebar-toc-sticky {
  background: #fff;
  border: 1px solid var(--justify-gray-mid);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  position: sticky;
  top: 100px;
  max-height: 70vh;
  overflow-y: auto;
}
.sidebar-toc-sticky ol { margin: 0; padding-left: 18px; }
.sidebar-toc-sticky li { margin-bottom: 8px; font-size: 0.85rem; }
.sidebar-toc-sticky li.toc-h3 { list-style: none; margin-left: 14px; font-size: 0.8rem; }
@media (max-width: 1024px) { .sidebar-toc-sticky { position: static; max-height: none; } }

.sidebar-mini-cta {
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-dark));
  color: #fff;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}
.sidebar-mini-cta h4 { font-family: var(--font-display); margin: 0 0 8px; color: #fff; }
.sidebar-mini-cta p { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 0 0 14px; }

/* =====================================================
   TAX CALCULATOR WIDGET (template-ntn-tax.php)
   ===================================================== */
.tax-calc-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tax-calc-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--justify-green-light);
}
.tax-calc-tab {
  flex: 1;
  min-width: 140px;
  padding: 16px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--justify-text-mid);
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 3px solid transparent;
}
.tax-calc-tab.active {
  background: #fff;
  color: var(--justify-green-deep);
  border-bottom-color: var(--justify-gold);
}
.tax-calc-body { padding: 28px; }
@media (max-width: 480px) { .tax-calc-body { padding: 18px; } }

.tax-calc-row { margin-bottom: 18px; }
.tax-calc-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--justify-text-dark);
  margin-bottom: 8px;
}
.tax-calc-segmented {
  display: inline-flex;
  background: var(--justify-gray-bg);
  border-radius: 8px;
  padding: 3px;
  flex-wrap: wrap;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--justify-text-mid);
  transition: all 0.2s ease;
}
.seg-btn.active { background: var(--justify-green-deep); color: #fff; }

.tax-calc-input-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tax-calc-input-group input[type="number"] {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: 8px;
  font-size: 1rem;
}
.tax-calc-input-group input[type="number"]:focus { border-color: var(--justify-green-bright); outline: none; }

.tax-calc-results {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px dashed var(--justify-gray-mid);
}
.tax-calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 480px) { .tax-calc-results-grid { grid-template-columns: 1fr 1fr; } }
.tax-calc-stat {
  background: var(--justify-gray-bg);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.tax-calc-stat.highlight { background: var(--justify-green-light); }
.tax-calc-stat-label { display: block; font-size: 0.75rem; color: var(--justify-text-light); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.tax-calc-stat-value { display: block; font-size: 1.3rem; font-weight: 900; color: var(--justify-green-deep); }
@media (max-width: 480px) { .tax-calc-stat-value { font-size: 1.05rem; } }

.tax-calc-surcharge-note {
  background: #fef3e2;
  border: 1px solid var(--justify-gold);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #8a6315;
  margin-bottom: 16px;
}

.tax-calc-breakdown-title { font-size: 0.95rem; color: var(--justify-green-deep); margin-bottom: 10px; }
.tax-calc-breakdown-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-bottom: 20px; }
.tax-calc-breakdown-table thead td { background: var(--justify-green-light); color: var(--justify-green-deep); border-bottom: 2px solid var(--justify-green-bright); }
.tax-calc-breakdown-table td { padding: 8px 10px; border-bottom: 1px solid var(--justify-gray-mid); color: var(--justify-text-mid); }
.tax-calc-breakdown-table tr:last-child td { font-weight: 700; color: var(--justify-text-dark); }

/* ── Extended for Tools Hub batch (v1.5.0): select/text/date inputs,
   multi-tool anchor nav, and result banners not covered by the original
   NTN tax calculator CSS above. Reuses the same .tax-calc-* system so
   every calculator/converter on the site looks consistent. ────────── */
.tax-calc-input-group select,
.tax-calc-input-group input[type="text"],
.tax-calc-input-group input[type="date"] {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--justify-text-dark);
}
.tax-calc-input-group select:focus,
.tax-calc-input-group input[type="text"]:focus,
.tax-calc-input-group input[type="date"]:focus { border-color: var(--justify-green-bright); outline: none; }

.tools-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 40px;
}
.tools-page-nav a {
  background: var(--justify-white);
  border: 1.5px solid var(--justify-gray-mid);
  color: var(--justify-text-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tools-page-nav a:hover { border-color: var(--justify-green-bright); color: var(--justify-green-deep); }

.tool-card-wrap { max-width: 720px; margin: 0 auto 48px; scroll-margin-top: 100px; }
.tool-card-wrap:last-child { margin-bottom: 0; }
.tool-card-heading { text-align: center; margin-bottom: 18px; }
.tool-card-heading h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--justify-text-dark); margin-bottom: 6px; }
.tool-card-heading p { font-size: 0.88rem; color: var(--justify-text-mid); margin: 0; }

.tax-calc-note {
  background: var(--justify-gray-bg);
  border-left: 3px solid var(--justify-green-bright);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--justify-text-mid);
  margin-top: 16px;
}
.tax-calc-result-banner {
  background: var(--justify-green-light);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin-top: 18px;
}
.tax-calc-result-banner .big { display: block; font-size: 1.6rem; font-weight: 900; color: var(--justify-green-deep); }
.tax-calc-result-banner .small { display: block; font-size: 0.78rem; color: var(--justify-text-mid); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }


.tax-calc-cta {
  background: var(--justify-green-deep);
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.tax-calc-cta p { color: rgba(255,255,255,0.9); margin: 0 0 14px; font-size: 0.9rem; }
.tax-calc-cta .btn { margin: 4px; }

.tax-calc-disclaimer {
  font-size: 0.74rem;
  color: var(--justify-text-light);
  margin-top: 20px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--justify-gray-mid);
}

/* =====================================================
   LEGAL LIBRARY — SEARCH PAGE & SINGLE LAW VIEW
   ===================================================== */
.law-search-bar {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.law-search-bar input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: 100px;
  font-size: 1rem;
}
.law-search-bar input[type="text"]:focus { border-color: var(--justify-green-bright); outline: none; }
.law-search-bar .btn { border-radius: 100px; }

.law-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 28px;
}
.law-filter-chip {
  border: 1.5px solid var(--justify-gray-mid);
  background: #fff;
  color: var(--justify-text-mid);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.law-filter-chip.active, .law-filter-chip:hover { background: var(--justify-green-deep); color: #fff; border-color: var(--justify-green-deep); }

.law-search-state { text-align: center; color: var(--justify-text-light); padding: 30px 0; }

.law-search-results {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.law-result-card {
  display: block;
  background: #fff;
  border: 1px solid var(--justify-gray-mid);
  border-radius: 10px;
  padding: 18px 22px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.law-result-card:hover { box-shadow: var(--shadow-md); border-color: var(--justify-green-bright); }
.law-result-law { font-size: 0.78rem; font-weight: 700; color: var(--justify-green-deep); text-transform: uppercase; letter-spacing: 0.04em; }
.law-result-section { font-family: var(--font-display); font-size: 1.05rem; color: var(--justify-text-dark); margin: 4px 0 8px; }
.law-result-snippet { font-size: 0.9rem; color: var(--justify-text-mid); margin: 0; line-height: 1.6; }
.law-result-snippet mark { background: var(--justify-gold); color: var(--justify-text-dark); padding: 0 2px; border-radius: 3px; }

.law-disclaimer-banner {
  background: #fef3e2;
  border: 1px solid var(--justify-gold);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #8a6315;
  margin-bottom: 28px;
}
.law-disclaimer-banner a { color: var(--justify-green-deep); font-weight: 700; }

.law-section { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--justify-gray-mid); scroll-margin-top: 100px; }
.law-section:last-child { border-bottom: none; }
.law-section-heading { font-family: var(--font-display); color: var(--justify-green-deep); font-size: 1.25rem; margin-bottom: 12px; }
.law-section-number {
  display: inline-block;
  background: var(--justify-green-light);
  color: var(--justify-green-deep);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 10px;
  vertical-align: middle;
}
.law-section-text { font-size: 0.96rem; line-height: 1.8; color: var(--justify-text-mid); }

/* Admin law editor tabs (inc/law-library.php) */
.law-tab.active { background: var(--justify-green-deep, #006600); color: #fff; border-color: var(--justify-green-deep, #006600); }


/* Registration responsiveness fix */
@media (max-width:768px){.form-grid-2{grid-template-columns:1fr!important;} .form-control{width:100%;max-width:100%;box-sizing:border-box;} }

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD — APP SHELL LAYOUT
   Hides the public site chrome and renders a standalone portal UI.
   Triggered by body.dashboard-body (added via body_class filter).
════════════════════════════════════════════════════════════════════ */

/* Hide all public-site chrome */
body.dashboard-body #justify-topbar,
body.dashboard-body #justify-header,
body.dashboard-body .justify-hero,
body.dashboard-body .justify-inner-hero,
body.dashboard-body .floating-whatsapp,
body.dashboard-body .floating-call,
body.dashboard-body footer,
body.dashboard-body .justify-footer-bottom {
  display: none !important;
}

body.dashboard-body {
  background: #F0F2F5;
  overflow-x: hidden;
}

/* ── App Shell ───────────────────────────────────────────── */
.dash-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.dash-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--justify-green-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0,0,0,0.18);
}

.dash-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.dash-logo-icon {
  width: 40px; height: 40px;
  background: var(--justify-gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.dash-logo-text { color: #fff; }
.dash-logo-text strong { display: block; font-size: 16px; font-weight: 700; line-height: 1; }
.dash-logo-text span   { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 1px; }

/* User Card */
.dash-user-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dash-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--justify-gold);
  color: var(--justify-green-deep);
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}
.dash-user-info { overflow: hidden; }
.dash-user-name  { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-role  { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Sidebar Nav */
.dash-nav { padding: 12px 0; flex: 1; }
.dash-nav-section {
  padding: 8px 20px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
  box-sizing: border-box;
}
.dash-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}
.dash-nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: var(--justify-gold);
  font-weight: 600;
}
.dash-nav-item .nav-icon {
  width: 20px; text-align: center; font-size: 15px; flex-shrink: 0;
}
.dash-nav-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 8px 16px;
}
.dash-nav-item.danger { color: rgba(255,100,100,0.8); }
.dash-nav-item.danger:hover { background: rgba(255,0,0,0.08); color: #ff6b6b; }

/* ── Main Content ─────────────────────────────────────────── */
.dash-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.dash-topbar {
  background: #fff;
  border-bottom: 1px solid var(--justify-gray-mid);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.dash-topbar-title { font-size: 18px; font-weight: 700; color: var(--justify-text-dark); }
.dash-topbar-right { display: flex; align-items: center; gap: 16px; }
.dash-topbar-home {
  font-size: 13px; color: var(--justify-text-light);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
}
.dash-topbar-home:hover { color: var(--justify-green-deep); text-decoration: none; }

/* Content area */
.dash-content {
  padding: 28px 32px;
  flex: 1;
}

/* Panels */
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* ── Cards ───────────────────────────────────────────────── */
.dash-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--justify-gray-mid);
  margin-bottom: 20px;
  overflow: hidden;
}
.dash-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--justify-gray-mid);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--justify-text-dark);
  margin: 0;
}
.dash-card-header .card-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--justify-green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.dash-card-body { padding: 24px; }

/* ── Stats Row ───────────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.dash-stat {
  background: #fff;
  border: 1px solid var(--justify-gray-mid);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-stat-icon { font-size: 24px; margin-bottom: 6px; }
.dash-stat-label { font-size: 12px; color: var(--justify-text-light); text-transform: uppercase; letter-spacing: .5px; }
.dash-stat-value { font-size: 22px; font-weight: 800; color: var(--justify-text-dark); }

/* ── Quick Actions ───────────────────────────────────────── */
.dash-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border: 2px solid transparent;
}
.dash-action-btn.primary {
  background: var(--justify-green-deep);
  color: #fff;
}
.dash-action-btn.primary:hover {
  background: var(--justify-green-bright);
  color: #fff;
  text-decoration: none;
}
.dash-action-btn.outline {
  border-color: var(--justify-green-deep);
  color: var(--justify-green-deep);
  background: transparent;
}
.dash-action-btn.outline:hover {
  background: var(--justify-green-light);
  text-decoration: none;
}
.dash-action-btn.gold {
  background: var(--justify-gold);
  color: var(--justify-text-dark);
}
.dash-action-btn.gold:hover {
  background: var(--justify-gold-dark);
  color: var(--justify-text-dark);
  text-decoration: none;
}

/* ── Notice banners ──────────────────────────────────────── */
.dash-notice {
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dash-notice.warning { background: #fff8e6; border: 1px solid var(--justify-gold); }
.dash-notice.info    { background: #e8f4fd; border: 1px solid #3498db; }
.dash-notice.success { background: var(--justify-green-light); border: 1px solid var(--justify-green-bright); }
.dash-notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── Info table ──────────────────────────────────────────── */
.dash-info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-info-table tr { border-bottom: 1px solid var(--justify-gray-mid); }
.dash-info-table tr:last-child { border-bottom: none; }
.dash-info-table th { width: 150px; padding: 10px 0; font-weight: 700; color: var(--justify-text-dark); text-align: left; vertical-align: top; }
.dash-info-table td { padding: 10px 0; color: var(--justify-text-mid); }
/* Column-header variant (used by data tables such as Wallet history, as
   opposed to the label/value rows above) — overrides the fixed 150px width
   and adds a header rule so multi-column tables read correctly. */
.dash-info-table thead th {
  width: auto;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--justify-text-mid);
  border-bottom: 2px solid var(--justify-gray-mid);
}
.dash-info-table thead ~ tbody td { padding: 10px; }
.dash-info-table thead ~ tbody tr:last-child { border-bottom: 1px solid var(--justify-gray-mid); }

/* ── Form result / inline alert messages ────────────────────
   Used by the AJAX forms across the dashboard (profile, password,
   wallet withdrawal, etc.) — previously referenced in the markup but
   never defined in CSS. */
.form-result { padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.form-result.alert-success { background: var(--justify-green-light); border: 1px solid var(--justify-green-bright); color: var(--justify-green-deep); }
.form-result.alert-error   { background: #fdecea; border: 1px solid #dc2626; color: #b91c1c; }
.form-hint { margin-top: 6px; font-size: 12px; color: var(--justify-text-light); }

/* ── Wallet & Earnings ───────────────────────────────────── */
.wallet-progress-track {
  width: 100%;
  height: 14px;
  background: var(--justify-gray-bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--justify-gray-mid);
}
.wallet-progress-fill {
  height: 100%;
  min-width: 4%;
  background: linear-gradient(90deg, var(--justify-gold), var(--justify-green-bright));
  border-radius: 999px;
  transition: width .4s ease;
}
.wallet-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--justify-text-mid);
  margin-top: 6px;
}
.wallet-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.wallet-badge-warning { background: #fff8e6; color: #b45309; }
.wallet-badge-info    { background: #e8f4fd; color: #2563eb; }
.wallet-badge-success { background: var(--justify-green-light); color: #047857; }
.wallet-badge-error    { background: #fdecea; color: #dc2626; }

/* ── Mobile hamburger ────────────────────────────────────── */
.dash-mobile-toggle {
  display: none;
  background: var(--justify-green-deep);
  color: #fff;
  border: none;
  font-size: 20px;
  padding: 12px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.dash-sidebar.open { transform: translateX(0) !important; }

@media (max-width: 900px) {
  .dash-mobile-toggle { display: block; }
  .dash-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 260px;
  }
  .dash-main { margin-left: 0; }
  .dash-content { padding: 20px 16px; }
  .dash-topbar { padding: 0 16px; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .dash-stats { grid-template-columns: 1fr; }
  .dash-topbar-title { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════
   LEGAL JOBS BOARD (v1.7.0)
════════════════════════════════════════════════════════ */
.jobs-filter-bar {
  background: white;
  border: 1px solid var(--justify-gray-mid);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.jobs-filter-bar select,
.jobs-filter-bar input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--justify-gray-mid);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-family: inherit;
}
.jobs-filter-bar button { grid-column: span 1; }
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.job-card {
  background: white;
  border: 1px solid var(--justify-gray-mid);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-base);
  position: relative;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.job-card.job-featured { border: 2px solid var(--justify-gold); }
.job-card-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--justify-gold); color: var(--justify-green-deep);
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}
.job-card-org { font-size: 0.8rem; font-weight: 700; color: var(--justify-green-deep); text-transform: uppercase; letter-spacing: 0.03em; }
.job-card-title { font-size: 1.15rem; font-weight: 800; color: var(--justify-text-dark, #1d2327); line-height: 1.3; }
.job-card-title a { color: inherit; text-decoration: none; }
.job-card-title a:hover { color: var(--justify-green-deep); }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: var(--justify-text-light); }
.job-card-meta span { display: inline-flex; align-items: center; gap: 4px; background: var(--justify-green-light); color: var(--justify-green-deep); padding: 4px 10px; border-radius: 100px; font-weight: 600; }
.job-card-excerpt { font-size: 0.85rem; color: var(--justify-text-mid); line-height: 1.6; flex-grow: 1; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.job-card-deadline { font-size: 0.75rem; color: var(--justify-text-light); }
.job-card-deadline.job-urgent { color: #c0392b; font-weight: 700; }
.job-empty-state { text-align: center; padding: 60px 20px; }
.job-empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
@media (max-width: 900px) {
  .jobs-filter-bar { grid-template-columns: 1fr 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .jobs-filter-bar { grid-template-columns: 1fr; }
}

/* =====================================================
   NTN PAGE — 2026 FBR FILING REQUIREMENTS POPUP
   Bilingual (English / Urdu Nastaliq) attractive popup
   ===================================================== */
.ntn-req-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ntn-req-popup-overlay.is-open { display: flex; }

.ntn-req-popup-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--justify-white);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0,0,0,.35);
  border-top: 6px solid var(--justify-gold);
  animation: ntnReqPopIn .35s ease;
}
@keyframes ntnReqPopIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ntn-req-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,.06);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--justify-text-mid);
  z-index: 2;
}
.ntn-req-popup-close:hover { background: rgba(0,0,0,.12); color: var(--justify-text-dark); }

.ntn-req-popup-head {
  text-align: center;
  padding: 30px 32px 18px;
  background: linear-gradient(160deg, var(--justify-green-light) 0%, var(--justify-white) 70%);
  flex-shrink: 0;
}
.ntn-req-popup-icon { font-size: 38px; margin-bottom: 8px; }
.ntn-req-popup-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: var(--justify-green-deep);
}
.ntn-req-popup-sub {
  font-size: 14px;
  color: var(--justify-text-mid);
  line-height: 1.6;
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
}

.ntn-req-popup-scroll {
  overflow-y: auto;
  padding: 6px 32px;
  flex: 1;
}
.ntn-req-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--justify-gray-mid);
}
.ntn-req-item:last-child { border-bottom: none; }
.ntn-req-icon {
  flex-shrink: 0;
  width: 32px;
  font-size: 21px;
  text-align: center;
  line-height: 1.4;
}
.ntn-req-text {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.ntn-req-en {
  flex: 1 1 220px;
  font-size: 13.5px;
  color: var(--justify-text-mid);
  line-height: 1.55;
}
.ntn-req-en strong { color: var(--justify-text-dark); }
.ntn-req-ur {
  flex: 1 1 220px;
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  font-size: 16px;
  color: var(--justify-text-mid);
  line-height: 2;
}

.ntn-req-popup-foot {
  flex-shrink: 0;
  text-align: center;
  padding: 20px 32px 26px;
  border-top: 1px solid var(--justify-gray-mid);
  background: var(--justify-gray-bg);
}
.ntn-req-popup-note {
  font-size: 12.5px;
  color: var(--justify-red);
  font-weight: 600;
  margin: 0 0 14px;
}
.ntn-req-popup-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}
.ntn-req-popup-dismiss {
  background: none;
  border: none;
  color: var(--justify-text-light);
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 2px;
}

@media (max-width: 560px) {
  .ntn-req-popup-card { max-height: 92vh; border-radius: 14px; }
  .ntn-req-popup-head { padding: 24px 20px 14px; }
  .ntn-req-popup-scroll { padding: 6px 20px; }
  .ntn-req-popup-foot { padding: 16px 20px 22px; }
  .ntn-req-en, .ntn-req-ur { flex: 1 1 100%; }
  .ntn-req-ur { font-size: 15px; }
}

/* =====================================================
   TOOLS HUB — FEATURED TOOLS STRIP
   Visibly larger, more prominent cards for the flagship
   tools, distinct from the compact grid of every tool.
   ===================================================== */
.tools-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.tools-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--justify-white);
  border: 1px solid var(--justify-gray-border, #e8e8e8);
  border-radius: var(--border-radius-xl);
  padding: 32px 28px 28px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tools-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--justify-gold);
}
.tools-featured-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--justify-gold-light);
  color: var(--justify-gold-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.tools-featured-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  line-height: 1;
}
.tools-featured-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--justify-text-dark);
  margin: 0 0 10px;
  padding-right: 8px;
}
.tools-featured-pitch {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--justify-text-mid);
  margin: 0 0 20px;
  flex-grow: 1;
}
.tools-featured-btn {
  pointer-events: none;
  font-size: 0.88rem;
  padding: 10px 20px;
}

@media (max-width: 560px) {
  .tools-featured-card { padding: 26px 22px 22px; }
  .tools-featured-icon { font-size: 2.2rem; }
  .tools-featured-title { font-size: 1.08rem; }
}

/* ═══════════════════════════════════════════════════════════
   PLATFORM AUDIT ADDITIONS (v1.9.0, Aug 2026)
   Verification badges, featured-advocate ribbon, Turnstile
   widget spacing, pricing cards, and the utility-tool banner.
   See inc/trust-pages.php, inc/spam-protection.php,
   page-templates/template-pricing.php.
═══════════════════════════════════════════════════════════ */

/* Verification badge — advocate/student profiles & directory cards */
.jverify-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 166, 81, 0.12);
  color: #00612e;
  border: 1px solid rgba(0, 166, 81, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
}
.jverify-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #00A651;
  color: #fff;
  font-size: 10px;
  flex-shrink: 0;
}
.jverify-badge-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  background: #1A1A1A;
  color: #fff;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 40;
  text-align: left;
  pointer-events: none;
}
.jverify-badge:hover .jverify-badge-tip,
.jverify-badge:focus .jverify-badge-tip,
.jverify-badge:focus-within .jverify-badge-tip {
  opacity: 1;
  visibility: visible;
}

/* Featured advocate ribbon */
.jfeatured-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--justify-gold, #D4AF37);
  color: #1A1A1A;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Cloudflare Turnstile widget — keep it from crowding the submit button */
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

/* Utility-tool branding-separation banner (item 12) */
.jutility-banner a:hover { text-decoration: underline; }

/* .dash-card / .dash-action-btn / .dash-notice — the dashboard shell
   (page-templates/template-dashboard.php) originally defined these in its
   own page-level <style> block, so they only worked on that one template.
   page-templates/template-pricing.php reuses the same component classes
   for consistency, so the definitions are duplicated here globally —
   identical to the dashboard's copy, so nothing on the dashboard changes. */
.dash-card {
  background: #fff; border-radius: 10px;
  border: 1px solid #E0E0E0; margin-bottom: 20px; overflow: hidden;
}
.dash-card-header {
  padding: 16px 24px; border-bottom: 1px solid #E0E0E0;
  display: flex; align-items: center; gap: 10px;
}
.dash-card-header h3 { font-size: 15px; font-weight: 700; color: #1A1A1A; margin: 0; }
.dash-card-header .card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #e6f4eb; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.dash-card-body { padding: 24px; }
.dash-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 7px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.15s; border: 2px solid transparent; cursor: pointer;
}
.dash-action-btn.primary   { background: #006600; color: #fff; border-color: #006600; }
.dash-action-btn.primary:hover { background: #00A651; border-color: #00A651; color: #fff; text-decoration: none; }
.dash-action-btn.outline   { border-color: #006600; color: #006600; background: transparent; }
.dash-action-btn.outline:hover { background: #e6f4eb; text-decoration: none; }
.dash-action-btn.gold      { background: #D4AF37; color: #1A1A1A; border-color: #D4AF37; }
.dash-action-btn.gold:hover { background: #b8962e; color: #1A1A1A; text-decoration: none; }
.dash-notice {
  border-radius: 8px; padding: 14px 20px; margin-bottom: 20px; font-size: 14px;
  display: flex; gap: 12px; align-items: flex-start;
}
.dash-notice.warning { background: #fff8e6; border: 1px solid #D4AF37; }
.dash-notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── LEGAL NEWS (aggregator, v1.9.1) ─────────────────────
   Same visual language as .jobs-grid/.job-card, kept as its own
   block since the two sections are unrelated. */
.news-aggregated-notice {
  background: #f4f6f5; border: 1px solid var(--justify-gray-mid, #e0e0e0);
  border-radius: 8px; padding: 14px 18px; font-size: 13px;
  color: var(--justify-text-mid); line-height: 1.6; margin-bottom: 28px;
}
.news-aggregated-notice a { color: var(--justify-green-deep); font-weight: 600; }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.news-card {
  background: #fff; border: 1px solid var(--justify-gray-mid, #e0e0e0);
  border-radius: var(--border-radius, 10px); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-source {
  font-size: 0.72rem; font-weight: 700; color: var(--justify-green-deep);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.news-card-title { font-size: 1.05rem; font-weight: 800; color: var(--justify-text-dark, #1d2327); line-height: 1.35; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--justify-green-deep); }
.news-card-excerpt { font-size: 0.85rem; color: var(--justify-text-mid); line-height: 1.6; flex-grow: 1; }
.news-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.news-card-date { font-size: 0.75rem; color: var(--justify-text-light); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ── LAW SCHOLARSHIPS (aggregator add-on) ────────────────
   Reuses .news-grid/.news-card (same aggregated-card pattern as Legal
   News) so both sections stay visually consistent; only the small
   degree-level pill below is new. */
.news-card-badge {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; padding: 3px 9px; border-radius: 20px;
  background: var(--justify-gold-light, #fdf4e0); color: var(--justify-gold-dark, #b8962e);
  border: 1px solid var(--justify-gold, #d4af37); width: fit-content;
}

/* =====================================================
   v2.0.0 — Join campaign, fee guide, reviews, law firms, law colleges
   Prefixes: jv2- (campaign/fee), tv2- (reviews), lf- (law firms), lc- (law colleges)
   ===================================================== */
.jv2-section { padding: 64px 0; }
.jv2-alt { background: var(--justify-gray-bg); }
.btn-gold { background: var(--justify-gold); color: #1a1a1a; border: 2px solid var(--justify-gold); }
.btn-gold:hover { background: var(--justify-gold-dark); color: #fff; }
.jv2-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.jv2-badge { display: inline-block; background: var(--justify-gold); color: #1a1a1a; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 30px; margin-bottom: 14px; }

/* Hero */
.jv2-hero { background: linear-gradient(135deg, var(--justify-green-dark) 0%, var(--justify-green-deep) 55%, #0b7a3b 100%); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.jv2-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(212,175,55,.14); }
.jv2-hero h1 { color: #fff; font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; margin: 0 0 14px; }
.jv2-lead { font-size: 18px; color: rgba(255,255,255,.88); max-width: 620px; }
.jv2-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.jv2-hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--border-radius-lg); padding: 22px; backdrop-filter: blur(4px); }
.jv2-hero-stat { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 600; }
.jv2-hero-stat:last-child { border-bottom: 0; }
.jv2-hero-stat b { font-size: 22px; width: 34px; text-align: center; }
.jv2-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.jv2-price-line { margin-top: 16px; color: rgba(255,255,255,.85); }
.jv2-price-line strong { color: var(--justify-gold); }

/* Countdown */
.jv2-countdown { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.jv2-cd-label { font-weight: 700; color: var(--justify-gold); margin-right: 4px; }
.jv2-countdown > div { background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 62px; }
.jv2-countdown b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.jv2-countdown small { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }

/* Plans */
.jv2-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.jv2-plan { background: #fff; border: 1px solid var(--justify-gray-mid); border-radius: var(--border-radius-lg); padding: 26px 22px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.jv2-plan:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.jv2-plan.is-popular { border: 2px solid var(--justify-gold); box-shadow: 0 10px 30px rgba(212,175,55,.22); }
.jv2-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--justify-gold); color: #1a1a1a; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.jv2-plan-icon { font-size: 34px; }
.jv2-plan h3 { margin: 8px 0 6px; }
.jv2-plan-price b { font-size: 30px; color: var(--justify-green-deep); }
.jv2-plan-price small { color: var(--justify-text-light); margin-left: 4px; }
.jv2-was { text-decoration: line-through; color: var(--justify-text-light); font-size: 14px; }
.jv2-perks { list-style: none; padding: 0; margin: 16px 0 20px; flex: 1; }
.jv2-perks li { padding: 6px 0 6px 26px; position: relative; font-size: 14px; color: var(--justify-text-mid); }
.jv2-perks li::before { content: "✔"; position: absolute; left: 0; color: var(--justify-green-bright); font-weight: 800; }
.jv2-plan .btn { width: 100%; justify-content: center; text-align: center; }

/* How-to steps */
.jv2-howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: s; }
.jv2-howto > div { background: #fff; border-radius: var(--border-radius-lg); padding: 22px; border: 1px solid var(--justify-gray-mid); }
.jv2-howto span { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--justify-green-deep); color: #fff; font-weight: 800; align-items: center; justify-content: center; }
.jv2-howto h4 { margin: 12px 0 6px; }
.jv2-howto p { font-size: 14px; color: var(--justify-text-mid); margin: 0; }
.jv2-paybox { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 26px auto 10px; max-width: 900px; }
.jv2-paymethod { background: #fff; border: 2px dashed var(--justify-green-bright); border-radius: 12px; padding: 14px 16px; }
.jv2-paymethod b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--justify-text-light); }
.jv2-paymethod span { font-size: 18px; font-weight: 800; color: var(--justify-green-deep); }
.jv2-wide { grid-column: 1 / -1; }
.jv2-copy { cursor: pointer; border-bottom: 1px dotted currentColor; }

/* Features */
.jv2-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.jv2-features > div { background: #fff; border: 1px solid var(--justify-gray-mid); border-radius: var(--border-radius-lg); padding: 22px; }
.jv2-features b { font-size: 30px; }
.jv2-features h4 { margin: 10px 0 6px; }
.jv2-features p { color: var(--justify-text-mid); font-size: 14px; margin: 0; }

/* FAQ */
.jv2-faq { background: #fff; border: 1px solid var(--justify-gray-mid); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.jv2-faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 26px; }
.jv2-faq summary::-webkit-details-marker { display: none; }
.jv2-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--justify-green-deep); }
.jv2-faq[open] summary::after { content: "–"; }
.jv2-faq p { margin: 0 0 16px; color: var(--justify-text-mid); }

/* Final CTA */
.jv2-final { background: linear-gradient(135deg, #1a1a1a, var(--justify-green-dark)); color: #fff; padding: 64px 0; }
.jv2-final h2 { color: #fff; font-family: var(--font-display); }
.jv2-final p { color: rgba(255,255,255,.8); }

/* Announcement bar */
.jv2-topbar { background: var(--justify-gold); text-align: center; font-weight: 700; font-size: 14px; }
.jv2-topbar a { display: block; padding: 8px 16px; color: #1a1a1a; text-decoration: none; }
.jv2-topbar span { text-decoration: underline; margin-left: 6px; }

/* Fee guide (register page) */
.jv2-feeguide-wrap { padding: 28px 0 0; background: var(--justify-gray-bg); }
.jv2-feeguide { display: grid; grid-template-columns: 220px 1fr; gap: 0; background: #fff; border: 2px solid var(--justify-gold); border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,.06); margin-bottom: 4px; }
.jv2-feeguide.jv2-free { border-color: var(--justify-green-bright); }
.jv2-feeguide-price { background: linear-gradient(160deg, var(--justify-green-deep), var(--justify-green-dark)); color: #fff; padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; }
.jv2-feeguide-price small { color: rgba(255,255,255,.85); font-size: 13px; }
.jv2-feeguide-price s { opacity: .7; }
.jv2-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; color: var(--justify-gold); }
.jv2-big { font-size: 34px; font-weight: 900; line-height: 1.1; margin: 6px 0; }
.jv2-big small { font-size: 15px; font-weight: 600; }
.jv2-offer { color: var(--justify-gold); }
.jv2-steps { list-style: none; counter-reset: st; margin: 0; padding: 18px 22px 6px; }
.jv2-steps li { counter-increment: st; position: relative; padding: 0 0 14px 44px; }
.jv2-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--justify-green-light); color: var(--justify-green-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.jv2-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: var(--justify-green-light); }
.jv2-steps b { display: block; }
.jv2-steps span { font-size: 14px; color: var(--justify-text-mid); }
.jv2-feeguide-foot { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 22px 16px; font-size: 13px; color: var(--justify-text-light); }
.jv2-feeguide-foot a { font-weight: 700; }
.jv2-firm-link { text-align: center; margin-top: 16px; font-size: 14px; }

/* ── Reviews (tv2) ── */
.tv2-stars { color: var(--justify-gold); letter-spacing: 1px; font-size: 17px; white-space: nowrap; }
.tv2-stars .tv2-off { color: #d9d9d9; }
.tv2-stars-lg { font-size: 26px; }
.tv2-summary { display: grid; grid-template-columns: 200px 1fr 240px; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--justify-gray-mid); border-radius: var(--border-radius-lg); padding: 24px; margin-bottom: 26px; }
.tv2-score { text-align: center; }
.tv2-score b { display: block; font-size: 52px; line-height: 1; color: var(--justify-green-deep); }
.tv2-score small { display: block; color: var(--justify-text-light); margin-top: 4px; }
.tv2-dist-row { display: grid; grid-template-columns: 36px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; margin: 4px 0; }
.tv2-bar { height: 9px; background: var(--justify-gray-bg); border-radius: 9px; overflow: hidden; }
.tv2-bar i { display: block; height: 100%; background: var(--justify-gold); border-radius: 9px; }
.tv2-summary-cta { text-align: center; }
.tv2-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tv2-tab { border: 1px solid var(--justify-gray-mid); background: #fff; border-radius: 30px; padding: 8px 16px; font-weight: 700; cursor: pointer; font-size: 14px; color: var(--justify-text-dark); }
.tv2-tab span { font-weight: 600; color: var(--justify-text-light); font-size: 12px; margin-left: 4px; }
.tv2-tab.active { background: var(--justify-green-deep); color: #fff; border-color: var(--justify-green-deep); }
.tv2-tab.active span { color: rgba(255,255,255,.8); }
.tv2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.tv2-card { background: #fff; border: 1px solid var(--justify-gray-mid); border-radius: var(--border-radius-lg); padding: 20px; display: flex; flex-direction: column; }
.tv2-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tv2-role { font-size: 12px; font-weight: 700; background: var(--justify-green-light); color: var(--justify-green-deep); padding: 3px 10px; border-radius: 20px; }
.tv2-text { flex: 1; color: var(--justify-text-mid); font-size: 15px; line-height: 1.6; margin: 0 0 14px; overflow-wrap: anywhere; }
.tv2-author { display: flex; gap: 10px; align-items: center; }
.tv2-author small { display: block; color: var(--justify-text-light); font-size: 12px; }
.tv2-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--justify-green-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.tv2-verified { font-size: 11px; color: var(--justify-green-bright); font-weight: 700; }
.tv2-empty { text-align: center; color: var(--justify-text-light); padding: 30px 0; }
.tv2-form-card { max-width: 760px; margin: 40px auto 0; background: #fff; border: 2px solid var(--justify-gold); border-radius: var(--border-radius-lg); padding: 28px; scroll-margin-top: 100px; }
.tv2-form-card h2 { margin-top: 0; }
.tv2-form-sub { color: var(--justify-text-mid); font-size: 14px; }
.tv2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tv2-rolepick, .tv2-starpick { border: 0; padding: 0; margin: 0 0 18px; }
.tv2-rolepick legend, .tv2-starpick legend { font-weight: 700; margin-bottom: 8px; }
.tv2-rolepick label { display: inline-block; margin: 0 6px 6px 0; }
.tv2-rolepick input { position: absolute; opacity: 0; }
.tv2-rolepick span { display: inline-block; border: 1px solid var(--justify-gray-mid); border-radius: 30px; padding: 7px 14px; cursor: pointer; font-size: 14px; }
.tv2-rolepick input:checked + span { background: var(--justify-green-deep); color: #fff; border-color: var(--justify-green-deep); }
.tv2-rolepick input:focus-visible + span { outline: 2px solid var(--justify-gold); }
.tv2-starpick-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.tv2-starpick-row input { position: absolute; opacity: 0; }
.tv2-starpick-row label { font-size: 38px; color: #d9d9d9; cursor: pointer; line-height: 1; transition: transform .1s, color .1s; }
.tv2-starpick-row label:hover, .tv2-starpick-row label:hover ~ label, .tv2-starpick-row input:checked ~ label { color: var(--justify-gold); }
.tv2-starpick-row label:hover { transform: scale(1.12); }
.tv2-starpick-row input:focus-visible + label { outline: 2px solid var(--justify-green-bright); border-radius: 4px; }
.tv2-starpick small { display: block; color: var(--justify-text-light); }
.tv2-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }

/* ── Law firms (lf) ── */
.jv2-hero-firm { background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 45%, var(--justify-green-dark) 100%); }
.lf-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-bottom: 22px; }
.lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lf-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--justify-gray-mid); border-radius: var(--border-radius-lg); padding: 18px; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.lf-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); transform: translateY(-2px); }
.lf-card h3 { margin: 0 0 4px; font-size: 18px; }
.lf-logo { width: 60px; height: 60px; border-radius: 12px; background: var(--justify-green-deep); color: var(--justify-gold); font-size: 26px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.lf-logo img { width: 100%; height: 100%; object-fit: cover; }
.lf-logo-lg { width: 84px; height: 84px; font-size: 36px; }
.lf-meta { margin: 0 0 8px; font-size: 13px; color: var(--justify-text-light); }
.lf-feat { font-size: 11px; background: var(--justify-gold); color: #1a1a1a; padding: 2px 8px; border-radius: 12px; vertical-align: middle; }
.lf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-tags span { font-size: 12px; background: var(--justify-green-light); color: var(--justify-green-deep); padding: 3px 9px; border-radius: 14px; }
.lf-tags-lg span { font-size: 14px; padding: 6px 12px; }
.lf-empty { text-align: center; background: #fff; border: 2px dashed var(--justify-gray-mid); border-radius: var(--border-radius-lg); padding: 36px 20px; }
.lf-single { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.lf-single-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.lf-about { color: var(--justify-text-mid); line-height: 1.7; }
.lf-team { list-style: none; padding: 0; columns: 2; }
.lf-team li { padding: 4px 0; break-inside: avoid; }
.lf-contact { background: #fff; border: 2px solid var(--justify-gold); border-radius: var(--border-radius-lg); padding: 22px; position: sticky; top: 100px; }
.lf-contact h3 { margin-top: 0; }
.lf-facts { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--justify-gray-mid); }
.lf-facts li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--justify-gray-bg); font-size: 14px; }
.lf-area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.lf-area-grid label { font-weight: 400 !important; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.lfr-h { font-size: 17px; color: var(--justify-green-deep); border-bottom: 2px solid var(--justify-green-light); padding-bottom: 6px; margin: 24px 0 14px; }

/* ── Law colleges (lc) ── */
.lc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.lc-stats > div { background: linear-gradient(160deg, var(--justify-green-deep), var(--justify-green-dark)); color: #fff; border-radius: 14px; padding: 16px; text-align: center; }
.lc-stats b { display: block; font-size: 30px; color: var(--justify-gold); }
.lc-stats span { font-size: 13px; }
.lc-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.lc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lc-chips button { border: 1px solid var(--justify-gray-mid); background: #fff; border-radius: 30px; padding: 7px 15px; font-weight: 700; cursor: pointer; font-size: 13px; }
.lc-chips button.active { background: var(--justify-gold); border-color: var(--justify-gold); }
.lc-result-line { color: var(--justify-text-light); font-size: 14px; }
.lc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lc-card { background: #fff; border: 1px solid var(--justify-gray-mid); border-radius: var(--border-radius-lg); padding: 18px; display: flex; flex-direction: column; }
.lc-card h3 { font-size: 16px; margin: 8px 0 4px; line-height: 1.35; }
.lc-card-top { display: flex; justify-content: space-between; align-items: center; }
.lc-badge { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 12px; text-transform: uppercase; letter-spacing: .5px; }
.lc-badge.pub { background: var(--justify-green-light); color: var(--justify-green-deep); }
.lc-badge.pvt { background: var(--justify-gold-light); color: #5a4500; }
.lc-type { font-size: 12px; color: var(--justify-text-light); }
.lc-loc { margin: 0 0 4px; font-size: 13px; color: var(--justify-text-mid); }
.lc-aff { margin: 0 0 8px; font-size: 12px; color: var(--justify-text-light); }
.lc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 10px; flex: 1; align-content: flex-start; }
.lc-tag { font-size: 11.5px; padding: 3px 8px; border-radius: 10px; font-weight: 700; }
.lc-llb { background: #e8f0fe; color: #1a4fb4; } .lc-llm { background: #fdf2d0; color: #7a5a00; } .lc-phd { background: #f3e8ff; color: #6b21a8; } .lc-dip { background: #e6f4eb; color: var(--justify-green-deep); }
.lc-web { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.lc-note { font-size: 13px; color: var(--justify-text-light); margin-top: 22px; }
.lc-road { list-style: none; counter-reset: rd; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lc-road li { counter-increment: rd; background: #fff; border-radius: 14px; padding: 18px 16px 16px; border-top: 4px solid var(--justify-green-bright); position: relative; }
.lc-road li::before { content: counter(rd); position: absolute; top: -16px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--justify-gold); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.lc-road b { display: block; margin-bottom: 4px; }
.lc-road span { font-size: 13px; color: var(--justify-text-mid); }
.lc-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--justify-green-light); border-radius: 14px; padding: 18px 20px; margin: 24px 0; flex-wrap: wrap; }
.lc-sources { font-size: 13px; color: var(--justify-text-light); }
.lc-sources ul { padding-left: 18px; }
.lc-sources a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .jv2-hero-grid, .lf-single { grid-template-columns: 1fr; }
  .lf-contact { position: static; }
  .tv2-summary { grid-template-columns: 1fr; text-align: center; }
  .lc-stats { grid-template-columns: repeat(3, 1fr); }
  .lc-road { grid-template-columns: repeat(2, 1fr); }
  .lf-filters, .lc-filters { grid-template-columns: 1fr 1fr; }
  .lf-filters input, .lc-filters input { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .jv2-section { padding: 44px 0; }
  .jv2-hero { padding: 48px 0 44px; }
  .jv2-feeguide { grid-template-columns: 1fr; }
  .jv2-feeguide-foot { grid-column: 1; }
  .tv2-row, .lf-filters, .lc-filters { grid-template-columns: 1fr; }
  .lc-stats { grid-template-columns: repeat(2, 1fr); }
  .lc-road { grid-template-columns: 1fr; }
  .lf-grid, .lc-grid, .tv2-grid { grid-template-columns: 1fr; }
  .lf-team { columns: 1; }
  .tv2-form-card { padding: 20px 16px; }
  .jv2-countdown > div { min-width: 54px; padding: 6px 8px; }
}

/* =====================================================
   v2.1.0 — APP MODE & MOBILE APP-STYLE UI (inc/app-mode.php)
   .jx-tabbar = bottom tab bar (phones) · .justify-app = inside the Android app
   ===================================================== */
.jx-tabbar, .jx-back, .jx-loadbar { display: none; }

@media (max-width: 768px) {
  /* Bottom tab bar */
  .has-tabbar .jx-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
    background: #fff; border-top: 1px solid var(--justify-gray-mid);
    box-shadow: 0 -4px 18px rgba(0,0,0,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .jx-tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; text-decoration: none; color: var(--justify-text-mid); font-size: 11px; font-weight: 700; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .jx-ico { font-size: 21px; line-height: 1; filter: grayscale(.35); }
  .jx-tab.is-on { color: var(--justify-green-deep); }
  .jx-tab.is-on .jx-ico { filter: none; transform: translateY(-1px); }
  .jx-tab.is-on::after { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--justify-gold); margin-top: 2px; }
  .jx-tab:active { background: var(--justify-green-light); }
  .jx-main .jx-ico { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; background: linear-gradient(135deg, var(--justify-green-bright), var(--justify-green-deep)); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,102,0,.35); border: 3px solid #fff; filter: none; }
  .jx-main.is-on::after { display: none; }
  body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  /* Floating buttons move above the tab bar */
  .has-tabbar .floating-call { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar .floating-whatsapp { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
  .has-tabbar #jchat-fab { bottom: calc(206px + env(safe-area-inset-bottom, 0px)) !important; }
  .has-tabbar #jchat-box { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; max-height: calc(100vh - 170px) !important; }

  /* Touch polish (all phones) */
  input, select, textarea, .form-control { font-size: 16px !important; } /* stops zoom-on-focus */
  .btn, button, .dash-action-btn, input[type="submit"] { min-height: 46px; }
  .form-control, select { min-height: 46px; }
  a, button { -webkit-tap-highlight-color: rgba(0,102,0,.12); }
  html, body { overflow-x: hidden; }
  img, video, iframe, table { max-width: 100%; }
  .table-scroll, .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Inside the Android app (WappPress WebView) ── */
/* v2.6.3: overscroll-behavior removed — it froze page scrolling in the Android WebView. */
.justify-app.app-hide-topbar #justify-topbar,
.justify-app .app-hide-topbar #justify-topbar { display: none !important; }
.justify-app.app-hide-footer #justify-footer .footer-top,
.justify-app.app-hide-footer .legal-disclaimer-bar { display: none !important; }
.justify-app.app-hide-footer #justify-footer { padding-top: 14px; }
.justify-app.app-hide-floats .floating-call,
.justify-app.app-hide-floats .floating-whatsapp { display: none !important; }
.justify-app .jx-tabbar { display: flex; }
.justify-app .jx-back {
  display: flex; position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 8px; z-index: 260;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--justify-green-deep); color: #fff;
  font-size: 30px; line-height: 1; align-items: center; justify-content: center; padding: 0 0 4px; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.justify-app #justify-header .container { padding-left: 56px; }
.justify-app #justify-header { padding-top: env(safe-area-inset-top, 0px); }
.justify-app .jx-loadbar { display: block; position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; background: var(--justify-gold); transition: width 6s cubic-bezier(.1,.7,.1,1), opacity .3s; opacity: 0; }
.justify-app .jx-loadbar.go { width: 90%; opacity: 1; }
.justify-app * { -webkit-user-select: auto; }
.justify-app .skip-link { display: none; }
@media (min-width: 769px) { .justify-app .jx-tabbar { display: none; } }

/* v2.2.0 — Google Play safety: no prices / payment steps inside the app */
.justify-app .jx-noapp, .justify-app .buy-plan-btn, .justify-app #payment-claim-card,
.justify-app .jv2-feeguide-price, .justify-app .jv2-paystep, .justify-app .jv2-plan-price,
.justify-app .jv2-paybox, .justify-app .jv2-price-line, .justify-app .jv2-topbar { display: none !important; }
.justify-app .jv2-feeguide { grid-template-columns: 1fr; }
.justify-app .jv2-feeguide-foot { grid-column: 1; }
/* v2.2.0 — phones: decorative hero shapes / slide-in animations widened the page on the homepage,
   so mobile browsers zoomed out and the bottom tab bar slipped below the screen. clip never scrolls. */
@media (max-width: 768px) {
  @supports (overflow: clip) { html, body, #main-content, #main-content > section { overflow-x: clip; } }
  .hero-crescent { display: none; }
}
@media (max-width: 768px) { .slider-prev { left: 4px !important; } .slider-next { right: 4px !important; } }

/* ═══════════════════════════════════════════════════════
   v2.3.0 — Article Integrity (My Articles evaluation view, Writing Policy page)
   Uses existing tokens only.
════════════════════════════════════════════════════════ */
.jpi-tabs-front { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: 0 0 var(--space-md); }
.jpi-tabs-front .btn.active { background: var(--justify-green-deep); border-color: var(--justify-green-deep); color: var(--justify-white); }
.jpi-eval { background: var(--justify-gray-bg); border: 1px solid var(--justify-gray-mid); border-radius: var(--border-radius); padding: var(--space-md); font-size: 14px; }
.jpi-eval ul { margin: 0 0 0 18px; }
.jpi-crit { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr 36px; gap: var(--space-sm); align-items: center; margin-bottom: 6px; }
.jpi-crit small { color: var(--justify-text-light); }
.jpi-crit b { text-align: right; }
.jpi-crit .wallet-progress-track { margin: 0; }
.jpi-lang-tabs { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.jpi-policy h2 { font-family: var(--font-display); margin-bottom: var(--space-md); }
.jpi-policy p, .jpi-policy li { line-height: 1.75; color: var(--justify-text-mid); }
.jpi-urdu, .jpi-urdu h2, .jpi-urdu p, .jpi-urdu li { font-family: var(--font-urdu); line-height: 2.2; text-align: right; }
.jpi-urdu ul { padding-right: 20px; padding-left: 0; }
@media (max-width: 600px) {
  .jpi-crit { grid-template-columns: 1fr 44px; }
  .jpi-crit .wallet-progress-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ── v2.3.3 Legal links in the footer bottom bar — always visible (website + Android app) ── */
.footer-legal-links { flex-basis: 100%; order: -1; margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 2.2; }
.footer-legal-links a { color: rgba(255,255,255,0.8); text-decoration: none; padding: 6px 2px; white-space: nowrap; }
.footer-legal-links a:hover, .footer-legal-links a:focus { color: var(--justify-gold); text-decoration: underline; }
.justify-app .footer-legal-links { text-align: center; font-size: 0.9rem; }

/* =====================================================
   v2.6.1 — MOBILE WIDTH FIX (site + Android app WebView)
   Phones and the app were zooming out because a few things were
   wider than the screen: no-wrap buttons with long labels, no-wrap
   trust items, fixed 280–320px grid columns, long URLs/tables in
   articles, and the 10-item desktop nav at tablet widths (769–1100px),
   which could not wrap. overflow-x:hidden alone does not stop a mobile
   browser from widening the layout, so the cause is fixed here.
   ===================================================== */
/* Tablets / app in landscape: use the hamburger menu instead of the no-wrap desktop nav. */
@media (max-width: 1100px) {
  .justify-nav-wrap { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  html { max-width: 100%; overflow-x: hidden; }
  body { max-width: 100%; }
  /* Long button labels wrap instead of pushing the page wider. */
  .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.3; }
  .trust-item { white-space: normal; padding: 6px 10px; }
  .trust-divider { display: none; }
  /* Media, embeds and code never exceed the screen. */
  img, svg, video, iframe, embed, object, canvas { max-width: 100%; height: auto; }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
  /* Long words / URLs / CNIC-style strings wrap. */
  body { overflow-wrap: break-word; }
  .entry-content a, .article-content a, .dash-card a { overflow-wrap: anywhere; }
  /* Tables scroll inside themselves. */
  .entry-content table, .article-content table, .dash-card table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Flex/grid children may shrink below their content width. */
  .container > *, .dash-content > *, .dash-card, .dash-card-body, .form-group, .qj-field { min-width: 0; }
  .dash-topbar-right { min-width: 0; }
}
@media (max-width: 480px) {
  /* Fixed-minimum grids (inline styles and theme grids) collapse to one column. */
  .tools-featured-grid, .lf-grid, .lc-grid,
  [style*="minmax(280px"], [style*="minmax(300px"], [style*="minmax(320px"] { grid-template-columns: 1fr !important; }
  .jv2-ribbon { white-space: normal; max-width: 90%; text-align: center; }
}
