.elementor-kit-22{--e-global-color-primary:#4696C4;--e-global-color-secondary:#8FC5E4;--e-global-color-text:#090F12;--e-global-color-accent:#54AEE1;--e-global-color-a85211e:#E7E7EA;--e-global-color-b48ec41:#30343B;--e-global-color-ceea119:#F4F8FA;--e-global-typography-primary-font-family:"Work Sans";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Work Sans";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Work Sans";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Work Sans";--e-global-typography-accent-font-weight:500;}.elementor-kit-22 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;--container-default-padding-top:0px;--container-default-padding-right:0px;--container-default-padding-bottom:0px;--container-default-padding-left:0px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS */body {
    position: relative !important;
}
#masthead {
    position: sticky !important;
    top: 0;
}
/* Hide a resource row if its title shortcode rendered empty */
.fmg-row-1:has(.course_resource_title .elementor-shortcode:empty),
.fmg-row-2:has(.course_resource_title .elementor-shortcode:empty),
.fmg-row-3:has(.course_resource_title .elementor-shortcode:empty) {
  display: none !important;
}

/* Also hide if there's no EAEL wrapper link (means no valid link) */
.fmg-row-1:not(:has(a.--eael-wrapper-link-tag)),
.fmg-row-2:not(:has(a.--eael-wrapper-link-tag)),
.fmg-row-3:not(:has(a.--eael-wrapper-link-tag)) {
  display: none !important;
}

.fmg-term-sep {
  color: #54AEE1;
  font-weight: bold;      /* makes the dot a little heavier */
  font-size: 1.2em;       /* scale up slightly */
  margin: 0 0.35em;       /* space around it */
  display: inline-block;  /* makes spacing more consistent */
}
/* Layout */
.fmg-course-search--pills { display: grid; gap: .75rem; }
.fmg-course-search--pills .fmg-search-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.fmg-course-search--pills .fmg-actions { display: flex; gap: .75rem; align-items: center; }

/* Input */
.fmg-course-search--pills input[type="search"] {
  min-width: 18rem;
  padding: .6rem .85rem;
  border: 1px solid #e2e8f0;
  border-radius: .6rem;
}

/* Pill group */
.fmg-course-search--pills .fmg-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: .25rem 0 0;
  border: 0; padding: 0;
}

