/* ============================================================
   TENDERSINFO — RESPONSIVE CSS  v2
   Add AFTER shared-shell.css and homepage.css
   ============================================================ */

html, body { overflow-x: hidden; width: 100%; }

/* ════════════════════════════════════════════════════════════
   REGISTER LINK — strip button styling, show as text link
   ════════════════════════════════════════════════════════════ */
.btn-register {
  background: transparent !important;
  color: var(--brand) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 0 14px !important;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: none !important;
  height: 100% !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s !important;
}
.btn-register:hover {
  color: var(--brand-dark) !important;
  background: var(--brand-light) !important;
}

/* ════════════════════════════════════════════════════════════
   MOBILE HAMBURGER — brand/navy colors
   ════════════════════════════════════════════════════════════ */
.mobile-menu-toggle {
  color: var(--navy) !important;
  background: none !important;
  border: none !important;
}
.mobile-menu-toggle svg {
  stroke: var(--navy) !important;
}
.mobile-menu-toggle:hover svg {
  stroke: var(--brand) !important;
}

/* ════════════════════════════════════════════════════════════
   UTILITY BAR — ALWAYS visible, horizontal scroll on mobile
   ════════════════════════════════════════════════════════════ */
.header-utility { display: block !important; }

.header-utility-inner {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  width: 95%;
}
.header-utility-inner::-webkit-scrollbar { display: none; }
.header-utility a { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   MOBILE DRAWER MENU
   ════════════════════════════════════════════════════════════ */
.ti-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ti-drawer-overlay.open { display: block; }

.ti-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  max-width: 88vw;
  height: 100dvh;
  height: 100vh; /* fallback */
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  box-shadow: -4px 0 32px rgba(0,0,0,0.18);
}
.ti-drawer.open { transform: translateX(0); }

.ti-drawer-head {
  background: var(--navy);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 3px solid var(--brand);
}
.ti-drawer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.ti-drawer-logo span { color: var(--brand); }

.ti-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}
.ti-drawer-close:hover { color: #fff; }
.ti-drawer-close svg { stroke: currentColor; display: block; }

.ti-drawer-cta {
  padding: 10px 14px;
  background: var(--brand-light);
  border-bottom: 1px solid rgba(255,118,0,0.15);
  flex-shrink: 0;
}
.ti-drawer-cta a {
  display: block;
  background: var(--brand);
  color: #fff !important;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(255,118,0,0.25);
  transition: background 0.2s;
}
.ti-drawer-cta a:hover { background: var(--brand-dark); }

.ti-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

.ti-drawer-section { border-bottom: 1px solid var(--border); }

.ti-drawer-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 16px 5px;
  background: var(--surface-soft);
  display: block;
}

.ti-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.ti-drawer-link:last-child { border-bottom: none; }
.ti-drawer-link:hover, .ti-drawer-link:active {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.ti-dl-arrow {
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ti-drawer-link.expanded .ti-dl-arrow {
  transform: rotate(90deg);
  color: var(--brand);
}

.ti-drawer-sub {
  display: none;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border-light);
}
.ti-drawer-sub.open { display: block; }

.ti-drawer-sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 28px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.12s, background 0.12s;
}
.ti-drawer-sub a:last-child { border-bottom: none; }
.ti-drawer-sub a:hover { color: var(--brand); background: #fff; }

.ti-drawer-sub-heading {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 16px 4px 16px;
  display: block;
  background: var(--surface-soft);
}

.ti-drawer-foot {
  background: #001830;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.ti-drawer-foot a {
  color: rgba(255,255,255,0.65);
  font-size: 11.5px;
  text-decoration: none;
  padding: 4px 10px 4px 0;
  transition: color 0.15s;
  flex: 0 0 50%;
}
.ti-drawer-foot a:hover { color: #fff; }
.ti-drawer-foot a::before { content: '› '; color: var(--brand); }

/* ════════════════════════════════════════════════════════════
   HERO SEARCH — stays horizontal at all sizes
   ════════════════════════════════════════════════════════════ */
.hero-search-wrap {
  width: 100%;
  max-width: 100%;
  flex-direction: row !important;
  flex-wrap: nowrap;
}

/* ════════════════════════════════════════════════════════════
   ██  ≤ 1280px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .header-utility-inner, .header-main-row { max-width: 95%; }
  .page-with-sidebar { max-width: 100% !important; grid-template-columns: 1fr 280px; }
  .stats-bar-inner { max-width: 95%; }
  .testi-inner, .clients-inner { max-width: 95%; }
  .footer-top, .footer-bottom { max-width: 95%; }
}

/* ════════════════════════════════════════════════════════════
   ██  ≤ 1100px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .header-utility-inner, .header-main-row,
  .stats-bar-inner, .testi-inner, .clients-inner {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .page-with-sidebar { max-width: 100%; padding: 0 16px; grid-template-columns: 1fr; }
  .right-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .right-sidebar .sw-cta, .right-sidebar .phone-cta { grid-column: span 2; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .browse-panel.active { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; max-width: 100%; padding: 0 16px; }
  .footer-bottom { max-width: 100%; padding: 14px 16px; }
  .hero-search-wrap { width: 100% !important; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   ██  ≤ 991px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  /* Utility bar: compact scroll strip */
  .header-utility-inner {
    max-width: 100%;
    padding: 0 6px;
    height: 30px;
    justify-content: flex-start;
  }
  .header-utility a { font-size: 11px; padding: 0 9px; line-height: 30px; }

  .logo img { width: 48% !important; }

  /* Hero */
  .hero-inner { padding: 28px 16px 0; }
  .hero-tagline { font-size: 26px; }
  .hero-sub { font-size: 13.5px; }
  .hero-search-wrap { width: 100%; }
  .hero-search-select { min-width: 130px; font-size: 12px; }
  .hero-search-input { font-size: 13px; padding: 12px 14px; }
  .hero-search-btn { padding: 0 16px; font-size: 12.5px; }
  .hero-cta-row { flex-wrap: wrap; margin-bottom: 24px; }

  /* Stats — 3 col grid */
  .stats-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
  .stat-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 8px; }
  .stat-item:nth-child(3n) { border-right: none; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 10px; text-align: center; }

  /* Layout */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .two-col { grid-template-columns: 1fr; }
  .browse-tabs { flex-wrap: wrap; }
  .browse-tab { flex: 1 1 48%; font-size: 12px; padding: 9px 10px; }
  .browse-panel.active { grid-template-columns: repeat(2, 1fr); }
  .page-with-sidebar { grid-template-columns: 1fr; }
  .right-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .right-sidebar .sw-cta, .right-sidebar .phone-cta { grid-column: span 2; }
  .testi-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .testimonials-section { padding: 28px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px 16px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; padding: 14px 16px; }
  .clients-grid { gap: 12px; }
  .megamenu { display: none !important; }
  .tr-title, .free-title { white-space: normal; overflow-wrap: break-word; }
  .float-cta { z-index: 150; }
  .sw-body marquee { max-height: 180px; }
}

