* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #111;
  line-height: 1.5;
}

.tb-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.tb-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tb-logo {
  width: 86px;
  height: auto;
  display: block;
}

.tb-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.tb-nav a {
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.tb-nav a:hover {
  text-decoration: underline;
}

.tb-hero {
  background: #111;
  color: #fff;
  padding: 52px 24px;
}

.tb-container {
  max-width: 1180px;
  margin: 0 auto;
}

.tb-hero h1 {
  font-size: 38px;
  margin: 0 0 10px;
}

.tb-hero p {
  margin: 0;
  font-size: 17px;
  max-width: 760px;
}

.tb-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px 70px;
}

.tb-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 14px;
}

label {
  display: block;
  font-weight: 700;
  color: #3d2bb3;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
}

.premium-note {
  margin-top: 24px;
  padding: 14px 18px;
  border-left: 4px solid #0b902c;
  background: #f0ecff;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

button {
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
}

#searchBtn {
  background: #111;
  color: #fff;
}

#resetBtn {
  background: #eeeeee;
  color: #111;
}

h2 {
  font-size: 28px;
  margin-top: 0;
}

.result-card {
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 22px;
  margin-top: 18px;
  background: #fff;
}

.result-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.3;
}

.result-card a {
  color: #0645ad;
  font-weight: 800;
}

.result-card p {
  margin: 0;
}

@media (max-width: 760px) {
  .tb-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tb-nav {
    gap: 14px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .tb-hero h1 {
    font-size: 30px;
  }

  .tb-card {
    padding: 24px;
  }
}

.result-card {
  position: relative;
  border: 1px solid #e5e5e5;
  border-left: 6px solid #0b902c;
  border-radius: 16px;
  padding: 24px 26px;
  margin-top: 20px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.result-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
}

.result-card h3 a {
  color: #003fa3;
  text-decoration: underline;
}

.result-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
}

.result-card strong {
  color: #111;
}

@media (max-width: 760px) {
  .result-card {
    padding: 22px;
  }

  /* Remove the unwanted Open badge on tender drip cards.
   The tender title remains the clickable hyperlink. */
.result-card h3 a::after,
.tender-card h3 a::after {
  content: none !important;
  display: none !important;
}

/* FINAL FIX: hide the unwanted green Open badge on tender cards only */
.result-card::after,
.tender-card::after {
  content: none !important;
  display: none !important;
}

/* Tender Blender brand green stripe on tender cards */
.result-card {
  border-left-color: #16a34a !important;
}

/* Tender Analysis Page */
#tenderContent {
  max-width: 1100px;
  margin: 0 auto 60px auto;
  padding: 42px;
  border-radius: 18px;
  border-left: 6px solid #0b902c;
}

#tenderContent h2 {
  font-size: 32px;
  line-height: 1.35;
  color: #061b36;
  margin-bottom: 28px;
}

#tenderContent h3 {
  font-size: 22px;
  color: #0b902c;
  margin-top: 34px;
  margin-bottom: 12px;
}

#tenderContent p {
  font-size: 17px;
  line-height: 1.7;
  color: #1f2933;
  margin-bottom: 12px;
}

#tenderContent strong {
  color: #061b36;
}

#tenderContent hr {
  border: none;
  border-top: 1px solid #d8dee5;
  margin: 30px 0;
}

/* Tender Analysis Page Refinement */
#tenderContent {
  max-width: 1050px;
  margin: 0 auto 70px auto;
  padding: 44px 52px;
  background: #ffffff;
  border-radius: 22px;
  border-left: 7px solid #0b902c;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

#tenderContent h2 {
  font-size: 34px;
  line-height: 1.32;
  color: #061b36;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}

#tenderContent h3 {
  font-size: 21px;
  color: #0b902c;
  margin-top: 34px;
  margin-bottom: 14px;
}

#tenderContent p {
  font-size: 16px;
  line-height: 1.75;
  color: #1f2933;
  margin-bottom: 13px;
}

#tenderContent strong {
  color: #061b36;
  font-weight: 700;
}

#tenderContent hr {
  border: none;
  border-top: 1px solid #d9e2ec;
  margin: 34px 0 28px 0;
}

@media (max-width: 768px) {
  #tenderContent {
    padding: 28px 22px;
    border-radius: 16px;
  }

  #tenderContent h2 {
    font-size: 26px;
  }

  #tenderContent p {
    font-size: 15px;
  }
}

/* Tender Detail Rows */
#tenderContent p:has(strong) {
  background: #f8fafc;
  border: 1px solid #e3eaf1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

#tenderContent p:has(strong) strong {
  display: inline-block;
  min-width: 190px;
  color: #061b36;
}

#tenderContent h3 {
  padding-left: 12px;
  border-left: 4px solid #0b902c;
}

#tenderContent a {
  color: #0b902c;
  font-weight: 700;
}

::selection {
  background: #7c3aed;
  color: #ffffff;
}

::-moz-selection {
  background: #7c3aed;
  color: #ffffff;
}

/* Tender Analysis Title Accent */
#tenderContent h2 {
  color: #3b247a;
  border-left: 7px solid #7c3aed;
  padding: 14px 0 14px 18px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.10), rgba(255, 255, 255, 0));
  border-radius: 12px;
}

/* Final Tender Title Styling Override */
section#tenderContent.tb-card h2 {
  color: #3b247a !important;
  border-left: 8px solid #7c3aed !important;
  padding: 16px 0 16px 20px !important;
  background: #f3edff !important;
  border-radius: 14px !important;
  margin-bottom: 30px !important;
}