/* SKF Social Feed — carousels + latest-post cards */
.skf-feed {
  --skf-feed-accent: var(--skf-cta-green, #00804a);
  --skf-feed-tint: #f4faf6;
  --skf-feed-border: #cfe2d3;
  position: relative;
  background: var(--skf-feed-tint);
  border: 1px solid var(--skf-feed-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px -18px rgba(10, 61, 46, .35);
}
.skf-feed--blue    { --skf-feed-accent: #0078c0; --skf-feed-tint: #eaf3fc; --skf-feed-border: #9ec9ef; }
.skf-feed--green   { --skf-feed-accent: #00804a; --skf-feed-tint: #eef9f2; --skf-feed-border: #7fce9e; }
.skf-feed--saffron { --skf-feed-accent: #c84f00; --skf-feed-tint: #fff4ec; --skf-feed-border: #ffb27a; }
.skf-feed--teal    { --skf-feed-accent: #0f766e; --skf-feed-tint: #eaf7f6; --skf-feed-border: #63c0b7; }

.skf-feed__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--skf-feed-border);
}
.skf-feed__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.skf-feed__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--skf-feed-accent); color: #fff;
}
.skf-feed__icon svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.skf-feed__title { margin: 0; font-family: var(--skf-font-head, Georgia, serif); font-size: 20px; line-height: 1.2; color: var(--skf-green-deep, #0a3d2e); }
.skf-feed__sub { margin: 2px 0 0; font-size: 13.5px; color: #5b6b62; }
.skf-feed__follow {
  flex: 0 0 auto; font-weight: 700; font-size: 14px; text-decoration: none;
  color: #fff; background: var(--skf-feed-accent); border: 1px solid var(--skf-feed-accent);
  border-radius: 999px; padding: 10px 20px;
  box-shadow: 0 10px 20px -10px var(--skf-feed-accent);
  transition: filter .18s ease, transform .18s ease;
}
.skf-feed__follow:hover, .skf-feed__follow:focus { filter: brightness(.9); color: #fff; transform: translateY(-1px); }

.skf-feed__stage { position: relative; background: #fff; }
.skf-feed__slides { position: relative; aspect-ratio: 16 / 9; }
.skf-feed__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease; text-decoration: none; display: block;
}
.skf-feed__slide.is-active { opacity: 1; visibility: visible; }
.skf-feed__media { position: absolute; inset: 0; display: block; }
.skf-feed__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skf-feed__slide--text { background: var(--skf-feed-accent, #00804a); }
.skf-feed__textcard {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 28px 26px;
}
.skf-feed__textcard-text {
  color: #fff; font-family: var(--skf-font-head, Georgia, serif); font-weight: 600;
  font-size: 19px; line-height: 1.45; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.skf-feed__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 16px;
  color: #fff; font-weight: 600; font-size: 15.5px; line-height: 1.4;
  background: linear-gradient(to top, rgba(6, 43, 33, .85), rgba(6, 43, 33, 0));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.skf-feed__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: #0a3d2e; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.skf-feed__nav:hover, .skf-feed__nav:focus { background: #fff; }
.skf-feed__nav--prev { left: 12px; }
.skf-feed__nav--next { right: 12px; }
.skf-feed__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; gap: 6px; justify-content: center; }
.skf-feed__dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .55);
}
.skf-feed__dot.is-active { background: #fff; width: 22px; border-radius: 999px; }

.skf-feed--card .skf-feed__empty { padding: 18px 22px 22px; color: #40544a; font-size: 15px; }

/* Official X (Twitter) embedded timeline (free live preview) */
.skf-feed--embed { background: #fff; }
.skf-x-embed { padding: 12px; min-height: 440px; }
.skf-x-embed .twitter-timeline { color: var(--skf-cta-green, #00804a); font-weight: 600; }

/* Official LinkedIn post embeds (free live preview) */
.skf-li-embed-wrap { display: grid; gap: 12px; padding: 12px; }
.skf-li-embed { border: 0; width: 100%; min-height: 480px; border-radius: 8px; }

/* Big brand card (used for X / LinkedIn, or any unconfigured channel) */
.skf-feed__brandcard {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 48px 28px; min-height: 380px;
}
.skf-feed__brandcard-icon {
  width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--skf-feed-accent); color: #fff;
  box-shadow: 0 22px 44px -20px var(--skf-feed-accent), inset 0 -3px 6px rgba(0,0,0,.12);
}
.skf-feed__brandcard-icon svg { width: 60px; height: 60px; fill: currentColor; }
.skf-feed__brandcard-title { margin: 0; font-family: var(--skf-font-head, Georgia, serif); font-size: 26px; line-height: 1.2; color: var(--skf-green-deep, #0a3d2e); }
.skf-feed__brandcard-text { margin: 0; color: #4a5a50; font-size: 15.5px; line-height: 1.5; max-width: 32ch; }
.skf-feed__brandcard .skf-feed__follow { font-size: 16px; padding: 12px 26px; margin-top: 4px; }
@media (max-width: 640px) {
  .skf-feed__brandcard { min-height: 300px; padding: 32px 20px; }
  .skf-feed__brandcard-icon { width: 96px; height: 96px; }
  .skf-feed__brandcard-icon svg { width: 48px; height: 48px; }
}

@media (max-width: 640px) {
  .skf-feed__head { flex-wrap: wrap; gap: 10px; padding: 16px; }
  .skf-feed__title { font-size: 18px; }
  .skf-feed__nav { width: 34px; height: 34px; font-size: 18px; }
  .skf-feed__caption { font-size: 14px; -webkit-line-clamp: 3; }
}

/* Latest blog posts */
.skf-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.skf-post-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: #fff; border: 1px solid rgba(10, 61, 46, .1); border-radius: 16px;
  box-shadow: 0 10px 26px -18px rgba(10, 61, 46, .4); transition: transform .18s ease, box-shadow .18s ease;
}
.skf-post-card:hover, .skf-post-card:focus { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(10, 61, 46, .45); }
.skf-post-card__media { display: block; aspect-ratio: 16 / 9; background: #eef2ec; overflow: hidden; }
.skf-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skf-post-card__media-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: #9ab0a4; }
.skf-post-card__media-fallback svg { width: 34px; height: 34px; fill: currentColor; }
.skf-post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.skf-post-card__date { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: #7a8a80; }
.skf-post-card__title { font-family: var(--skf-font-head, Georgia, serif); font-size: 18px; line-height: 1.3; color: var(--skf-green-deep, #0a3d2e); }
.skf-post-card__excerpt { font-size: 14px; line-height: 1.6; color: #4a5a50; }
.skf-post-card__more { margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--skf-cta-green, #00804a); }
.skf-posts__empty { color: #4a5a50; }

/* Stay Connected — Read & Subscribe + social feed layout */
.skf-stay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.skf-stay-card {
  background: #fff; border: 1px solid rgba(10, 61, 46, .1); border-radius: 16px;
  padding: 22px; box-shadow: 0 12px 30px -20px rgba(10, 61, 46, .4);
}
.skf-stay-card h3 { margin: 0 0 8px; font-family: var(--skf-font-head, Georgia, serif); font-size: 22px; line-height: 1.2; color: var(--skf-green-deep, #0a3d2e); }
.skf-stay-card > p { margin: 0 0 16px; color: #4a5a50; line-height: 1.65; }
.skf-stay-card__cta { margin: 16px 0 0 !important; }
.skf-stay-card__cta a { font-weight: 600; color: var(--skf-cta-green, #00804a); text-decoration: none; }
.skf-stay-card__cta a:hover, .skf-stay-card__cta a:focus { text-decoration: underline; }
.skf-stay-feeds { display: grid; gap: 22px; margin-top: 8px; }

/* Stay Connected — two-column "text + preview" sections */
.skf-stay-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.skf-stay-split__text, .skf-stay-split__preview { min-width: 0; }
.skf-stay-split--reverse .skf-stay-split__text { order: 2; }
.skf-stay-split--reverse .skf-stay-split__preview { order: 1; }
.skf-stay-split .skf-text-block h2 { margin-top: 0; }
@media (max-width: 820px) {
  .skf-stay-split { grid-template-columns: 1fr; gap: 22px; }
  .skf-stay-split--reverse .skf-stay-split__text { order: 0; }
  .skf-stay-split--reverse .skf-stay-split__preview { order: 0; }
}

/* Feature (single) blog preview */
.skf-posts--feature { grid-template-columns: 1fr; }
.skf-posts--feature .skf-post-card__title { font-size: 22px; }
.skf-posts--feature .skf-post-card__excerpt { font-size: 15px; }

/* Newsletter preview mockup */
.skf-newsletter-preview {
  background: #fff; border: 1px solid rgba(10, 61, 46, .12); border-radius: 16px;
  padding: 20px; box-shadow: 0 18px 44px -24px rgba(10, 61, 46, .45); max-width: 460px;
}
.skf-newsletter-preview__top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #eef2ee; }
.skf-newsletter-preview__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #e6ece6; }
.skf-newsletter-preview__top strong { display: block; font-family: var(--skf-font-head, Georgia, serif); color: var(--skf-green-deep, #0a3d2e); font-size: 16px; }
.skf-newsletter-preview__top span { font-size: 12.5px; color: #7a8a80; text-transform: uppercase; letter-spacing: .08em; }
.skf-newsletter-preview__issue { display: inline-block; margin: 14px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--skf-cta-orange, #c84f00); background: #fff4ec; border: 1px solid #ffd8ba; border-radius: 999px; padding: 4px 12px; }
.skf-newsletter-preview__hero { width: 100%; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; display: block; margin-bottom: 12px; }
.skf-newsletter-preview__headline { margin: 0 0 6px; font-family: var(--skf-font-head, Georgia, serif); font-size: 20px; line-height: 1.25; color: var(--skf-green-deep, #0a3d2e); }
.skf-newsletter-preview__text { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #4a5a50; }
.skf-newsletter-preview__lines { display: grid; gap: 7px; margin-bottom: 16px; }
.skf-newsletter-preview__lines span { height: 8px; border-radius: 4px; background: #eef2ee; }
.skf-newsletter-preview__lines span:nth-child(2) { width: 92%; }
.skf-newsletter-preview__lines span:nth-child(3) { width: 74%; }
.skf-newsletter-preview__btn { display: inline-block; background: var(--skf-cta-green, #00804a); color: #fff; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 10px 18px; }
.skf-newsletter-signup { margin: 6px 0 10px; }

/* Newsletter CTA button in the content box */
.skf-newsletter-cta { margin: 18px 0 0; }
.skf-newsletter-cta .btn { font-size: 15px; padding: 12px 26px; }

/* Equal-height platform sections on /stay-connected/social-media/.
   The text column and the feed preview both fill a fixed height so every
   platform section is exactly the same height on desktop. */
@media (min-width: 782px) {
  .skf-stay-split { align-items: stretch; min-height: 560px; }
  .skf-stay-split__text { display: flex; flex-direction: column; justify-content: center; }
  .skf-stay-split__preview { height: 560px; display: flex; flex-direction: column; }
  .skf-stay-split__preview > .skf-feed { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .skf-stay-split__preview .skf-feed__stage { flex: 1 1 auto; min-height: 0; }
  .skf-stay-split__preview .skf-feed__slides { height: 100%; aspect-ratio: auto; }
  .skf-stay-split__preview .skf-feed__media img { height: 100%; }
  .skf-stay-split__preview .skf-x-embed,
  .skf-stay-split__preview .skf-li-embed-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
  .skf-stay-split__preview iframe { height: 100% !important; min-height: 440px; }
  .skf-stay-split__preview .skf-feed__brandcard { flex: 1 1 auto; }
}

/* Cap the preview so embedded feeds (with several stacked iframes) can never
   stretch their section taller than the rest. */
@media (min-width: 782px) {
  .skf-stay-split__preview { overflow: hidden; }
}

/* Neutralise the contact-page `.skf-sec-blue { padding:28px }` rule on the
   social-media page, so blue platform sections match the green/saffron ones. */
.skf-section.skf-sec-blue:has(.skf-stay-split) { padding: 0; }

/* Scannable QR codes (e.g. to join the WhatsApp group). */
.skf-social-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin: 16px 0 0; }
.skf-social-qr__code {
  display: inline-block; background: #fff; border: 1px solid var(--skf-feed-border, #cfe2d3);
  border-radius: 16px; padding: 14px; line-height: 0;
  box-shadow: 0 18px 36px -22px rgba(10, 61, 46, .5), 0 6px 12px -8px rgba(10, 61, 46, .25);
}
.skf-social-qr__img { display: block; width: 100%; height: auto; max-width: 220px; }
.skf-social-qr__label { margin: 0; font-size: 15px; font-weight: 600; color: #0a3d2e; }
.skf-social-qr__link { font-size: 12px; color: var(--skf-cta-green, #00804a); word-break: break-all; max-width: 260px; }
@media (max-width: 781px) { .skf-social-qr { margin-top: 8px; } }

/* Fill the available space: larger QR, centred in the preview column. */
.skf-social-qr__code { max-width: min(100%, 460px); }
.skf-social-qr__img { max-width: 100%; }
.skf-social-qr__link { max-width: min(100%, 460px); }
.skf-stay-split__preview > .skf-social-qr { margin: auto; }
@media (max-width: 781px) { .skf-social-qr__code { max-width: min(100%, 320px); } }