/* Pill button (radio/checkbox visually hidden, span styled) */
.fmg-pill { position: relative; display: inline-block; }
.fmg-pill input { position: absolute; opacity: 0; pointer-events: none; }
.fmg-pill span {
  display: inline-block;
  padding: .38rem .85rem;              /* a bit more x-padding */
  border-radius: 9999px;               /* fully rounded */
  border: 1px solid currentColor;
  color: #1f2937;
  background: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Selected state */
.fmg-pill input:checked + span {
  color: #fff;
  background: #54AEE1;
  border-color: #54AEE1;
  box-shadow: 0 0 0 2px rgba(84,174,225,.15);
}

/* Hover/focus */
.fmg-pill span:hover { border-color: #54AEE1; color: #0f172a; }
.fmg-pill input:focus + span { box-shadow: 0 0 0 3px rgba(84,174,225,.25); }

/* Submit & reset */
.fmg-submit {
  padding: .6rem 1rem;
  border-radius: .6rem;
  border: 1px solid #54AEE1;
  background: #54AEE1;
  color: #fff;
  cursor: pointer;
}
.fmg-course-search-reset { text-decoration: underline; opacity: .85; }

:root{
  --fmg-green:#41c27d;
  --fmg-gray:#616161;
  --fmg-border:#e5e7eb;
}

/* === Existing Sticky Card Styles === */
.fmg-sticky-card{
  width:326px;
  background:#fff;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(2,25,46,.10);
  font-family:system-ui,sans-serif;
  transition: width .2s ease; /* added for smooth collapse */
}
.fmg-card-header{padding:16px 18px 8px; position:relative;}
.fmg-card-title{font-weight:700;font-size:18px;margin-bottom:4px}
.fmg-progress-wrap{font-size:12px;color:#6b7280}
.fmg-card-body{padding:6px 8px}
.fmg-card-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:10px;
}
.fmg-card-row.is-current{background:#e7eef7}
.fmg-row-seq{font-weight:700;width:28px;text-align:right;font-variant-numeric:tabular-nums}
.fmg-visit-btn{
  width:26px;
  height:26px;
  border-radius:999px;
  background:transparent !important;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  border:none !important;
  color:var(--fmg-gray);
}
.fmg-visit-btn:hover{background-color:transparent !important; border:none !important;}
.fmg-visit-btn .circle,.fmg-visit-btn .tick{stroke:var(--fmg-gray)}
.fmg-visit-btn.is-visited .circle,.fmg-visit-btn.is-visited .tick{stroke:var(--fmg-green)}
.fmg-card-footer{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 16px}
.fmg-row-title{min-width:0;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;}
.fmg-title-link,.fmg-title-text{
  font-size:14px;line-height:1.2;overflow:hidden;
}
.fmg-title-link{
  display:inline-block;
  max-width:220px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:14px;
  line-height:1.2;
  color:var(--fmg-text);
  text-decoration:none;
}
.fmg-title-link:hover{text-decoration:underline;}
.fmg-sub{font-size:12px;color:var(--fmg-muted);margin-top:3px;
      display:inline-block;
  max-width:220px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.fmg-footer-label{font-size:13px;color:#6b7280}
.fmg-footer-btn{
  display:inline-block;
  font-weight:600;
  font-size:13px;
  padding:8px 14px;
  background:#d6e6f8;
  color:#1b2636;
  border-radius:999px;
  text-decoration:none;
}

/* === Collapse Toggle Button === */
.fmg-collapse-toggle{
  position:absolute;
  top:10px;
  right:10px;
  width:28px;
  height:28px;
  display:flex;
  background-color: transparent !important;
  padding: 0 !important;
  aspect-ratio: 1/1 !important;
  border: none !important;
  align-items:center;
  justify-content:center;
  border:0;
  background:transparent;
  color:#4696c4 !important;
  cursor:pointer;
}
.fmg-collapse-toggle {
color:#8fc5e4 !important;}

/* === Collapsed Sidebar Mode === */
.fmg-sticky-card.is-collapsed{width:72px;}
.fmg-sticky-card.is-collapsed .fmg-card-title,
.fmg-sticky-card.is-collapsed .fmg-progress-wrap,
.fmg-sticky-card.is-collapsed .fmg-row-title,
.fmg-sticky-card.is-collapsed .fmg-card-footer{
  display:none !important;
}
.fmg-sticky-card.is-collapsed .fmg-card-body{padding:8px 6px;}
.fmg-sticky-card.is-collapsed .fmg-card-row{
  grid-template-columns:1fr;
  justify-items:center;
  gap:6px;
  padding:8px 6px;
}
.fmg-sticky-card.is-collapsed .fmg-row-seq{
  width:auto;
  text-align:center;
  font-weight:700;
}

/* === Tooltip on collapsed rows === */
.fmg-sticky-card.is-collapsed .fmg-card-row[data-tip]{position:relative;}
.fmg-sticky-card.is-collapsed .fmg-card-row[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 8px);   /* 👈 flip side */
  top: 50%;
  transform: translateY(-50%);
  background: #0b1220;
  color: #e5e7eb;
  font-size: .78rem;
  line-height: 1;
  padding: .35rem .5rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,.25),
              0 0 0 1px rgba(255,255,255,.05) inset;
}
.fmg-sticky-card.is-collapsed .fmg-card-row[data-tip]:hover::after{
  opacity:1;
}

/* === Flip arrow icon horizontally when collapsed === */
.fmg-sticky-card.is-collapsed .lucide-arrow-left-to-line{
  transform:scaleX(-1);
}

/* Separator line (hidden in collapsed mode) */
.fmg-nav-separator{
  height:1px;
  background: var(--fmg-border, #e5e7eb);
  margin: 6px 8px 10px;
}
.fmg-sticky-card.is-collapsed .fmg-nav-separator{ display:none !important; }

/* Prev/Next row (hidden in collapsed mode) */
/* Prev/Next row (always keeps left/right slots) */
.fmg-prev-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: 0 8px 6px;
}
.fmg-sticky-card.is-collapsed .fmg-prev-next{ display:none !important; }

/* Buttons */
.fmg-prev-btn,
.fmg-next-btn {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #1b2636;
  background: #eef5fd;
  padding: 6px 10px;
  border-radius: 999px;
  min-width: 70px;          /* 👈 ensures consistent footprint */
  justify-content: center;
  text-align: center;
}

.fmg-prev-btn:hover,
.fmg-next-btn:hover {
  background: #dfeefe;
}

/* If a button is missing, keep its slot with an invisible placeholder */
.fmg-prev-next .fmg-prev-btn:empty,
.fmg-prev-next .fmg-next-btn:empty {
  visibility: hidden;
}

/* Ensure collapsed UI still clean */
.fmg-sticky-card.is-collapsed .fmg-card-row{
  grid-template-columns:1fr; justify-items:center; gap:6px; padding:8px 6px;
}
.fmg-sticky-card.is-collapsed .fmg-row-seq{
  width:auto; text-align:center; font-weight:700;
}

/* Tooltip remains for collapsed rows */
.fmg-sticky-card.is-collapsed .fmg-card-row[data-tip]{ position:relative; }

.fmg-sticky-card.is-collapsed .fmg-card-row[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 8px); /* 👈 place to the left */
  top: 50%;
  transform: translateY(-50%);
  background: #0b1220;
  color: #e5e7eb;
  font-size: .78rem;
  line-height: 1;
  padding: .35rem .5rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  box-shadow: 0 6px 24px rgba(0,0,0,.25),
              0 0 0 1px rgba(255,255,255,.05) inset;
}

.fmg-sticky-card.is-collapsed .fmg-card-row[data-tip]:hover::after {
  opacity: 1;
}


/* Flip collapse icon horizontally when collapsed */
.fmg-sticky-card.is-collapsed .lucide-arrow-left-to-line{ transform: scaleX(-1); }


/* Default hidden… */
.next-up-section { display: none; }
/* …show only when a .type-resource exists inside */
.next-up-section:has(.type-resource) { display: flex; }


.included-in-section { display: none; }
/* …show only when a .type-resource exists inside */
.included-in-section:has(.type-course) { display: flex; }

/* Progress bar defaults */
.fmg-progress { width:100%; display:block; }
.fmg-progress-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.fmg-progress-text { font-size:14px; line-height:1.2; }

.fmg-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e5e7eb; /* gray-200 */
  border-radius: 9999px;
  overflow: hidden;
}

.fmg-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;   /* top:0; right:auto; bottom:0; left:0 */
  width: 0;            /* JS sets this to e.g. 50% */
  background: #4696C4; /* emerald-500 */
  border-radius: 9999px;
  transition: width 200ms ease-in-out;
}/* End custom CSS */