.tender-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tender-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.tender-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.tender-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.tender-service {
    margin: 0;
    font-size: 1.2em !important;
    color: #2c3e50;
    font-weight: 600 !important;
    flex: 1;
}

.tender-deadline {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.deadline-normal {
    background: #d4edda;
    color: #155724;
}

.deadline-urgent {
    background: #fff3cd;
    color: #856404;
    animation: pulse 2s infinite;
}

.deadline-expired {
    background: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.tender-card-body {
    padding: 20px;
}

.tender-meta {
    margin-bottom: 15px;
}

.tender-meta-item {
    display: flex;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.tender-meta-item .label {
    font-weight: 600;
    color: #666;
    min-width: 60px;
}

.tender-meta-item .value {
    color: #333;
    flex: 1;
}

.tender-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tender-description p {
    margin: 0 0 10px 0;
}

.tender-description p:last-child {
    margin-bottom: 0;
}

.read-more-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em !important;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #005a87;
}

.tender-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Modal Styles */
.tender-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.tender-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.tender-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    z-index: 1;
}

.tender-modal-close:hover {
    color: #000;
}

.tender-modal-body {
    padding: 30px;
}

.tender-modal-body h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.tender-modal-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
}

.tender-modal-body p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tender-grid {
        grid-template-columns: 1fr;
    }
    
    .tender-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .tender-modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Enquire Now Section */
.tender-enquire-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.enquire-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.enquire-options {
    display: flex;
    gap: 10px;
}

.enquire-option {
    padding: 6px 12px !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.85em !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid;
}

.whatsapp-option {
    background: #25D366;
    color: white !important;
    border-color: #25D366;
}

.whatsapp-option:hover {
    background: #062D36;
    border-color: #062D36;
}

.email-option {
    background: #094855;
    color: white !important;
    border-color: #094855;
}

.email-option:hover {
    background: #062D36;
    border-color: #062D36;
}

/* Responsive adjustments for enquire section */
@media (max-width: 480px) {
    .tender-enquire-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .enquire-options {
        width: 100%;
        justify-content: flex-start;
    }
}