/* ==========================================================================
   Finlaw · FIU-IND Registration Service Page
   Design system: institutional/regulatory-compliance — black for authority,
   red as the deliberate "action + risk" accent, blue kept secondary.
   Loaded AFTER bootstrap.min.css so these rules override Bootstrap defaults.
   ========================================================================== */

:root {
  --ink: #0b0f14;
  --blue: #1d4ed8;
  --blue-dark: #1b3fb0;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;
  --muted: #56606b;
  --border: #e4e8ec;

  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --bs-body-bg: var(--surface);
  --bs-body-color: var(--muted);
  --bs-body-font-family: var(--font-body);
  --bs-link-color: var(--blue);
  --bs-link-hover-color: var(--blue-dark);
  --bs-border-color: var(--border);
  --bs-primary: var(--red);
  --bs-primary-rgb: 220, 38, 38;

  /* Measured at runtime by fiu-scripts.js so sticky bars stack without gaps/overlap;
     these are just sane fallbacks before JS runs. */
  --nav-h: 80px;
  --subnav-h: 52px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
html {
  scroll-behavior: smooth;
}

/* Safety net: catches any future 1-2px horizontal bleed from Bootstrap's
   negative-margin grid gutters without affecting position:sticky, since
   overflow-x here is scoped to html/body (the natural sticky containing
   block), not to an inner wrapper. */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* ==========================================================================
   Wider .container on large screens
   Bootstrap's own .container max-widths, for reference:
     ≥1200px (xl)  → 1140px
     ≥1400px (xxl) → 1320px
   Every .container on this page (nav, hero, breadcrumb, sub-nav, main
   layout, footer) shares this class, so changing these two numbers widens
   all of them together and keeps everything aligned. Mobile/tablet
   (below 1200px) are untouched — only large screens get more room.
   Tune the two max-width values below to taste.
   ========================================================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  } /* was 1140px, 12px padding */
}
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding-left: 3rem;
    padding-right: 3rem;
  } /* was 1320px, 12px padding */
  .custom-container{
     max-width: 1600px;
    padding-left: 3rem;
    padding-right: 3rem;
    margin: 0 auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.font-display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
}
p {
  color: var(--muted);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--blue-dark);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.col-w-34 {
  width: 34%;
}
.col-w-26 {
  width: 26%;
}

/* ==========================================================================
   Sticky top nav
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav .navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.site-nav .nav-link {
  color: #c9d0d9;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 4px !important;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.2s ease;
}
.site-nav .nav-link:hover {
  color: #ffffff;
}
.site-nav .nav-link:hover::after {
  right: 0;
}
.btn-nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border: 1px solid #c81e3a;
  border-radius: 6px;
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-nav-cta:hover {
  filter: brightness(0.92);
  box-shadow: 0 8px 20px rgba(200, 30, 58, 0.32);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ==========================================================================
   Section sub-nav — sticky horizontal bar under the breadcrumb
   ========================================================================== */
.section-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgb(255 247 247 / 92%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e4e8ec;
}
.subnav-inner {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge / IE */
  cursor: grab;
}
.subnav-inner::-webkit-scrollbar {
  display: none;
} /* Chrome, Safari, Edge (Chromium) */
.subnav-inner.dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: auto; /* don't fight the drag with smooth-scroll easing */
}
.subnav-link {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 20px 16px;
  transition: color 0.2s ease;
}
.subnav-link:hover {
  color: var(--ink);
}
.subnav-link.active {
  color: var(--red);
  font-weight: 700;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.cover {
  background-image: url(../images/fiu/banner-bgw.webp);
  background-size: 100% 100%;
  color: #f5f7fa;
  position: relative;
  overflow: hidden;
}
.cover .container {
  position: relative;
}

.cover-new-fn {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
 color: #e70000;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.08);
  border-radius: 2px;
}
.file-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.cover h1 {
 color: #c30000;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 20ch;
}
.cover .sub {
  color: #6e6e6e;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  max-width: 58ch;
  font-family: var(--font-body);
  font-weight: 400;
}
.cover .sub strong {
 color: #565656;
  font-weight: 600;
}

.hero-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #787878;
}

