a, a:hover, a:focus {
    text-decoration: none !important; /* Removes underline */
}
body {
  background: #fafafd;
  color: #222;
}
.search-header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  padding: 24px 0 0 0;
}
.page-link{
        background: #ffffff;
}
.search-header .logo {
  font-size: 2em;
  font-weight: 700;
  color: #4c39dd;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 1.05em;
  font-weight: 500;
}
.search-nav a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}
.search-nav a:hover {
  color: #4c39dd;
}
.search-nav .login-btn {
  background: #4c39dd;
  color: #fff;
  border-radius: 8px;
  padding: 8px 24px;
  font-weight: 600;
  border: none;
  transition: background 0.2s;
  text-decoration: none;
}
.search-nav .login-btn:hover {
  background: #4c39dd;
  color: #fff;
}
.search-bar-section {
  padding: 15px 65px 15px 65px;
  margin-bottom: 16px;
}
.search-bar-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.search-bar-form select {
  border-radius: 8px;
  border: 1px solid #4c39dd !important;
  padding: 8px 16px;
  font-size: 15px;
  background: #ffffff;
  color: #4c39dd;
  max-width: 155px;
  height: 42px;
  outline: none;
  transition: border 0.2s;
}
.search-bar-form input[name="pincode"]{
  max-width: 155px;
}
.search-bar-form input {
  border-radius: 8px;
  border: 1px solid #4c39dd !important;
  padding: 8px 16px;
  font-size: 1em;
  background: #ffffff;
  color: #222;
  outline: none;
  transition: border 0.2s;
}

.search-bar-form input:focus,
.search-bar-form select:focus {
  border-color: #4c39dd;
  background: #fff;
}
.search-bar-form .search-btn {
  background: #4c39dd;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  font-size: 1em;
  transition: background 0.2s;
}
.search-bar-form .search-btn:hover {
  background: #4c39dd;
}
.search-bar-form .clear-btn {
  background: transparent;
  color: #4c39dd;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  border: 1px solid #4c39dd !important;
  border: none;
  font-size: 1em;
  margin-left: 0px;
  transition: background 0.2s;
}
.search-bar-form .clear-btn:hover {
  background: #e0e0e7;
}
.search-heading {
  font-size: 23px;
  font-weight: 500;
  color: #4c39dd;
}
.fa {
  margin-right: 5px;
}
.breadcrumb-section {
  font-size: 0.98em;
  color: #888;
  margin-bottom: 10px;
  margin-top: 10px;
}
.breadcrumb-section a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-section span {
     margin: 0;
    color: #4c39dd;
}
.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filter-tag {
  background: #f3f3fa;
  color: #000;
  border-radius: 8px;
  border: 1px solid #4c39dd !important;
  padding: 6px 18px;
  font-size: 1em;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-tag .fa-xmark {
  font-size: 1em;
  margin-left: 4px;
  cursor: pointer;
}
.reset-btn {
  background: #4c39dd;
  color: #fff;
  border-radius: 8px;
  padding: 8px 25px;
  font-size: 1em;
  font-weight: 500;
  border: none;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.reset-btn:hover {
  background: #4c39dd;
}
.search-main {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}
.search-results {
  flex: 3;
}
.search-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  border-radius: 0px;
  /* box-shadow: 0 2px 16px rgba(0,0,0,0.04); */
  padding: 0px 18px;
  min-width: 260px;
  max-width: 320px;
  height: fit-content;
  position: sticky;
  top: 32px;
  align-self: start;
}
.sidebar-title {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 0px;
  color: #222;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.sidebar-list li {
  margin-bottom: 10px;
}
.sidebar-list a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.sidebar-list a:hover {
  color: #4c39dd;
  text-decoration: underline;
}
.sidebar-show-more {
  color: #4c39dd;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2px;
  display: inline-block;
}
.result-content{
        font-size: 14px;
    padding-bottom: 15px;
}
.search-results-title {
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #000;
}
.search-bar-title {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #4c39dd;
}
.search-results-desc {
  font-size: 1em;
  color: #555;
  margin-bottom: 18px;
}
.results-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  font-size: 1em;
  font-weight: 500;
}
.results-tab {
  color: #000;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  border-radius: 0px;
  padding: 6px 0px;
  cursor: pointer;
  transition: background 0.2s;
}
.results-tab.active {
background: transparent;
    color: #4c39dd;
    border-bottom: 2px solid;
    border-radius: 0;
    font-weight: 500;
}

.results-tab.active:after{
    
}
.results-tab:hover {
  background: transparent;
  color: #4c39dd;
}
.tender-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 24px 20px;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tender-card .tender-title a {
  font-size: 22px;
  font-weight: 700;
  color: #222 !important;
  margin-bottom: 4px;
}
.tender-card .tender-title a:hover {
    color: #222 !important; /* A darker blue for hover */
}
.tender-card .tender-id {
  font-size: 0.98em;
  color: #4c39dd;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: right;
}
.tender-card .tender-meta {
  display: flex;
  gap: 50px;
  font-size: 1em;
  color: #888;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.tender-card .tender-meta strong {
font-weight: 400;
    font-size: 15px !important;
}
.tender-card .tender-amount {
    font-weight: 400;
    font-size: 15px !important;
}
.meta-texts strong {
}
.tender-card .tender-location {
  font-size: 14px;
  color: #000;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tender-card .newtender-location {
    background: #4c39dd;
    color: #fff;
    padding: 3px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
}
.tender-card .tender-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.tender-card .tender-action-btn {
      background: #ffffff;
    color: #4c39dd;
    border-radius: 5px;
    border: 1px solid #4c39dd !important;
    padding: 5px 18px;
    font-weight: 500;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
  text-decoration: none;
}
.tender-card .tender-action-btn.download {
  background: #4c39dd;
  color: #fff;
}
.tender-card .tender-action-btn:hover {
  background: #e0e0e7;
  color: #4c39dd;
}
.tender-card .tender-action-btn.download:hover {
  background: #4c39dd;
  color: #fff;
}
.forflex {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}
.tender-amount-text {
  white-space: nowrap;
  display: inline-flex;
}
.tender-description {
  font-size: 14px;
  color: #4d4d4d;
}
.meta-texts {
    font-size: 14px;
    color: #000;
    font-weight: 700;
    display: flex;
    gap: 2px;
    flex-direction: column;
    align-items: self-start;
}

