/* JF Insights LIST page — widen to the site widescreen (Degree Programs reference:
   ast-container 1480). Scoped to the Insights page (body.jf-insights-list) only.
   Intentionally leaves the banner background-size/position and the mobile card
   image-ratio rules untouched. */
/* Match the Degree Programs reference: its inner content fills the full
   ast-container width (it breaks out of the default 20px side padding).
   Zeroing the ast-container side padding here lets the banner + cards span
   the full container edge-to-edge (no residual side whitespace), exactly
   like the reference page. */
body.jf-insights-list .ast-container{
  max-width:1480px;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Let the content section fill the container (remove the 1360 inner cap + gap).
   The e-con-inner is the ANCESTOR of the column, so target it via the content
   section (286f54d8) and also strip that section's own horizontal padding.
   Specificity is raised (include .elementor-10026 ancestor) and !important is
   used only to beat Elementor's own !important container-width rules. */
body.jf-insights-list .elementor-10026 .elementor-element-286f54d8{
  padding-left:0 !important;
  padding-right:0 !important;
  max-width:1480px !important;
  width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.jf-insights-list .elementor-10026 .elementor-element-286f54d8 .e-con-inner{
  max-width:1480px !important;
  width:100% !important;
}

/* Remove the Elementor page-root's default side padding AND let it fill the
   full ast-container (matches the Degree Programs reference page, which has no
   narrower page-root wrapper). This eliminates the residual side whitespace
   between the Elementor root and the container. Banner/cards then span the
   container edge-to-edge. */
body.jf-insights-list .elementor-10026{
  padding-left:0 !important;
  padding-right:0 !important;
  max-width:100% !important;
  width:100% !important;
}

/* Banner: the section itself stays full-bleed — backgrounds paint across the
   padding box, so side padding insets the title/subtitle WITHOUT changing
   background-size (cover) or background-position (50% 50%). This replaces the
   earlier padding:0 rule that had glued the heading to the left edge. */
body.jf-insights-list .elementor-element-51d7640e{
  padding-left:48px !important;
  padding-right:48px !important;
}
@media (max-width:1024px){
  body.jf-insights-list .elementor-element-51d7640e{
    padding-left:32px !important;
    padding-right:32px !important;
  }
}
@media (max-width:767px){
  body.jf-insights-list .elementor-element-51d7640e{
    padding-left:20px !important;
    padding-right:20px !important;
  }
}

/* Filter tabs: brand-consistent active + hover states (orange = site --jf-orange).
   v1.5.0: wider gap between pills and more internal breathing room. */
body.jf-insights-list .jf-tabs{
  gap:14px;
  padding:12px 0;
  flex-wrap:wrap;
  margin-bottom:40px;
}
body.jf-insights-list .jf-tabs a{ padding:12px 20px; transition:background .15s, color .15s; }
body.jf-insights-list .jf-tabs a:hover{ background:#FFE2B8; }
body.jf-insights-list .jf-tabs a.active{
  background:#FF8A00;
  color:#fff !important;
  text-decoration:none;
}

/* Ensure the card grid never causes horizontal overflow */
body.jf-insights-list .elementor-posts-container{ width:100%; max-width:100%; }

/* ============================ Breathing room (v1.5.0) ==================== */
/* Elementor hard-codes the grid gap with !important:
     .elementor-10026 .elementor-posts-container{ gap:28px !important; }
   so a plain rule cannot win — a single *purposeful* !important (with higher
   specificity) is used ONLY for the gap. */
body.jf-insights-list .elementor-posts-container.elementor-posts{
  gap:36px 32px !important;      /* row column */
  column-gap:32px !important;
  row-gap:36px !important;
  --grid-column-gap:32px !important;
  --grid-row-gap:36px !important;
}

/* Card text: match Elementor's own selector depth
     .elementor-posts .elementor-post__card .elementor-post__text  (0,3,0)
   with (0,4,1) so NO !important is needed here. Lifts image→title and gives each
   inner element clear separation (image→title→excerpt→read more). */
body.jf-insights-list .elementor-post__card{ height:100%; }
body.jf-insights-list .elementor-posts .elementor-post__card .elementor-post__text{
  flex:1 1 auto;
  margin-top:26px;      /* image → title */
  padding:0 28px 6px;   /* side padding 28px (24–30 range) */
}
body.jf-insights-list .elementor-posts .elementor-post__card .elementor-post__title{ margin:0 0 18px; }   /* title → excerpt */
body.jf-insights-list .elementor-posts .elementor-post__card .elementor-post__excerpt{ margin:0 0 18px; } /* excerpt → read more */
body.jf-insights-list .elementor-posts .elementor-post__card .elementor-post__read-more{ display:inline-block; margin:0 0 20px; }

@media (max-width:1024px){
  body.jf-insights-list .elementor-posts-container.elementor-posts{
    gap:32px 28px !important; column-gap:28px !important; row-gap:32px !important;
    --grid-column-gap:28px !important; --grid-row-gap:32px !important;
  }
}
@media (max-width:767px){
  body.jf-insights-list .elementor-posts-container.elementor-posts{
    gap:28px 0px !important; column-gap:0 !important; row-gap:28px !important;
    --grid-column-gap:0px !important; --grid-row-gap:28px !important;
  }
}

/* Empty-state for a category with no posts */
.jf-ins-empty{
  grid-column:1 / -1;
  text-align:center;
  padding:48px 20px;
  color:#64748b;
  font-size:16px;
}

/* Pagination (rebuilt by JS) keeps Elementor's look */
body.jf-insights-list .jf-ins-pager{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:36px;
  flex-wrap:wrap;
}
body.jf-insights-list .jf-ins-pager a,
body.jf-insights-list .jf-ins-pager span{
  display:inline-block;
  min-width:40px;
  text-align:center;
  padding:9px 14px;
  border-radius:10px;
  border:1px solid #ECE6DA;
  background:#fff;
  color:#0b1f3a;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}
body.jf-insights-list .jf-ins-pager a:hover{ border-color:#c9a24d; color:#9a7420; }
body.jf-insights-list .jf-ins-pager span.current{
  background:#0b1f3a;
  color:#fff;
  border-color:#0b1f3a;
}
body.jf-insights-list .jf-ins-pager .dots{ border:none; background:none; }

/* Loading indicator */
.jf-ins-loading{
  grid-column:1 / -1;
  text-align:center;
  padding:40px 0;
  color:#64748b;
}

/* Card meta line (custom class on top of Elementor's meta-data).
   margin-top:auto pushes the date/view bar to the card bottom so bottom bars line
   up across a row; padding gives it breathing room from the card edges. */
body.jf-insights-list .elementor-post__meta-data.jf-insights-meta{
  font-size:13px;
  color:#64748b;
  margin-top:auto;
  padding:18px 28px;
}
