.navbar{
    text-align: center;
}

/* Facebook-like card */
:root {
  --fb-blue: #1877F2;
  --fb-border: #dadde1;
  --fb-surface: #ffffff;
  --fb-wash: #f0f2f5;
  --fb-text: #1c1e21;
}

.fb-post-card {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fb-text);
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  overflow: hidden;
  max-width: 560px;      /* visually close to Facebook’s post width */
  margin: 0 auto;        /* center it */
}

/* Header */
.fb-post-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--fb-blue);
  color: #fff;
}

.fb-post-card__header .fb-logo {
  width: 20px;
  height: 20px;
  flex: none;
}

.fb-post-card__header .title {
  font-weight: 700;
  letter-spacing: .1px;
}

.fb-post-card__header .cta {
  margin-left: auto;
  font-size: 13px;
  color: #fff;
  text-decoration: underline;
  opacity: .95;
}

.fb-post-card__header .cta:hover { opacity: 1; }

/* Body containing the iframe */
.fb-post-card__body {
  background: var(--fb-wash);
  padding: 12px;
}

/* Make the plugin feel native */
.fb-post-card__body iframe {
  display: block;
  width: 100%;            /* scale to the card width */
  height: 504px;          /* FB plugin needs a fixed height; adjust below on small screens */
  border: 0;
  border-radius: 8px;
  background: #fff;
}

/* Hover elevation like FB */
.fb-post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transform: translateY(-1px);
  transition: box-shadow .2s ease, transform .2s ease;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .fb-post-card { max-width: 100%; border-radius: 10px; }
  .fb-post-card__body { padding: 8px; }
  .fb-post-card__body iframe { height: 440px; }
}

@media (max-width: 400px) {
  .fb-post-card__body iframe { height: 400px; }
}

/* Optional dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --fb-border: #3a3b3c;
    --fb-surface: #242526;
    --fb-wash: #18191a;
    --fb-text: #e4e6eb;
  }
  .fb-post-card { border-color: var(--fb-border); }
}

/* Make the FB panel look coherent with Bootstrap panels */
.panel-facebook .panel-heading {
  background: #1877f2; color:#fff; border-color:#1877f2;
}
.panel-facebook .panel-body { background:#f0f2f5; }

/* Reuse your card but adapt it for the narrow column */
.fb-post-card { max-width: 560px; margin: 0 auto; }
.fb-post-card--sidebar { max-width: 100%; margin: 0; box-shadow: none; border-radius: 8px; }
.fb-post-card--sidebar .fb-post-card__body iframe { height: 420px; }

@media (max-width: 768px){
  .fb-post-card--sidebar .fb-post-card__body iframe { height: 400px; }
}