/* Tender Alert Pakistan — shared styles for public website pages (matches index.html)
   PRO REDESIGN 2026-10-25: desktop-first polish — wider container, bigger type,
   stronger header/nav, cards with shadow + hover lift, date badges. No class names
   or markup hooks were changed, so all JS rendering (site.js cards, login box,
   previews, footer) works exactly as before. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root {
  --blue-900:#0c4a6e; --blue-800:#075985; --blue-700:#0369a1; --blue-600:#0284c7;
  --blue-500:#0ea5e9; --blue-400:#38bdf8; --blue-200:#bae6fd; --blue-100:#e0f2fe; --blue-50:#f0f9ff;
  --ink:#0f172a; --muted:#64748b; --line:#e2e8f0;
  --green:#16a34a; --green-dark:#15803d; --red:#dc2626; --amber:#d97706;
  --shadow-sm:0 2px 8px rgba(2,132,199,.10);
  --shadow-md:0 6px 20px rgba(2,132,199,.13);
  --shadow-lg:0 14px 32px rgba(2,132,199,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #e9f5ec; color: var(--ink);
  min-height: 100vh; font-size: 17px; line-height: 1.6; }
::selection { background: var(--blue-200); }
.hidden { display: none !important; }
.center { text-align: center; }

/* ---------- Header + nav — home jaisa (Design 1, 24 Nov 2026) ---------- */
/* Home (index.html) ka header.top > .top-in > brand + nav.main + Login structure.
   Sab pages par wahi placement. Sticky rakha gaya hai (pehle wala header bhi
   sticky tha) — at-rest geometry home jaisi hai. */
