/* ---------- Hero (homepage) ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0.5rem 0 2.5rem 0;
  flex-wrap: wrap;
}

.hero-photo img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-text {
  flex: 1 1 380px;
  min-width: 280px;
}

.hero-text h1 {
  margin-bottom: 0.25rem;
}

/* ---------- Pill links ---------- */
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.link-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background-color: var(--bs-primary, #1f5f5b);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.link-pill:hover {
  opacity: 0.85;
}

/* ---------- Tags ---------- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem 0;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background-color: var(--bs-tertiary-bg, #f4f6f7);
  border: 1px solid var(--bs-border-color, #dfe4e6);
  font-size: 0.85rem;
}

/* ---------- CV intro block ---------- */
.cv-intro {
  padding: 1rem 1.25rem;
  background-color: var(--bs-tertiary-bg, #f4f6f7);
  border-left: 4px solid var(--bs-primary, #1f5f5b);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.cv-intro > p:last-child {
  margin-bottom: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 576px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .links-row,
  .tag-row {
    justify-content: center;
  }
}
