/*
Theme Name: Tender Posters
Theme URI: https://tenderposters.com
Author: Tender Posters
Description: Custom minimal theme built for Tenderposters.com — no page builder, no unpredictable markup, full control over header/footer/menu/sidebar so nothing fights the tender system's own styling.
Version: 1.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenderposters
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --ink:#15171A;
  --ink-soft:#22262A;
  --paper:#F5F5F1;
  --card:#FFFFFF;
  --text:#1A1A1A;
  --muted:#7A7A75;
  --muted-2:#9A9A94;
  --orange:#E8792C;
  --orange-deep:#D9601A;
  --teal:#1F5D50;
  --teal-deep:#164A40;
  --red:#B23A32;
  --line:#E4E4DF;
  --row-featured:#EAF2EF;
  --field-height:52px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--text);
  font-family:Arial, 'Helvetica Neue', sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--teal-deep); }
a:hover{ color:var(--orange-deep); }

.tp-container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* ============================================================
   HEADER — dark charcoal bar, wordmark left, tab-style nav right
   ============================================================ */
.tp-site-header{
  background:var(--ink);
  border-bottom:3px solid var(--orange);
}
.tp-site-header.tp-sticky{
  position:sticky;
  top:0;
  z-index:200;
}
.tp-header-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}
@media (max-width:760px){
  .tp-header-inner{
    flex-wrap:nowrap;
    gap:12px;
    justify-content:space-between;
  }
}
.tp-wordmark{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none !important;
  flex-shrink:0;
  margin-right:auto;
}
.tp-wordmark img{
  height:40px;
  width:auto;
}
.tp-wordmark-text{
  font-family:Arial, 'Helvetica Neue', sans-serif;
  font-weight:700;
  font-size:26px;
  letter-spacing:0.02em;
  color:#fff;
  text-transform:uppercase;
  line-height:1;
}
.tp-wordmark-text span{ color:var(--orange); }

/* Primary nav — sits inside the same flex row as the wordmark on desktop
   (single line). On mobile, flex-basis:100% forces it to its own full-width
   row below, in normal document flow — no overlap, no absolute positioning. */