.btn-primary-custom {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border: 1px solid #c81e3a;
  border-radius: 6px;
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-primary-custom:hover {
  filter: brightness(0.92);
  box-shadow: 0 8px 20px rgba(200, 30, 58, 0.32);
  transform: translateY(-2px);
  color: #ffffff;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgb(0 0 0 / 8%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  max-width: 780px;
  margin-top: 7%;
}

.trust-item {
  background: rgba(255, 255, 255, 0.03);
}
.trust-item .v {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--red);
}
.trust-item .k {
  display: block;
  font-size: 0.8rem;
  color: #464646;
  line-height: 1.4;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.dossier-breadcrumb {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.dossier-breadcrumb .breadcrumb {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
}
.dossier-breadcrumb .breadcrumb-item a {
  color: var(--blue);
}
.dossier-breadcrumb .breadcrumb-item a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}
.dossier-breadcrumb .breadcrumb-item.active {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Article sections — alternating surface rhythm
   ========================================================================== */
.doc-section {
  padding: 2.6rem 1.75rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 16px);
}
.doc-section.bg-white-section {
  background: var(--surface);
  border: 1px solid var(--border);
}
.doc-section.bg-alt-section {
  background: var(--surface-alt);
}
.doc-section:last-of-type {
  margin-bottom: 0;
}

.doc-section h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.doc-section h3.sub-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}
.lede strong {
  color: var(--ink);
  font-weight: 700;
}

.note-card {
  background: #eff4ff;
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}
.note-card strong {
  color: var(--ink);
}

.dossier-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.dossier-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.7rem;
  color: var(--muted);
}
.dossier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.dossier-list.on-dark li {
  color: #c9d0d9;
}
.dossier-list.on-dark li::before {
  background: var(--red);
}

/* ==========================================================================
   Cards — service scope + entity types (shared hover convention)
   ========================================================================== */
.scope-item,
.entity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.entity-card i {
    font-size: 42px;
    color: #7dadf1;
    padding-bottom: 1rem;
}

.entity-card s i {
    color: #ffb032;
}

.scope-item:hover,
.entity-card:hover {
  background: var(--surface);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 15, 20, 0.08);
  border-color: var(--red);
}

/* Cycling pastel palette — pulled from colors already used elsewhere on the
   page (red, blue, the testimonial-card green, the star gold) so the mix
   reads as one intentional system rather than random colors. Each card sits
   alone inside its own Bootstrap .col, so the nth-child cycles on .col. */
.col:nth-child(4n + 1) > .scope-item {
  background: #fdeded;
} /* soft red */
.col:nth-child(4n + 2) > .scope-item {
  background: #fdeded;
} /* soft blue */
.col:nth-child(4n + 3) > .scope-item {
  background: #fdeded;
} /* soft green */
.col:nth-child(4n) > .scope-item {
  background: #fdeded;
} /* soft gold */

/* .entity-card: one flat color for all cards, except card 3 which is gold */
.entity-card {
  background: #eaf1fe;
} /* soft blue */
.col:nth-child(3) > .entity-card {
  background: #fdf3e3;
} /* override — card 3 */

/* Faded topical icon — .scope-item ONLY (not .entity-card), same layering
   technique as the testimonial-card quote mark: large, low-opacity, sits
   behind the text via z-index. */
.scope-item {
  position: relative;
  overflow: hidden;
}
.scope-item .scope-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 64px;
  height: 64px;
  color: rgba(11, 15, 20, 0.08);
  z-index: 0;
  pointer-events: none;
}
.scope-item .scope-num {
  position: relative;
  z-index: 1;
}

.scope-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
  display: block;
}
.scope-item h3,
.entity-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  font-weight: 700;
}
.scope-item p,
.entity-card p {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  margin-bottom: 0;
}
.entity-card .tab {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  display: block;
  text-transform: uppercase;
}

