/* ============================================
   Procurement Announcement System - Frontend CSS
   ============================================ */

/* ---- LIST VIEW ---- */
.pas-all-wrap {
    max-width: 100%;
}

.pas-section {
    margin-bottom: 50px;
}

.pas-section-title {
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 3px solid #e2e8f0;
    margin-bottom: 20px;
}

.pas-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Procurement Card */
.pas-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    transition: box-shadow 0.2s ease;
    border-left: 5px solid #1a7f37;
}

.pas-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pas-item-old {
    border-left-color: #d63638;
    background: #fafafa;
    opacity: 0.9;
}

/* Header */
.pas-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pas-ref-badge {
    display: inline-block;
    background: #f0f6fc;
    color: #2271b1;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #c3d4e8;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 3px;
}

.pas-item-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.pas-item-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pas-item-title a:hover {
    color: #2271b1;
    text-decoration: underline;
}

/* Meta */
.pas-item-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pas-meta-item {
    font-size: 13px;
    color: #555;
}

/* Excerpt */
.pas-item-excerpt {
    font-size: 14px;
    color: #444;
    margin-bottom: 14px;
    line-height: 1.6;
}

/* PDF Downloads */
.pas-pdf-downloads {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.pas-pdf-heading {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #333;
}

.pas-pdf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pas-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #c3d4e8;
    border-radius: 4px;
    transition: background 0.2s;
}

.pas-pdf-link:hover {
    background: #f0f6fc;
    text-decoration: none;
}

/* Footer */
.pas-item-footer {
    margin-top: 10px;
}

.pas-read-more {
    font-size: 13px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.pas-read-more:hover {
    text-decoration: underline;
}

/* No posts */
.pas-no-posts {
    padding: 20px;
    background: #f6f7f7;
    border-radius: 6px;
    text-align: center;
    color: #646970;
}

/* Pagination */
.pas-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* Badge */
.pas-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pas-badge-new {
    background: #edfaef;
    color: #1a7f37;
}

.pas-badge-old {
    background: #fce8e8;
    color: #d63638;
}

/* ---- SINGLE POST VIEW ---- */
.pas-single-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
}

.pas-expired-banner {
    background: #fce8e8;
    color: #d63638;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid #f5c6c6;
}

.pas-single-header {
    margin-bottom: 20px;
}

.pas-single-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 8px 0 0;
}

.pas-single-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.pas-meta-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pas-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}

.pas-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.pas-text-red {
    color: #d63638;
}

.pas-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

/* Single PDF Downloads */
.pas-single-pdfs {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.pas-single-pdfs h3 {
    margin: 0 0 16px;
    font-size: 17px;
}

.pas-pdf-download-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pas-pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.pas-pdf-download-btn:hover {
    background: #f0f6fc;
    border-color: #2271b1;
    text-decoration: none;
}

.pas-pdf-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.pas-pdf-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}

.pas-pdf-action {
    font-size: 12px;
    color: #888;
    background: #f0f6fc;
    padding: 3px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pas-back-link {
    font-size: 14px;
    color: #2271b1;
    text-decoration: none;
}

.pas-back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .pas-field-row.two-col {
        grid-template-columns: 1fr;
    }

    .pas-item-meta {
        flex-direction: column;
        gap: 6px;
    }

    .pas-single-meta {
        grid-template-columns: 1fr;
    }

    .pas-item-header {
        flex-direction: column;
    }
}
