/* =====================================================
   Procurement Announcement System — Elementor Widgets
   Version: 1.2.0
   ===================================================== */

/* ── SHARED CARD ──────────────────────────────────── */
.pas-el-wrap { font-family: inherit; }

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

.pas-el-list.pas-el-layout-grid {
    display: grid;
    gap: 18px;
}

.pas-el-list.pas-el-layout-grid.pas-el-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pas-el-list.pas-el-layout-grid.pas-el-grid-3 { grid-template-columns: repeat(3, 1fr); }

.pas-el-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pas-el-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Left accent bar */
.pas-el-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #1a7f37;
    border-radius: 8px 0 0 8px;
}

.pas-el-card.pas-el-expired::before { background: #dc2626; }

.pas-el-card-inner { padding: 22px 26px; }

/* Card header — ref + badge row */
.pas-el-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Reference number badge */
.pas-el-ref {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

/* Status badges */
.pas-el-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.pas-el-badge-active  { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.pas-el-badge-expired { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Title */
.pas-el-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.pas-el-title a {
    color: #0f1f3d;
    text-decoration: none;
    transition: color 0.15s;
}

.pas-el-title a:hover { color: #2563eb; text-decoration: none; }
.pas-el-expired .pas-el-title a { color: #6b7280; }

/* Excerpt */
.pas-el-excerpt {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 14px;
}

/* Meta dates */
.pas-el-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.pas-el-meta-item {
    font-size: 12px;
    color: #6b7280;
}

.pas-el-meta-item strong { color: #374151; }

/* PDF links */
.pas-el-pdfs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
}

.pas-el-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 4px;
    transition: all 0.15s;
}

.pas-el-pdf-link:hover {
    background: #eff6ff;
    text-decoration: none;
    color: #1d4ed8;
}

/* Card footer — read more */
.pas-el-card-footer { margin-top: 14px; }

.pas-el-read-more {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0f1f3d;
    text-decoration: none;
    padding: 7px 16px;
    border: 1.5px solid #0f1f3d;
    border-radius: 6px;
    transition: all 0.15s;
}

.pas-el-read-more:hover {
    background: #0f1f3d;
    color: #fff;
    text-decoration: none;
}

/* Empty state */
.pas-el-empty {
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ── SECTION HEADING ──────────────────────────────── */
.pas-el-section { margin-bottom: 10px; }

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

.pas-el-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f1f3d;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pas-el-section-divider {
    height: 3px;
    background: #0f1f3d;
    border-radius: 2px;
    opacity: 0.15;
}

/* ── TABLE LAYOUT ─────────────────────────────────── */
.pas-el-list.pas-el-layout-table { display: block; }

.pas-el-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pas-el-table thead th {
    padding: 12px 14px;
    background: #f3f4f6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b7280;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.pas-el-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.pas-el-table tbody tr:hover { background: #f9fafb; }

.pas-el-table td {
    padding: 13px 14px;
    vertical-align: middle;
}

.pas-el-tr-expired td { opacity: 0.75; }
.pas-el-table .pas-el-title { font-weight: 600; }

/* ── TABS ─────────────────────────────────────────── */
.pas-el-tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.pas-el-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.pas-el-tab-btn:hover { color: #374151; }

.pas-el-tab-btn.active {
    color: #0f1f3d;
    border-bottom-color: #0f1f3d;
    background: #fff;
}

/* ── FORM WIDGET ──────────────────────────────────── */
.pas-el-form-wrap { font-family: inherit; }

.pas-el-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f1f3d;
    margin: 0 0 24px;
}

.pas-el-form-card {
    background: #fff;
    border: 1px solid #e4e0d8;
    border-radius: 10px;
    padding: 32px;
}

.pas-el-form-field { margin-bottom: 20px; }
.pas-el-form-field:last-child { margin-bottom: 0; }

.pas-el-form-field > label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 7px;
    color: #374151;
}

.pas-el-submit-btn {
    background: #0f1f3d;
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.pas-el-submit-btn:hover:not(:disabled) {
    background: #1e3a5f;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15,31,61,0.25);
}

.pas-el-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── LOGIN NOTICE ─────────────────────────────────── */
.pas-el-login-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 18px 22px;
    font-size: 14px;
    color: #92400e;
}

.pas-el-login-notice a { color: #0f1f3d; font-weight: 700; }

/* ── EDITOR PLACEHOLDER ───────────────────────────── */
.pas-el-placeholder {
    padding: 32px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
    .pas-el-list.pas-el-layout-grid.pas-el-grid-2,
    .pas-el-list.pas-el-layout-grid.pas-el-grid-3 {
        grid-template-columns: 1fr;
    }

    .pas-el-table { font-size: 13px; }
    .pas-el-table td, .pas-el-table th { padding: 10px 10px; }

    .pas-el-card-inner { padding: 16px 18px; }
    .pas-el-form-card { padding: 20px; }
    .pas-form-row-two { grid-template-columns: 1fr !important; }
}
