.tender-section-one{
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    height: 400px;
    background: rgb(34,153,170);
    background: linear-gradient(80deg, rgba(34,153,170,1) 0%, rgba(1,12,36,1) 100%);
}

.tender-section-one .about-molecule-one{
    width: 500px;
    height: 500px;
    position: absolute;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0px;
}

.tender-section-one .about-molecule-two{
    width: 500px;
    height: 500px;
    position: absolute;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 0px;
    top: 0px;
}

.tender-section-one .row {
    width: 100%; 
}

.tender-section-one .carrer-head {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}


.tender-head{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tender-head h1{
    color: white;
    text-align: center;
    font-size: 50px;
    font-weight: 200;
    line-height: 1.5;
}

.btn-carrer{
    scrollbar-width: 20px;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .tender-container {
    display: flex;
    max-width: 150px;
    flex-direction: column;
    color: rgba(255, 255, 255, 1);
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0.6px;
    font: 400 15px Helvetica, sans-serif;
  }
  .tender-link {
    display: flex;
    gap: 8px;
    padding: 13px 25px;
    border: 2px solid rgba(255, 255, 255, 1);
    text-decoration: none;
    color: inherit;
  }
  .tender-icon {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 19px;
    margin: auto 0;
  }

  .custom-notification-box{
    display: none;  
  }
  
  .notification-box{
      display: none;
  }


  /* section-two */


.tender-section {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 1520px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.tender-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    flex: 1;
    gap: 10px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 11px 20px;
    border: 2px solid #2299AA;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.search-icon {
    width: 24px;
    height: 24px;
}

.tender-list {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 3px 6px 15px rgba(0, 0, 0, 0.25);
    padding: 30px;
}

.tender-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px;
    border-bottom: 2px solid #eee;
    font-weight: 600;
    color: #2299AA;
    text-align: center;
}

.tender-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
    position: relative;
    text-align: center;
}

.title-tender {
    font-size: 12px;
}

.tender-text{
    font-size: 12px;
}
.tender-title {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* Default takes up full width */
}
/* blacklist button css */


/* From Uiverse.io by TCdesign-dev */ 

.blacklist{
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-top:30px;
    margin-bottom: 30px;
    padding-left: 42%;
    padding-right:13%;
}

.blacklist-button {
    display: inline-block;
    border-radius: 7px;
    border: none;
    background: #2299AA;
    color: white;
    font-family: inherit;
    text-align: center;
    font-size: 13px;
    /* box-shadow: 0px 14px 56px -11px #1875FF; */
    width: 10em;
    padding: 1em;
    transition: all 0.4s;
    cursor: pointer;
   }

   .blacklist-button a{
    color: white;
   }
   
   .blacklist-button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.4s;
   }
   
   .blacklist-button span:after {
    content: 'Download';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.7s;
   }

   .blacklist-button-2 span:after {
    content: 'Info';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.7s;
   }
   
   .blacklist-button:hover span {
    padding-right: 5.01em;
   }

   .blacklist-button-2:hover span {
    padding-right: 2.01em;
}
   
   .blacklist-button:hover span:after {
    opacity: 4;
    right: 0px;
   }


/* View Button */
.view-btn {
    padding: 8px 24px;
    border: 1px solid #2299AA;
    border-radius: 3px;
    background: none;
    color: #2299AA;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-block;
    max-width: 100%;
    text-align: center;
}

.view-btn:hover {
    background-color: rgba(34, 153, 170, 0.1);
}

/* Hidden Details */
.details-content {
    display: none;
    grid-column: span 7; /* Span across all columns */
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

.details-content p {
    margin: 10px 0;
}

.details-content hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 15px 0;
}

/* Adjust layout when the arrow is clicked */
.tender-item.active .details-content {
    display: block;
}

/* Status Badge */
.status-badge {
    padding: 8px 16px;
    border-radius: 3px;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
}

.status-closed {
    color: #F01414;
    border: 1px solid #F01414;
}

.status-open {
    color: #0CB70C;
    border: 1px solid #0CB70C;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0;
}

.page-info {
    color: #9C9898;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.page-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-link.active {
    background-color: #D9D9D9;
    border-color: #D9D9D9;
}

