/* 
/* 
/*  custom.css
/*
/*  If not using Gulp and Sass, add your custom CSS below then include it
/*  in your page by adding a reference to assets/css/custom.css in the head of each page.
/*
*/

:root {
  --showcase-panel-bg: linear-gradient(145deg, #062b4a 0%, #0a4772 55%, #0e6a8d 100%);
  --showcase-panel-shadow: 0 2rem 4rem rgba(4, 22, 44, 0.18);
  --showcase-card-shadow: 0 1.4rem 2.8rem rgba(4, 22, 44, 0.22);
  --showcase-card-overlay: linear-gradient(180deg, rgba(3, 24, 44, 0.02) 25%, rgba(3, 24, 44, 0.84) 100%);
  --showcase-pill-bg: rgba(255, 255, 255, 0.14);
  --showcase-pill-border: rgba(255, 255, 255, 0.18);
  --showcase-copy: rgba(255, 255, 255, 0.94);
  --showcase-copy-muted: rgba(255, 255, 255, 0.72);
}

html {
  scrollbar-gutter: stable;
}

.content-showcase-panel {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  color: #fff;
  border-radius: 2rem;
  background: var(--showcase-panel-bg);
  box-shadow: var(--showcase-panel-shadow);
}

.content-showcase-panel::before,
.content-showcase-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.content-showcase-panel::before {
  top: -5rem;
  right: -4rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 72%);
}

.content-showcase-panel::after {
  bottom: -6rem;
  left: -4rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.26) 0%, rgba(0, 210, 255, 0) 70%);
}

.content-showcase-panel .display-4,
.content-showcase-panel .lead,
.content-showcase-panel .small-caps {
  color: var(--showcase-copy);
}

.content-showcase-panel .lead {
  max-width: 29rem;
}

.content-showcase-marquee {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 0.5rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.content-showcase-row {
  overflow: hidden;
}

.content-showcase-rail {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  will-change: transform;
}

.content-showcase-card {
  position: relative;
  flex: 0 0 clamp(12rem, 22vw, 15rem);
  margin: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  box-shadow: var(--showcase-card-shadow);
  transform: translateZ(0);
}

.content-showcase-card img {
  display: block;
  width: 100%;
  height: auto;
}

.content-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--showcase-card-overlay);
}

.content-showcase-card-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 1rem;
  color: #fff;
}

.content-showcase-card-caption h3 {
  color: #fff;
}