/* ==========================================================================
   Mid-page CTA banner
   ========================================================================== */
.cta-banner {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cta-banner p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.cta-banner p strong {
  color: var(--red);
}
.btn-banner {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border: 1px solid #c81e3a;
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn-banner:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 15, 20, 0.28);
  color: #ffffff;
}

/* ==========================================================================
   Regulatory timeline
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 6px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 43px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #dee3e9;
}
.stamp {
  width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(11, 15, 20, 0.1);
  z-index: 1;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
      font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--red);
    font-weight: 700;
}
.tl-item.enforce .stamp {
  border-color: var(--red);
  background: #fef2f2;
}
.stamp .d {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
}
.tl-item.enforce .stamp .d {
  color: var(--red);
}
.stamp .m {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.tl-body .tl-date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}
.tl-body h3 {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}
.tl-body p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-dossier {
  background: var(--surface);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.table-dossier thead th {
    background: #649aff;
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.90rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-color: #ffffff;
    vertical-align: middle;
    padding: 1rem;
}
.table-dossier tbody td {
  color: var(--muted);
  vertical-align: top;
  border-color: var(--border);
}
.table-dossier tbody td:first-child {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.table-dossier tbody tr:nth-child(even) {
  --bs-table-bg: var(--surface-alt);
}
.table-responsive-dossier {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.step-row {
  /* border-top: 1px solid var(--border); */
  transition: background 0.2s ease;
}
.step-row:first-child {
  border-top: none;
}
.step-row:hover {
  /* background: var(--surface-alt); */
}

.step-row h3{
  padding-top: 1rem;
}

/* .step-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 700;
  line-height: 1;
} */

.step-num{
    width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fdf3e3;
  box-shadow: 0 8px 20px rgba(11, 15, 20, 0.1);
  z-index: 1;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
      font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--red);
    font-weight: 700;
}

.step-row h3 {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
}
.step-row p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Penalties — dark section per design system ("black for authority/gravitas")
   ========================================================================== */
.doc-section.section-dark {
  background: radial-gradient(
      900px 380px at 85% -10%,
      rgba(220, 38, 38, 0.12),
      transparent 60%
    ),
    linear-gradient(160deg, #0b0f14 0%, #15191f 100%);
  color: #c9d0d9;
  position: relative;
  overflow: hidden;
}
.doc-section.section-dark .eyebrow {
  color: var(--red);
}
.doc-section.section-dark .eyebrow::before {
  background: var(--red);
}
.doc-section.section-dark h2 {
  color: #ffffff;
}
.doc-section.section-dark .lede {
  color: #c9d0d9;
}
.doc-section.section-dark .lede strong {
  color: #ffffff;
}
.doc-section.section-dark p {
  color: #b7c0cc;
}

.redact {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 10px;
}
.redact-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border: 1px solid #c81e3a;
  border-radius: 4px;
}
.redact-example {
  border-top: 1px dashed rgba(220, 38, 38, 0.35);
  font-size: 0.9rem;
  color: #c9d0d9;
}
.redact-example strong {
  color: #fca5a5;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.dossier-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.dossier-accordion .accordion-item:last-of-type {
  border-bottom: 1px solid var(--border);
}
.dossier-accordion .accordion-button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.dossier-accordion .accordion-button:not(.collapsed) {
  color: var(--red);
  background: transparent;
  box-shadow: none;
}
.dossier-accordion .accordion-button:focus {
  box-shadow: none;
  /* outline:2px solid var(--red);  */
  outline-offset: 2px;
}
.dossier-accordion .accordion-button::after {
  filter: none;
  background-image: none;
  content: "+";
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--red);
  font-weight: 700;
  width: auto;
  height: auto;
  line-height: 1;
  transition: transform 0.2s ease;
}
.dossier-accordion .accordion-button:not(.collapsed)::after {
  content: "+";
  transform: rotate(45deg);
}
.dossier-accordion .accordion-body {
  padding-left: 0;
  padding-right: 0;
  font-size: 0.9rem;
  /* max-width: 70ch; */
}

