/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════════════ */
/* ── Figtree font for about page ── */
.about-page {
  font-family: 'Figtree', sans-serif;
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page p,
.about-page a {
  font-family: 'Figtree', sans-serif;
}

/* ── Simple sections (Prince XML, Analytics, Impressum, Privacy) ── */
.about-simple-section {
  margin-bottom: 36px;
  padding: 20px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.about-simple-section p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

/* ── Impressum special ── */
.about-impressum p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.9;
}

/* dark mode */
[data-bs-theme="dark"] .about-simple-section {
  background: #1e1e1e;
  border-color: #333;
}

[data-bs-theme="dark"] .about-simple-section p {
  color: #ccc;
}

/* ── Hero title ── */
.about-hero {
  margin-bottom: 32px;
}

.about-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-title-blue {
  color: #0a76bb;
}

/* ── Section spacing ── */
.about-section {
  margin-bottom: 40px;
}

/* ── Remove orange line on about page headings ── */
.about-page h1,
.about-page h2 {
  border-left: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
}

/* ── Section headings with orange inline bar ── */
.about-page h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.about-page h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background-color: #e87722;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

/* ── Lead card container (3 per row) ── */
.about-cards-lead {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 24px;
}

/* ── Core developers grid (4 per row) ── */
.about-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 24px;
}

/* ── Base card style ── */
.about-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  width: calc(25% - 12px);
  min-width: 190px;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.about-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── Lead cards: 3 per row ── */
.about-card--lead {
  width: calc(33.333% - 11px);
}

/* ── Profile photo ── */
.about-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}

/* ── Name + institution ── */
.about-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-card-info strong {
  font-size: 0.95rem;
  color: #111;
  font-weight: 600;
}

.about-card-info span {
  font-size: 0.78rem;
  color: #777;
}

/* ── Role badge ── */
.about-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #0a76bb;
  color: #0a76bb;
  white-space: nowrap;
  background: #f0f8ff;
}

/* ══════════════════════════════════════════════════════════════
   FUNDING CARDS
══════════════════════════════════════════════════════════════ */

.funding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.funding-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.funding-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.funding-card-title {
  display: block;
  padding: 14px 16px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a76bb;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}

.funding-card-title:hover {
  color: #085a8a;
  text-decoration: underline;
}

.funding-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.funding-card-logo {
  flex: 0 0 90px;
  text-align: center;
}

.funding-card-logo img {
  max-width: 90px;
  max-height: 60px;
  object-fit: contain;
}

.funding-card-details {
  flex: 1;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
}

.funding-card-details p {
  margin: 0;
}

/* ── Footer image ── */
.about-footer-img {
  margin-top: 48px;
  text-align: center;
}

.about-footer-img img {
  margin: auto;
  max-width: 100%;
}

.about-footer-img p {
  margin-top: 10px;
  color: #888;
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════════════════════════ */
[data-bs-theme="dark"] .about-card,
[data-bs-theme="dark"] .funding-card {
  background: #1e1e1e;
  border-color: #333;
  box-shadow: none;
}

[data-bs-theme="dark"] .about-card-info strong {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .about-card-info span {
  color: #aaa;
}

[data-bs-theme="dark"] .about-badge {
  border-color: #4a9fd4;
  color: #4a9fd4;
  background: #1a2a3a;
}

[data-bs-theme="dark"] .funding-card-title {
  color: #4a9fd4;
  border-bottom-color: #333;
}

[data-bs-theme="dark"] .funding-card-details {
  color: #aaa;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .about-card {
    width: calc(50% - 8px);
  }
  .about-card--lead {
    width: calc(50% - 8px);
  }
  .funding-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .about-card,
  .about-card--lead {
    width: 100%;
  }
}