/* ===== LATEST IN EUROPE ===== */
#latest-europe {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 0 28px;
}

#latest-europe .latest-wrap {
  position: relative;
}

#latest-europe .latest-title {
  margin: 0 0 10px;
  font-size: 2rem !important;
  line-height: 1.06 !important;
  letter-spacing: -0.01em;
  font-weight: 900;
  color: var(--ohdsi-blue) !important;
}

#latest-europe .latest-subtitle {
  margin: 0 0 24px;
  font-size: 2rem !important;
  line-height: 1.18 !important;
  font-weight: 700;
  color: var(--ohdsi-blue) !important;
}

#latest-europe .latest-subtitle .accent {
  color: #d5961e;
  font-weight: 400;
}

#latest-europe .latest-status,
.ohdsi-linkedin-feed .ohdsi-linkedin-feed__status {
  margin: 0px 0 0 0px;
  color: #153d67;
  font-weight: 600;
}

#latest-europe .latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#latest-europe .latest-grid > .ohdsi-linkedin-feed {
  grid-column: 1 / -1;
}

/* ===== FEED LAYOUT ===== */
.ohdsi-linkedin-feed {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: visible;
}

.ohdsi-linkedin-feed::before,
.ohdsi-linkedin-feed::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 92px;
  height: 72px;
  transform: translateY(-50%);
  z-index: 4;
}

.ohdsi-linkedin-feed::before {
  left: -92px;
}

