.ekl-feed-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
  font-family:"Nunito Sans",sans-serif;
}

/* Desktop homepage treatment: four compact editorial cards in one row. */
.ekl-feed-card,
.ekl-feed-card:hover,
.ekl-feed-card:focus,
.ekl-feed-card:focus-visible,
.ekl-feed-card:active {
  appearance:none !important;
  -webkit-appearance:none !important;
  width:100% !important;
  min-width:0 !important;
  height:100% !important;
  min-height:292px !important;
  display:flex !important;
  flex-direction:column !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid rgba(20,37,49,.14) !important;
  border-radius:0 !important;
  background:#fff !important;
  background-color:#fff !important;
  color:#54595F !important;
  text-align:left !important;
  text-decoration:none !important;
  overflow:hidden !important;
  cursor:pointer !important;
  font-family:"Nunito Sans",sans-serif !important;
  box-shadow:none !important;
  outline:none !important;
}

.ekl-feed-card {
  transition:box-shadow .18s ease,border-color .18s ease !important;
}

.ekl-feed-card:hover,
.ekl-feed-card:focus-visible {
  transform:none !important;
  box-shadow:0 7px 22px rgba(20,37,49,.09) !important;
  border-color:rgba(20,37,49,.28) !important;
}

.ekl-feed-card *,
.ekl-feed-card:hover *,
.ekl-feed-card:focus-visible * {
  color:inherit;
}

.ekl-feed-card-image {
  display:block;
  position:relative;
  width:100%;
  height:122px;
  flex:0 0 122px;
  min-height:122px;
  background:#eef1f2;
  overflow:hidden;
}

.ekl-feed-card-image img {
  display:block;
  position:absolute;
  left:50%;
  top:50%;
  width:100%;
  height:auto;
  min-width:100%;
  min-height:100%;
  max-width:none !important;
  transform:translate(-50%, -50%);
  image-rendering:auto !important;
  -ms-interpolation-mode:bicubic;
  backface-visibility:hidden;
}

/* Crop with the frame instead of forcing both image dimensions. */
.ekl-feed-card-image.is-portrait img {
  width:100%;
  height:auto;
  min-width:100%;
  min-height:100%;
  max-width:none !important;
  padding:0;
  box-sizing:border-box;
}

.ekl-feed-card-image.is-landscape img {
  width:auto;
  height:100%;
  min-width:100%;
  min-height:100%;
}

.ekl-feed-card-body {
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  justify-content:flex-start;
  padding:11px 12px 10px !important;
  min-width:0 !important;
  overflow:hidden !important;
}

.ekl-feed-card-meta {
  display:block;
  margin:0 0 5px;
  font-family:"Nunito Sans",sans-serif !important;
  font-size:10px;
  line-height:1.25;
  font-weight:600;
  color:#54595F !important;
  opacity:1;
  text-transform:uppercase;
  letter-spacing:.045em;
  white-space:normal !important;
  overflow:visible !important;
}

.ekl-feed-card-title {
  display:-webkit-box !important;
  font-family:"Manrope",sans-serif !important;
  font-size:18px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  color:#002856 !important;
  letter-spacing:-.015em;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  max-height:2.4em !important;
}

.ekl-feed-card-summary {
  display:-webkit-box !important;
  margin-top:6px !important;
  font-family:"Nunito Sans",sans-serif !important;
  font-size:13px !important;
  line-height:1.38 !important;
  font-weight:400 !important;
  color:#54595F !important;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
}

.ekl-feed-card-more {
  display:block;
  margin-top:auto;
  padding-top:8px;
  font-family:"Nunito Sans",sans-serif !important;
  font-size:10px;
  line-height:1.2;
  font-weight:700;
  color:#002856 !important;
  text-transform:uppercase;
  letter-spacing:.05em;
  opacity:1;
}
.ekl-feed-card-more::after {
  content:"  →";
}

.ekl-feed-empty {
  padding:18px;
  border:1px dashed rgba(20,37,49,.25);
  font-family:"Nunito Sans",sans-serif;
}

.ekl-feed-dialog[hidden] { display:none !important; }
.ekl-feed-dialog {
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  font-family:"Nunito Sans",sans-serif;
}
.ekl-feed-dialog-backdrop { position:absolute; inset:0; background:rgba(8,18,25,.72); }
.ekl-feed-dialog-panel {
  position:relative;
  width:min(720px,100%);
  max-height:min(88vh,900px);
  overflow:auto;
  background:#fff;
  border-radius:10px;
  box-shadow:0 24px 70px rgba(0,0,0,.30);
}

