.edu-locations-hero,
.edu-location-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 181, 71, 0.22), transparent 22rem),
    radial-gradient(circle at 12% 100%, rgba(0, 167, 160, 0.25), transparent 25rem),
    linear-gradient(135deg, #10233f 0%, #182f56 58%, #24486d 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 11.5rem 0 5.5rem;
}

.edu-locations-hero::before,
.edu-location-detail-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.edu-location-detail-hero {
  padding-bottom: 4.5rem;
}

.edu-locations-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2.4rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
}

.edu-locations-breadcrumb a {
  color: #8be3d6;
}

.edu-locations-breadcrumb a:hover,
.edu-locations-breadcrumb a:focus-visible {
  color: var(--edu-white);
}

.edu-location-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: #ffd98c;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edu-location-kicker::before {
  width: 1.8rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--edu-accent);
  content: "";
}

body.edu-site .edu-locations-hero h1,
body.edu-site .edu-location-detail-hero h1 {
  max-width: 13ch;
  margin: 0 0 1.2rem;
  color: var(--edu-white);
  font-size: clamp(2.75rem, 5.2vw, 4.9rem);
  font-weight: 900;
  line-height: 0.98;
}

.edu-locations-hero .col-lg-8 > p,
.edu-location-detail-hero .col-lg-8 > p {
  max-width: 43rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.edu-location-count {
  display: flex;
  max-width: 19rem;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--edu-white);
  padding: 1.15rem 1.3rem;
  backdrop-filter: blur(12px);
}

.edu-location-count strong {
  font-size: 2.6rem;
  font-weight: 950;
  line-height: 1;
}

.edu-location-count span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.edu-detail-schedule {
  display: inline-flex;
  max-width: 100%;
  gap: 0.6rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--edu-white);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(10px);
}

.edu-detail-schedule > span {
  color: #69e0b6;
  font-size: 0.68rem;
}

.edu-locations-directory,
.edu-location-detail {
  background: var(--edu-paper);
  padding: 5.5rem 0 6rem;
}

.edu-locations-heading,
.edu-location-map-heading {
  display: flex;
  gap: 2rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 2.6rem;
}

.edu-locations-heading > div,
.edu-location-map-heading > div {
  flex: 1 1 auto;
}

body.edu-site .edu-locations-heading h2,
body.edu-site .edu-location-map-heading h2,
body.edu-site .edu-location-rich-card h2 {
  max-width: 17ch;
  margin: 0;
  color: var(--edu-ink);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 900;
  line-height: 1.04;
}

.edu-locations-heading > p {
  max-width: 31rem;
  margin: 0;
  color: var(--edu-muted);
  font-size: 0.92rem;
}

.edu-location-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--edu-line);
  border-radius: 1.5rem;
  background: var(--edu-white);
  box-shadow: 0 18px 46px rgba(24, 37, 69, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.edu-location-card:hover {
  transform: translateY(-5px);
  border-color: #bbb6f7;
  box-shadow: 0 26px 58px rgba(24, 37, 69, 0.14);
}

.edu-location-card-image {
  position: relative;
  display: block;
  min-height: 14rem;
  overflow: hidden;
  background: #dfe8ef;
}

.edu-location-card-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(16, 35, 63, 0.62), transparent);
  content: "";
  pointer-events: none;
}

.edu-location-card-image img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.edu-location-card:hover .edu-location-card-image img {
  transform: scale(1.035);
}

.edu-location-image-placeholder {
  display: grid;
  width: 100%;
  min-height: 14rem;
  place-items: center;
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 181, 71, 0.28), transparent 8rem),
    linear-gradient(135deg, #10233f, #28576e);
  color: rgba(255, 255, 255, 0.72);
  font-size: 2.2rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.edu-location-schedule {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-radius: 0.8rem;
  background: rgba(16, 35, 63, 0.94);
  color: var(--edu-white);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0.65rem 0.75rem;
  backdrop-filter: blur(8px);
}

.edu-location-schedule > span {
  flex: 0 0 auto;
  color: #69e0b6;
  font-size: 0.6rem;
}

.edu-location-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.45rem;
}

