/* Tenders Listing Page */
.tenders-listing-section {
    padding: 45px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filters */
.tenders-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #004b6b;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    color: #333333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #51b146;
    box-shadow: 0 0 0 3px rgba(81, 177, 70, 0.1);
}

.filter-actions {
    display: flex;
    align-items: end;
}

.clear-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #e4203270;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #c41e2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 32, 51, 0.3);
}

/* Results Count */
.results-count {
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(81, 177, 70, 0.1);
    border-radius: 10px;
    border-left: 4px solid #51b146;
}

.results-count p {
    margin: 0;
    color: #004b6b;
    font-weight: 500;
}

/* Tenders Grid */
.tenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tender-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tender-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Tender Card Header */
.tender-card-header {
    padding: 20px 25px 15px 25px;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tender-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.status-badge.closed {
    background: rgba(0, 75, 107, 0.1);
    color: #004b6b;
}

.status-badge.awarded {
    background: rgba(54, 96, 114, 0.1);
    color: #366072;
}

.status-badge.cancelled {
    background: rgba(228, 32, 51, 0.1);
    color: #e4203270;
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(238, 239, 241, 0.1);
    color: #666666;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-badge i {
    color: #51b146;
    font-size: 0.7rem;
}

.tender-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #004b6b;
    font-weight: 600;
    font-size: 0.9rem;
}

.tender-number i {
    color: #51b146;
    font-size: 0.8rem;
}

/* Tender Card Content */
.tender-card-content {
    padding: 25px;
}

.tender-card-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.tender-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tender-card-title a:hover {
    color: #51b146;
}

.tender-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Tender Info */
.tender-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 75, 107, 0.05);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #004b6b;
    font-size: 0.85rem;
    font-weight: 500;
}

.info-item i {
    color: #51b146;
    font-size: 0.8rem;
}

.info-item.deadline {
    color: #e4203270;
    font-weight: 600;
}

.info-item.deadline i {
    color: #e4203270;
}

.info-item.value {
    color: #51b146;
    font-weight: 600;
}

.info-item.value i {
    color: #51b146;
}

/* Requirements Preview */
.requirements-preview {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(81, 177, 70, 0.05);
    border-radius: 10px;
    border-left: 3px solid #51b146;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-item i {
    color: #51b146;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.requirement-item span {
    color: #333333;
    font-weight: 500;
}

/* Tender Card Footer */
.tender-card-footer {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.view-tender-btn,
.download-tender-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.view-tender-btn {
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    flex: 1;
    justify-content: center;
}

.view-tender-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
}

.download-tender-btn {
    background: transparent;
    color: #51b146;
    border: 2px solid #51b146;
    padding: 8px 16px;
    font-size: 0.8rem;
}

.download-tender-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.view-tender-btn i,
.download-tender-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-tender-btn:hover i,
.download-tender-btn:hover i {
    transform: translateX(3px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: rgba(81, 177, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #51b146;
    font-size: 2rem;
}

.no-results h3 {
    color: #004b6b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    color: #666666;
    margin-bottom: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #004b6b;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #004b6b;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

.pagination-number.active {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
    box-shadow: 0 3px 10px rgba(81, 177, 70, 0.3);
}

.pagination-dots {
    color: #999999;
    font-weight: 600;
    padding: 0 5px;
}

/* Dark Theme */
.dark-theme .tenders-listing-section {
    background: #1a1a1a;
}

.dark-theme .tenders-filters {
    background: #2d2d2d;
}

.dark-theme .filter-group label {
    color: #eeeff1;
}

.dark-theme .filter-group select {
    background: #1a1a1a;
    color: #eeeff1;
    border-color: #444444;
}

.dark-theme .filter-group select:focus {
    border-color: #51b146;
}

.dark-theme .results-count {
    background: rgba(81, 177, 70, 0.1);
}

.dark-theme .results-count p {
    color: #eeeff1;
}

.dark-theme .tender-card {
    background: #2d2d2d;
}

.dark-theme .tender-card-header {
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.dark-theme .tender-number {
    color: #eeeff1;
}

.dark-theme .tender-card-title a {
    color: #eeeff1;
}

.dark-theme .tender-card-title a:hover {
    color: #51b146;
}

.dark-theme .tender-card-excerpt {
    color: #cccccc;
}

.dark-theme .tender-info {
    background: rgba(0, 75, 107, 0.1);
}

.dark-theme .info-item {
    color: #eeeff1;
}

.dark-theme .requirements-preview {
    background: rgba(81, 177, 70, 0.1);
}

.dark-theme .requirement-item span {
    color: #e0e0e0;
}

.dark-theme .no-results {
    background: #2d2d2d;
}

.dark-theme .no-results h3 {
    color: #eeeff1;
}

.dark-theme .no-results p {
    color: #cccccc;
}

.dark-theme .pagination-btn {
    background: #2d2d2d;
    color: #eeeff1;
    border-color: #444444;
}

.dark-theme .pagination-btn:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-number {
    background: #2d2d2d;
    color: #eeeff1;
    border-color: #444444;
}

.dark-theme .pagination-number:hover {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-number.active {
    background: #51b146;
    color: #ffffff;
    border-color: #51b146;
}

.dark-theme .pagination-dots {
    color: #999999;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .tenders-listing-section {
        padding: 60px 0;
    }
    
    .tenders-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
    
    .tenders-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
}

@media (max-width: 767.98px) {
    .tenders-listing-section {
        padding: 40px 0;
    }
    
    .tenders-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tender-card-content {
        padding: 20px;
    }
    
    .tender-badges {
        flex-direction: column;
        gap: 8px;
    }
    
    .tender-info {
        gap: 8px;
        padding: 12px;
    }
    
    .tender-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .view-tender-btn,
    .download-tender-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .pagination-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-btn {
        order: 1;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .tender-card-title {
        font-size: 1.1rem;
    }
    
    .tender-card-excerpt {
        font-size: 0.9rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

