@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;900&family=Open+Sans:wght@400;500;600;700&family=Lato:wght@300;400;900&family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    rgba(229, 57, 53, 1);
  /* Sampled directly from the real logo (pages/tenders_ghana.png — averaged
     over 6,457 opaque navy pixels across the shield outline and "Tenders"
     text): rgb(5,31,76). The previous value, rgb(0,82,204), was a much
     brighter royal blue that never matched the logo sitting right next to
     it in the nav bar. */
  --surface:    rgba(5, 31, 76, 1);
  --text:       rgba(26, 35, 126, 1);
  --bg:         rgba(245, 247, 250, 1);
  --success:    rgba(67, 160, 71, 1);
  --accent:     rgba(250, 181, 21, 1);
  --white:      rgba(255, 255, 255, 1);
  --navy-dark:  rgba(25, 28, 32, 1);
  --blue-light: rgba(217, 227, 248, 1);
  --border:     rgba(196, 198, 207, 1);
  --radius:     6px;
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --max-w:      1200px;
}

/* Defensive safety net: ANY element anywhere on a page that ends up even
   slightly wider than the viewport (a long unbroken string, a carousel
   track whose own overflow:hidden wrapper gets bypassed, a stray fixed
   width) forces the whole page wider on mobile browsers — which doesn't
   just add a scrollbar, it makes the browser lay out (and sometimes
   visually shift/crop) the entire page at that wider width instead of the
   device's actual width. This can't fix a genuinely broken layout, but it
   guarantees one overflowing element can't take the whole page down with it.
   html needs it too, not just body — a horizontally-overflowing child can
   enlarge html's own scrollable area independently of body's box. */
html, body { overflow-x: hidden; max-width: 100%; }

body { font-family: 'Roboto', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; display: block; }

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  background: var(--surface);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 20px; height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-links a {
  color: var(--white); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius);
  transition: background .15s;
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.15); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: opacity .15s, transform .1s; }
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary  { background: var(--primary); color: var(--white); }
.btn-outline  { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-surface  { background: var(--surface); color: var(--white); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

.plan-badge {
  background: var(--accent); color: var(--navy-dark);
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 12px; text-transform: uppercase; letter-spacing: .4px;
}

/* mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; border-radius: var(--radius);
  padding: 8px; width: 44px; height: 44px; flex-shrink: 0;
}
.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--white);
  margin: 3px 0; border-radius: 2px; transition: transform .2s, opacity .2s;
}
/* morphs into an X when the menu is open */
.nav.mobile-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.mobile-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 480px;
  padding: 60px 20px 50px;
  text-align: center;
  display: flex; flex-direction: column; justify-content: center;
  /* Shows while the first slide image loads, and is what's left visible if
     images ever fail to fetch — never a blank/broken hero. */
  background: linear-gradient(135deg, rgba(5,31,76,1) 0%, rgba(10,48,115,1) 60%, rgba(26,35,126,1) 100%);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
/* Slow, subtle zoom on the visible slide only — restores the original's
   "zoom-out-parallax" treatment without animating every stacked image. */
.hero-slide.active { animation: hero-ken-burns 9s ease-out forwards; }
@keyframes hero-ken-burns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(26,35,126,.55);
}
.hero-content { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.active { animation: none; }
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px); font-weight: 700; color: var(--white);
  margin-bottom: 14px; line-height: 1.15; overflow-wrap: break-word;
}
.hero p {
  font-size: clamp(14px, 2vw, 17px); color: rgba(255,255,255,.88);
  max-width: 640px; margin: 0 auto 30px;
}
.hero-search {
  background: rgba(27, 35, 130, 0.4);
  border-radius: 8px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  /* A flex container with no explicit width defaults to filling the
     available space, not its content -- so this tinted box stretched out
     to the full 1200px page max-width well past the input/select/button
     group sitting inside it, leaving the dead-looking side margins in the
     screenshot. Shrink-wrap it to its actual content on desktop; the
     narrower a browser window gets the more its max-width cap (still
     needed so it doesn't overflow) takes over instead. */
  width: fit-content; max-width: min(var(--max-w), 100%);
  margin: 0 auto;
  justify-content: center;
}
.hero-search select,
.hero-search input {
  height: 46px; border-radius: var(--radius); border: none;
  padding: 0 14px; font-size: 14px; font-family: 'Roboto', sans-serif;
  background: var(--white); color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  /* Mobile WebKit's native appearance (textfield / menulist) ignores the
     explicit height/padding above and collapses the control to its
     intrinsic content height instead — this is what made the keyword box
     and the Category dropdown come out different heights on a real phone
     despite both having height:46px in CSS. Stripping native appearance
     on both makes them actually obey the box model we set. */
  -webkit-appearance: none; appearance: none;
}
.hero-search input  { flex: 1; min-width: 320px; max-width: 400px; }
.hero-search select {
  min-width: 220px; max-width: 280px; cursor: pointer;
  /* Native <select> chrome ignores the height/padding above on iOS Safari
     (it renders its own taller control regardless of CSS height), so the
     dropdown came out visibly taller than the keyword input next to it.
     Stripping native appearance and drawing the arrow ourselves makes it
     obey the same box model as the text input. */
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A237E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  padding-right: 34px;
}
.hero-search .btn   { height: 46px; flex-shrink: 0; }

