/* ============================================================
   STYLES ADDITIONS
   Append this block to the END of your existing styles.css
   ============================================================ */

/* ── Resources Section ── */
#resources {
  padding: 80px 0;
  background: var(--bg-alt, #f8f9fa);
}

.section-lead {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-muted, #666);
  font-size: 1.05rem;
  line-height: 1.7;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.resource-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.resource-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.resource-card.resource-in-development {
  border-left: 3px solid #f59e0b;
}

.resource-card.resource-planned {
  border-left: 3px solid #9ca3af;
  opacity: 0.85;
}

.resource-card.resource-available {
  border-left: 3px solid #10b981;
}

.resource-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.resource-icon {
  font-size: 1.4rem;
}

.resource-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #888);
  flex: 1;
}

.resource-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.resource-status.in-development {
  background: #fef3c7;
  color: #92400e;
}

.resource-status.planned {
  background: #f3f4f6;
  color: #6b7280;
}

.resource-status.available {
  background: #d1fae5;
  color: #065f46;
}

.resource-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #111);
  margin: 0 0 10px;
  line-height: 1.3;
}

.resource-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  line-height: 1.6;
  margin: 0 0 16px;
}

.resources-note {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted, #888);
  font-size: 0.9rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Insights status badges (enhanced) ── */
.insight-status.in-development {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.insight-status.planned {
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.insight-status.available {
  background: #d1fae5;
  color: #065f46;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Sports / Facilities project card placeholder color ── */
.card-img-placeholder.sports {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
}

/* ── FIDIC Yellow Book contract badge on project cards ── */
.contract-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 52, 96, 0.92);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}

/* ── RTL support for resources ── */
[dir="rtl"] .resource-card.resource-in-development {
  border-left: none;
  border-right: 3px solid #f59e0b;
}

[dir="rtl"] .resource-card.resource-planned {
  border-left: none;
  border-right: 3px solid #9ca3af;
}

[dir="rtl"] .resource-card.resource-available {
  border-left: none;
  border-right: 3px solid #10b981;
}

/* ── Detail page contract info ── */
.detail-contract {
  margin-top: 12px;
  padding: 10px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e40af;
  display: inline-block;
}

/* ── Button small variant ── */
.btn.btn-sm {
  font-size: 0.82rem;
  padding: 6px 16px;
}

@media (max-width: 640px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Hero Headshot ── */
.hero-photo-wrap {
  float: right;
  margin: 0 0 1.5rem 2.5rem;
  line-height: 0;
}
.hero-photo {
  display: block;
  width: 180px;
  height: 240px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 48px rgba(0,0,0,0.32);
}
@media (prefers-color-scheme: dark) {
  .hero-photo {
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  }
}
@media (max-width: 640px) {
  .hero-photo-wrap {
    float: none;
    display: flex;
    justify-content: center;
    margin: 0 auto 1.5rem;
  }
  .hero-photo {
    width: 130px;
    height: 173px;
  }
}