/* ============================================================
   Futurestackacademy overrides — loaded after the compiled app stylesheet.
   Colors come from brand-tokens.css (navy = primary, orange = the one accent,
   green = status chips only). The compiled Tailwind utilities live in
   @layer utilities, so these unlayered rules win without !important;
   !important is used only against inline styles and script-set styles.
   ============================================================ */
@import url("brand-tokens.css");

/* ------------------------------------------------------------
   1. Theme: point the compiled Tailwind color variables at the tokens
   ------------------------------------------------------------ */
:root {
  --color-brand: var(--color-primary);
  --color-brand-hover: var(--color-primary-hover);
  --color-brand-deep: var(--navy-900);
  --cit-brand: var(--color-primary);

  /* green was used decoratively everywhere — it is now navy; status chips opt back in below */
  --color-green: var(--color-primary);
  --color-green-deep: var(--color-primary);

  /* --color-body and --color-muted share names with Tailwind's and are already set by brand-tokens.css */
  --color-ink: var(--color-heading);
  --color-graphite: var(--text);
  --color-ash: #475569;
  --color-dim: var(--muted);
  --color-faint: #94A3B8;
  --color-silver: #C3CEDF;
  --color-line: var(--color-border);
  --color-line-strong: var(--color-border);
  --color-line-faint: var(--color-border);
  --color-surface: var(--bg-soft);
  --color-surface-alt: #F1F5F9;
  --color-surface-soft: #F1F5F9;
  --color-surface-warm: #F1F5F9;
}

/* Dark surfaces are navy-950, not near-black */
[class~="bg-ink"] { background-color: var(--color-dark-section); }
/* accent text on dark surfaces (was red/green, which would now be navy-on-navy) → orange */
[class~="bg-ink"] [class~="text-green"],
[class~="bg-ink"] [class~="text-brand"] { color: var(--color-accent); }

/* Red tints → navy tints */
[class~="bg-[rgba(224,34,52,.08)]"],
[class~="bg-[rgba(224,34,52,.09)]"] { background-color: var(--navy-100); }
[class~="border-[rgba(224,34,52,.22)]"] { border-color: rgba(27, 46, 75, .18); }
[class~="hover:border-[rgba(224,34,52,.4)]"]:hover { border-color: rgba(27, 46, 75, .35); }
[class~="focus-visible:ring-[rgba(224,34,52,.4)]"]:focus-visible { --tw-ring-color: rgba(38, 64, 106, .4); }
[class~="text-[#e02234]"] { color: var(--color-accent-text); }
[class~="bg-[#e02234]"] { background-color: var(--color-accent); }

/* Green tints → navy tints */
[class~="bg-[rgba(0,168,98,.06)]"],
[class~="bg-[rgba(0,168,98,.07)]"],
[class~="bg-[rgba(0,168,98,.08)]"] { background-color: var(--navy-50); }
[class~="bg-[rgba(0,168,98,.09)]"],
[class~="bg-[rgba(0,168,98,.1)]"],
[class~="bg-[rgba(0,168,98,.11)]"],
[class~="bg-[rgba(0,168,98,.12)]"],
[class~="bg-[rgba(0,168,98,.14)]"],
[class~="bg-[rgba(0,168,98,.16)]"],
[class~="bg-[rgba(0,168,98,.18)]"] { background-color: var(--navy-100); }
[class~="bg-[rgba(0,168,98,.35)]"] { background-color: rgba(27, 46, 75, .35); }
[class~="bg-[rgba(0,168,98,.92)]"] { background-color: rgba(27, 46, 75, .92); }
[class~="border-[rgba(0,168,98,.22)]"],
[class~="border-[rgba(0,168,98,.28)]"],
[class~="border-[rgba(0,168,98,.3)]"],
[class~="border-[rgba(0,168,98,.32)]"],
[class~="border-[rgba(0,168,98,.35)]"] { border-color: rgba(27, 46, 75, .18); }
[class~="hover:border-[rgba(0,168,98,.4)]"]:hover,
[class~="hover:border-[rgba(0,168,98,.45)]"]:hover { border-color: rgba(27, 46, 75, .35); }
[class~="shadow-[0_0_0_6px_rgba(0,168,98,.18)]"] { --tw-shadow-color: rgba(27, 46, 75, .18); }
[class~="text-[#007e4a]"] { color: var(--color-primary); }
[class~="bg-[#00a862]"] { background-color: var(--color-primary); }