header.top { background: #fff; border-bottom: 1px solid #dcebe0; }
@media (min-width: 761px) { header.top { position: sticky; top: 0; z-index: 20; } }
header.top .top-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
header.top #authArea{margin-left:auto}
header.top .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
header.top .brand .logo { width: 42px; height: 42px; flex: none; border-radius: 11px; }
header.top .brand b { font-size: 18px; font-weight: 800; color: #0b3d24; display: block; line-height: 1.1; }
header.top .brand span { font-size: 12px; color: #5c7263; font-weight: 600; }
header.top nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
header.top nav.main a { color: #24513a; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 11px; border-radius: 8px; }
header.top nav.main a:hover { background: #eef6f0; color: #0b3d24; }
header.top nav.main a.on { background: #eef6f0; color: #0b3d24; }
header.top a.btn { width: auto; font: 700 14.5px "Plus Jakarta Sans", sans-serif; padding: 11px 20px; min-height: 44px; border-radius: 10px; }
header.top a.btn:hover { background: #0e7a3d; transform: none; box-shadow: none; }

/* ---------- Logged-in badge — ek hi definition, sab pages (25 Nov 2026) ---------- */
#authArea .ta-badge-wrap{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
#authArea .ta-badge{background:#dcfce7;color:#166534;font:800 14px/1.35 "Plus Jakarta Sans",system-ui,sans-serif;border-radius:999px;padding:10px 14px;white-space:nowrap}
#authArea .ta-logout{appearance:none;border:1.5px solid #0e7a3d;background:#fff;color:#0e7a3d;font:800 14.5px/1.35 "Plus Jakarta Sans",system-ui,sans-serif;border-radius:10px;padding:11px 16px;cursor:pointer}
#authArea .btn{display:inline-block;min-height:48px;line-height:1.2;font-size:16px;padding:12px 24px}
/* Header nav links — font bhi sab pages par ek jaisa (25 Nov 2026): warna mobile par nav row ki height 4px farq karti hai */
header.top nav.main a{font-family:"Plus Jakarta Sans",system-ui,sans-serif;line-height:1.35}
@media (max-width: 760px) { header.top nav.main { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } header.top nav.main a { flex-shrink: 0; } header.top nav.main::-webkit-scrollbar { display: none; } header.top .top-in { column-gap: 8px; } header.top a.btn { padding: 11px 14px; } }

/* ---------- Layout / cards ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 18px 16px 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-md); }

.btn { display: inline-block; background: var(--blue-600); color: #fff; border: none; padding: 14px 22px;
  border-radius: 12px; cursor: pointer; font-weight: 800; font-size: 16px; width: 100%; text-align: center; text-decoration: none;
  transition: transform 0.1s, filter 0.1s, background 0.2s, box-shadow 0.2s; }
.btn:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(2,132,199,.30); }
.btn.auto { width: auto; }
.btn.green { background: var(--green); } .btn.green:hover { background: var(--green-dark); } .btn-green { background: #0e7a3d; color: #fff; } .btn-green:hover { background: #0b6b34; }
.btn.ghost { background: var(--blue-100); color: var(--blue-800); }
.btn.ghost:hover { background: var(--blue-200); }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.btn:active, button:active { transform: scale(0.96); filter: brightness(0.92); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

input, select, textarea { width: 100%; padding: 13px 14px; margin: 5px 0 10px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
label.lbl { font-size: 14px; font-weight: 800; color: var(--blue-800); display: block; margin-top: 6px; }

.msg { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 15px; }
.ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.info { background: var(--blue-100); color: var(--blue-900); border: 1px solid var(--blue-200); }

/* ---------- Intro / content pages ---------- */
.intro h1 { font-size: 30px; color: var(--blue-900); line-height: 1.2; margin-bottom: 12px; font-weight: 800; }
.intro p, .prose p { font-size: 16.5px; line-height: 1.7; color: #334155; margin-bottom: 12px; }
.intro p:last-child, .prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 22px; color: var(--blue-800); margin: 22px 0 10px; font-weight: 800; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 12px 20px; font-size: 16.5px; line-height: 1.7; color: #334155; }
.prose a { color: var(--blue-700); font-weight: 700; }
.statline { margin-top: 14px; padding: 12px 16px; background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 12px; font-size: 15px; color: var(--blue-900); }
.statline b { color: var(--blue-600); font-size: 19px; }
.foundline { font-size: 15px; color: var(--blue-900); font-weight: 800; margin: 2px 0 14px; }
.foundline b { color: var(--blue-600); font-size: 19px; }

/* ---------- Tender cards ---------- */
.tender { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 20px; overflow: hidden;
  box-shadow: var(--shadow-md); transition: transform .18s ease, box-shadow .18s ease; }
.tender:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.t-top { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.t-top .paper { background: var(--blue-700); color: #fff; font-weight: 800; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; }
.t-top .pdate { background: #fff; border: 1.5px solid var(--blue-200); color: var(--blue-800); font-weight: 800;
  font-size: 13.5px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.tender img.cut { width: 100%; height: auto; display: block; background: #fff; }
.tender .tb { padding: 16px 18px 18px; }
.tender .org { color: var(--blue-700); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .2px; }
.tender h3 { font-size: 20px; font-weight: 800; margin: 6px 0; color: var(--ink); line-height: 1.3; }
/* ---------- Uniform tender cards (19 Nov 2026): har daba ek size ka ---------- */
#tenderList > a, #list > a { height: 100%; }
#tenderList .tender, #list .tender { height: 100%; display: flex; flex-direction: column; }
#tenderList .tender .tb, #list .tender .tb { flex: 1; display: flex; flex-direction: column; }
#tenderList .tender .org, #list .tender .org { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; height: 2.7em; }
#tenderList .tender h3, #list .tender h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; height: 3.9em; }
#tenderList .tender .meta, #list .tender .meta { min-height: 31px; }
.tender .ur { color: var(--muted); font-size: 15px; margin-bottom: 8px; direction: rtl; text-align: right; }
.tender .desc { font-size: 15.5px; color: #334155; margin-bottom: 12px; line-height: 1.6; }
.drows { background: var(--blue-50); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.drow { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; padding: 3px 0; }
.drow span { color: var(--muted); font-weight: 700; }
.drow b { color: var(--blue-900); font-weight: 800; font-size: 15px; }
/* 2nd row is always the due date: highlight it so deadlines stand out at a glance */
.drow:nth-child(2) { background: #f0fdf4; border-radius: 8px; padding: 5px 10px; margin: 2px -10px 0; }
.drow:nth-child(2) b { color: #166534; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.meta span { background: var(--blue-100); color: var(--blue-900); padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.meta span.money { background: #dcfce7; color: #166534; }
.src-link { display: inline-block; margin-top: 12px; font-size: 14.5px; font-weight: 800;
  color: #fff; background: var(--blue-600); padding: 11px 20px; border-radius: 999px; text-decoration: none;
  transition: background .15s, box-shadow .15s; }
.src-link:hover { background: var(--blue-700); box-shadow: 0 4px 12px rgba(2,132,199,.30); }

/* ---------- Locked (subscription) box ---------- */
.locked { text-align: center; padding: 32px 24px; }
.locked .lock-ico { font-size: 46px; margin-bottom: 10px; }
.locked h2 { color: var(--blue-900); font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.locked p { color: #334155; font-size: 15.5px; line-height: 1.65; margin-bottom: 10px; }
.locked .prices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.locked .price { background: var(--blue-50); border: 1.5px solid var(--blue-200); border-radius: 14px; padding: 16px 22px; min-width: 170px; }
.locked .price .amt { font-size: 24px; font-weight: 800; color: var(--blue-800); }
.locked .price .per { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.locked .price .save { font-size: 13px; color: var(--green); font-weight: 800; }
.locked .btn { max-width: 360px; margin: 4px auto; }
.empty-note { text-align: center; color: var(--muted); padding: 24px 10px; font-size: 15.5px; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 16px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-md); transition: transform .18s ease, box-shadow .18s ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card .ico { font-size: 28px; }
.contact-card h3 { color: var(--blue-800); font-size: 18px; margin: 8px 0 6px; font-weight: 800; }
.contact-card p { color: #334155; font-size: 15.5px; line-height: 1.6; margin-bottom: 12px; word-break: break-word; }
.contact-card .btn { width: auto; }

/* ---------- Footer ---------- */
footer.site { background: #0b3d24; color: var(--blue-100); margin-top: 12px; }
footer.site .fin { max-width: 1140px; margin: 0 auto; padding: 30px 20px 22px; }
footer.site .flinks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
footer.site .flinks a { color: var(--blue-100); text-decoration: none; font-size: 15px; font-weight: 700; }
footer.site .flinks a:hover { color: #fff; text-decoration: underline; }
footer.site .fbrand { font-weight: 800; color: #fff; font-size: 17px; margin-bottom: 8px; }
footer.site .fnote { font-size: 13.5px; line-height: 1.65; color: var(--blue-200); }
footer.site .fcopy { border-top: 1px solid rgba(255,255,255,.15); margin-top: 16px; padding-top: 14px;
  font-size: 13px; color: var(--blue-200); text-align: center; line-height: 1.65; }

/* ---------- Desktop: wider container + 2-column tender grid ---------- */
@media (min-width: 900px) {
  .wrap, footer.site .fin { max-width: 1140px; }
  .wrap { padding: 22px 22px 56px; }
  #tenderList { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
  #tenderList .tender { margin-bottom: 0; }
  #tenderList .empty-note { grid-column: 1 / -1; }
  .tender img.cut { max-height: 420px; object-fit: contain; background: #f8fafc; }
  .tender h3 { font-size: 22px; }
  .intro h1 { font-size: 38px; }
  .locked h2 { font-size: 28px; }
}
