/* ============================= */
/* LINKEDIN FEED SECTION          */
/* "Příspěvky z LinkedIn"         */
/* ============================= */

section.linkedin-feed {
  text-align: center;
}

.linkedin-feed-title {
  color: #2e8b57;
  margin: 0 0 24px;
}

/* Desktop: 3 karty vedle sebe */
.linkedin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin: 0 auto;
}

.linkedin-grid.linkedin-older {
  margin-top: 24px;
}

.linkedin-grid.linkedin-older[hidden] {
  display: none;
}

/* Tablet: 2 karty vedle sebe */
@media (max-width: 992px) {
  .linkedin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil: 1 karta */
@media (max-width: 600px) {
  .linkedin-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.linkedin-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e3efe3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 18px;
  text-align: left;
  min-width: 0;
}

.linkedin-card-title {
  color: #2e8b57;
  font-size: 1.05em;
  line-height: 1.3;
  margin: 0 0 8px;
}

.linkedin-card-desc {
  color: #333;
  font-size: 0.95em;
  line-height: 1.45;
  margin: 0 0 14px;
}

/* Obal iframu - šířka vždy 100 % karty, pevný poměr stran zabraňuje
   posunu obsahu (CLS) ještě před načtením embedu. */
.linkedin-embed-frame {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f5fff5;
  margin-top: auto;
}

.linkedin-embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.linkedin-more-wrap {
  margin-top: 28px;
  text-align: center;
}

.linkedin-more-btn {
  border: 0;
  font-family: inherit;
}

.linkedin-more-btn:focus-visible {
  outline: 3px solid #1e7b1e;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .linkedin-card,
  .linkedin-embed-frame,
  .linkedin-more-btn {
    transition: none !important;
    animation: none !important;
  }
}