.ohdsi-linkedin-feed::after {
  right: -92px;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__track {
  display: block;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__stack {
  position: relative;
  width: 100%;
  overflow: visible;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__page {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: stretch;
  overflow: visible;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide {
  display: flex;
  padding: 0 2px 12px;
  box-sizing: border-box;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide .ohdsi-tileCard {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* ===== CARD TRANSITIONS ===== */
.ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide.is-enter {
  animation: ohdsiLinkedinCardIn 500ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: var(--ohdsi-enter-delay, 0ms);
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide.is-nav-out {
  transform-origin: center center;
  animation: ohdsiLinkedinCardOut 450ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide.is-nav-in {
  transform-origin: center center;
  animation: ohdsiLinkedinCardInNav 550ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes ohdsiLinkedinCardIn {
  0% {
    opacity: 0;
    transform: scale(1.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ohdsiLinkedinCardOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.75);
  }
}

@keyframes ohdsiLinkedinCardInNav {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* @media (prefers-reduced-motion: reduce) {
  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide,
  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide.is-enter,
  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide.is-nav-out,
  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__slide.is-nav-in {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
} */

/* ===== ARROWS ===== */
.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--ohdsi-yellow);
  color: transparent;
  opacity: 0.5;
  visibility: visible;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 16px rgba(3, 16, 28, 0.28);
  transition:
    opacity 0.25s cubic-bezier(0, 1.05, 0.45, 1.65),
    transform 0.25s cubic-bezier(0, 1.05, 0.45, 1.65),
    background 0.25s cubic-bezier(0, 1.05, 0.45, 1.65),
    visibility 0s linear 0s;
}

.ohdsi-linkedin-feed:not(:hover):not(:focus-within) .ohdsi-linkedin-feed__btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) scale(0.96);
  transition-delay: 220ms, 220ms, 0ms, 220ms;
}

.ohdsi-linkedin-feed:hover .ohdsi-linkedin-feed__btn,
.ohdsi-linkedin-feed:focus-within .ohdsi-linkedin-feed__btn {
  opacity: 0.5;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  transition-delay: 0s, 0s, 0s, 0s;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn:active {
  transform: translateY(-50%);
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--prev {
  left: -23px;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--prev::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 5.5L8 12l6.5 6.5'/%3E%3C/svg%3E");
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--next {
  right: -23px;
}

.ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--next::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 5.5L16 12l-6.5 6.5'/%3E%3C/svg%3E");
}

/* ===== CARD BASICS ===== */
#latest-europe .ohdsi-card__media,
.ohdsi-linkedin-feed .ohdsi-card__media {
  padding: 14px 14px 0;
}

#latest-europe .ohdsi-card__media img,
.ohdsi-linkedin-feed .ohdsi-card__media img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 4px;
}

#latest-europe .ohdsi-card__body,
.ohdsi-linkedin-feed .ohdsi-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#latest-europe .ohdsi-card__top,
.ohdsi-linkedin-feed .ohdsi-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#latest-europe .ohdsi-card__title,
.ohdsi-linkedin-feed .ohdsi-card__title {
  margin: 0;
  font-size: 1.15rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: var(--ohdsi-blue) !important;
}

#latest-europe .ohdsi-card__date,
.ohdsi-linkedin-feed .ohdsi-card__date {
  flex-shrink: 0;
  font-size: 0.82rem !important;
  line-height: 1.2 !important;
  color: #5f7387;
  white-space: nowrap;
  padding-top: 3px;
}

#latest-europe .ohdsi-card__text,
.ohdsi-linkedin-feed .ohdsi-card__text {
  margin: 0 0 18px;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  color: #33475b;
  flex: 1;
}

#latest-europe .ohdsi-card__footer,
.ohdsi-linkedin-feed .ohdsi-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

#latest-europe .ohdsi-card__button,
.ohdsi-linkedin-feed .ohdsi-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ohdsi-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease;
}

#latest-europe .ohdsi-card__button:hover,
.ohdsi-linkedin-feed .ohdsi-card__button:hover {
  background: #3b74af;
  text-decoration: none;
}

#latest-europe .ohdsi-card__icons,
.ohdsi-linkedin-feed .ohdsi-card__icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#latest-europe .ohdsi-card__icon,
.ohdsi-linkedin-feed .ohdsi-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(160deg, #245077, #1b3953);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff !important;
  text-decoration: none;
  font-size: 0;
  opacity: 0.95;
  box-shadow: 0 8px 14px rgba(4, 20, 34, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#latest-europe .ohdsi-card__icon::before,
.ohdsi-linkedin-feed .ohdsi-card__icon::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' role='img' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20.45 20.45h-3.56v-5.57c0-1.33-.03-3.03-1.85-3.03-1.85 0-2.13 1.45-2.13 2.94v5.66H9.35V9h3.41v1.56h.05c.47-.9 1.63-1.85 3.35-1.85 3.59 0 4.25 2.36 4.25 5.43v6.31zM5.34 7.43a2.07 2.07 0 1 1 0-4.14 2.07 2.07 0 0 1 0 4.14zM7.12 20.45H3.56V9h3.56v11.45zM22.23 0H1.77A1.77 1.77 0 0 0 0 1.77v20.46C0 23.21.79 24 1.77 24h20.46A1.77 1.77 0 0 0 24 22.23V1.77A1.77 1.77 0 0 0 22.23 0z'/%3E%3C/svg%3E");
}

#latest-europe .ohdsi-card__icon:hover,
.ohdsi-linkedin-feed .ohdsi-card__icon:hover {
  background: linear-gradient(160deg, #2e6695, #214768);
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(4, 20, 34, 0.3);
}

#latest-europe .latest-link {
  margin-top: 24px;
}

#latest-europe .latest-link a {
  color: #153d67;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem !important;
}

#latest-europe .latest-link a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--prev {
    left: 8px;
  }

  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--next {
    right: 8px;
  }

  .ohdsi-linkedin-feed::before,
  .ohdsi-linkedin-feed::after {
    width: 0;
  }
}

@media (max-width: 1100px) {
  #latest-europe .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn {
    width: 40px;
    height: 40px;
  }

  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--prev {
    left: 4px;
  }

  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn--next {
    right: 4px;
  }

  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn::before {
    background-size: 20px 20px;
  }

  #latest-europe .ohdsi-card__media img,
  .ohdsi-linkedin-feed .ohdsi-card__media img {
    height: 200px;
  }

  #latest-europe .latest-subtitle,
  #latest-europe .latest-title {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 520px) {
  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__track {

  }

  .ohdsi-linkedin-feed .ohdsi-linkedin-feed__btn {
    width: 36px;
    height: 36px;
  }
}