.page-link:not(:disabled):hover {
    background-color: #f5f5f5;
}
.container-fluid {
    padding-top: 28px;
}

.date-container {
    display: none;
}

.up-arrow{
    width: 25px;
    height: 25px;
}

.down-arrow{
    width: 25px;
    height: 25px;
    margin-left: 10px;
  }
  
  .up-arrow{
    width: 18px;
    height: 18px;
    margin-left: 12px;
  }

.date-date-end{
    font-weight: 400;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .tender-section {
        padding: 20px 10px;
    }

    .tender-controls {
        flex-direction: column;
        gap: 10px;
    }

    .search-container {
        width: 100%;
    }

    .tender-header {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    .tender-item {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    .tender-section-one .about-molecule-one{
        display: none;
     }
     
     .tender-section-one .about-molecule-two{
         display: none;
     }
}

@media (max-width: 768px) {
    .tender-list{
        padding: 10px;
    }

    .tender-header {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 14px;
    }

    .tender-item {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 10px;
        display: block;
        width: 100%;
    }

    .view-btn {
        padding: 6px 16px;
    }

    .details-content p {
        font-size: 12px;
    }

    .pagination {
        /* flex-direction: column; */
        align-items: center;
    }

    .page-link {
        padding: 6px 12px;
    }
    .tender-section-one .about-molecule-one{
        display: none;
     }
     
     .tender-section-one .about-molecule-two{
         display: none;
     }

     /* blacklist button*/
     .blacklist{
        display: flex;
        justify-content: center;
        gap: 50px;
        margin-top:30px;
        margin-bottom: 30px;
        padding-left: 0%;
        padding-right:0%;
    }

    .date-container {
        display: block;
    }
    
}

@media (max-width: 480px) {

    .tender-list{
        padding: 10px;
    }
    .search-input {
        padding: 8px 16px;
        font-size: 14px;
    }

    .view-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .details-content {
        font-size: 12px;
    }

    /* .pagination {
        flex-direction: column;
    } */

    .page-info {
        font-size: 12px;
    }

    .page-link {
        padding: 6px 12px;
    }
    .tender-section-one .about-molecule-one{
       display: none;
    }
    
    .tender-section-one .about-molecule-two{
        display: none;
    }
    /* .custom-padding{
        padding-right: 10%;
        padding-left: 10%;
    } */
}

.tender-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: left;
    font-family: Arial, sans-serif;
}

.tender-table th, .tender-table td {
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.tender-table th {
    background-color: #2299AA;
    color: white;
    font-weight: bold;
}

.tender-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tender-table tr:hover {
    background-color: #f1f1f1;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-open {
    background-color: #DFF2DF;
    color: #0CB70C;
}

.status-closed {
    background-color: #FCDCDC;
    color: #F01414;
}

.details-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    color: #2299AA;
}

.details-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s;
}

.page-link:hover {
    background-color: #ddd;
}

.page-link:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .tender-table th, .tender-table td {
        font-size: 12px;
        padding: 8px;
    }
    .details-content {
        font-size: 12px;
    }
    .tender-date{
        display: none;
    }

}

@media only screen and (max-width:932px){
    .details-content{
        width: 100%;
        text-align: justify;
    }
    .hidden{
        display: none;
    }
    .tender-item {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        text-align: center;
    }

    .tender-header {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        text-align: center;
        font-size: 12px;
    }
    .tender-title {
        max-width: 37ch;
    }

    .t-head-one{
        font-weight: 600;
        font-size: 12px;
    }
}






/* Base layout for desktop */
.tender-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tender-header,
.tender-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 40px;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.tender-header {
    font-weight: bold;
    background: #dedede;
}

.details-content {
    grid-column: span 7;
    display: none;
    padding: 10px;
    background: #f1f1f1;
    border-top: 1px solid #ccc;
}

.tender-item.active .details-content {
    display: block;
}

