/* Homepage: Social feed Max & Robert
 * Loaded via wp_enqueue on front page (kv-cd-system.php).
 * HTML lives in fusion_code (markup only) – Avada strips <style> there.
 * Scoped under .kv-social so Avada theme rules do not flatten the layout.
 */
.fusion-body .kv-social,
.kv-social {
  font-family: Barlow, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: #011E3F;
  max-width: 1170px;
  margin: 0 auto;
  padding: 8px 14px 48px;
  box-sizing: border-box;
}
.kv-social *,
.kv-social *::before,
.kv-social *::after {
  box-sizing: border-box;
}
.fusion-body .kv-social a,
.kv-social a {
  text-decoration: none !important;
  color: inherit;
  border: 0;
  box-shadow: none;
}
.kv-social__head {
  text-align: center;
  margin: 8px 0 22px;
}
.kv-social__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #00A3E0;
  margin-bottom: 8px;
}
.fusion-body .kv-social__head h2,
.kv-social__head h2 {
  font-family: Bitter, Georgia, serif;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  margin: 0 0 8px;
  color: #011E3F;
  line-height: 1.25;
}
.kv-social__head p {
  margin: 0 auto;
  max-width: 640px;
  color: #4B5563;
  line-height: 1.55;
  font-size: 1.02rem;
}
.kv-social__grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}
@media (min-width: 900px) {
  .kv-social__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.kv-social-person {
  background: #fff;
  border: 1px solid rgba(1, 30, 63, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(1, 30, 63, 0.07);
  display: block;
  width: 100%;
}
.kv-social-person__top {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  background: linear-gradient(125deg, #011E3F 0%, #023056 55%, #00A3E0 140%);
  color: #fff;
}
.fusion-body .kv-social-person__top h3,
.kv-social-person__top h3 {
  font-family: Bitter, Georgia, serif;
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: #fff !important;
  line-height: 1.3;
}
.kv-social-person__top span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  display: block;
}
.kv-social-person__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fusion-body .kv-social-person__links a,
.kv-social-person__links a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
  line-height: 1.2;
}
.fusion-body .kv-social-person__links a:hover,
.kv-social-person__links a:hover {
  background: #00A3E0 !important;
  border-color: #00A3E0 !important;
  color: #fff !important;
}
.kv-social-posts {
  display: grid !important;
  gap: 12px;
  padding: 14px;
}
.fusion-body .kv-social-card,
.kv-social-card {
  display: grid !important;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(1, 30, 63, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #F8F5F0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none !important;
  color: inherit !important;
  margin: 0;
  padding: 0;
}
.kv-social-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 163, 224, 0.4);
  box-shadow: 0 10px 24px rgba(0, 163, 224, 0.12);
}
.kv-social-card__media {
  min-height: 110px;
  min-width: 92px;
  background-color: #0b1a2e;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.kv-social-card__badge {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(1, 30, 63, 0.88);
  color: #fff !important;
  padding: 3px 7px;
  border-radius: 999px;
  z-index: 1;
}
.kv-social-card__body {
  padding: 10px 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.fusion-body .kv-social-card__body strong,
.kv-social-card__body strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 6px;
  color: #011E3F !important;
  font-weight: 700;
}
.fusion-body .kv-social-card__body span,
.kv-social-card__body span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #00A3E0 !important;
}
.kv-social__note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: #6B7280;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .kv-social-card {
    grid-template-columns: 78px 1fr;
  }
  .kv-social-card__media {
    min-width: 78px;
  }
  .kv-social-person__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Name headers: Avada often forces dark text on headings */
.fusion-body .kv-social-person__top,
.fusion-body .kv-social-person__top *,
.kv-social-person__top,
.kv-social-person__top *,
.kv-social-person__top h3,
.kv-social-person__top span,
.kv-social-person__top div,
.kv-social-person__top p,
.kv-social-person__top a {
  color: #ffffff !important;
}
.kv-social-person__top span {
  color: rgba(255, 255, 255, 0.92) !important;
}
.kv-social-person__top h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.kv-social-person__links a {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.kv-social-person__links a:hover {
  color: #ffffff !important;
  background: #00A3E0 !important;
}