.edu-location-type,
.edu-location-contact-label {
  color: var(--edu-primary-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.edu-site .edu-location-card h3 {
  margin: 0.45rem 0 0.8rem;
  color: var(--edu-ink);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.18;
}

.edu-location-card h3 a {
  color: inherit;
}

.edu-location-card h3 a:hover,
.edu-location-card h3 a:focus-visible {
  color: var(--edu-primary-dark);
}

.edu-location-address-preview {
  min-height: 3rem;
  margin: 0 0 1rem;
  color: var(--edu-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.edu-location-meta {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.edu-location-meta li {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  color: #52657c;
  font-size: 0.76rem;
}

.edu-location-meta a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #52657c;
}

.edu-location-meta a:hover,
.edu-location-meta a:focus-visible {
  color: var(--edu-primary-dark);
}

.edu-location-meta-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.55rem;
  background: #e9f7f4;
  color: #08766f;
  font-size: 0.72rem;
  font-weight: 900;
}

.edu-location-card-footer {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--edu-line);
  padding-top: 1rem;
}

.edu-location-card-footer small,
.edu-location-card-footer strong {
  display: block;
}

.edu-location-card-footer small {
  margin-bottom: 0.16rem;
  color: #8391a3;
  font-size: 0.64rem;
  font-weight: 750;
  text-transform: uppercase;
}

.edu-location-card-footer strong {
  max-width: 12rem;
  color: #34465d;
  font-size: 0.75rem;
  line-height: 1.35;
}

.edu-location-card-link {
  flex: 0 0 auto;
  color: var(--edu-primary-dark);
  font-size: 0.75rem;
  font-weight: 850;
}

.edu-location-card-link:hover,
.edu-location-card-link:focus-visible {
  color: var(--edu-secondary);
}

.edu-locations-empty {
  max-width: 43rem;
  margin: 0 auto;
  border: 1px dashed #bdc9d9;
  border-radius: 1.5rem;
  background: var(--edu-white);
  padding: 3rem 2rem;
  text-align: center;
}

.edu-locations-empty > span {
  display: grid;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  background: #eceaff;
  color: var(--edu-primary-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

body.edu-site .edu-locations-empty h3 {
  margin-bottom: 0.6rem;
  color: var(--edu-ink);
  font-weight: 850;
}

.edu-locations-empty p {
  color: var(--edu-muted);
}

.edu-locations-help {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
  border: 1px solid var(--edu-line);
  border-radius: 1.25rem;
  background: var(--edu-white);
  padding: 1.25rem 1.4rem;
}

.edu-locations-help > div {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.edu-locations-help-mark {
  display: grid;
  flex: 0 0 auto;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.8rem;
  background: #e4f7f3;
  color: #08766f;
  font-weight: 900;
}

.edu-locations-help strong {
  color: var(--edu-ink);
  font-size: 0.9rem;
}

.edu-locations-help p {
  margin: 0.12rem 0 0;
  color: var(--edu-muted);
  font-size: 0.78rem;
}

.edu-location-detail-image {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border-radius: 1.6rem;
  background: #dfe8ef;
  box-shadow: 0 20px 55px rgba(24, 37, 69, 0.12);
}

.edu-location-detail-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(to top, rgba(16, 35, 63, 0.76), transparent);
  content: "";
}

.edu-location-detail-image img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
}

.edu-location-detail-image > span:not(.edu-location-image-placeholder) {
  position: absolute;
  z-index: 1;
  right: 1.4rem;
  bottom: 1.25rem;
  left: 1.4rem;
  color: var(--edu-white);
  font-size: 0.8rem;
  font-weight: 800;
}

.edu-location-detail-image .edu-location-image-placeholder {
  min-height: 30rem;
}

.edu-location-rich-card {
  margin-top: 2rem;
  border: 1px solid var(--edu-line);
  border-radius: 1.5rem;
  background: var(--edu-white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.edu-location-rich-text {
  margin-top: 1.2rem;
  color: #506279;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.edu-location-rich-text > :last-child {
  margin-bottom: 0;
}

.edu-location-rich-text h1,
.edu-location-rich-text h2,
.edu-location-rich-text h3,
.edu-location-rich-text h4 {
  color: var(--edu-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.edu-location-rich-text a {
  color: var(--edu-primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.edu-location-contact-card {
  position: sticky;
  top: 9.5rem;
  overflow: hidden;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 181, 71, 0.2), transparent 13rem),
    linear-gradient(145deg, #10233f, #193b59);
  box-shadow: 0 24px 60px rgba(16, 35, 63, 0.2);
  color: rgba(255, 255, 255, 0.76);
  padding: clamp(1.6rem, 3vw, 2.35rem);
}

.edu-location-contact-card .edu-location-contact-label {
  color: #8be3d6;
}

body.edu-site .edu-location-contact-card h2 {
  max-width: 12ch;
  margin: 0.6rem 0 1.7rem;
  color: var(--edu-white);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 1.04;
}

.edu-location-contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.edu-location-contact-list > div {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding: 1rem 0;
}

.edu-location-contact-list dt {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.28rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edu-location-contact-list dt span {
  color: #ffd98c;
  font-size: 0.63rem;
}

.edu-location-contact-list dd {
  margin: 0;
  color: var(--edu-white);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.edu-location-contact-list a {
  color: var(--edu-white);
}

.edu-location-contact-list a:hover,
.edu-location-contact-list a:focus-visible {
  color: #8be3d6;
}

.edu-location-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.edu-location-contact-actions .edu-btn {
  min-width: 0;
  padding-right: 0.8rem;
  padding-left: 0.8rem;
}

.edu-location-map-section {
  margin-top: 5rem;
  border-top: 1px solid var(--edu-line);
  padding-top: 4.5rem;
}

.edu-location-map-link {
  flex: 0 0 auto;
  border-radius: 0.75rem;
  background: #e7f7f4;
  color: #08766f;
  font-size: 0.8rem;
  font-weight: 850;
  padding: 0.7rem 0.9rem;
}

.edu-location-map-link:hover,
.edu-location-map-link:focus-visible {
  background: #d0eee8;
  color: #075f59;
}

.edu-location-map-frame {
  height: 100%;
  min-height: 29rem;
  overflow: hidden;
  border: 1px solid var(--edu-line);
  border-radius: 1.5rem;
  background: #e8edf3;
  box-shadow: 0 20px 50px rgba(24, 37, 69, 0.1);
}

.edu-location-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 29rem;
  border: 0;
}

.edu-location-map-unavailable {
  display: flex;
  min-height: 25rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  border: 1px dashed #bbc7d7;
  border-radius: 1.5rem;
  background: #f0f3f7;
  color: var(--edu-muted);
  padding: 2rem;
  text-align: left;
}

.edu-location-map-unavailable > span {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: #fff0d7;
  color: #9c6411;
  font-weight: 900;
}

.edu-location-map-unavailable strong {
  color: var(--edu-ink);
}

.edu-location-map-unavailable p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
}

.edu-location-address-card {
  height: 100%;
  min-height: 29rem;
  border: 1px solid var(--edu-line);
  border-radius: 1.5rem;
  background: var(--edu-white);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.edu-location-address-number {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.2rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #eceaff;
  color: var(--edu-primary-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

body.edu-site .edu-location-address-card h3 {
  margin: 0;
  color: var(--edu-ink);
  font-size: 1.35rem;
  font-weight: 850;
}

.edu-location-coordinates {
  margin-top: 1.5rem;
  border-top: 1px solid var(--edu-line);
  padding-top: 1rem;
}

.edu-location-coordinates small,
.edu-location-coordinates code {
  display: block;
}

.edu-location-coordinates small {
  margin-bottom: 0.35rem;
  color: #8190a3;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.edu-location-coordinates code {
  border-radius: 0.6rem;
  background: #f1f4f8;
  color: #40536b;
  font-size: 0.72rem;
  padding: 0.65rem;
  overflow-wrap: anywhere;
}

.edu-location-back {
  margin-top: 3rem;
  text-align: center;
}

.edu-location-back a {
  color: var(--edu-primary-dark);
  font-size: 0.85rem;
  font-weight: 850;
}

.edu-location-back a:hover,
.edu-location-back a:focus-visible {
  color: var(--edu-secondary);
}

@media (max-width: 991.98px) {
  .edu-locations-hero,
  .edu-location-detail-hero {
    padding-top: 10.5rem;
  }

  .edu-location-count {
    margin-left: 0;
  }

  .edu-locations-heading,
  .edu-location-map-heading {
    display: block;
  }

  .edu-locations-heading > p {
    margin-top: 1rem;
  }

  .edu-location-map-heading .edu-location-map-link {
    display: inline-flex;
    margin-top: 1.2rem;
  }

  .edu-location-contact-card {
    position: static;
  }

  .edu-location-map-frame,
  .edu-location-map-frame iframe,
  .edu-location-address-card {
    min-height: 24rem;
  }
}

@media (max-width: 767.98px) {
  .edu-locations-directory,
  .edu-location-detail {
    padding: 4rem 0;
  }

  .edu-locations-help {
    display: block;
  }

  .edu-locations-help .edu-btn {
    width: 100%;
    margin-top: 1rem;
  }

  .edu-location-detail-image,
  .edu-location-detail-image img,
  .edu-location-detail-image .edu-location-image-placeholder {
    min-height: 22rem;
    height: 22rem;
  }

  .edu-location-map-section {
    margin-top: 4rem;
    padding-top: 3.5rem;
  }
}

@media (max-width: 575.98px) {
  .edu-locations-hero,
  .edu-location-detail-hero {
    padding: 8.8rem 0 3.6rem;
  }

  .edu-locations-breadcrumb {
    margin-bottom: 1.7rem;
  }

  body.edu-site .edu-locations-hero h1,
  body.edu-site .edu-location-detail-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .edu-location-count {
    max-width: none;
  }

  .edu-location-card-image,
  .edu-location-card-image img,
  .edu-location-image-placeholder {
    min-height: 13rem;
    height: 13rem;
  }

  .edu-location-card-footer {
    display: block;
  }

  .edu-location-card-link {
    display: inline-block;
    margin-top: 0.8rem;
  }

  .edu-location-contact-actions {
    grid-template-columns: 1fr;
  }

  .edu-location-map-frame,
  .edu-location-map-frame iframe,
  .edu-location-address-card {
    min-height: 20rem;
  }

  .edu-location-map-unavailable {
    min-height: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-location-card,
  .edu-location-card-image img {
    transition: none;
  }
}