/* ─── STATS STRIP ────────────────────────────────────────── */
.stats-strip {
  background: rgba(26,35,126,1); padding: 22px 20px;
}
.stats-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; text-align: center;
}
.stat-item .stat-num { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-item .stat-lbl { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ─── TRUSTED-BY MARQUEE (real organisation names from live tender data) ───── */
.trusted-by { background: var(--white); padding: 36px 0; overflow: hidden; }
.trusted-by h3 {
  text-align: center; font-size: 13px; font-weight: 700; color: #999;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 20px;
}
.marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.trusted-by:hover .marquee-track { animation-play-state: paused; }
.marquee-chip {
  background: var(--bg); border: 1px solid var(--blue-light); border-radius: 20px;
  padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
}

/* ─── PARTNER LOGO CAROUSEL (real org/agency logo images, not text) ────── */
.partner-carousel { background: var(--bg); padding: 30px 0; overflow: hidden; border-top: 1px solid var(--blue-light); border-bottom: 1px solid var(--blue-light); }
.partner-carousel h3 {
  text-align: center; font-size: 13px; font-weight: 700; color: #999;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 18px;
}
.partner-track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  /* 21 real logos (not 7) now — slowed from 32s so the per-logo scroll
     speed stays the same rather than racing past 3x the content. */
  animation: marquee-scroll 90s linear infinite;
}
.partner-carousel:hover .partner-track { animation-play-state: paused; }
.partner-logo {
  height: 44px; width: auto; max-width: 140px; object-fit: contain;
  flex-shrink: 0; filter: grayscale(40%); opacity: .85; transition: filter .2s, opacity .2s;
}
.partner-logo:hover { filter: grayscale(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; overflow-x: auto; }
}

/* ─── FEATURED COMPANIES (distinct from the partner carousel above) ────── */
.featured-companies { background: var(--white); padding: 48px 20px; text-align: center; }
.featured-companies h2 {
  font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.featured-companies .fc-sub { font-size: 13px; color: #888; margin-bottom: 28px; }
.fc-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px;
}
.fc-logo-card {
  background: var(--white); border: 1px solid var(--blue-light); border-radius: 8px;
  padding: 16px 24px; display: flex; align-items: center; justify-content: center;
  width: 150px; height: 80px; box-shadow: var(--shadow);
}
.fc-logo-card img { max-width: 100%; max-height: 48px; object-fit: contain; }

/* ─── TABLE VIEWER (shared by post-tender preview + tender.js render) ──── */
.tw-table th, .tw-table td { border: 1px solid var(--border); padding: 6px 10px; }
.tw-table th { background: var(--bg); font-weight: 600; }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 48px 20px; max-width: var(--max-w); margin: 0 auto; }
.section-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; display: block; height: 3px; flex: 1;
  background: linear-gradient(to right, var(--primary), transparent);
  border-radius: 2px; margin-left: 12px;
}
.section-link { font-size: 13px; font-weight: 600; color: var(--surface); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ─── HOMEPAGE TENDER LIST + SIDEBAR LAYOUT ─────────────────────────────── */
.home-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px;
  /* No `align-items: start` here, deliberately — see the matching comment
     on .search-layout in search.html. It shrinks .home-sidebar's grid cell
     to its own content height, leaving `position: sticky` below no room to
     travel/release, so it rides fixed-in-place over the tender list for
     the rest of the page instead of scrolling away naturally near the end
     of the list. */
}
.home-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.promo-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(26,35,126,1) 100%);
  border-radius: 10px; padding: 24px; color: var(--white);
}
.promo-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.promo-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.promo-card li { font-size: 13px; color: rgba(255,255,255,.88); display: flex; align-items: center; gap: 6px; }
.promo-card .btn-primary { width: 100%; justify-content: center; }
.alert-card {
  background: var(--white); border: 1px solid var(--blue-light); border-radius: 10px; padding: 22px;
}
.alert-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.alert-card p { font-size: 13px; color: #666; margin-bottom: 14px; line-height: 1.5; }
.alert-card form { display: flex; flex-direction: column; gap: 8px; }
.alert-card input[type=email] {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px;
}
.alert-card .btn { width: 100%; justify-content: center; }
.alert-card .alert-note { font-size: 11px; color: #999; margin-top: 10px; }

/* ─── CATEGORIES GRID ────────────────────────────────────────────────────── */
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  max-width: var(--max-w); margin: 0 auto;
}
.cat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 10px; text-align: center; transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: var(--surface); transform: translateY(-2px); }
.cat-card .cat-icon { font-size: 26px; margin-bottom: 8px; }
.cat-card .cat-name { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-card .cat-count { font-size: 11px; color: #999; margin-top: 4px; }

/* ─── SERVICES ROW ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: var(--max-w); margin: 0 auto;
}
.service-card {
  background: var(--white); border: 1px solid var(--blue-light); border-radius: 10px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
}
.service-card .svc-icon { font-size: 26px; }
.service-card h3 { font-size: 14.5px; font-weight: 700; color: var(--text); }
.service-card p { font-size: 12.5px; color: #666; line-height: 1.5; flex: 1; }
.service-card a { font-size: 12.5px; font-weight: 600; color: var(--surface); }
.service-card a:hover { text-decoration: underline; }

/* ─── TESTIMONIALS ───────────────────────────────────────────────────────── */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: var(--max-w); margin: 0 auto;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--blue-light); border-radius: 10px; padding: 22px;
}
.testimonial-card .quote-mark { font-size: 28px; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.testimonial-card p { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.testimonial-card .t-name { font-size: 13px; font-weight: 700; color: var(--text); }
.testimonial-card .t-role { font-size: 12px; color: #888; }

/* ─── CONVERSION BANNER ──────────────────────────────────────────────────── */
.conversion-banner {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(23,105,210,1) 100%);
  padding: 56px 20px; text-align: center; color: var(--white);
}
.conversion-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.conversion-banner p { font-size: 14px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 24px; }
.conversion-actions { display: flex; gap: 14px; justify-content: center; }
.btn-outline-white {
  background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }

/* ─── LATEST NEWS ─────────────────────────────────────────────────────────── */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: var(--max-w); margin: 0 auto;
}
.news-card { background: var(--white); border: 1px solid var(--blue-light); border-radius: 10px; overflow: hidden; }
.news-card .news-img { height: 140px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.news-card .news-body { padding: 16px 18px; }
.news-card .news-date { font-size: 11px; color: #999; margin-bottom: 6px; }
.news-card h3 { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 8px; }
.news-card p { font-size: 12.5px; color: #666; line-height: 1.5; margin-bottom: 10px; }
.news-card a.read-more { font-size: 12.5px; font-weight: 600; color: var(--surface); }
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── TENDER CARD ────────────────────────────────────────── */
.tender-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.tender-grid-home,
.tender-grid-list { grid-template-columns: 1fr; }
.tender-card {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--blue-light); border-left: 4px solid var(--surface);
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s, border-color .15s;
  position: relative; overflow: hidden;
}
.tender-card:hover { box-shadow: 0 8px 24px rgba(5,31,76,.14); transform: translateY(-2px); border-left-color: var(--primary); }
.tender-card-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.tender-card-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  line-height: 1.4; width: 100%;
  overflow-wrap: break-word; word-break: break-word;
}
.tender-card-title a:hover { color: var(--surface); }
.tender-card-status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tender-card-org {
  font-size: 13px; color: #555;
}
.tender-card-org .org-name { font-weight: 600; color: var(--surface); }
.tender-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #666; flex-wrap: wrap;
}
.tender-card-meta .sep { color: var(--border); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-cat  { background: rgba(5,31,76,.08); color: var(--surface); }
.badge-open { background: rgba(67,160,71,.12); color: var(--success); }
.badge-closed { background: rgba(229,57,53,.1); color: var(--primary); }
.badge-type { background: rgba(250,181,21,.18); color: #8B6800; }

.tender-card-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--blue-light);
}
.tender-dates {
  font-size: 12.5px; color: #666;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tender-dates > span:first-child { display: flex; align-items: center; gap: 4px; }
.tender-type-label {
  font-size: 12px; font-weight: 600; color: var(--surface);
  background: rgba(5,31,76,.06); padding: 4px 10px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 5px;
}
.save-btn {
  background: none; border: none; cursor: pointer; padding: 2px 4px;
  color: var(--border); font-size: 20px; transition: color .15s, transform .15s;
  line-height: 1; flex-shrink: 0;
}
.save-btn:hover { transform: scale(1.1); }
.save-btn:hover, .save-btn.saved { color: var(--primary); }

@media (min-width: 640px) {
  .tender-grid-list .tender-card-footer { flex-wrap: nowrap; }
}

/* ─── BROWSE MORE ────────────────────────────────────────── */
.browse-more { text-align: center; margin-top: 32px; }

/* ─── VALUE PROP ─────────────────────────────────────────── */
.value-prop {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(26,35,126,1) 100%);
  padding: 56px 20px;
  text-align: center;
}
.value-prop h2 {
  font-size: clamp(22px, 4vw, 36px); font-weight: 700; color: var(--white);
  margin-bottom: 16px;
}
.value-prop p {
  font-size: 16px; color: rgba(255,255,255,.88);
  max-width: 680px; margin: 0 auto 28px; line-height: 1.7;
}
.value-prop .btn-primary {
  font-size: 16px; padding: 14px 32px; border-radius: 8px;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about-band {
  background: var(--white); padding: 48px 20px;
}
.about-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.about-inner h2 {
  font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: var(--text);
  margin-bottom: 16px;
}
.about-inner p { font-size: 15px; line-height: 1.8; color: #444; margin-bottom: 12px; }
.about-img-wrap {
  background: var(--bg); border-radius: 12px; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.about-img-wrap img { max-height: 160px; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark); color: rgba(255,255,255,.8);
  padding: 44px 20px 24px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
}
/* The logo PNG has an opaque white card background (same asset as the
   nav), not a transparent cutout — brightness(0) invert(1) turned every
   non-transparent pixel pure white, so the whole thing (card + shield +
   wordmark) disappeared into an indistinguishable blank white box on the
   dark footer. Render it as-is, same as the nav bar does, with a small
   rounded card so the white background reads as intentional rather than
   a graphics glitch. */
.footer-brand img { height: 40px; margin-bottom: 14px; border-radius: 6px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.footer-brand a { color: rgba(255,255,255,.7); font-size: 13px; display: block; margin-bottom: 4px; }
.footer-brand a:hover { color: var(--white); }
.footer-col h4 {
  font-size: 13px; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w); margin: 20px auto 0;
  font-size: 12px; text-align: center; color: rgba(255,255,255,.4);
}

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: #25D366; color: var(--white); width: 52px; height: 52px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ─── LOADING / SKELETON ─────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.loading-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.loading-card { background: var(--white); border-radius: 8px; border: 1px solid var(--blue-light); padding: 18px 20px; height: 160px; }

/* ─── NOTIFICATION PREFS (shared by /subscription and /account Alerts tab) ── */
.np-toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; }
.np-toggle input { width: 18px; height: 18px; accent-color: var(--surface); cursor: pointer; }
.np-cats-hint { font-size: 13px; color: var(--primary); margin-bottom: 10px; }
.np-msg { font-size: 12px; margin: 6px 0; }
.np-cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.np-cat-opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--blue-light); font-size: 14px; color: var(--text);
  cursor: pointer;
}
.np-cat-opt input { width: 16px; height: 16px; accent-color: var(--surface); cursor: pointer; }
.np-cat-selected { color: var(--surface); font-weight: 600; }
.np-contacts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--blue-light); }
.np-contacts h3 { font-size: 15px; font-weight: 700; color: var(--surface); margin-bottom: 14px; }
.np-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.np-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.np-field-row { display: flex; gap: 8px; }
.np-field-row input {
  flex: 1; height: 40px; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 12px; font-size: 14px; font-family: Roboto, sans-serif; min-width: 0;
}
.np-contact-list { list-style: none; padding: 0; margin: 10px 0 0; }
.np-contact-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; background: var(--bg); border-radius: 6px; font-size: 13px; margin-bottom: 6px;
}
.np-remove { background: none; border: none; color: var(--primary); font-size: 16px; cursor: pointer; line-height: 1; padding: 0 4px; }
.link-btn { background: none; border: none; color: var(--surface); text-decoration: underline; cursor: pointer; font-size: inherit; padding: 0; }