.meta-line {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: #8a94a3;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Sidebar rail
   ========================================================================== */
.rail {
  position: sticky;
  top: calc(var(--nav-h) + var(--subnav-h) + 16px);
}

.widget-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.widget-card .card-header {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

/* (Former "On This Page" sidebar TOC removed — replaced by the horizontal
   sticky sub-nav below the breadcrumb; see .section-subnav / .subnav-link.) */
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.fact-row:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}
.fact-row:first-child {
  padding-top: 0 !important;
}
.fact-row .k {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 15ch;
}
.fact-row .v {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--ink);
  text-align: right;
  font-weight: 700;
}

.widget-card.cta-widget {
  background: var(--ink);
  border-color: var(--ink);
}
.cta-widget h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}
.cta-widget p {
  color: #b7c0cc;
  font-size: 0.85rem;
}
.btn-rail {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.87rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border: 1px solid #c81e3a;
  border-radius: 6px;
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-rail:hover {
  filter: brightness(0.92);
  box-shadow: 0 8px 20px rgba(200, 30, 58, 0.32);
  transform: translateY(-2px);
  color: #ffffff;
}
.cta-note {
  font-size: 0.72rem;
  color: #8a94a3;
}

.rel-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.rel-list a:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}
.rel-list a:first-child {
  padding-top: 0 !important;
}
.rel-list a:hover {
  color: var(--red);
}
.rel-list .arrow {
  color: var(--red);
  font-family: var(--font-body);
  flex-shrink: 0;
}

.deadline-row {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.deadline-row:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}
.deadline-row:first-child {
  padding-top: 0 !important;
}
.deadline-code {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--red);
  border-radius: 4px;
  flex-shrink: 0;
}
.deadline-txt {
  font-size: 0.8rem;
  color: var(--muted);
}
.deadline-txt strong {
  color: var(--ink);
}

/* Scoped override: when deadline chips sit in a 2-col grid (full-width page
   variant) instead of a stacked sidebar list, each needs its own bordered
   "chip" look rather than relying on :first-child/:last-child divider logic,
   which only made sense for a single vertical stack. */
.deadline-grid .deadline-row {
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  padding: 0.6rem 0.75rem !important;
  background: var(--surface);
}

/* ==========================================================================
   Testimonials — full-width scrollable card track
   ========================================================================== */
.testimonials-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.btn-carousel {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}
.btn-carousel:hover {
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border-color: #c81e3a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 30, 58, 0.32);
}
.btn-carousel:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.btn-carousel:disabled:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.testimonial-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 1.25rem 0.25rem 1.5rem; /* top/bottom room so hover-lift + shadow never get clipped */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.testimonial-track::-webkit-scrollbar {
  display: none;
}
.testimonial-track.dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: auto;
  scroll-snap-type: none; /* let the drag fully own scrollLeft — snap fights it mid-drag otherwise */
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #eaf7ee; /* light green — explicit request, not part of the red/ink/blue token set */
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}
.testimonial-card::before {
  content: "\201D";
  position: absolute;
  top: -0.35rem;
  right: 0.75rem;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(11, 15, 20, 0.08);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.testimonial-card:hover {
  background: var(--surface);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 15, 20, 0.08);
  border-color: var(--red);
}

.stars {
  position: relative;
  z-index: 1;
  color: #ef9c1f;
  font-size: 1.4rem;
  letter-spacing: 2px;
  margin-bottom: 0.9rem;
}

.testimonial-quote {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 5.5rem;
}