/* ════════════════════════════════════════════════════════════
   ██  ≤ 768px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-utility-inner { height: 28px; padding: 0 4px; }
  .header-utility a { font-size: 10.5px; padding: 0 7px; line-height: 28px; }

  /* Hero */
  .hero-inner { padding: 22px 14px 0; }
  .hero-tagline { font-size: 22px; margin-bottom: 10px; }
  .hero-sub { font-size: 13px; margin-bottom: 18px; }

  /* Search bar — stays horizontal but smaller */
  .hero-search-wrap { width: 100%; border-radius: 10px; }
  .hero-search-select {
    min-width: 0;
    width: 100px;
    flex-shrink: 0;
    font-size: 11px;
    padding: 0 20px 0 8px;
    background-position: right 5px center;
  }
  .hero-search-input { flex: 1; min-width: 0; font-size: 12.5px; padding: 12px 10px; }
  .hero-search-btn { flex-shrink: 0; padding: 0 14px; font-size: 12px; gap: 5px; }
  .hero-search-btn svg { width: 12px; height: 12px; }

  .hero-quicklinks { gap: 5px; margin-bottom: 16px; }
  .hero-ql { font-size: 11px; padding: 3px 9px; }
  .hero-cta-row { flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .btn-primary, .btn-outline-navy { width: 100%; justify-content: center; padding: 13px 20px; font-size: 14px; }

  /* Stats — 2 col */
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:last-child { border-bottom: none; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { padding: 12px 8px; }
  .cat-icon { font-size: 22px; margin-bottom: 6px; }
  .cat-name { font-size: 11px; }
  .cat-count { font-size: 9.5px; }

  /* Browse */
  .browse-tabs { border-radius: 8px; }
  .browse-tab { flex: 1 1 48%; font-size: 12px; padding: 10px 8px; border-bottom: 1px solid var(--border); }
  .browse-tab:nth-child(2n) { border-right: none; }
  .browse-panel.active { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .browse-subpill { font-size: 12px; padding: 8px 10px; }

  .right-sidebar { grid-template-columns: 1fr; }
  .right-sidebar .sw-cta, .right-sidebar .phone-cta { grid-column: span 1; }
  .testi-grid { grid-template-columns: 1fr; gap: 12px; }
  .testi-inner { padding: 0 14px; }
  .testi-inner h2 { font-size: 18px; margin-bottom: 16px; }
  .clients-inner { padding: 0 14px; }
  .clients-grid { gap: 8px; }
  .client-logo { font-size: 11px; padding: 6px 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px 16px; }
  .footer-bottom { flex-direction: column; padding: 12px 16px; gap: 6px; }
  .footer-bottom p { font-size: 11px; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .free-row { padding: 10px 14px; }
  .free-title { font-size: 12.5px; }
  .tender-row { padding: 10px 14px; }
  .tr-title { font-size: 12.5px; }
  .tr-deadline { font-size: 10.5px; }
  .page-with-sidebar { padding: 0 14px; margin-top: 16px !important; }
  .browse-section { padding: 14px; }
  .browse-section h2 { font-size: 17px; }
  .section-hd h2 { font-size: 16px; }
}

/* ════════════════════════════════════════════════════════════
   ██  ≤ 600px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .header-utility-inner { height: 26px; }
  .header-utility a { font-size: 10px; padding: 0 6px; line-height: 26px; }

  /* Search — very compact horizontal, hide "Search" text */
  .hero-search-select { width: 82px; font-size: 10.5px; padding: 0 18px 0 8px; }
  .hero-search-input { font-size: 12px; padding: 11px 8px; }
  .hero-search-btn { padding: 0 12px; font-size: 0; } /* text hidden */
  .hero-search-btn svg { width: 14px; height: 14px; font-size: 14px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .browse-tab { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); justify-content: flex-start; padding: 10px 14px; }
  .browse-tab:last-child { border-bottom: none; }
  .browse-panel.active { grid-template-columns: 1fr; gap: 5px; }
  .float-btn { padding: 10px 14px; font-size: 12px; }
  .sw-header { font-size: 12.5px; padding: 10px 14px; }
  .sw-body { padding: 12px 14px; }
  .section-block { padding: 20px 0 6px; }
}

/* ════════════════════════════════════════════════════════════
   ██  ≤ 480px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .logo img { width: 70% !important; }
  .header-main-row { padding: 0 12px; }
  .hero-inner { padding: 18px 12px 0; }
  .hero-tagline { font-size: 19px; margin-bottom: 8px; }
  .hero-sub { font-size: 12px; margin-bottom: 14px; }
  .hero-search-wrap { border-radius: 8px; }
  .hero-search-select {width: 20%;font-size: 10px;padding: 0 25px 0 11px !important;min-width: 1px !important;}
  .hero-search-input { padding: 11px 8px; font-size: 11.5px; }
  .hero-search-btn { padding: 0 10px; }
  .hero-ql { font-size: 10.5px; padding: 3px 8px; }
  .hero-cta-row { gap: 8px; margin-bottom: 18px; }
  .btn-primary, .btn-outline-navy { font-size: 13.5px; padding: 12px 18px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 19px; }
  .stat-label { font-size: 9.5px; }
  .stat-item { padding: 12px 6px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .cat-icon { font-size: 20px; }
  .cat-name { font-size: 10.5px; }
  .cat-count { font-size: 9px; }
  .page-with-sidebar { padding: 0 12px; }
  .tender-row { padding: 9px 12px; }
  .tr-title { font-size: 12px; }
  .tr-location, .tr-deadline { font-size: 10px; }
  .browse-section { padding: 12px; }
  .browse-section h2 { font-size: 15px; }
  .browse-pill { font-size: 12px; padding: 8px 12px; }
  .sidebar-widget { border-radius: 10px; margin-bottom: 14px; }
  .testimonials-section { padding: 22px 0; }
  .testi-inner { padding: 0 12px; }
  .testi-inner h2 { font-size: 16px; }
  .testi-card { padding: 14px; }
  .testi-quote { font-size: 12px; }
  .clients-inner { padding: 0 12px; }
  .client-logo { font-size: 10.5px; padding: 5px 8px; }
  .footer-top { padding: 20px 12px 14px; gap: 16px; }
  .ft-logo { font-size: 18px; }
  .ft-desc { font-size: 12px; }
  .footer-bottom { padding: 10px 12px; }
  .footer-bottom p { font-size: 10.5px; }
  .float-btn { padding: 9px 13px; font-size: 11.5px; }
  .section-block { padding: 16px 0 4px; }
  .section-hd h2 { font-size: 15px; }
  .section-hd { margin-bottom: 12px; }
  .country-grid {gap: 5px !important;}
  .page-wrapper .hero-left{flex-direction: column} 
  div.dt-container.dt-empty-footer tbody>tr:last-child>*{border: none !important}
  .breadcrumb-bar {padding: 8px 14px;margin-top: 0 !important;}
  .breadcrumb-bar .breadcrumb-inner{max-width: 100%;padding: 0px 5px;}
  .cta-banner{align-items: center !important}
  .cta-banner-actions .btn-primary{text-align: center;}
}

/* ════════════════════════════════════════════════════════════
   ██  ≤ 380px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .logo img { width: 75% !important; }
  .header-main-row { height: 56px; padding: 0 10px; }
  .hero-tagline { font-size: 17px; }
  .hero-search-select { width: 66px; font-size: 9.5px; }
  .hero-search-btn { padding: 0 8px; }
  .stat-num { font-size: 17px; }
  .stat-label { font-size: 9px; }
  .cat-icon { font-size: 18px; }
  .cat-name { font-size: 10px; }
  .browse-pill { font-size: 11.5px; padding: 7px 10px; }
  .browse-tab { font-size: 11px; padding: 8px 10px; }
  .btn-primary, .btn-outline-navy { font-size: 13px; padding: 11px 16px; }
}