@media (max-width: 640px) {
  .np-cats-grid, .np-contacts-grid { grid-template-columns: 1fr; }
}

/* ─── TENDER READING PAYWALL ─────────────────────────────── */
.tender-paywall {
  position: relative; margin-top: 4px; padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(245,247,250,0) 0%, var(--bg) 35%);
  border-top: 1px solid var(--blue-light);
  text-align: center;
}
.tender-paywall::before {
  content: ''; position: absolute; top: -70px; left: 0; right: 0; height: 70px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--white) 90%);
  pointer-events: none;
}
.tender-paywall .tp-icon { font-size: 28px; margin-bottom: 8px; }
.tender-paywall h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.tender-paywall p { font-size: 13px; color: #666; max-width: 440px; margin: 0 auto 16px; line-height: 1.6; }
.tender-paywall .tp-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  /* Every text input/select/textarea on the site is below 16px on at least
     one page (hero search, filter sidebar, login/contact forms, account
     settings). Below 16px, iOS Safari zooms the whole viewport in on focus
     and never zooms back out on blur, which reads as the page "breaking" —
     this is what the keyword-search box screenshot was flagging. Force 16px
     everywhere on touch-width screens; !important is needed because every
     offending rule above sits in page-level <style> blocks that load after
     this stylesheet and would otherwise win on source order. */
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav-inner { gap: 12px; }

  /* Mobile menu is a right-side slide-in drawer, not an inline-expanding
     bar: a fixed dim backdrop behind it, and .nav-inner itself becomes the
     fixed drawer panel (it already contains logo / links / actions / the
     hamburger-as-close-button in document order, so no markup changes are
     needed on any page — reordered here with flex `order` only). */
  .nav.mobile-open::after {
    content: ''; position: fixed; inset: 0;
    background: rgba(10,14,28,.55); z-index: 150;
    animation: nav-backdrop-in .18s ease;
  }
  .nav.mobile-open { height: auto; }
  .nav.mobile-open .nav-inner {
    position: fixed; top: 0; right: 0; bottom: 0; height: 100vh;
    width: min(320px, 84vw); z-index: 200;
    display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    padding: 22px 22px 24px; gap: 0;
    background: var(--surface);
    box-shadow: -12px 0 32px rgba(0,0,0,.28);
    overflow-y: auto;
    animation: nav-drawer-in .22s cubic-bezier(.16,.84,.44,1);
  }
  @keyframes nav-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes nav-drawer-in { from { transform: translateX(16px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .nav.mobile-open::after, .nav.mobile-open .nav-inner { animation: none; }
  }

  .nav.mobile-open .nav-logo { order: -2; align-self: flex-start; margin-bottom: 26px; }
  .nav.mobile-open .nav-hamburger {
    order: -1; position: absolute; top: 14px; right: 14px; margin: 0;
    background: rgba(255,255,255,.06);
  }
  .nav.mobile-open .nav-hamburger:hover { background: rgba(255,255,255,.12); }

  .nav.mobile-open .nav-links,
  .nav.mobile-open .nav-actions {
    display: flex; flex-direction: column; width: 100%; flex: none;
    gap: 2px; margin: 0; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  .nav.mobile-open .nav-links { order: 0; border-top: none; padding-top: 0; margin-bottom: 20px; }
  /* Was `margin-top: auto`, shoving Login/Register to the very bottom of
     the 100vh drawer — on a real device with a shorter visible viewport
     (address bar, home-indicator safe area) that put them below the fold,
     invisible without scrolling the drawer itself. Flow right after the
     nav links instead so they're always immediately visible. */
  .nav.mobile-open .nav-actions { order: 1; padding-top: 20px; }

  .nav.mobile-open .nav-links a {
    width: 100%; padding: 13px 12px; font-size: 15px; font-weight: 500;
    border-radius: var(--radius); letter-spacing: .1px;
    transition: background .15s, padding-left .15s;
  }
  .nav.mobile-open .nav-links a:hover,
  .nav.mobile-open .nav-links a:active { background: rgba(255,255,255,.08); padding-left: 16px; }

  .nav.mobile-open .nav-actions { gap: 10px; align-items: flex-start; }
  .nav.mobile-open .plan-badge { align-self: flex-start; }
  .nav.mobile-open .nav-actions a,
  .nav.mobile-open .nav-actions button {
    width: 100%; padding: 11px 16px; font-size: 14px; border-radius: var(--radius);
  }
  .nav.mobile-open .nav-actions .btn { justify-content: center; }
  /* Logout kept visually secondary (outline, not a solid red block) to
     match the classic/professional treatment requested — a full-width red
     button reading as a destructive primary action looked out of place
     stacked under the account link. */
  .nav.mobile-open .nav-actions #navLogoutBtn {
    background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.3);
  }
  .nav.mobile-open .nav-actions #navLogoutBtn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

  .hero-search { flex-direction: column; width: 100%; }
  /* .hero-search input carries flex:1 1 0% for the desktop ROW layout
     (stretch to fill leftover horizontal space next to the select). Once
     this media query flips the container to flex-direction:column, that
     same flex-basis:0 applies to the vertical axis instead and collapses
     the input to its intrinsic content height (~19px) instead of the
     46px set above — the select never had an explicit flex value so it
     wasn't affected, which is why only the keyword box looked short. */
  .hero-search input, .hero-search select { width: 100%; max-width: 100%; min-width: 0; flex: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .tender-grid { grid-template-columns: 1fr; }
  .tender-card-body { padding: 16px; }
  .home-layout { grid-template-columns: 1fr; }
  /* Was `order: -1`, shoving the "Grow Your Business"/"Get Tender Alerts" promo
     cards above the entire tender list on mobile — confusing, and it broke the
     sticky positioning into an overlap with the first tender card. Let it flow
     in natural DOM order (tenders first, promo cards after) instead. */
  .home-sidebar { position: static; margin-top: 24px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* .section-title is a flex row holding the heading text, the link, AND a
     flex:1 decorative line — on mobile the heading text alone is wider than
     the viewport has room for next to the link, wrapping it mid-sentence
     with the link crammed awkwardly into the wrap. Drop the decorative
     line (it was just filler) and let the heading and link stack. */
  .section-title { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-title::after { display: none; }
  .section-link { align-self: flex-start; }

  /* .stats-inner is flex+wrap, centered — with labels of uneven width
     ("Open Tenders" vs "Directory Listings") two items can fit per row for
     one pair but not the other, so it wrapped unevenly. A grid guarantees
     two equal-width columns regardless of label length. */
  .stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .conversion-banner h2 { font-size: 22px; }
  .conversion-actions { flex-direction: column; }
}
