/**
 * LinkedIn feed carousel — Strategic HR Consultancy
 * Data source: SociableKIT embed 25691649 (accentapi JSON feed)
 */

.linkedin-carousel-section {
  background: linear-gradient(180deg, var(--tone-surface-b) 0%, var(--tone-surface-d) 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.linkedin-carousel-section .section-header {
  margin-bottom: 0;
  text-align: left;
}

.linkedin-carousel-section .section-title {
  margin-bottom: 0.5rem;
}

.linkedin-carousel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.linkedin-carousel__lead {
  margin: 0;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
  font-weight: 500;
}

.linkedin-carousel__follow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 102, 194, 0.25);
  background: #fff;
  color: #0a66c2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.linkedin-carousel__follow:hover {
  border-color: rgba(10, 102, 194, 0.45);
  box-shadow: 0 8px 24px rgba(10, 102, 194, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.linkedin-carousel__follow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.linkedin-carousel-section .container {
  max-width: 1180px;
}

[data-linkedin-feed-carousel] {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.linkedin-feed-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.linkedin-feed-carousel__viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 3.25rem;
  box-sizing: border-box;
}

.linkedin-feed-carousel__loading,
.linkedin-feed-carousel__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 280px;
  padding: 2rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  color: var(--text-body);
}

.linkedin-feed-carousel__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(10, 102, 194, 0.15);
  border-top-color: #0a66c2;
  border-radius: 50%;
  animation: linkedin-feed-spin 0.8s linear infinite;
}

@keyframes linkedin-feed-spin {
  to {
    transform: rotate(360deg);
  }
}

.linkedin-feed-carousel__error-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.linkedin-feed-carousel__company-link {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: #0a66c2;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.linkedin-feed-carousel__company-link:hover {
  background: #004182;
  text-decoration: none;
}

.linkedin-feed-carousel__swiper {
  overflow: hidden;
  padding-bottom: 2.75rem;
  width: 100%;
  margin: 0 auto;
}

.linkedin-feed-carousel__swiper .swiper-wrapper {
  align-items: stretch;
}

.linkedin-feed-carousel__nav {
  width: 44px;
  height: 44px;
  margin-top: 0;
  top: 42%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  color: var(--navy);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.linkedin-feed-carousel__nav--prev {
  left: 0;
}

.linkedin-feed-carousel__nav--next {
  right: 0;
}

.linkedin-feed-carousel__nav::after {
  font-size: 1rem;
  font-weight: 700;
}

.linkedin-feed-carousel__nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.linkedin-feed-carousel__nav.swiper-button-disabled {
  opacity: 0.35;
}

.linkedin-feed-carousel__pagination {
  bottom: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
}

.linkedin-feed-carousel__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(46, 57, 74, 0.25);
  opacity: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.linkedin-feed-carousel__pagination .swiper-pagination-bullet-active {
  background: var(--navy);
  transform: scale(1.2);
}

.linkedin-feed-card {
  height: auto;
  display: flex;
}

.linkedin-feed-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-feed-card__link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.linkedin-feed-card__link:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 3px;
}

.linkedin-feed-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--tone-surface-c);
  overflow: hidden;
  flex-shrink: 0;
}

.linkedin-feed-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.linkedin-feed-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}

.linkedin-feed-card__linkedin-icon svg {
  width: 48px;
  height: 48px;
  fill: rgba(255, 255, 255, 0.92);
}

.linkedin-feed-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.linkedin-feed-card__date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.linkedin-feed-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-body);
  flex: 1 1 auto;
}

.linkedin-feed-card__metrics {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.linkedin-feed-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0a66c2;
}

.linkedin-feed-card__cta::after {
  content: " →";
}

@media (max-width: 767px) {
  .linkedin-feed-carousel__viewport {
    padding: 0;
  }

  .linkedin-carousel__header {
    margin-bottom: 1.25rem;
  }

  .linkedin-feed-carousel__nav {
    display: none;
  }

  .linkedin-feed-carousel__swiper {
    padding-bottom: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .linkedin-feed-carousel__spinner {
    animation: none;
  }

  .linkedin-feed-card__link,
  .linkedin-feed-carousel__nav,
  .linkedin-carousel__follow {
    transition: none;
  }

  .linkedin-feed-card__link:hover {
    transform: none;
  }
}
