/* ECOMP – LinkedIn feed carousel (#WeAreEcomp) */
.we-ecomp-main .linkedin-feed-wrapper {
  position: relative;
  margin: 0 auto 60px;
  padding: 0 56px;
  text-align: left;
}
.we-ecomp-main .linkedin-feed-slider {
  padding: 6px 4px 46px;
}
.linkedin-feed-slider .swiper-slide {
  height: auto;
  display: flex;
}

/* card */
.linkedin-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(5, 35, 101, 0.08);
  color: #052365;
  text-decoration: none !important;
  font-family: "Barlow", sans-serif;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.linkedin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(5, 35, 101, 0.16);
  color: #052365;
}

.linkedin-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f2043;
}
.linkedin-card-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--li-img) center / cover no-repeat;
  filter: blur(18px) brightness(0.75);
  transform: scale(1.15);
}
.linkedin-card-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease-in-out;
}
.linkedin-card:hover .linkedin-card-image img {
  transform: scale(1.04);
}

.linkedin-card-body {
  flex: 1 1 auto;
  padding: 16px 20px 8px;
}
.linkedin-card-body.no-image {
  padding-top: 22px;
}
.linkedin-card-body p {
  margin: 0;
  font-size: 16px;
  line-height: 25px;
  font-weight: 400;
  color: #052365;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.linkedin-card-body.no-image p {
  -webkit-line-clamp: 10;
  font-size: 18px;
  line-height: 28px;
}

.linkedin-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px 18px;
}
.linkedin-card-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7a99;
  white-space: nowrap;
}
.linkedin-card-date i {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(106deg, #0084ce 28.48%, #0e2f5f 81.08%);
}
.linkedin-card-cta {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0084ce;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
  white-space: nowrap;
}
.linkedin-card:hover .linkedin-card-cta {
  gap: 14px;
}

/* nav arrows */
.linkedin-feed-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(106deg, #0084ce 28.48%, #0e2f5f 81.08%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}
.linkedin-feed-nav:hover {
  transform: translateY(-50%) scale(1.08);
}
.linkedin-feed-nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}
.linkedin-feed-prev { left: 0; }
.linkedin-feed-next { right: 0; }

/* pagination */
.linkedin-feed-slider .swiper-pagination {
  bottom: 10px;
}
.linkedin-feed-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #0e2f5f;
  opacity: 0.25;
}
.linkedin-feed-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: linear-gradient(106deg, #0084ce 28.48%, #0e2f5f 81.08%);
}

/* responsive */
@media (max-width: 1199px) {
  .we-ecomp-main .linkedin-feed-wrapper { margin-bottom: 45px; }
}
@media (max-width: 991px) {
  .we-ecomp-main .linkedin-feed-wrapper { padding: 0 44px; margin-bottom: 35px; }
  .linkedin-feed-nav { width: 38px; height: 38px; font-size: 14px; }
}
@media (max-width: 767px) {
  .we-ecomp-main .linkedin-feed-wrapper { padding: 0; margin-bottom: 25px; }
  .linkedin-feed-nav { display: none; }
  .linkedin-card-body p { font-size: 15px; line-height: 23px; }
  .linkedin-card-cta { font-size: 13px; }
}