.tp-primary-nav{
  display:flex;
  align-items:center;
  gap:6px;
}
.tp-nav-tab{
  position:relative;
  display:inline-block;
  padding:10px 16px 16px;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  color:#9AA0A3;
  text-decoration:none !important;
  white-space:nowrap;
}
.tp-nav-tab:hover{ color:#fff; }
.tp-nav-tab.tp-nav-active{ color:var(--orange); }
.tp-nav-tab.tp-nav-active::after{
  content:'';
  position:absolute;
  bottom:2px;
  left:10px;
  right:10px;
  height:12px;
  border-bottom:3px solid var(--orange);
  border-radius:0 0 12px 12px;
}

/* Mobile: nav + hamburger fully replaced by a single "About Us" button */
.tp-mobile-about-btn{
  display:none;
}

@media (max-width:760px){
  .tp-primary-nav{ display:none !important; }
  .tp-wordmark-text{ font-size:19px; }
  .tp-mobile-about-btn{
    display:inline-block;
    flex-shrink:0;
    white-space:nowrap;
    background:#ffffff;
    border:2px solid var(--orange);
    color:var(--orange) !important;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.03em;
    font-size:15px;
    padding:8px 20px;
    border-radius:50px;
    text-decoration:none !important;
  }
}

@media (min-width:761px){
  .tp-mobile-about-btn{ display:none; }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.tp-site-main{
  max-width:1100px;
  margin:0 auto;
  padding:16px 20px 60px;
}
.tp-page-title{
  font-family:Arial, 'Helvetica Neue', sans-serif;
  font-weight:700;
  font-size:34px;
  letter-spacing:0.01em;
  color:var(--text);
  margin:0 0 24px;
  text-transform:uppercase;
}
.tp-entry-title-single{
  font-size:19px;
  font-weight:600;
  color:var(--text);
  margin:0 0 20px;
  line-height:1.35;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tp-site-footer{
  background:var(--ink);
  color:#B8BCC0;
  margin-top:40px;
}
.tp-footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:32px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:16px;
}
.tp-footer-inner a{ color:#B8BCC0; text-decoration:none; }
.tp-footer-inner a:hover{ color:var(--orange); }
.tp-footer-social{ display:flex; gap:16px; }

.tp-footer-copyright{ display:inline-block; }
.tp-copyright-line1,
.tp-copyright-line2{ display:inline; }

@media (max-width:600px){
  .tp-footer-inner{ justify-content:center; text-align:center; }
  .tp-footer-copyright{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    width:100%;
  }
  .tp-copyright-line1,
  .tp-copyright-line2{ display:block; }
}

/* ============================================================
   TENDER SYSTEM COMPONENTS (folded in from tender-style.css)
   ============================================================ */
.tp-wrap{
  --orange:#E8792C; --orange-deep:#D9601A; --blue:#1F5D50;
  --text:#1a1a1a; --muted:#8a8a8a; --muted-2:#9a9a9a;
  --row-featured:#EAF2EF;
  --field-height:52px;
  width:100%;
  margin:0;
  padding:0;
  font-family:Arial, 'Helvetica Neue', sans-serif;
  box-sizing:border-box;
}
.tp-wrap *{ box-sizing:border-box; }

.tp-search-panel{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  border:2px solid var(--blue);
  border-radius:10px;
  background:#EDEDE8;
  padding:10px;
  margin-bottom:24px;
  position:relative;
}
.tp-search-input{
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box !important;
  height:var(--field-height) !important;
  min-height:var(--field-height) !important;
  max-height:var(--field-height) !important;
  border:1px solid #d6d6d6 !important;
  border-radius:8px !important;
  padding:0 16px !important;
  margin:0 !important;
  font-size:16px !important;
  line-height:var(--field-height) !important;
  color:#333 !important;
  background:#fff !important;
  flex:2;
  min-width:0;
}
.tp-search-input::placeholder{ color:#333; font-size:16px; opacity:1; }

.tp-dropdown{
  position:relative;
  flex:1;
  min-width:130px;
  height:var(--field-height);
}
.tp-dropdown-btn{
  -webkit-appearance:none;
  appearance:none;
  box-sizing:border-box !important;
  width:100%;
  height:var(--field-height) !important;
  min-height:var(--field-height) !important;
  max-height:var(--field-height) !important;
  border:1px solid #d6d6d6 !important;
  border-radius:8px !important;
  padding:0 30px 0 16px !important;
  margin:0 !important;
  font-size:16px !important;
  line-height:var(--field-height) !important;
  color:#333 !important;
  background-color:#fff;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 10px center;
  background-size:16px;
  cursor:pointer;
  text-align:left;
  white-space:nowrap;
  overflow:visible;
}
.tp-dropdown.tp-active .tp-dropdown-btn{ border-color:var(--blue); }
.tp-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:100%;
  width:max-content;
  max-width:280px;
  max-height:280px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,0.15);
  z-index:40;
}
.tp-dropdown.tp-open .tp-dropdown-menu{ display:block; }
.tp-dropdown-item{
  padding:11px 16px;
  font-size:14.5px;
  color:#333;
  cursor:pointer;
  white-space:nowrap;
}
.tp-dropdown-item:hover{ background:#f2f2f2; }
.tp-dropdown-item.tp-selected{ background:var(--row-featured); color:var(--blue); font-weight:600; }

.tp-search-btn{
  flex:0 0 auto;
  height:var(--field-height);
  border:none;
  border-radius:8px;
  padding:0 28px;
  font-size:15px;
  font-weight:700;
  letter-spacing:0.03em;
  text-transform:uppercase;
  color:#fff;
  background:var(--blue);
  cursor:pointer;
  white-space:nowrap;
}
.tp-search-btn:hover{ opacity:0.9; }

.tp-load-more-wrap{ text-align:center; margin-top:20px; }
.tp-load-more-btn{
  border:2px solid var(--blue);
  border-radius:8px;
  padding:12px 32px;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.03em;
  color:var(--blue);
  background:#fff;
  cursor:pointer;
}
.tp-load-more-btn:hover{ background:var(--blue); color:#fff; }
.tp-load-more-btn:disabled{ opacity:0.6; cursor:default; }

.tp-search-btn,
.tp-load-more-btn,
.tp-mini-btn,
.tp-mini-btn-primary,
.tp-view-all-btn,
.tp-dropdown-btn,
.tp-list-row,
.tp-list-title{
  text-decoration:none !important;
}

@media (max-width:700px){
  .tp-search-panel{ flex-direction:column; }
  .tp-wrap{ --field-height:58px; }
  .tp-search-input,
  .tp-dropdown,
  .tp-dropdown-btn,
  .tp-search-btn{
    width:100%;
  }
  .tp-search-input,
  .tp-dropdown-btn,
  .tp-search-btn{
    font-size:16px;
  }
  .tp-dropdown-menu{ max-width:none; width:100%; }
}

.tp-list{ display:flex; flex-direction:column; }

.tp-list-row{
  display:block;
  padding:18px 0;
  text-decoration:none !important;
  border-bottom:1px solid var(--line);
  background:transparent;
}
.tp-list-row.tp-featured{ background:var(--row-featured); }
.tp-list-row:hover{ background:#ffffff; }

.tp-list-title{
  font-size:18px;
  font-weight:400;
  line-height:1.35;
  color:var(--text);
  text-decoration:none !important;
  margin-bottom:6px;
}

.tp-list-meta{
  display:flex;
  flex-wrap:wrap;
  font-size:14px;
  color:var(--muted);
}
.tp-list-meta span{ white-space:nowrap; }
.tp-list-meta span:not(:last-child)::after{
  content:"|";
  margin-left:6px;
  margin-right:6px;
  color:#ccc;
}

.tp-list-row.tp-critical .tp-list-meta{ color:#B23A32; }
.tp-list-row.tp-closed{ opacity:0.55; }

.tp-toast{
  position:fixed; bottom:20px; left:50%; transform:translateX(-50%) translateY(20px);
  background:#fff; color:var(--text); font-size:13px;
  padding:10px 16px; border-radius:6px; box-shadow:0 8px 20px rgba(0,0,0,0.25);
  opacity:0; pointer-events:none; transition:0.2s ease; z-index:999;
}
.tp-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

.tp-single-wrap{ padding:0; }
.tp-single-body{ line-height:1.7; margin-bottom:20px; }

.tp-mini-btn{
  font-size:13px; text-transform:uppercase; letter-spacing:0.03em;
  padding:10px 16px; border:1px solid #d6d6d6; border-radius:8px;
  background:transparent; color:#333; cursor:pointer; text-decoration:none; display:inline-block;
}
.tp-mini-btn-primary{ background:var(--orange); color:#fff; border-color:var(--orange); }
.tp-mini-btn:hover{ border-color:var(--orange-deep); color:var(--orange-deep); }
.tp-mini-btn-primary:hover{ opacity:0.9; color:#fff; }

.tp-locked-field{ filter:blur(5px); user-select:none; pointer-events:none; }
.tp-paywall{
  margin-top:10px; padding:20px; border:1px dashed var(--orange-deep); border-radius:10px;
  background:rgba(232,121,44,0.06); text-align:center;
}
.tp-paywall p{ margin:0 0 14px; font-size:14px; color:#4b463a; }
.tp-paywall .tp-lock-icon{ font-size:24px; display:block; margin-bottom:10px; }

.tp-related{ margin-top:36px; padding-top:24px; border-top:1px solid var(--line); }
.tp-related h3{ font-size:17px; font-weight:600; margin:0 0 10px; }
.tp-related .tp-list-row{ padding:14px 0; }
.tp-related .tp-list-title{ font-size:16px; }
.tp-view-all-wrap{ margin-top:24px; text-align:center; }
.tp-view-all-btn{
  display:inline-block; padding:12px 28px; border-radius:8px;
  background:var(--blue); color:#fff; font-weight:700; text-transform:uppercase;
  letter-spacing:0.03em; font-size:14px; text-decoration:none;
}
.tp-view-all-btn:hover{ opacity:0.9; color:#fff; }

@media (max-width:400px){
  .tp-list-title{ font-size:16.5px; }
  .tp-list-meta{ font-size:13px; }
}

/* ---------------- Sidebar widgets ---------------- */
.tp-widget{
  --widget-field-height:44px;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  border:2px solid var(--blue, #1F5D50);
  border-radius:10px;
  padding:16px;
  margin-bottom:16px;
  background:#F0F0EC;
  font-family:Arial, 'Helvetica Neue', sans-serif;
}
.tp-widget-title{
  font-size:15px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.03em;
  color:var(--orange, #E8792C);
  margin:0 0 14px;
  padding-bottom:10px;
  border-bottom:2px solid var(--orange, #E8792C);
}

.tp-login-widget form p{ margin:0 0 10px; }
.tp-login-widget label{ display:block; font-size:13px; color:#555; margin-bottom:4px; }
.tp-login-widget input[type="text"],
.tp-login-widget input[type="password"]{
  box-sizing:border-box;
  width:100%;
  height:var(--widget-field-height);
  padding:0 12px;
  border:1px solid #d6d6d6; border-radius:6px; font-size:14px;
}
.tp-login-widget input[type="submit"],
.tp-login-widget #wp-submit{
  box-sizing:border-box;
  display:block;
  width:100%;
  height:var(--widget-field-height);
  border:none; border-radius:6px; padding:0 20px;
  background:var(--blue, #1F5D50) !important; color:#fff !important; font-weight:700;
  text-transform:uppercase; font-size:13px; cursor:pointer; margin-top:4px;
}
.tp-login-howdy{ font-size:14px; margin:0 0 10px; }
.tp-subscription-status{ font-size:14px; margin:0 0 14px; color:inherit; background:transparent; padding:0; }
.tp-login-widget .tp-mini-btn{
  box-sizing:border-box;
  display:block;
  width:100%;
  height:var(--widget-field-height);
  line-height:var(--widget-field-height);
  padding:0 20px;
  text-align:center;
  background:var(--blue, #1F5D50);
  color:#fff;
  border:none;
  border-radius:6px;
}
.tp-login-widget .tp-mini-btn:hover{ opacity:0.9; color:#fff; }

.tp-tabs{ display:flex; border-bottom:2px solid #e4e4e4; margin-bottom:20px; position:relative; }
.tp-tab-btn{
  flex:1; background:none; border:none; padding:10px 8px 18px;
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.03em;
  color:#8a8a8a; cursor:pointer; position:relative; margin-bottom:-2px;
}
.tp-tab-btn.tp-tab-active{ color:var(--orange, #E8792C); }
.tp-tab-btn.tp-tab-active::after{
  content:'';
  position:absolute;
  bottom:-3px;
  left:50%;
  transform:translateX(-50%);
  width:88%;
  height:14px;
  border-bottom:3px solid var(--orange, #E8792C);
  border-radius:0 0 14px 14px;
}
.tp-tab-panel{ display:none; }
.tp-tab-panel.tp-tab-active{ display:block; }

.tp-field-error{ display:none; font-size:11.5px; color:#b23a32; margin-top:4px; }
.tp-field-error.tp-show{ display:block; }
.tp-subscribe-form input.tp-input-error{ border-color:#b23a32 !important; }

.tp-subscribe-form p{ margin:0 0 10px; }
.tp-subscribe-form input[type="text"],
.tp-subscribe-form input[type="email"],
.tp-subscribe-form input[type="password"],
.tp-subscribe-form select{
  box-sizing:border-box;
  width:100%;
  height:var(--widget-field-height);
  padding:0 12px;
  border:1px solid #d6d6d6; border-radius:6px; font-size:14px;
  color:#333;
  background:#fff;
  -webkit-appearance:none;
  appearance:none;
}
.tp-subscribe-form select{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:14px;
  padding-right:34px;
}
.tp-subscribe-form select:invalid{ color:#767676; }
.tp-subscribe-form input::placeholder{ color:#767676; }
.tp-subscribe-form input[type="submit"]{
  box-sizing:border-box;
  display:block;
  width:100%;
  height:var(--widget-field-height);
  border:none; border-radius:6px; padding:0 20px;
  background:var(--blue, #1F5D50) !important; color:#fff !important; font-weight:700;
  text-transform:uppercase; font-size:13px; cursor:pointer; margin-top:4px;
}
.tp-form-notice{ font-size:13px; padding:10px 12px; border-radius:6px; margin-bottom:14px; }
.tp-form-notice-error{ background:#fdecea; color:#b23a32; }
.tp-form-notice-success{ background:#e9f7ec; color:#2c6e3f; }

.tp-plan-intro{ font-size:14px; font-weight:700; color:#333; margin:0 0 12px; text-align:center; }
.tp-plan-cards{ display:flex; gap:10px; margin-bottom:14px; }
.tp-plan-card{
  flex:1;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  border:2px solid #d6d6d6; border-radius:8px;
  padding:16px 8px;
  background:#fff;
  cursor:pointer;
}
.tp-plan-card.tp-plan-selected{ border-color:var(--blue, #1F5D50); background:var(--row-featured); }
.tp-plan-name{
  font-size:clamp(10px, 2.6vw, 13px);
  text-transform:uppercase;
  letter-spacing:0.02em;
  color:#8a8a8a;
  font-weight:700;
  white-space:nowrap;
  line-height:1.3;
}
.tp-plan-price{
  font-size:clamp(17px, 4.2vw, 21px);
  font-weight:700;
  color:var(--blue, #1F5D50);
  margin-top:6px;
  white-space:nowrap;
  line-height:1.2;
}
@media (min-width:600px){
  .tp-plan-name{ font-size:14px; }
  .tp-plan-price{ font-size:22px; }
}

.tp-payment-intro{ font-size:13px; font-weight:700; color:#333; margin:0 0 10px; text-align:center; }
.tp-payment-options{ display:flex; gap:8px; }
.tp-payment-btn{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:12px 6px;
  border:2px solid #d6d6d6;
  border-radius:8px;
  background:#fff;
  color:#333;
  font-weight:700;
  text-transform:uppercase;
  font-size:10.5px;
  letter-spacing:0.02em;
  cursor:pointer;
}
.tp-payment-icon{ font-size:22px; line-height:1; }
.tp-payment-icon-paypal{
  font-family:Arial, sans-serif;
  font-size:15px;
  font-weight:800;
  font-style:italic;
  color:#003087;
  letter-spacing:-0.02em;
}
.tp-payment-btn:hover{ border-color:var(--blue, #1F5D50); }
.tp-payment-btn:disabled{ opacity:0.6; cursor:default; }
.tp-payment-btn.tp-payment-selected{ border-color:var(--blue, #1F5D50); background:var(--row-featured); }
.tp-payment-status{ font-size:12.5px; color:#555; margin-top:10px; }

.tp-widget-list{ display:flex; flex-direction:column; gap:12px; }
.tp-widget-item{ text-decoration:none !important; display:block; padding-bottom:10px; border-bottom:1px solid #eee; }
.tp-widget-item:last-child{ border-bottom:none; padding-bottom:0; }
.tp-widget-item-title{ font-size:14.5px; color:#1a1a1a; line-height:1.35; margin-bottom:4px; }
.tp-widget-item-meta{ font-size:12px; color:#8a8a8a; }

.tp-country-item{
  display:flex; justify-content:space-between; align-items:center;
  text-decoration:none !important; font-size:14.5px; color:#1a1a1a;
  padding:8px 0; border-bottom:1px solid #eee;
}
.tp-country-item:last-child{ border-bottom:none; }
.tp-country-item:hover{ color:var(--blue, #1F5D50); }
.tp-country-count{
  font-size:12px; color:#8a8a8a; background:#f2f2f2;
  border-radius:10px; padding:2px 9px;
}

/* Sidebar layout */
.tp-layout{ display:flex; gap:32px; align-items:flex-start; }
.tp-content-col{ flex:1; min-width:0; }
.tp-sidebar-col{ width:300px; flex-shrink:0; }
@media (max-width:900px){
  .tp-layout{ flex-direction:column; }
  .tp-sidebar-col{ width:100%; }
}

/* ============================================================
   HOMEPAGE SLIDER
   ============================================================ */
.tp-slider{
  position:relative;
  width:100%;
  aspect-ratio:16/6;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:32px;
  background:var(--ink);
}
.tp-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 0.6s ease;
  pointer-events:none;
}
.tp-slide.tp-slide-active{ opacity:1; pointer-events:auto; }
.tp-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tp-slide-caption{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:16px 24px;
  background:linear-gradient(transparent, rgba(0,0,0,0.7));
  color:#fff;
  font-size:16px;
  font-weight:600;
}
.tp-slider-dots{
  position:absolute;
  bottom:14px;
  right:20px;
  display:flex;
  gap:8px;
}
.tp-slider-dot{
  width:9px; height:9px; border-radius:50%;
  border:2px solid #fff;
  background:transparent;
  cursor:pointer;
  padding:0;
}
.tp-slider-dot.tp-dot-active{ background:var(--orange); border-color:var(--orange); }

@media (max-width:600px){
  .tp-slider{ aspect-ratio:4/3; }
}