.testimonial-author {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border: 1px solid #c81e3a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}
.testimonial-author .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.testimonial-author .role {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .testimonial-card {
    flex-basis: 270px;
  }
}

/* ==========================================================================
   Related Blog — image-on-top cards, same scrollable-track pattern as
   testimonials, reusing .btn-carousel from that section.
   ========================================================================== */
.blog-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.blog-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.blog-track::-webkit-scrollbar {
  display: none;
}
.blog-track.dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.blog-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: block;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}
.blog-card:hover {
  background: var(--surface);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 15, 20, 0.08);
  border-color: var(--red);
}

.blog-card-img {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ink) 0%, #22303f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-img-icon {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.35);
}
.blog-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff5f5f 0%, #e63946 55%, #c81e3a 100%);
  border: 1px solid #c81e3a;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

.blog-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}
.blog-card-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--red);
}
.blog-card:hover .blog-card-link {
  color: var(--red-dark);
}

@media (max-width: 575.98px) {
  .blog-card {
    flex-basis: 260px;
  }
}

/* ==========================================================================
   Outline button — per design system: transparent bg, 1px red border,
   red text; fills solid red with white text on hover.
   ========================================================================== */
.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: #25d366;
  border: 1px solid #18bb54;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline-custom i{
  font-size: 1.2rem;
}
.btn-outline-custom:hover {
  background: var(--red);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Quick Facts band (full-width page variant) — relocated sidebar "At a
   Glance" widget, shown as a horizontal strip instead of a stacked card.
   ========================================================================== */
.quickfacts-band {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.quickfacts-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
}
.quickfacts-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quickfacts-item .k {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: #8a94a3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quickfacts-item .v {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

/* ==========================================================================
   Mid-page CTA band (full-width page variant) — relocated sidebar "Need
   help registering?" widget, shown as a full-width dark band instead.
   ========================================================================== */
.midpage-cta-band {
  background: radial-gradient(900px 380px at 15% -10%, rgba(220, 38, 38, 0.12), transparent 60%), linear-gradient(160deg, #0b0f1400 0%, #15191f00 100%), url(../images/fiu/midpage.webp);
    background-size: cover;
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.midpage-cta-band h2 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  max-width: 36ch;
}
.midpage-cta-band p {
  color: #c9d0d9;
  margin-bottom: 0;
  max-width: 52ch;
}

/* ==========================================================================
   Related Services grid (full-width page variant) — relocated sidebar
   "Related Services" link list, shown as a card grid instead.
   ========================================================================== */
.related-service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-service-card:hover {
  background: #eaf1fe;
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 15, 20, 0.08);
  border-color: var(--red);
}
.related-service-card .arrow {
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer — dark, per design system
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #8a94a3;
  font-size: 0.82rem;
}
.site-footer a {
  color: #b7c0cc;
}
.site-footer a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.avoid-these{
  background: #fdf3e3 !important;
}

.eligibility{
  background: #f3fff7 !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .rail {
    position: static;
  }

  .cover-new-fn{
    padding: 2rem 1rem 0 1rem;
  }

  .banner-new-fn{
    margin-top: 2rem;
  }

  .quickfacts-inner {
   display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 20px;
}
.quickfacts-item {
   text-align: left;
}

.btn-outline-custom{
  display: block;
}

  .section-subnav {
        /* top: 12%; */
    }

}
@media (max-width: 575.98px) {
  .stamp {
    width: 56px;
    height: 56px;
  }
  .stamp .d {
    font-size: 0.68rem;
  }
  .stamp .m {
    font-size: 0.55rem;
  }
  .doc-section {
    padding: 1.75rem 1.25rem;
  }
  .top-bar{
    padding: 0;
  }

  .step-num{
    width: 40px;
    height: 40px;
  }

  .timeline::before{
    left: 25px;
  }

}

@media (max-width: 360px) {
  .top-bar-contact a p1{
    font-size: 0;
  }
}

@media (max-width: 1400px) {
  .cover-new-fn{
    padding-right: 2rem !important;
    padding-left: 2rem !important;
  }
}


@media (max-width: 1240px) {
 .section-subnav{
   top: 65px;
  }
}