/* Invitation to BID Section */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;600;700&display=swap');
#bac { 
    background:#dcedc8;
    padding: 120px 2rem 4rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.bid-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Scroll Animation */
.bid-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
    margin-bottom: 2rem;
}

.bid-header.reveal {
    opacity: 1;
    transform: translateY(0);
}

.bid-header h2 {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.bid-header p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #1A1A1A;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

/* BID List */
.bid-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* BID Items */
.bid-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #2e7d32;
    text-align: left;
    cursor: pointer;
}

.bid-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #f9fff9;
}

/* Header */
.bid-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bid-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b5e20;
    margin: 0;
}

/* PDF Badge */
.pdf-badge {
    background: #dc3545;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 4px rgba(220,53,69,0.3);
}

.pdf-badge i {
    font-size: 0.9rem;
}

/* Reference */
.bid-ref {
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* Description */
.bid-description {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Preview Button */
.bid-preview-hint {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bid-preview-hint i {
    font-size: 1rem;
    color: #2e7d32;
    transition: transform 0.3s ease;
}

.bid-item:hover .bid-preview-hint {
    color: #1b5e20;
    gap: 0.8rem;
    border-bottom-color: #1b5e20;
}

.bid-item:hover .bid-preview-hint i {
    transform: translateX(5px);
    color: #1b5e20;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 2.5rem;
}

/* View All Button - White text on GREEN background */
.view-all-btn {
    background: #2e7d32; /* GREEN background */
    border: 2px solid #2e7d32; /* GREEN border */
    color: white; /* White text */
    padding: 0.8rem 3rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn:hover {
    background: #fbc02d; /* YELLOW background */
    border-color: #fbc02d; /* YELLOW border */
    color: white; /* White text */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(251, 192, 45, 0.3);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* ================= MODAL STYLES ================= */
.bac-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    overflow-y: auto;
}

.bac-modal.active {
    display: block;
}

.bac-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bac-modal-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bac-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bac-modal-header h2 i {
    font-size: 1.3rem;
}

.bac-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bac-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.bac-modal-body {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

/* Download button */
.bac-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2e7d32;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.bac-download-btn:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* PDF Preview - CENTERED */
.bac-pdf-preview {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    width: 100%;
}

.bac-pdf-preview iframe {
    width: 100%;
    height: 60vh;
    border: none;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .bid-header h2 {
        font-size: 0.85rem;
    }
    .bid-header p {
        font-size: clamp(2rem, 5vw, 2.5rem);
    }
    .bid-item {
        padding: 1.25rem;
    }
    
    .bid-item-title {
        font-size: 1.2rem;
    }
    
    .bac-modal {
        padding: 10px 0;
    }
    
    .bac-modal-content {
        width: 98%;
        max-width: none;
        margin: 10px auto;
        height: auto;
    }

    .bac-modal-header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .bac-modal-header h2 {
        font-size: 0.95rem;
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }

    .bac-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .bac-modal-body {
        padding: 1rem;
    }

    .bac-download-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .bac-pdf-preview {
        min-height: 50vh;
        max-height: calc(100vh - 220px);
    }
    
    .bac-pdf-preview iframe {
        height: 50vh;
        max-height: calc(100vh - 220px);
    }
}