[class~="focus-visible:ring-[rgba(0,126,74,.4)]"]:focus-visible { --tw-ring-color: rgba(38, 64, 106, .4); }
[class~="border-[rgba(0,126,74,.15)]"],
[class~="border-[rgba(0,126,74,.25)]"] { border-color: rgba(27, 46, 75, .2); }
[class~="[background-image:radial-gradient(rgba(0,126,74,.35)_2px,transparent_2px)]"] {
  background-image: radial-gradient(rgba(27, 46, 75, .3) 2px, transparent 2px);
}

/* Translucent green/red tints on DARK surfaces were a glowing highlight; navy-100 would turn
   them into light tiles, so on dark surfaces they become a translucent orange highlight. */
:is([class~="bg-ink"], [data-fsa-hero]) [class*="bg-[rgba(0,168,98"],
:is([class~="bg-ink"], [data-fsa-hero]) [class*="bg-[rgba(224,34,52"] { background-color: rgba(232, 119, 46, .14); }
:is([class~="bg-ink"], [data-fsa-hero]) [class*="border-[rgba(0,168,98"],
:is([class~="bg-ink"], [data-fsa-hero]) [class*="border-[rgba(224,34,52"] { border-color: rgba(232, 119, 46, .35); }
[class~="text-[#6fe0ab]"] { color: #F29A5B; } /* light green on dark → light orange */

/* remaining hardcoded green / red / near-black surfaces */
[class~="bg-[#eaf7f0]"] { background-color: var(--navy-50); }
[class~="border-[#bfe7d4]"], [class~="border-[#f4c7cb]"] { border-color: var(--color-border); }
[class~="bg-[#fdf1ec]"] { background-color: var(--orange-100); }
[class~="bg-[#17121f]"] { background-color: var(--navy-950); }
[class~="bg-[#24242a]"] { background-color: var(--navy-900); }

/* opacity variants Tailwind compiled to literal hex (they don't follow the theme variables) */
[class~="bg-brand/10"], [class~="bg-green/10"], [class~="bg-green/15"], [class~="bg-green/20"] { background-color: var(--navy-100); }
[class~="text-green/20"] { color: rgba(27, 46, 75, .2); }

/* feature cards set a per-card --accent (sky, green, blue, indigo, violet, red, orange) → navy */
.feature-card[class*="[--accent:"] { --accent: var(--color-primary); }

/* top-bar phone dot pulse (was a green ring) */
@keyframes cit-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 119, 46, .5); }
  70%  { box-shadow: 0 0 0 11px rgba(232, 119, 46, 0); }
  to   { box-shadow: 0 0 0 0 rgba(232, 119, 46, 0); }
}

/* SVG icons with hardcoded stroke attributes (CSS overrides presentation attributes) */
[stroke="#e02234"], [stroke="#007e4a"], [stroke="#00a862"] { stroke: var(--color-primary); }
[stroke="#14141a"], [stroke="#24242a"] { stroke: var(--color-heading); }

/* Red/green colored shadows → navy */
[class*="shadow-["][class*="rgba(224,34,52"],
[class*="shadow-["][class*="rgba(0,168,98"] { --tw-shadow-color: rgba(11, 22, 38, .45); }

/* Red/green glows: removed (dark headers are flat navy, as in the hero reference) */
[class*="[background-image:radial-gradient(circle"][class*="rgba(224,34,52"],
[class*="[background-image:radial-gradient(circle"][class*="rgba(0,168,98"] { background-image: none; }
[class*="[background-image:radial-gradient(circle_at_35%_40%,rgba(224,34,52"] {
  background-image: radial-gradient(circle at 35% 40%, rgba(38, 64, 106, .55), transparent 55%),
                    radial-gradient(circle at 72% 66%, rgba(27, 46, 75, .6), transparent 52%);
}