/* Small screen layout (table -> stacked cards) */
@media screen and (max-width: 991px) {
    .tender-header {
        display: none;
    }

    .tender-item {
        display: block;
        padding: 15px;
        border: 1px solid #ccc;
        border-radius: 10px;
        background-color: #fff;
    }

    .tender-item > span,
    .tender-item > div,
    .tender-item > a,
    .tender-item > .details-toggle {
        display: block;
        margin: 5px 0;
    }

    .details-content {
        display: none;
    }

    .tender-item.active .details-content {
        display: block;
        padding-top: 10px;
    }

    .details-toggle {
        text-align: right;
    }

    .tender-arrow {
        width: 20px;
        height: auto;
    }
}

/* General styling */
.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    text-align: center;
}

.status-open {
    background-color: #e6f4ea;
    color: #0f8b3d;
    border: 1px solid #0f8b3d;
}

.status-closed {
    background-color: #fceaea;
    color: #c60000;
    border: 1px solid #c60000;
}

.view-btn {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.view-btn:hover {
    background-color: #003d80;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 250px;
    max-width: 100%;
}

.search-button {
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
}

.search-icon {
    height: 20px;
    width: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.page-link {
    background-color: #f1f1f1;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.page-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ✅ Fixed media query to preserve header and grid layout on all screens */
@media screen and (max-width: 991px) {
  .tender-header {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 40px;
    font-size: 12px;
    text-align: center;
    background: #dedede;
    padding: 10px;
  }

  .tender-item {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 40px;
    font-size: 12px;
    padding: 10px;
    align-items: center;
  }

  .tender-item > * {
    font-size: 12px;
  }

  .details-content {
    font-size: 12px;
  }

  .view-btn {
    padding: 4px 10px;
    font-size: 12px;
  }

  .status-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  .search-input {
    font-size: 14px;
  }

  .tender-section {
    padding: 15px;
  }
}


/* Default: Show all */
.tender-header,
.tender-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 40px;
  gap: 10px;
}

/* ≤ 1200px: Hide End Date (4), so reduce to 6 columns */
@media (max-width: 1200px) {
  .tender-header,
  .tender-item {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 40px; /* Removed 1 col */
  }
  .tender-header span:nth-child(4),
  .tender-item div:nth-child(4) {
    display: none !important; /* End Date */
  }
}

/* ≤ 991px: Hide Type (2) + Start Date (3), reduce grid to 5 columns */
@media (max-width: 991px) {
  .tender-header,
  .tender-item {
    grid-template-columns: 2fr 1fr 1fr 40px; /* Only Title, Notification, Status, Action */
  }

  /* Hide Type */
  .tender-header span:nth-child(2),
  .tender-item div:nth-child(2) {
    display: none !important;
  }

  /* Hide Start Date */
  .tender-header span:nth-child(3),
  .tender-item div:nth-child(3) {
    display: none !important;
  }

  /* Also hide End Date again to be safe */
  .tender-header span:nth-child(4),
  .tender-item div:nth-child(4) {
    display: none !important;
  }
}

/* ≤ 768px: Same layout as 991px, already minimal */
@media (max-width: 768px) {
  .tender-header,
  .tender-item {
    grid-template-columns: 2fr 1fr 1fr 40px; /* Same as above */
  }
}

@media (min-width: 820px) and (max-width: 991px) {
  .tender-header,
  .tender-item {
    grid-template-columns: 2fr 1fr 1fr 1fr 40px; /* Add back Start Date */
  }

  /* Show Start Date again */
  .tender-header span:nth-child(3),
  .tender-item div:nth-child(3) {
    display: inline !important;
  }
}


/* Base arrow styles */
.down-arrow {
  display: inline;
}
.up-arrow {
  display: none;
}

/* Active state styles */
.tender-item.active .down-arrow {
  display: none;
}
.tender-item.active .up-arrow {
  display: inline;
}

/* Mobile-specific styles */
@media screen and (max-width: 991px) {
  /* Ensure all details are collapsed by default on mobile */
  .details-content {
    display: none !important;
  }
  
  /* Reset arrow states for mobile */
  .tender-item:not(.active) .down-arrow {
    display: inline !important;
  }
  .tender-item:not(.active) .up-arrow {
    display: none !important;
  }
  
  /* Active state for mobile */
  .tender-item.active .details-content {
    display: block !important;
  }
  .tender-item.active .down-arrow {
    display: none !important;
  }
  .tender-item.active .up-arrow {
    display: inline !important;
  }
}