.pagination-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0px;
  margin-top: 12px;
  margin-bottom: 24px;
}
.pagination-btn {
  background: #f3f3fa;
  color: #4c39dd;
  border-radius: 0px;
  padding: 6px 14px;
  font-size: 1em;
  border: 1px solid #888 !important;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.pagination-btn.active {
  background: #4c39dd;
  color: #fff;
}
.pagination-btn:hover {
  background: #e0e0e7;
  color: #4c39dd;
}
.footer-section {
  background: linear-gradient(90deg, #4c39dd 0%, #4c39dd 100%);
  color: #fff;
  padding: 48px 0 24px 0;
  margin-top: 48px;
}
.footer-section .footer-logo {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-section .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 1em;
  font-weight: 500;
}
.footer-section .footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-section .footer-links a:hover {
  text-decoration: underline;
  color: #e0e0e7;
}
.footer-section .footer-contact {
  font-size: 1em;
  margin-bottom: 8px;
}
.footer-section .footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.footer-section .footer-social a {
  color: #fff;
  font-size: 1.2em;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.footer-section .footer-social a:hover {
  background: #fff;
  color: #4c39dd;
}
.footer-section .footer-bottom {
  font-size: 0.95em;
  color: #e0e0e7;
  margin-top: 24px;
  text-align: center;
}
.search-main-section {
  padding-left: 65px;
  padding-right: 65px;
  padding-bottom: 40px;
}
/* Make header sticky */
#header {
  position: sticky;
  top: 0;
  z-index: 1002;
  background: #fff;
}

/* Make search bar section sticky below header */
.search-bar-section {
}
.sidebar-one, .sidebar-two{
   background: #fff !important;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04); 
}
/* Add to search.css if not present */

/* Responsive: remove sticky on mobile if needed */
@media (max-width: 576px) {
  #header,
  .search-bar-section {
    position: static;
    top: unset;
    z-index: unset;
  }
}

/* Responsive Adjustments updated  */

@media (max-width: 992px) {
  .search-main-section {
    padding: 10px 35px;
  }

  .search-main {
    flex-direction: column;
  }

  .search-bar-section {
    padding: 25px 35px;
  }

  .search-bar-form .clear-btn {
    margin-left: 0;
  }

  .search-sidebar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between; /* ensures equal spacing */
    gap: 0; /* no internal gap needed */
    position: static !important;
    top: unset !important;
    padding: 0 !important;
    max-width: 100% !important;
    min-width: unset !important;
    align-self: unset !important;
  }

  .sidebar-one,
  .sidebar-two {
    width: 48% !important; /* slightly less than 50% to allow for outer padding */
    box-sizing: border-box;
    padding: 0; /* remove internal padding */
  }
}



/* Mobile view adjustments */
@media (max-width: 576px) {
  /* Container padding */
  .search-main-section {
    padding: 12px 20px;
  }
  .search-bar-section {
    padding: 20px 20px;
  }

  /* Search form stacked */
  .search-bar-form {
    /* flex-direction: column; */
    gap: 10px;
    align-items: stretch;
  }
  /* .search-bar-form input,
  .search-bar-form select,
  .search-bar-form .search-btn,
  .search-bar-form .clear-btn {
    width: 100%;
  } */
  .search-bar-form .clear-btn {
    margin-left: 0;
  }

  /* Cards */
  .tender-card {
    padding: 14px 12px;
    margin-bottom: 14px;
  }

  /* Title + ID stacked */
  /* .tender-card .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  } */
  .tender-card .tender-title {
    width: 100%;
    text-align: left;
    font-size: 1em;
  }
  .tender-card .tender-id {
    width: 100%;
    text-align: left;
    font-size: 0.85em;
    margin-bottom: 6px;
  }
  /* Title + ID stacked full width */
  .tender-card .forflex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .tender-card .tender-meta {
    flex-direction: column;
    gap: 6px;
  }
  .tender-card .tender-actions {
    flex-direction: column;
    gap: 8px;
  }
  /* Follow + Download side by side (50% each) */
  .tender-card .tender-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
  }
  .tender-card .tender-action-btn {
    width: 100%;
    justify-content: center;
  }

  /* Pagination */
  .pagination-section {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pagination-btn {
    padding: 5px 10px;
    font-size: 0.9em;
  }

  /* Sidebar below results */
  .search-main {
    flex-direction: column;
  }
  .search-sidebar {
    padding: 0;
    max-width: 100%;
    position: static;
   gap: 20px;
    display: flex !important;
    flex-direction: column !important;


  }

   .sidebar-one,
  .sidebar-two {
    width: 100% !important; /* slightly less than 50% to allow for outer padding */
    box-sizing: border-box;
    padding: 0; /* remove internal padding */
  }
  .sidebar-title {
    font-size: 1em;
  }
  .sidebar-list a {
    font-size: 13px;
  }

  .breadcrumb-section {
    margin-top: 10px;
  }
}