/* Inline-styled icon chips (multi-color: red, pink, purple, indigo, blue, teal, amber) → navy */
[style*="color: #e02234"], [style*="color: #db2777"], [style*="color: #9333ea"],
[style*="color: #4f46e5"], [style*="color: #2563eb"], [style*="color: #0f766e"],
[style*="color: #b7791f"], [style*="color: #007e4a"] { color: var(--color-primary) !important; }
[style*="color-mix(in srgb, #"] { background-color: var(--navy-100) !important; }
[style*="color: #14141a"] { color: var(--color-heading) !important; }
[style*="color:#e6782f"] { color: var(--color-accent) !important; }

/* Section eyebrows ("DEPARTMENTS", "WHY FUTURESTACKACADEMY", …) use the accent */
[class~="tracking-[0.13em]"][class~="text-brand"],
[class~="tracking-[0.13em]"][class~="text-green-deep"] { color: var(--color-accent-text); }
[class="w-[26px] h-0.5 bg-brand"] { background-color: var(--color-accent); }

/* Course-level badges on thumbnails (Diploma / Professional / Mastery / Advanced): white with navy text */
[class~="absolute"][class~="bg-green"][class~="uppercase"] {
  background-color: var(--surface);
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: .06em;
}

/* "Get discount" — the accent action on course cards */
[data-modal-trigger="discount-modal"] {
  background-color: var(--orange-100);
  color: var(--color-accent-text);
}
[data-modal-trigger="discount-modal"]:hover {
  background-color: var(--color-accent);
  color: var(--navy-950);
}

/* Status only — the one place green stays */
[class="rounded-[8px] bg-[rgba(0,168,98,.1)] px-2.5 py-[5px] text-12 font-bold text-green-deep"] {
  background-color: var(--color-status-bg);
  color: var(--color-status-text);
}
[class="text-12.5 font-bold text-green-deep"] { color: var(--color-status-text); }

/* ------------------------------------------------------------
   2. Top bar + header (hero.html reference)
   ------------------------------------------------------------ */
/* The top bar is the same markup on every page (bg-ink + text-silver strip above the header),
   so it is targeted by that markup instead of adding classes to 87 pages. */
