/* ── PROCUREMENT PAGE SPECIFIC STYLES ── */

:root {
  --navy: #003152;
  --teal: #3da58a;
  --green: #27ae60;
  --gold: #f2994a;
  --light-gray: #f8f9fa;
  --border-gray: #eef2f5;
  --text: #333333;
  --muted: #666666;
  --white: #ffffff;
  --help-bg: #ffecd1;
}

h1, h2, h3, h4, .logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── PAGE HEADER ─────────────────────────────── */
.page-header {
  padding: 120px 80px 80px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 49, 82, 0.92) 0%, rgba(0, 49, 82, 0.4) 100%);
  z-index: 1;
}

.ph-content {
  position: relative;
  z-index: 2;
}

.ph-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.ph-title {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.ph-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.ph-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 550px;
  line-height: 1.6;
}

.ph-stats {
  display: flex;
  gap: 24px;
}

.ph-stat {
  background: var(--white);
  border: 1px solid var(--border-gray);
  padding: 24px 32px;
  border-radius: 8px;
  text-align: center;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.ph-stat .num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.ph-stat .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ── BODY WRAP / SIDEBAR ─────────────────────── */
.body-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  padding: 0 80px;
  gap: 60px;
}

.sidebar {
  padding: 40px 0;
}

.sb-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.sb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border-gray);
}

.sb-link:hover {
  color: var(--navy);
}

.sb-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  stroke-width: 2.5;
}

.sb-help {
  background: var(--help-bg);
  padding: 24px;
  border-radius: 8px;
  margin-top: 40px;
}

.sb-help h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.sb-help p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.sb-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

/* ── MAIN CONTENT / TENDERS ──────────────────── */
.main-content {
  padding: 40px 0;
}

.tenders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.tenders-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.sort-row {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.sort-row select {
  border: none;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  background: transparent;
  outline: none;
}

.tender-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tender-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.tc-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
}

.badge-civil { background: #e8f5ef; color: #27ae60; }
.badge-consult { background: #e3f2fd; color: #1976d2; }
.badge-equip { background: #fff3e0; color: #f57c00; }
.tc-notice { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

.tc-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  max-width: 600px;
}

.tc-meta {
  display: flex;
  gap: 32px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.tc-meta span { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.tc-meta svg { width: 16px; height: 16px; stroke: var(--muted); }
.deadline-red { color: #eb5757; }

.btn-download {
  background: var(--navy);
  color: #fff;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* ── ARCHIVE ─────────────────────────────────── */
.archive-sec { margin-top: 60px; }
.archive-sec h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 24px; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.archive-item {
  background: var(--light-gray);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}

.ai-year { font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.ai-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.ai-icon svg { width: 24px; height: 24px; stroke: var(--navy); stroke-width: 1.5; }

/* ── STATS BAND ──────────────────────────────── */
.stats-band {
  background: var(--light-gray);
  padding: 80px;
  display: flex;
  justify-content: space-around;
  margin-top: 80px;
}

.sb-stat { text-align: center; }
.sb-num { font-size: 3.5rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.sb-lbl { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── FOOTER PROCUREMENT ──────────────────────── */
footer {
  padding: 80px 80px 40px;
  background: #f8fafd;
  border-top: 1px solid #eef2f5;
  color: #333;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.fb-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #003152;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.fb-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 450px;
}

.fb-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.fb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #003152;
  text-decoration: none;
  transition: opacity 0.2s;
}

.fb-icon:hover {
  opacity: 0.7;
}

.fb-icon svg {
  width: 20px;
  height: 20px;
  stroke: #003152;
  fill: none;
  stroke-width: 2;
}

.fc h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #003152;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.fc a {
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
  transition: color 0.2s;
}

.fc a:hover {
  color: #003152;
}

.footer-bottom {
  border-top: 1px solid #eef2f5;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-btm-links {
  display: flex;
  gap: 32px;
}

.footer-btm-links a {
  text-decoration: none;
  color: #666;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-btm-links a:hover {
  color: #003152;
}

/* ── RESPONSIVE PROCUREMENT ──────────────────── */
@media (max-width: 1024px) {
  .page-header { padding: 60px 40px 40px; }
  .ph-row { flex-direction: column; gap: 30px; }
  .body-wrap { grid-template-columns: 1fr; padding: 0 40px; gap: 40px; }
  .footer-grid { padding: 60px 40px; }
}

@media (max-width: 768px) {
  .page-header { padding: 40px 20px; }
  .ph-title { font-size: 2.5rem; letter-spacing: -1px; }
  .ph-stats { flex-direction: column; width: 100%; gap: 15px; }
  .ph-stat { min-width: 100%; }

  .body-wrap { padding: 0 20px; }
  .tender-card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 25px 20px; }
  .tc-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-download { width: 100%; justify-content: center; }

  .archive-grid { grid-template-columns: 1fr; }

  .stats-band { padding: 60px 20px; flex-direction: column; gap: 40px; }
  .sb-num { font-size: 3rem; }

  footer { padding: 60px 20px 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 0; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .footer-btm-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
}

/* ── PREMIUM TENDER TABS ────────────────────── */
.tender-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-gray);
  padding-bottom: 12px;
}

.tender-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px 8px 0 0;
}

.tender-tab:hover {
  color: var(--navy);
  background: rgba(0, 49, 82, 0.03);
}

.tender-tab.active {
  color: var(--navy);
}

.tender-tab::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.tender-tab.active::after {
  width: 100%;
}

.tender-tab .tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: all 0.3s ease;
  display: inline-block;
}

.tender-tab.active .tab-dot {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(61, 165, 138, 0.6);
}

.tender-tab .tab-count {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--light-gray);
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-gray);
}

.tender-tab.active .tab-count {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
