/* ========== 404 VIP Pro+ Urdu Edition ========== */
.unp-404-root {
  padding: 60px 0;
  font-family: serif;
  background: linear-gradient(135deg, #f0f5ff, #ffffff);
}

/* --- HERO SECTION --- */
.unp-404-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 20px;
  background: #fff;
  padding: 50px 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border: 1px solid #eef1f4;
  overflow: hidden;
  direction: rtl;
}

.h1-404 {
  font-size: 120px;
  font-weight: 800;
  color: var(--unp-404-accent, #d94a4a);
  margin: 0;
  line-height: 1;
  letter-spacing: -3px;
  font-family: 'Poppins', sans-serif;
}

.h2-404 {
  font-size: 28px;
  font-weight: 700;
  color: var(--unp-404-primary, #0f2e4f);
  margin: 8px 0;
  font-family: serif;
}

.p-404 {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.8;
}

.unp-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.unp-404-actions .btn {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--unp-404-accent, #d94a4a);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #b83636;
}

.btn-outline {
  background: transparent;
  color: var(--unp-404-primary, #0f2e4f);
  border: 2px solid var(--unp-404-primary, #0f2e4f);
}
.btn-outline:hover {
  background: var(--unp-404-primary, #0f2e4f);
  color: #fff;
}

/* --- Search Box --- */
.unp-404-search form {
  position: relative;
  margin-top: 10px;
}
.unp-404-search input[type="search"] {
  width: 100%;
  padding: 12px 46px 12px 16px;
  border-radius: 10px;
  border: 2px solid #e0e7ff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}
.unp-404-search input[type="search"]:focus {
  border-color: var(--unp-404-accent, #d94a4a);
  outline: none;
}
.unp-404-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--unp-404-accent, #d94a4a);
  cursor: pointer;
}

/* --- Quick Links (Home, Mobiles, Contact) --- */
.unp-404-quicklinks {
  margin-top: 16px;
  font-size: 15px;
  text-align: center;
}
.unp-404-quicklinks a {
  display: inline-block;
  background: #f3f6fa;
  color: #0f2e4f;
  padding: 8px 18px;
  border-radius: 8px;
  margin: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.unp-404-quicklinks a:hover {
  background: var(--unp-404-accent, #d94a4a);
  color: #fff;
}

/* --- Image / Ad Section --- */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-right img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
}

/* --- Suggestions Section --- */
.unp-404-suggestions {
  margin-top: 50px;
}
.unp-404-suggestions .card {
  border-radius: 16px;
  background: #fff;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.unp-404-suggestions h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--unp-404-primary, #0f2e4f);
  margin-bottom: 20px;
  text-align: center;
}

.unp-404-suggestions .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
}

.unp-404-suggestions h4 {
  font-size: 18px;
  color: var(--unp-404-accent, #d94a4a);
  margin-bottom: 12px;
  border-bottom: 2px solid #f0f2f5;
  padding-bottom: 6px;
  text-align: right;
}

.list-popular, .list-recent, .list-cats {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}
.list-popular li, .list-recent li, .list-cats li {
  margin-bottom: 8px;
}
.list-popular a, .list-recent a, .list-cats a {
  color: #111827;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.list-popular a:hover, .list-recent a:hover, .list-cats a:hover {
  color: var(--unp-404-accent, #d94a4a);
}
.list-cats .count {
  font-size: 13px;
  color: #64748b;
  margin-right: 6px;
}

/* --- Bottom Widgets --- */
.footer-widgets {
  margin-top: 40px;
  padding: 30px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}
.footer-widgets .flex-split {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- Modal (Report Broken Link) --- */
.report-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99999;
}
.report-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.report-inner {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: right;
  direction: rtl;
}
.report-inner label {
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
  color: #374151;
}
.report-inner input, .report-inner textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-family: inherit;
}
.report-inner button[type=submit] {
  margin-top: 12px;
  width: 100%;
  background: var(--unp-404-accent, #d94a4a);
  color: #fff;
  font-weight: 600;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.report-inner button[type=submit]:hover {
  background: #b83636;
}
.report-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 960px){
  .unp-404-hero {
    flex-direction: column;
    text-align: center;
    direction: rtl;
  }
  .unp-404-hero .hero-right {
    margin-top: 30px;
  }
  .unp-404-actions {
    justify-content: center;
  }
  .unp-404-suggestions h4 {
    text-align: center;
  }
}

/* ========== Urdu Font Only in Popular/Recent/Category Section ========== */
.unp-404-suggestions .list-popular,
.unp-404-suggestions .list-recent,
.unp-404-suggestions .list-cats {
  font-family: var(--urdu-font, 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif);
  font-size: 17px;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
}

/* Urdu Font only for their section headings */
.unp-404-suggestions h4 {
  font-family: var(--urdu-font, 'Jameel Noori Nastaleeq', serif);
  font-weight: 700;
  font-size: 20px;
  direction: rtl;
}

/* Baaqi sab ko force English/system font (clarity ke liye) */
.unp-404-root,
.unp-404-root *:not(.list-popular):not(.list-recent):not(.list-cats):not(.unp-404-suggestions h4) {
  font-family: 'Poppins', 'Inter', 'Segoe UI', system-ui, sans-serif;
  direction: ltr;
}