.content-showcase-card-caption h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.2;
  max-height: 3.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
  .content-showcase-panel {
    padding: 2.25rem;
  }

  .content-showcase-marquee {
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  .content-showcase-panel {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  .content-showcase-card {
    flex-basis: 11rem;
  }

  .content-showcase-card-caption {
    padding: 0.85rem;
  }

  .content-showcase-card-caption h3 {
    font-size: 0.92rem;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  .content-showcase-card {
    flex-basis: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-showcase-card,
  .content-showcase-card:nth-child(even),
  .content-showcase-card:nth-child(odd) {
    transform: none;
  }
}

.subject-card {
  --subject-accent: #1f4d6b;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: 100%;
  min-height: 10.75rem;
  margin-bottom: 0;
  padding: 1.5rem;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(0, 72, 125, 0.12);
  box-shadow: 0 0.75rem 1.5rem rgba(10, 33, 53, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.subject-card-column {
  margin-bottom: 0.9375rem;
}

.subject-card:hover,
.subject-card:focus {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: rgba(0, 72, 125, 0.32);
  box-shadow: 0 1rem 2rem rgba(10, 33, 53, 0.14);
}

.subject-card:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 72, 125, 0.14), 0 1rem 2rem rgba(10, 33, 53, 0.14);
}

.subject-card-copy {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  flex-direction: column;
}

.subject-card > .icon.icon-lg {
  margin-top: 0.15rem;
}

.subject-card-title {
  color: #212529;
}

.subject-card-summary {
  color: rgba(33, 37, 41, 0.76);
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.subject-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.subject-card-action {
  color: var(--subject-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.subject-card-arrow {
  color: var(--subject-accent);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.subject-card:hover .subject-card-arrow,
.subject-card:focus .subject-card-arrow {
  transform: translateX(3px);
}

.subject-modal {
  --subject-accent: #1f4d6b;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  width: calc(100vw - 2.5rem);
  max-width: 600px;
  height: min(80vh, 46rem);
  max-height: calc(100vh - var(--subject-modal-overlay-offset, 0px) - 2rem);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 3rem rgba(10, 33, 53, 0.16);
  background-clip: padding-box;
  overflow: hidden;
  opacity: 0;
  transform: translateY(1.25rem) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  will-change: opacity, transform;
}

.subject-modal-overlay {
  position: fixed;
  top: var(--subject-modal-overlay-offset, 0px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 1.25rem;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.subject-modal-overlay[hidden] {
  display: none !important;
}

.subject-modal-overlay.is-visible {
  opacity: 1;
}

.subject-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 35, 0.72);
}

.subject-modal-header {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.12);
  z-index: 1;
}

.subject-modal-heading {
  flex: 1 1 auto;
  min-width: 0;
}

.subject-modal-title {
  color: var(--subject-accent);
}

.subject-modal-summary {
  color: rgba(33, 37, 41, 0.76);
}

.subject-modal-body {
  display: block;
  min-height: 0;
  padding: 1rem 1rem 0.4rem 1.25rem;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: var(--subject-accent) rgba(255, 255, 255, 0.3);
}

.subject-modal-body::-webkit-scrollbar {
  width: 12px;
}

.subject-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.subject-modal-body::-webkit-scrollbar-thumb {
  background: var(--subject-accent);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.subject-modal-scroll {
  min-height: 100%;
  padding: 0 0.45rem 0 0;
}

.subject-modal-section {
  padding: 1rem;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.18);
}

.subject-modal-section + .subject-modal-section {
  margin-top: 1rem;
}

.subject-modal-storyboard-title {
  margin-bottom: 0.4rem;
  color: var(--subject-accent);
}

.subject-modal-storyboard-subtitle {
  color: rgba(33, 37, 41, 0.74);
  line-height: 1.4;
}

.subject-modal-list {
  padding-left: 1.1rem;
  color: #212529;
}

.subject-modal-list li + li {
  margin-top: 0.35rem;
}

.subject-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(33, 37, 41, 0.12);
}

.subject-modal-dismiss {
  min-width: 9rem;
}

.subject-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 1rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--subject-accent);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.subject-modal-close:hover,
.subject-modal-close:focus {
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

html.subject-modal-open,
body.subject-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.subject-card.normal-eye,
.subject-modal.normal-eye {
  --subject-accent: #6b3788;
  background-color: #f0ccfe;
}

.subject-card.cataracts,
.subject-modal.cataracts {
  --subject-accent: #816200;
  background-color: #faeeca;
}

.subject-card.corneal-transplant,
.subject-modal.corneal-transplant {
  --subject-accent: #1c6284;
  background-color: #bbe2f3;
}

.subject-card.diabetic-retinopathy,
.subject-modal.diabetic-retinopathy {
  --subject-accent: #8c2d7a;
  background-color: #fdd1fd;
}

.subject-card.eyelids,
.subject-modal.eyelids {
  --subject-accent: #28694e;
  background-color: #dafeea;
}

.subject-card.glaucoma,
.subject-modal.glaucoma {
  --subject-accent: #176b62;
  background-color: #dbfff8;
}

.subject-card.lacrimal,
.subject-modal.lacrimal {
  --subject-accent: #8a6c17;
  background-color: #fef7d5;
}

.subject-card.macular-degeneration,
.subject-modal.macular-degeneration {
  --subject-accent: #9b4a32;
  background-color: #fee5dd;
}

.subject-card.muscles,
.subject-modal.muscles {
  --subject-accent: #995024;
  background-color: #ffe9db;
}

.subject-card.refraction,
.subject-modal.refraction {
  --subject-accent: #4f49a0;
  background-color: #dedfff;
}

.subject-card.refractive-surgery,
.subject-modal.refractive-surgery {
  --subject-accent: #2b6391;
  background-color: #dfeeff;
}

.subject-card.retinal-detachment,
.subject-modal.retinal-detachment {
  --subject-accent: #8c4054;
  background-color: #fde4e6;
}

.subject-card.optical,
.subject-modal.optical {
  --subject-accent: #176b87;
  background-color: #dff6ff;
}

.subject-modal.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 767.98px) {
  .subject-card {
    min-height: 9.75rem;
  }

  .subject-card-summary {
    font-size: 0.9rem;
  }

  .subject-modal {
    width: calc(100vw - 1.5rem);
    height: auto;
    max-height: min(43rem, calc(100dvh - var(--subject-modal-overlay-offset, 0px) - 2.5rem));
    margin: 0 auto;
  }

  .subject-modal-overlay {
    align-items: center;
    padding: 1rem 0.75rem 1.25rem;
  }

  .subject-modal-header {
    padding: 1.1rem 1rem 0.9rem;
  }

  .subject-modal-body {
    padding: 0.9rem 0.7rem 0.35rem 1rem;
  }

  .subject-modal-footer {
    justify-content: stretch;
    padding: 0.85rem 1rem 1rem;
  }

  .subject-modal-dismiss {
    width: 100%;
  }

  .subject-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    margin-left: 0.75rem;
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subject-modal,
  .subject-modal-overlay {
    transition: none;
  }
}
