/* ============================================================
   LinkedIn profile badge — JRC Partnerships
   Save as: ./css/linkedin-badge.css
   Link in <head> after your other stylesheets:
     <link rel="stylesheet" href="./css/linkedin-badge.css">

   Uses Montserrat + your site's --accent-txt variable.
   Layout: education list left, badge right on wide screens;
   stacks (badge centered below) under 820px.
   ============================================================ */

/* ---- two-column layout for the Education & Work Experience block ---- */
.edu-layout {
  display: flex;
  align-items: flex-start;   /* badge top-aligned with the list */
  gap: 48px;
  margin-top: 50px;
}
.edu-entries {
  flex: 1 1 auto;
  min-width: 0;              /* lets the column shrink instead of overflowing */
}
.edu-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.li-badge-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-txt, #5e5e5e);
  margin: 0;
}

/* stack + center once it gets too tight to sit side by side */
@media (max-width: 820px) {
  .edu-layout {
    flex-direction: column;
    align-items: center;
    gap: 36px;
    margin-top: 40px;
  }
}

/* ---------- BADGE COMPONENT ---------- */
.li-badge {
  --li-blue: #0a66c2;
  --li-card: #ffffff;
  --li-border: rgba(0, 0, 0, .12);
  --li-name: #1d1d1d;
  --li-text: #5e5e5e;
  --li-btn-text: #0a66c2;
  --li-btn-border: rgba(10, 102, 194, .6);
  --li-btn-hover: rgba(10, 102, 194, .08);
  --li-shadow: 0 0 0 1px rgba(0,0,0,.02), 0 4px 16px rgba(0,0,0,.10);

  /* default size */
  --li-w: 300px;
  --li-pad: 24px;
  --li-banner-pad: 13px 20px;
  --li-banner-logo: 22px;
  --li-wordmark: 20px;
  --li-avatar: 96px;
  --li-name-size: 19px;
  --li-headline-size: 13.5px;
  --li-btn-size: 14px;

  box-sizing: border-box;
  width: var(--li-w);
  max-width: 100%;
  overflow: hidden;
  background: var(--li-card);
  border: 1px solid var(--li-border);
  border-radius: 12px;
  box-shadow: var(--li-shadow);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.li-badge *,
.li-badge *::before,
.li-badge *::after { box-sizing: border-box; }

/* small + large variants if you want them */
.li-badge--sm {
  --li-w: 248px; --li-pad: 18px; --li-banner-pad: 10px 16px;
  --li-banner-logo: 18px; --li-wordmark: 16px; --li-avatar: 72px;
  --li-name-size: 16px; --li-headline-size: 12.5px; --li-btn-size: 13px;
}
.li-badge--lg {
  --li-w: 320px; --li-pad: 26px; --li-banner-pad: 14px 22px;
  --li-banner-logo: 24px; --li-wordmark: 21px; --li-avatar: 104px;
  --li-name-size: 20px; --li-headline-size: 14px; --li-btn-size: 15px;
}

/* dark variant — banner stays LinkedIn blue */
.li-badge--dark {
  --li-card: #1b1f23;
  --li-border: rgba(255, 255, 255, .14);
  --li-name: #ffffff;
  --li-text: rgba(255, 255, 255, .62);
  --li-btn-text: #71b7fb;
  --li-btn-border: rgba(113, 183, 251, .6);
  --li-btn-hover: rgba(113, 183, 251, .14);
  --li-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}

.li-badge__banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--li-banner-pad);
  background: var(--li-blue);
  color: #ffffff;
}
.li-badge__banner svg {
  width: var(--li-banner-logo);
  height: var(--li-banner-logo);
  flex: none;
}
.li-badge__wordmark {
  font-size: var(--li-wordmark);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}

.li-badge__body {
  padding: var(--li-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.li-badge__avatar {
  width: var(--li-avatar);
  height: var(--li-avatar);
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5b8def, #0a66c2);
  color: #fff;
  font-weight: 600;
  font-size: calc(var(--li-avatar) * .36);
  letter-spacing: .02em;
  overflow: hidden;
  margin-bottom: 14px;
}

.li-badge__name {
  margin: 0;
  font-size: var(--li-name-size);
  font-weight: 700;
  line-height: 1.25;
  color: var(--li-name);
}
.li-badge__name a { color: inherit; text-decoration: none; }
.li-badge__name a:hover { text-decoration: underline; }

.li-badge__headline {
  margin: 6px 0 0;
  font-size: var(--li-headline-size);
  line-height: 1.4;
  color: var(--li-text);
}

.li-badge__cta {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 20px;
  font-size: var(--li-btn-size);
  font-weight: 700;
  line-height: 1;
  color: var(--li-btn-text);
  border: 1.5px solid var(--li-btn-border);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.li-badge__cta:hover,
.li-badge__cta:focus-visible {
  background: var(--li-btn-hover);
  border-color: var(--li-btn-text);
}
.li-badge__cta:focus-visible {
  outline: 2px solid var(--li-btn-text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .li-badge__cta { transition: none; }
}