/* Hard override for Elementor/global button hover treatments. */
.ekl-feed-dialog-close,
.ekl-feed-dialog-close:hover,
.ekl-feed-dialog-close:focus,
.ekl-feed-dialog-close:focus-visible,
.ekl-feed-dialog-close:active {
  appearance:none !important;
  -webkit-appearance:none !important;
  position:absolute !important;
  z-index:5 !important;
  top:12px !important;
  right:12px !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid rgba(20,37,49,.12) !important;
  border-radius:50% !important;
  background:#fff !important;
  background-color:#fff !important;
  color:#17313f !important;
  font-family:Arial,sans-serif !important;
  font-size:29px !important;
  font-weight:400 !important;
  line-height:36px !important;
  text-align:center !important;
  cursor:pointer !important;
  box-shadow:0 2px 10px rgba(0,0,0,.14) !important;
  transform:none !important;
  outline:none !important;
}
.ekl-feed-dialog-close:hover,
.ekl-feed-dialog-close:focus-visible {
  background:#f2f4f5 !important;
  color:#17313f !important;
}

.ekl-feed-modal-media {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-height:470px;
  background:#f2f0eb;
  overflow:hidden;
}
.ekl-feed-modal-image {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  max-height:470px;
  object-fit:contain;
  object-position:center;
}
.ekl-feed-modal-media.is-landscape .ekl-feed-modal-image {
  width:100%;
}