body > div.bg-ink.text-silver { font-size: 14px; }
body > div.bg-ink.text-silver .animate-cit-pulse { background-color: var(--color-accent); }
body > div.bg-ink.text-silver strong { color: var(--color-accent); }
body > div.bg-ink.text-silver [class~="text-[#33333d]"] { color: #3A4E6E; }
body > div.bg-ink.text-silver a[href^="tel:"] { color: #FFFFFF; }

/* Solid navbar: no transparency or blur, stays white on scroll
   (the site script sets an inline translucent background; !important wins over it). */
[data-cit-header],
nav[aria-label="Mobile bottom navigation"] {
  background: #FFFFFF !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
[data-cit-header] { border-bottom-color: var(--color-border); }
[data-cit-header] nav[aria-label="Primary"] a { color: #475569; font-weight: 500; font-size: 16px; }
/* the current page's link carries text-ink (the others carry text-body) */
[data-cit-header] nav[aria-label="Primary"] a:hover,
[data-cit-header] nav[aria-label="Primary"] a[class~="text-ink"] { color: var(--color-primary); }
[data-cit-header] nav[aria-label="Primary"] a[class~="text-ink"] { font-weight: 600; }
[data-cit-header] nav[aria-label="Primary"] a > span { background-color: var(--color-accent); }
[data-cit-header] .btn-primary {
  border-radius: 10px;
  padding: 0 24px;
  height: 52px;
  font-size: 16px;
  box-shadow: none;
}
[data-cit-header] .btn-primary:hover { box-shadow: none; }
[data-scroll-top] { background-color: var(--color-primary) !important; }

/* Primary buttons inside dark page headers: navy-on-navy has no contrast, so they take the
   accent, like "Join Free Class" in the hero reference. */
[data-fsa-hero] .btn-primary { background-color: var(--color-accent); color: var(--navy-950); }
[data-fsa-hero] .btn-primary:hover { background-color: #F29A5B; color: var(--navy-950); }
[data-fsa-hero] .btn-primary svg[stroke="#fff"] { stroke: currentColor; }

/* ------------------------------------------------------------
   3. Hero (hero.html reference)
   ------------------------------------------------------------ */
.fsa-hero { background-color: var(--navy-950); color: #FFFFFF; padding: 96px 0 104px; }
.fsa-hero__grid { gap: 56px; }
.fsa-hero__eyebrow { font-size: 16px; font-weight: 700; color: #C3CEDF; }
.fsa-hero__title {
  margin: 26px 0 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}
.fsa-hero__title-accent { color: var(--color-accent); }
.fsa-hero__lead {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: #B4C0D3;
}
.fsa-hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.fsa-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), background-color .2s;
}
.fsa-hero__btn:hover { transform: translateY(-3px); }
.fsa-hero__btn svg { stroke: currentColor; flex-shrink: 0; }
.fsa-hero__btn--light { background-color: #FFFFFF; color: var(--color-primary); }
.fsa-hero__btn--light:hover { color: var(--color-primary); }
.fsa-hero__btn--accent { background-color: var(--color-accent); color: var(--navy-950); }
.fsa-hero__btn--accent:hover { background-color: #F29A5B; color: var(--navy-950); }
.fsa-hero__note { margin: 26px 0 0; font-size: 16px; font-weight: 700; color: #C3CEDF; }

.fsa-hero__frame {
  border: 1px solid var(--navy-700);
  border-radius: 20px;
  padding: 10px;
}
.fsa-hero__card {
  background-color: var(--navy-900);
  border-radius: 14px;
  overflow: hidden;
}
.fsa-hero__card img { display: block; width: 100%; height: auto; aspect-ratio: 746 / 428; object-fit: cover; }
.fsa-hero__caption {
  margin: 0 32px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--navy-700);
  font-size: 17px;
  line-height: 1.6;
  color: #C3CEDF;
}

@media (max-width: 640px) {
  .fsa-hero { padding: 56px 0 64px; }
  .fsa-hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .fsa-hero__btn { height: 52px; padding: 0 12px; font-size: 14.5px; }
  .fsa-hero__caption { margin: 0 18px; padding: 16px 0 20px; font-size: 15px; }
}

/* ------------------------------------------------------------
   4. Departments — Swiss poster tiles (departments.html reference)
   Tile tones come from .tile--orange / --light / --dark / --navy in brand-tokens.css.
   ------------------------------------------------------------ */
.fsa-dept {
  background-color: var(--surface);
  color: var(--navy-950);
  padding: 120px 0;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.fsa-dept__wrap { display: flex; flex-direction: column; gap: 64px; }
.fsa-dept__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.fsa-dept__title {
  margin: 0;
  flex: 1 1 640px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .92;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--navy-950);
}
.fsa-dept__accent { color: var(--color-accent-text); }
.fsa-dept__side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 8px; }
.fsa-dept__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #475569; }
.fsa-dept__stats { display: flex; gap: 28px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fsa-dept__stats span:last-child { color: var(--color-accent-text); }

.fsa-dept__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 14px; }

.fsa-tile {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  padding: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fsa-tile:hover { transform: translateY(-6px); color: inherit; }
.fsa-tile.tile--orange { color: var(--navy-950); }
.fsa-tile.tile--light, .fsa-tile.tile--light:hover { color: var(--navy-950); }
.fsa-tile.tile--orange:hover { color: var(--navy-950); }
.fsa-tile.tile--dark:hover, .fsa-tile.tile--navy:hover { color: #FFFFFF; }

.fsa-tile__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; }
.fsa-tile__count { display: flex; align-items: baseline; gap: 8px; }
.fsa-tile__num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 96px;
  line-height: .8;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.fsa-tile__unit { font-size: 14px; font-weight: 600; }
.fsa-tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; max-width: 240px; }
.fsa-tile__name {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.fsa-tile__desc { margin: 0; font-size: 15px; }
.tile--orange .fsa-tile__desc { color: var(--navy-800); }
.tile--light  .fsa-tile__desc { color: #475569; }
.tile--dark   .fsa-tile__desc { color: #B9B9C0; }
.tile--navy   .fsa-tile__desc { color: #C3CEDF; }

/* round arrow button */
.fsa-arrow {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: var(--navy-950);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fsa-arrow svg { width: 20px; height: 20px; }
.tile--light .fsa-arrow { background-color: var(--navy-950); color: #FFFFFF; }
.fsa-tile:hover .fsa-arrow,
.fsa-dept__cta:hover .fsa-arrow { transform: rotate(45deg); }

/* decorative shapes */
.fsa-shape { position: absolute; pointer-events: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.fsa-tile:hover .fsa-shape { transform: scale(1.12) rotate(-8deg); }

.fsa-shape--blob { right: -90px; bottom: -110px; width: 300px; height: 300px; border-radius: 999px; background-color: #F29A5B; }
.fsa-shape--dot { right: 70px; bottom: 90px; width: 64px; height: 64px; border-radius: 999px; background-color: var(--navy-950); }

.fsa-shape--bars { right: 32px; bottom: 32px; display: flex; align-items: flex-end; gap: 10px; }
.fsa-shape--bars span { width: 26px; background-color: var(--navy-800); }
.fsa-shape--bars span:nth-child(1) { height: 60px; }
.fsa-shape--bars span:nth-child(2) { height: 100px; }
.fsa-shape--bars span:nth-child(3) { height: 150px; background-color: var(--color-accent); }

.fsa-shape--code {
  right: 20px;
  bottom: -40px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 220px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--color-accent);
}

.fsa-shape--rings {
  right: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fsa-shape--rings::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .5);
}
.fsa-shape--rings::after {
  content: "";
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background-color: var(--color-accent);
}

.fsa-shape--diamond { right: 50px; bottom: 50px; width: 120px; height: 120px; transform: rotate(45deg); }
.fsa-tile:hover .fsa-shape--diamond { transform: rotate(37deg) scale(1.12); }
.fsa-shape--diamond::before { content: ""; position: absolute; inset: 0; border: 3px solid var(--navy-800); }
.fsa-shape--diamond::after {
  content: "";
  position: absolute;
  left: 24px;
  top: -24px;
  width: 120px;
  height: 120px;
  background-color: var(--color-accent);
  mix-blend-mode: multiply;
}

.fsa-shape--film {
  right: -20px;
  bottom: 60px;
  width: 260px;
  height: 92px;
  padding: 10px 0 10px 12px;
  transform: rotate(-12deg);
  background-color: var(--color-accent);
  /* two rows of sprocket holes */
  background-image:
    repeating-linear-gradient(90deg, var(--navy-950) 0 16px, transparent 16px 30px),
    repeating-linear-gradient(90deg, var(--navy-950) 0 16px, transparent 16px 30px);
  background-size: 226px 12px, 226px 12px; /* 8 holes: 16px wide, 14px apart */
  background-position: 12px 10px, 12px calc(100% - 10px);
  background-repeat: no-repeat;
}
.fsa-tile:hover .fsa-shape--film { transform: rotate(-20deg) scale(1.12); }

/* diploma + all-courses row */
.fsa-dept__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.fsa-dept__cta {
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fsa-dept__cta:hover { transform: translateY(-6px); }
.fsa-dept__cta--diploma {
  flex: 2 1 560px;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 36px;
  background-color: var(--navy-800);
  color: #FFFFFF;
}
.fsa-dept__cta--diploma:hover { color: #FFFFFF; }
.fsa-dept__cta--all {
  flex: 1 1 320px;
  gap: 20px;
  padding: 30px 34px;
  background-color: #FFFFFF;
  color: var(--navy-950);
  border: 2px solid var(--navy-950);
}
.fsa-dept__cta--all:hover { color: var(--navy-950); }
.fsa-dept__cta-text { display: flex; flex-direction: column; gap: 6px; }
.fsa-dept__cta-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fsa-dept__cta--diploma .fsa-dept__cta-label { color: #C3CEDF; }
.fsa-dept__cta--all .fsa-dept__cta-label { color: var(--color-accent-text); }
.fsa-dept__cta-big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fsa-dept__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background-color: #FFFFFF;
  color: var(--navy-800);
  font-size: 15px;
  font-weight: 700;
}
.fsa-dept__pill svg { width: 16px; height: 16px; }
.fsa-dept__cta--all .fsa-arrow { width: 52px; height: 52px; background-color: var(--color-accent); color: var(--navy-950); }

@media (max-width: 820px) {
  .fsa-dept { padding: 72px 0; }
  .fsa-dept__wrap { gap: 44px; }
  .fsa-dept__title, .fsa-dept__side { flex-basis: 100%; }
}
@media (max-width: 540px) {
  .fsa-dept { padding: 56px 0; }
  .fsa-dept__grid { grid-template-columns: 1fr; }
  .fsa-tile { min-height: 300px; padding: 26px; }
  .fsa-tile__num { font-size: 80px; }
  .fsa-tile__name { font-size: 26px; }
  .fsa-dept__cta--diploma, .fsa-dept__cta--all { padding: 26px; }
}

/* ------------------------------------------------------------
   5. Courses (courses.html reference)
   ------------------------------------------------------------ */
.fsa-courses { background-color: var(--surface); }
.fsa-courses__eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.fsa-courses__title {
  margin: 18px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}
.fsa-courses__lead {
  margin: 18px 0 0;
  max-width: 1000px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: #475569;
}

/* Filter tabs (all pages). Styled from aria-pressed; the site script also writes inline
   black/gray colors on every click, so the colors need !important to stay navy. */
[data-pill] {
  border-color: var(--color-border) !important;
  background-color: #FFFFFF !important;
  color: var(--text) !important;
}
[data-pill]:hover { border-color: var(--color-primary) !important; color: var(--color-primary) !important; }
[data-pill][aria-pressed="true"],
[data-pill][aria-pressed="true"]:hover {
  border-color: var(--color-primary) !important;
  background-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700;
}

/* tab sizing per the reference (homepage courses section) */
.fsa-courses [data-pillgroup] { gap: 10px; }
@media (min-width: 768px) { .fsa-courses [data-pillgroup] { flex-wrap: wrap; overflow: visible; } }
.fsa-courses [data-pill] {
  height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  border-width: 1px;
  font-size: 16px;
  font-weight: 500;
}
.fsa-courses [data-pill][aria-pressed="true"] { padding: 0 22px; font-weight: 700; }

/* course cards */
.fsa-courses article {
  border-color: var(--color-border);
  border-radius: 14px;
  transition: transform .25s, box-shadow .25s;
}
.fsa-courses article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(11, 22, 38, .35);
}
.fsa-courses article > div:first-child { background-color: var(--navy-800); }

/* Course photos: recolored to the brand navy. CSS cannot swap individual colors inside a photo,
   so it is turned grayscale and tinted navy (sepia + hue-rotate lands on navy-800's hue, ~215deg);
   the white text in the artwork stays readable. Applies to course-card photos on every page. */
article img[data-hover="zoom"] {
  filter: grayscale(1) sepia(1) hue-rotate(180deg) saturate(1.7) brightness(.8) contrast(1.1);
}
.fsa-courses article h3,
.fsa-courses article h3 a,
.fsa-courses article h3 a:hover { color: var(--color-primary); }
.fsa-courses article [class~="text-faint"][class~="uppercase"] { color: var(--muted); letter-spacing: .08em; }
.fsa-courses article [class~="bg-surface-alt"] { background-color: #F1F5F9; color: var(--text); }
.fsa-courses article a[data-hover="arrowup"] { background-color: var(--color-primary); }
.fsa-courses article a[data-hover="arrowup"]:hover { background-color: var(--color-primary-hover); }
.fsa-courses [data-railnav]:hover { border-color: var(--color-primary); }
