/* =========================================================================
   Social posts linked to an event / milestone.
   Each card keeps its platform's visual identity while still sitting
   comfortably on the site's dark glass background.
   ========================================================================= */

.ht-social{
  --ht-s-border: rgba(255,255,255,.12);
  --ht-s-muted: rgba(255,255,255,.70);
  margin: 26px 0 0;
}

.ht-social__head{
  display:flex; align-items:center; gap:14px; margin:0 0 14px;
}
.ht-social__title{
  font-size: clamp(18px, 2.4vw, 24px);
  color:#eef4fa; margin:0;
}
.ht-social__nav{ margin-left:auto; display:flex; gap:8px; }

.ht-social__arrow{
  width:38px; height:38px; display:grid; place-items:center;
  border-radius:999px; cursor:pointer;
  background:rgba(255,255,255,.06);
  border:1px solid var(--ht-s-border);
  color:#fff; transition:background .15s, opacity .15s;
}
.ht-social__arrow svg{ width:16px; height:16px; display:block; }
.ht-social__arrow:hover{ background:rgba(255,255,255,.14); }
.ht-social__arrow:disabled{ opacity:.3; cursor:default; }
.ht-social__nav[hidden]{ display:none; }

/* Track */
.ht-social__track{
  display:flex; align-items:stretch; gap:18px;
  overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  padding-bottom:4px; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.ht-social__track::-webkit-scrollbar{ display:none; }

/* ---- Card base ---- */
.ht-social-card{
  flex:0 0 320px; scroll-snap-align:start;
  display:flex; flex-direction:column;
  border-radius:16px; overflow:hidden;
  text-decoration:none; color:#f2f6fa;
  background:rgba(255,255,255,.06);
  border:1px solid var(--ht-s-border);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ht-social-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(0,0,0,.34);
}
@media (max-width:600px){ .ht-social-card{ flex-basis:82%; } }

/* Header: platform badge + name */
.ht-social-card__top{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px 10px;
}
.ht-social-card__badge{
  width:34px; height:34px; flex:0 0 auto;
  display:grid; place-items:center; border-radius:9px;
  background:rgba(255,255,255,.10); color:#fff;
}
.ht-social-card__badge svg{ width:18px; height:18px; display:block; }
.ht-social-card__who{ display:flex; flex-direction:column; min-width:0; }
.ht-social-card__name{
  font-size:14px; font-weight:800; line-height:1.2;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ht-social-card__plat{
  font-size:12px; color:var(--ht-s-muted); margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* Media */
.ht-social-card__media{
  position:relative; aspect-ratio:16 / 9; overflow:hidden;
  background:rgba(0,0,0,.25);
}
.ht-social-card__media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .3s ease;
}
.ht-social-card:hover .ht-social-card__media img{ transform:scale(1.05); }
.ht-social-card__media--ph{
  display:grid; place-items:center; color:rgba(255,255,255,.28);
}
.ht-social-card__media--ph svg{ width:44px; height:44px; }

/* Caption + CTA */
.ht-social-card__caption{
  flex:1 1 auto;
  margin:0; padding:12px 14px 8px;
  font-size:13.5px; line-height:1.5; color:rgba(255,255,255,.86);
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
.ht-social-card__cta{
  padding:10px 14px 14px;
  font-size:12.5px; font-weight:700; letter-spacing:.02em;
  color:var(--ht-s-muted); transition:color .15s;
}
.ht-social-card:hover .ht-social-card__cta{ color:#fff; }

/* =========================================================================
   Platform identities
   ========================================================================= */

/* --- LinkedIn: professional, text-forward, brand blue --- */
.ht-social-card[data-platform="linkedin"]{
  border-color:rgba(10,102,194,.42);
  background:linear-gradient(180deg, rgba(10,102,194,.16), rgba(255,255,255,.05));
}
.ht-social-card[data-platform="linkedin"] .ht-social-card__badge{ background:#0A66C2; }
.ht-social-card[data-platform="linkedin"]:hover{ border-color:rgba(10,102,194,.75); }
.ht-social-card[data-platform="linkedin"] .ht-social-card__caption{ -webkit-line-clamp:6; }

/* --- Instagram: image-forward, square media, gradient identity --- */
.ht-social-card[data-platform="instagram"]{
  border-color:rgba(221,42,123,.40);
  background:linear-gradient(180deg, rgba(131,58,180,.18), rgba(255,255,255,.05));
}
.ht-social-card[data-platform="instagram"] .ht-social-card__badge{
  background:linear-gradient(45deg,#FEDA75,#FA7E1E,#D62976,#962FBF,#4F5BD5);
}
.ht-social-card[data-platform="instagram"] .ht-social-card__media{ aspect-ratio:1 / 1; }
.ht-social-card[data-platform="instagram"]:hover{ border-color:rgba(221,42,123,.75); }
.ht-social-card[data-platform="instagram"] .ht-social-card__caption{ -webkit-line-clamp:3; }

/* --- Facebook --- */
.ht-social-card[data-platform="facebook"]{
  border-color:rgba(24,119,242,.40);
  background:linear-gradient(180deg, rgba(24,119,242,.16), rgba(255,255,255,.05));
}
.ht-social-card[data-platform="facebook"] .ht-social-card__badge{ background:#1877F2; }
.ht-social-card[data-platform="facebook"]:hover{ border-color:rgba(24,119,242,.75); }

/* --- X --- */
.ht-social-card[data-platform="x"]{
  border-color:rgba(255,255,255,.26);
  background:linear-gradient(180deg, rgba(0,0,0,.34), rgba(255,255,255,.05));
}
.ht-social-card[data-platform="x"] .ht-social-card__badge{ background:#000; }
.ht-social-card[data-platform="x"]:hover{ border-color:rgba(255,255,255,.55); }
.ht-social-card[data-platform="x"] .ht-social-card__caption{ -webkit-line-clamp:6; }

/* --- YouTube --- */
.ht-social-card[data-platform="youtube"]{
  border-color:rgba(255,0,0,.36);
  background:linear-gradient(180deg, rgba(255,0,0,.14), rgba(255,255,255,.05));
}
.ht-social-card[data-platform="youtube"] .ht-social-card__badge{ background:#FF0000; }
.ht-social-card[data-platform="youtube"]:hover{ border-color:rgba(255,0,0,.7); }

/* --- TikTok --- */
.ht-social-card[data-platform="tiktok"]{
  border-color:rgba(37,244,238,.34);
  background:linear-gradient(180deg, rgba(254,44,85,.14), rgba(255,255,255,.05));
}
.ht-social-card[data-platform="tiktok"] .ht-social-card__badge{ background:#000; }
.ht-social-card[data-platform="tiktok"] .ht-social-card__media{ aspect-ratio:4 / 5; }
.ht-social-card[data-platform="tiktok"]:hover{ border-color:rgba(37,244,238,.7); }

@media (prefers-reduced-motion: reduce){
  .ht-social__track{ scroll-behavior:auto; }
  .ht-social-card, .ht-social-card__media img{ transition:none; }
  .ht-social-card:hover{ transform:none; }
}