.ekl-feed-modal-content > :not(.ekl-feed-modal-media) {
  margin-left:30px;
  margin-right:30px;
}
.ekl-feed-modal-meta {
  margin-top:26px;
  margin-bottom:8px;
  font-family:"Nunito Sans",sans-serif !important;
  font-size:11px;
  line-height:1.35;
  font-weight:600;
  opacity:.62;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.ekl-feed-modal-content h3 {
  margin-top:0;
  margin-bottom:12px;
  font-family:"Manrope",sans-serif !important;
  font-size:31px;
  line-height:1.18;
  font-weight:700;
  letter-spacing:-.02em;
  color:#17313f;
}
.ekl-feed-modal-content p {
  margin-top:0;
  margin-bottom:30px;
  font-family:"Nunito Sans",sans-serif !important;
  font-size:17px;
  line-height:1.58;
  color:#4b565c;
}
body.ekl-feed-modal-open { overflow:hidden; }

@media (max-width:1024px) {
  .ekl-feed-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
  .ekl-feed-card,
  .ekl-feed-card:hover,
  .ekl-feed-card:focus,
  .ekl-feed-card:focus-visible,
  .ekl-feed-card:active {
    min-height:305px !important;
  }
  .ekl-feed-card-image {
    height:145px;
    flex-basis:145px;
    min-height:145px;
  }
  .ekl-feed-card-title { font-size:18px !important; }
  .ekl-feed-card-summary { font-size:14px !important; }
}

@media (max-width:560px) {
  .ekl-feed-grid {
    grid-template-columns:1fr;
    gap:12px;
  }
  .ekl-feed-card,
  .ekl-feed-card:hover,
  .ekl-feed-card:focus,
  .ekl-feed-card:focus-visible,
  .ekl-feed-card:active {
    display:grid !important;
    grid-template-columns:125px minmax(0,1fr) !important;
    min-height:150px !important;
    height:auto !important;
  }
  .ekl-feed-card-image {
    width:125px;
    height:100%;
    min-height:150px;
    flex:none;
  }
  .ekl-feed-card-body { padding:12px 13px !important; }
  .ekl-feed-card-title {
    font-size:18px !important;
    -webkit-line-clamp:2 !important;
    max-height:2.4em !important;
  }
  .ekl-feed-card-summary {
    font-size:13px !important;
    -webkit-line-clamp:3 !important;
  }
  .ekl-feed-card-more { padding-top:8px; }
  .ekl-feed-dialog { padding:14px; }
  .ekl-feed-modal-content > :not(.ekl-feed-modal-media) { margin-left:20px; margin-right:20px; }
  .ekl-feed-modal-content h3 { font-size:26px; }
  .ekl-feed-modal-content p { font-size:15px; }
  .ekl-feed-dialog-close,
  .ekl-feed-dialog-close:hover,
  .ekl-feed-dialog-close:focus,
  .ekl-feed-dialog-close:focus-visible,
  .ekl-feed-dialog-close:active {
    top:9px !important;
    right:9px !important;
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    font-size:26px !important;
    line-height:32px !important;
  }
}

/* Partner CTA strip for modal Feed items. Only rendered when a Partner is assigned. */
.ekl-feed-modal-ctas {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  margin:28px 0 0 !important;
  border-top:1px solid rgba(20,37,49,.12);
  background:#f7f5f0;
}

.ekl-feed-modal-cta,
.ekl-feed-modal-cta:hover,
.ekl-feed-modal-cta:focus,
.ekl-feed-modal-cta:focus-visible,
.ekl-feed-modal-cta:active {
  appearance:none !important;
  -webkit-appearance:none !important;
  min-height:78px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 16px !important;
  margin:0 !important;
  border:0 !important;
  border-right:1px solid rgba(20,37,49,.12) !important;
  border-radius:0 !important;
  background:#f7f5f0 !important;
  background-color:#f7f5f0 !important;
  color:#17313f !important;
  font-family:"Nunito Sans",sans-serif !important;
  font-size:13px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  text-align:center !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transform:none !important;
  outline:none !important;
  transition:background-color .16s ease,color .16s ease !important;
}

.ekl-feed-modal-cta:last-child {
  border-right:0 !important;
}

.ekl-feed-modal-cta:hover,
.ekl-feed-modal-cta:focus-visible {
  background:#ece9e1 !important;
  background-color:#ece9e1 !important;
  color:#0d5265 !important;
}

.ekl-feed-modal-cta-icon {
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit !important;
}

.ekl-feed-modal-cta-icon svg {
  width:22px;
  height:22px;
  display:block;
  fill:currentColor;
}

.ekl-feed-cta-facebook-icon {
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid currentColor;
  border-radius:50%;
  font-family:Arial,sans-serif;
  font-size:16px;
  font-weight:700;
  line-height:1;
}

.ekl-feed-modal-cta-label {
  color:inherit !important;
}

/* When the CTA strip exists, let the summary breathe but avoid excess dead space. */
.ekl-feed-modal-content:has(.ekl-feed-modal-ctas) p {
  margin-bottom:0;
}

@media (max-width:560px) {
  .ekl-feed-modal-ctas {
    grid-template-columns:1fr;
    margin-top:22px !important;
  }
  .ekl-feed-modal-cta,
  .ekl-feed-modal-cta:hover,
  .ekl-feed-modal-cta:focus,
  .ekl-feed-modal-cta:focus-visible,
  .ekl-feed-modal-cta:active {
    min-height:58px;
    border-right:0 !important;
    border-bottom:1px solid rgba(20,37,49,.12) !important;
  }
  .ekl-feed-modal-cta:last-child {
    border-bottom:0 !important;
  }
}

/* Progressive Feed reveal: 4 initially, +4 per click, max 12 homepage items. */
.ekl-feed-card-hidden[hidden] {
  display:none !important;
}

.ekl-feed-load-more-wrap[hidden] {
  display:none !important;
}

.ekl-feed-load-more-wrap {
  display:flex;
  justify-content:center;
  width:100%;
  margin:24px 0 4px;
  font-family:"Nunito Sans",sans-serif;
}

.ekl-feed-load-more,
.ekl-feed-load-more:hover,
.ekl-feed-load-more:focus,
.ekl-feed-load-more:focus-visible,
.ekl-feed-load-more:active {
  appearance:none !important;
  -webkit-appearance:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  min-width:150px !important;
  padding:11px 20px !important;
  margin:0 !important;
  border:1px solid #17313f !important;
  border-radius:5px !important;
  background:#17313f !important;
  background-color:#17313f !important;
  color:#fff !important;
  font-family:"Nunito Sans",sans-serif !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:700 !important;
  letter-spacing:.035em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  box-shadow:none !important;
  cursor:pointer !important;
  transform:none !important;
  outline:none !important;
  transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease !important;
}

.ekl-feed-load-more:hover,
.ekl-feed-load-more:focus-visible {
  background:#0d5265 !important;
  background-color:#0d5265 !important;
  border-color:#0d5265 !important;
  color:#fff !important;
  box-shadow:0 5px 14px rgba(20,37,49,.12) !important;
}

.ekl-feed-load-more-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border:1px solid rgba(255,255,255,.6);
  border-radius:50%;
  color:#fff !important;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:1;
  font-weight:400;
}

@media (max-width:560px) {
  .ekl-feed-load-more-wrap {
    margin-top:18px;
  }

  .ekl-feed-load-more,
  .ekl-feed-load-more:hover,
  .ekl-feed-load-more:focus,
  .ekl-feed-load-more:focus-visible,
  .ekl-feed-load-more:active {
    min-width:140px !important;
    padding:10px 18px !important;
  }
}

/* EKL Feed typography/color lock */
.ekl-feed-card-title,
.ekl-feed-card:hover .ekl-feed-card-title,
.ekl-feed-card:focus-visible .ekl-feed-card-title,
.ekl-feed-card-more,
.ekl-feed-card:hover .ekl-feed-card-more,
.ekl-feed-card:focus-visible .ekl-feed-card-more {
  color:#002856 !important;
}
.ekl-feed-card-meta,
.ekl-feed-card-summary,
.ekl-feed-card:hover .ekl-feed-card-meta,
.ekl-feed-card:hover .ekl-feed-card-summary,
.ekl-feed-card:focus-visible .ekl-feed-card-meta,
.ekl-feed-card:focus-visible .ekl-feed-card-summary {
  color:#54595F !important;
}
