/* Flexi Academy: website branding meets the alumni magazine. */
:root {
  --ink: #073440;
  --navy: #062f3c;
  --display: 'Oswald', sans-serif;
  --muted: #69767e;
  --cyan: #009fc8;
  --link: #087a95;
  --orange: #f55b32;
  --paper: #fbf9f4;
  --line: #e3e4dd;
  --font: 'DM Sans', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.container { max-width: 1200px; padding-inline: 30px; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 1100; padding: 12px 20px; background: white; color: var(--ink); }
.skip-link:focus { top: 12px; }

/* A compact magazine masthead with a graphic, button-free banner. */
.hero { background: #fff; }
.masthead { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; }
.brand__mark { width: 86px; height: 58px; object-fit: contain; }
.masthead__label { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 11px; letter-spacing: .04em; }
.masthead__label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero__banner { position: relative; background: var(--navy); color: #fff; overflow: hidden; border-bottom: 5px solid var(--cyan); }
.hero__content { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 166px; padding-block: 28px; }
.hero__copy { position: relative; z-index: 1; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.section-eyebrow { color: #bce3e9; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--orange); }
.hero__title { font-family: var(--display); font-size: clamp(36px, 4.3vw, 58px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; margin: 0; }
.hero__title span { color: #ff865b; }
.hero__art { position: absolute; width: 360px; height: 230px; right: 25px; top: -20px; pointer-events: none; }
.hero__orbit { position: absolute; width: 310px; height: 310px; border: 1px solid #25a0b275; border-radius: 50%; left: 25px; top: -50px; }
.hero__orbit::before, .hero__orbit::after { content: ''; position: absolute; inset: 24px; border: 1px solid #25a0b275; border-radius: 50%; }
.hero__orbit::after { inset: 52px; }
.hero__spark { position: absolute; top: 75px; left: 160px; width: 76px; height: 76px; background: var(--orange); clip-path: polygon(50% 0,60% 35%,85% 15%,65% 40%,100% 50%,65% 60%,85% 85%,60% 65%,50% 100%,40% 65%,15% 85%,35% 60%,0 50%,35% 40%,15% 15%,40% 35%); transform: rotate(12deg); }
.hero__dot { position: absolute; left: 24px; top: 60px; height: 23px; width: 23px; border-radius: 50%; background: #06b4ce; }

.search-section { padding-top: 27px; scroll-margin-top: 20px; }
.search-wrapper { padding-bottom: 0; }
.search-group { position: relative; background: white; border: 1px solid #d4dfdf; border-radius: 6px; transition: border-color .15s ease; }
.search-group:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px #009fc812; }
.search-icon { position: absolute; top: 50%; left: 17px; transform: translateY(-50%); color: var(--link); display: flex; }
.search-icon svg { width: 16px; height: 16px; }
.search-input { width: 100%; min-height: 48px; padding: 12px 44px; background: transparent; border: none; color: var(--ink); font-size: 13px; }
.search-input::placeholder { color: #74818a; }
.search-input:focus { outline: none; }
.btn-clear-search { display: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: transparent; color: var(--muted); }
.btn-clear-search:hover { background: var(--paper); }
.btn-clear-search.show { display: flex; }
.btn-clear-search svg { width: 17px; height: 17px; }
.btn-outline-flexi { min-height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px solid #d4dfdf; border-radius: 6px; background: white; color: var(--ink); font-size: 13px; }
.btn-outline-flexi:hover, .btn-outline-flexi.show { border-color: #8ca9b4; background: #fff; color: var(--ink); }
.dropdown-menu { --bs-dropdown-link-active-bg: #e8f4f7; --bs-dropdown-link-active-color: #08667c; --bs-dropdown-link-hover-bg: #f4f7f8; padding: 5px; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px #202b3212; font-size: 13px; max-height: 300px; overflow-y: auto; }
.dropdown-item { padding: 9px 12px; border-radius: 4px; }
.country-shortcuts { display: flex; align-items: center; gap: 8px; padding-top: 18px; overflow-x: auto; scrollbar-width: thin; }
.country-shortcut { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; padding: 7px 14px; border: 1px solid #dce3e0; border-radius: 5px; background: transparent; color: #47616a; font-size: 12px; transition: background .15s ease, border-color .15s ease; }
.country-shortcut span { font-size: 10px; opacity: .8; }
.country-shortcut:hover { background: #e8f3f3; border-color: #8fbfc8; }
.country-shortcut[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: white; }
.results-summary { min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 12px; font-size: 12px; color: var(--muted); }
.results-count span { color: var(--ink); font-weight: 600; }
.search-feedback { display: none; overflow-wrap: anywhere; }
.search-feedback.show { display: block; }
.filter-chip { display: none; padding: 3px 9px; color: var(--link); background: #e7f1f4; border-radius: 4px; font-size: 11px; }
.filter-chip.show { display: inline-flex; }
.flexi-link { color: var(--link); font-size: 12px; padding-block: 0; text-decoration: underline; text-underline-offset: 3px; }
.flexi-link:hover { color: var(--ink); }
#clearFilterBtn[disabled] { visibility: hidden; }

/* Portraits framed like individual magazine covers. */
#universitySection { padding-top: 5px; }
.graduate-card { display: flex; }
.graduate-card__inner { --stage: #d9f1f3; --accent: #8ed5df; --stage-ink: #075065; --tilt: -3deg; width: 100%; border: 1px solid #e0e5df; border-radius: 10px; background: white; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.graduate-card__inner[data-palette="peach"] { --stage: #ffe7dc; --accent: #f5b59b; --stage-ink: #954329; --tilt: 3deg; }
.graduate-card__inner[data-palette="gold"] { --stage: #f9efce; --accent: #e4cc7b; --stage-ink: #6b581f; --tilt: -2deg; }
.graduate-card__inner[data-palette="navy"] { --stage: #073a48; --accent: #125c6f; --stage-ink: #d1edf2; --tilt: 2deg; }
.graduate-card__inner:hover, .graduate-card__inner:focus-within { transform: translateY(-4px); box-shadow: 0 14px 30px #062f3c12; }
.graduate-card__heading { display: flex; flex-direction: column; }
.graduate-card__media { position: relative; width: 100%; height: 218px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 13px; background: var(--stage); overflow: hidden; isolation: isolate; }
.graduate-card__media::before { content: ''; position: absolute; z-index: -1; width: 225px; height: 225px; left: -85px; bottom: -100px; border: 35px solid var(--accent); border-radius: 50%; opacity: .7; }
.graduate-card__media::after { content: ''; position: absolute; z-index: -1; width: 90px; height: 116px; right: 15px; bottom: 18px; background: repeating-linear-gradient(135deg,transparent 0 9px,var(--accent) 9px 10px,transparent 10px 16px); opacity: .7; }
.graduate-card__media img { width: 144px; height: 169px; object-fit: cover; object-position: center top; border: 7px solid white; border-bottom-width: 12px; border-radius: 2px; background: white; transform: rotate(var(--tilt)); box-shadow: 0 5px 12px #062f3c20; transition: transform .2s ease; }
.graduate-card__inner:hover .graduate-card__media img { transform: rotate(0); }
.graduate-card__serial { position: absolute; top: 13px; left: 19px; color: var(--stage-ink); font-family: var(--display); font-size: 17px; font-weight: 400; opacity: .75; }
.graduate-card__badge { position: absolute; top: 14px; right: 17px; max-width: calc(100% - 62px); color: var(--stage-ink); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.graduate-card__identity { padding: 20px 23px 0; }
.graduate-card__name { font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; margin: 0; color: var(--navy); overflow-wrap: anywhere; }
.graduate-card__body { flex: 1; display: flex; flex-direction: column; gap: 17px; padding: 10px 23px 20px; }
.graduate-card__program { color: #42616b; font-size: 13px; line-height: 1.7; margin: 0; }
.graduate-card__program--muted { color: var(--muted); }
.graduate-card__meta { list-style: none; padding: 0; margin: auto 0 0; }
.meta-label { display: block; color: #7a878b; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.meta-value { display: block; color: #31515d; font-size: 12px; line-height: 1.6; }
.graduate-card__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 23px; padding: 13px 0 16px; border-top: 1px solid #edf0e9; }
.graduate-card__year { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #627980; }
.graduate-card__year::before { content: ''; width: 5px; height: 5px; background: var(--orange); border-radius: 50%; }
.btn-flexi { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--navy); font-size: 11px; font-weight: 600; white-space: nowrap; }
.btn-flexi::after { content: '\2197'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: white; font-size: 16px; line-height: 1; font-weight: 400; transition: background .15s ease; }
.btn-flexi:hover { color: var(--link); }
.btn-flexi:hover::after { background: var(--orange); }
.btn-flexi:focus-visible { box-shadow: none; outline: 2px solid var(--link); outline-offset: 3px; }

/* A grid where spotlight cards span a full row above the regular cards. */
#graduatesGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
#graduatesGrid > .graduate-card { width: auto; max-width: none; margin: 0; padding: 0; }
.graduate-card--spotlight { grid-column: 1 / -1; }

/* Alumni spotlight: the magazine's scene on one side, the student's story on the other. */
.spotlight { position: relative; display: flex; width: 100%; min-height: 400px; border-radius: 10px; background: var(--navy); color: white; overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.spotlight:hover, .spotlight:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px #062f3c30; }
.spotlight__media { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 60%; }
.spotlight[data-side="left"] .spotlight__media { right: auto; left: 0; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.spotlight[data-side="left"] .spotlight__media img { -webkit-mask-image: linear-gradient(270deg, transparent, #000 30%); mask-image: linear-gradient(270deg, transparent, #000 30%); }
.spotlight__body { width: 46%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px 0 48px 48px; }
.spotlight[data-side="left"] .spotlight__body { margin-left: auto; padding: 48px 48px 48px 0; }
.spotlight__tag { margin-bottom: 22px; padding: 5px 20px 5px 12px; background: var(--orange); color: white; font-size: 11px; font-style: italic; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.spotlight__name { font-family: var(--display); font-size: clamp(32px, 3.3vw, 44px); font-weight: 600; line-height: 1.1; text-transform: uppercase; margin: 0 0 22px; color: white; text-shadow: 3px 3px 0 #f55b3266; overflow-wrap: anywhere; text-wrap: balance; }
.spotlight__headline { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--orange); font-size: 15px; font-style: italic; font-weight: 600; line-height: 1.5; }
.spotlight__story { max-width: 460px; margin: 0 0 30px; color: #c3d9df; font-size: 14px; line-height: 1.8; }
.spotlight__actions { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.spotlight .btn-flexi { color: white; }
.spotlight .btn-flexi::after { background: var(--orange); }
.spotlight .btn-flexi:hover { color: #9fe3f0; }
.spotlight .btn-flexi:hover::after { background: white; color: var(--navy); }
.empty-state { display: none; padding: 50px 24px; border: 1px dashed #cbd8de; border-radius: 10px; text-align: center; background: white; }
.empty-state.show { display: block; }
.empty-state svg { width: 32px; height: 32px; color: var(--link); margin-bottom: 20px; }
.empty-state h3 { font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.empty-state p { color: var(--muted); font-size: 13px; margin: 0; }
.site-footer { padding: 28px 0; border-top: 3px solid var(--cyan); background: var(--navy); }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 11px; color: var(--muted); }
.site-footer strong { color: #c1d8df; font-weight: 400; }
.site-footer a { color: #a6dae4; }

.modal-content { border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); box-shadow: 0 24px 80px #202b3226; }
.modal-header { padding: 20px 26px; border-bottom: 3px solid var(--orange); background: var(--navy); border-radius: 11px 11px 0 0; }
.modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.modal-title { color: #d5e8ec; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.modal-body { padding: 28px 26px 16px; }
#modalStudentImg { border-bottom: 6px solid var(--orange); width: 100%; max-width: 164px; height: 196px; object-fit: cover; object-position: center top; border: 1px solid var(--line); border-radius: 8px; background: #edf2f4; }
#modalStudentName { font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: -.035em; line-height: 1.3; margin-bottom: 22px; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.modal-body p { font-size: 13px; line-height: 1.7; margin-bottom: 0; }
.profile-facts p:nth-child(2), .profile-facts p:nth-child(3) { grid-column: 1 / -1; }
.modal-body strong { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 26px; }
.modal-footer .btn { background: var(--navy); color: white; border: 1px solid #d4dfdf; border-radius: 6px; padding: 8px 24px; font-size: 12px; }
.modal-footer .btn:hover { background: var(--link); }

@media (max-width: 991px) {
  .hero__art { right: -80px; opacity: .7; }
}
@media (max-width: 767px) {
  .container { padding-inline: 20px; }
  .masthead { min-height: 68px; }
  .brand__mark { width: 78px; height: 53px; }
  .masthead__label { font-size: 10px; }
  .hero__content { min-height: 146px; padding-block: 24px; }
  .hero__title { font-size: clamp(32px, 8.6vw, 46px); }
  .hero__art { right: -235px; opacity: .38; }
  .hero__spark, .hero__dot { display: none; }
  .search-section { padding-top: 22px; }
  .search-input { font-size: 13px; }
  .results-summary { gap: 6px; }
  .results-summary > .d-flex:has(#clearFilterBtn[disabled]) { display: none !important; }
  .country-shortcut { padding: 7px 12px; }
  .graduate-card__media { height: 226px; }
  .graduate-card__media img { width: 152px; height: 180px; }
  .site-footer .container { flex-wrap: wrap; gap: 10px; }
  .modal-body .row > .col-md-4 { text-align: left !important; }
  #modalStudentImg { width: 86px; height: 104px; }
  #modalStudentName { font-size: 28px; }
  .profile-facts { gap: 16px 20px; }
}
@media (max-width: 1199px) {
  #graduatesGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight__media { width: 56%; }
  .spotlight__body { width: 50%; padding: 40px 0 40px 36px; }
  .spotlight[data-side="left"] .spotlight__body { padding: 40px 36px 40px 0; }
}
@media (max-width: 991px) {
  /* Too narrow to sit side by side: the scene stacks above the story. */
  .spotlight { flex-direction: column; min-height: 0; }
  .spotlight__media, .spotlight[data-side="left"] .spotlight__media { position: relative; width: 100%; height: 320px; }
  .spotlight__media img, .spotlight[data-side="left"] .spotlight__media img { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .spotlight__body, .spotlight[data-side="left"] .spotlight__body { width: 100%; margin: -40px 0 0; padding: 0 32px 32px; }
}
@media (max-width: 767px) {
  #graduatesGrid { grid-template-columns: minmax(0, 1fr); }
  .spotlight__media, .spotlight[data-side="left"] .spotlight__media { height: 250px; }
  .spotlight__body, .spotlight[data-side="left"] .spotlight__body { margin-top: -36px; padding: 0 22px 28px; }
  .spotlight__name { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
