/* Portal layout and shared public-site header. */
:is(.home-page, .inner-page) {
  --home-green: #0f9f83;
  --home-green-dark: #087562;
  --home-green-soft: #e9f7f3;
  --home-orange: #f28b31;
  --home-orange-soft: #fff2e5;
  --home-blue: #3276c8;
  --home-blue-soft: #edf5ff;
  --home-red: #dc4c4c;
  --home-ink: #243746;
  --home-muted: #6d7d88;
  --home-line: #e4eaee;
  --home-surface: #f5f8fa;
}

.home-page {
  background: var(--home-surface);
  color: var(--home-ink);
}

.home-page > .back-to-top {
  display: none !important;
}

.home-page svg,
.inner-page .home-header svg {
  width: 1em;
  height: 1em;
  stroke-width: 1.8;
}

.home-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
:is(.home-page, .inner-page) .home-header {
  position: relative;
  top: auto;
  height: auto;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--home-line);
  box-shadow: none;
}

:is(.home-page, .inner-page) .home-header.scrolled {
  border-bottom-color: var(--home-line);
  box-shadow: none;
}

.home-header .home-header-top {
  display: grid;
  grid-template-columns: 285px minmax(320px, 600px) 1fr;
  gap: 28px;
  align-items: center;
  min-height: 88px;
}

.home-logo-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-logo-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  color: #fff;
  background: var(--home-green);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.home-logo-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.home-logo-copy strong {
  color: var(--home-green-dark);
  font-size: 20px;
  white-space: nowrap;
}

.home-logo-copy small {
  margin-top: 4px;
  color: #8a989f;
  font-size: 9px;
  white-space: nowrap;
}

.home-city {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 13px;
  white-space: nowrap;
}

.home-search {
  position: relative;
  display: flex;
  height: 44px;
  border: 2px solid var(--home-green);
  border-radius: 5px;
  background: #fff;
}

.home-search input {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: var(--home-ink);
  background: transparent;
  font-size: 14px;
}

.home-search button {
  display: inline-flex;
  width: 82px;
  flex: 0 0 82px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: var(--home-green);
  font-size: 14px;
  font-weight: 600;
}

.home-search button:hover {
  background: var(--home-green-dark);
}

.search-suggestions {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 6px);
  right: -2px;
  left: -2px;
  display: none;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 54, 68, 0.14);
}

.search-suggestions.open {
  display: block;
}

.search-suggestions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #edf1f3;
  font-size: 13px;
}

.search-suggestions a:last-child {
  border-bottom: 0;
}

.search-suggestions a:hover {
  color: var(--home-green-dark);
  background: var(--home-green-soft);
}

.search-suggestions small {
  color: #9aa7ad;
}

.home-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.header-hotline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--home-muted);
}

.header-hotline svg {
  color: var(--home-orange);
  font-size: 23px;
}

.header-hotline div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.header-hotline span {
  font-size: 11px;
}

.header-hotline strong {
  color: var(--home-ink);
  font-size: 16px;
}

.header-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--home-muted);
  font-size: 13px;
  white-space: nowrap;
}

.header-quick-link:hover {
  color: var(--home-green);
}

.home-header .menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.home-nav-wrap {
  border-top: 1px solid #f0f3f5;
}

:is(.home-page, .inner-page) .home-header .main-nav {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 2px;
}

:is(.home-page, .inner-page) .home-header .nav-item {
  width: auto;
}

:is(.home-page, .inner-page) .home-header .nav-link {
  height: 48px;
  padding: 0 24px;
  line-height: 48px;
  color: #43545f;
  font-size: 14px;
  font-weight: 500;
}

:is(.home-page, .inner-page) .home-header .nav-link::after {
  height: 2px;
  background: var(--home-green);
}

.home-page .home-header .nav-item:first-child .nav-link {
  padding-left: 0;
  color: var(--home-green-dark);
  font-weight: 700;
}

.inner-page .home-header .nav-item:first-child .nav-link {
  padding-left: 0;
}

.inner-page .home-header .nav-item.active .nav-link {
  color: var(--home-green-dark);
  font-weight: 700;
}

@media (min-width: 993px) {
  :is(.home-page, .inner-page) .home-header {
    z-index: 100;
  }

  :is(.home-page, .inner-page) .home-header .nav-item:hover {
    z-index: 1;
  }

  :is(.home-page, .inner-page) .home-header .nav-dropdown {
    top: calc(100% - 1px);
    left: 50%;
    z-index: 10;
    min-width: 176px;
    padding: 6px;
    border: 1px solid #dfe9e5;
    border-top: 2px solid var(--home-green);
    border-radius: 0 0 6px 6px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(28, 57, 48, 0.14);
    transform: translate(-50%, 8px);
    transition:
      opacity 0.18s ease,
      visibility 0.18s ease,
      transform 0.18s ease;
  }

  :is(.home-page, .inner-page) .home-header .nav-item:hover .nav-dropdown {
    transform: translate(-50%, 0);
  }

  :is(.home-page, .inner-page) .home-header .nav-dropdown a {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid #edf2f0;
    color: #43545f;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
  }

  :is(.home-page, .inner-page) .home-header .nav-dropdown a:last-child {
    border-bottom: 0;
  }

  :is(.home-page, .inner-page) .home-header .nav-dropdown a:hover {
    padding-left: 14px;
    border-radius: 4px;
    background: #eef8f5;
    color: var(--home-green-dark);
  }
}

.inner-page .page-banner,
.inner-page > .breadcrumb {
  margin-top: 0 !important;
}

/* Hero portal */
.portal-hero {
  padding: 18px 0 0;
  background: #fff;
}

.portal-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 256px;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #fff;
}

.category-panel {
  border-right: 1px solid var(--home-line);
}

.category-heading {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: var(--home-green);
  font-size: 16px;
  font-weight: 700;
}

.category-heading svg {
  font-size: 20px;
}

.category-list {
  display: grid;
  grid-template-rows: repeat(9, 1fr);
  height: calc(100% - 52px);
  padding: 5px 0;
}

.category-list a {
  display: grid;
  grid-template-columns: 25px 50px 1fr;
  align-items: center;
  min-height: 40px;
  padding: 5px 14px;
  color: #3c4e58;
  font-size: 13px;
}

.category-list a:hover {
  color: var(--home-green-dark);
  background: var(--home-green-soft);
}

.category-list svg {
  color: var(--home-green);
  font-size: 18px;
}

.category-list span {
  font-weight: 600;
}

.category-list small {
  overflow: hidden;
  color: #929fa6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-list .category-more {
  color: var(--home-green-dark);
}

.portal-carousel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #dce9e5;
}

.portal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-position: center;
  background-size: cover;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.portal-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 48, 48, 0.84) 0%, rgba(12, 67, 60, 0.56) 48%, rgba(11, 40, 41, 0.08) 100%);
}

.slide-overlay-warm {
  background: linear-gradient(90deg, rgba(65, 43, 24, 0.82) 0%, rgba(132, 75, 31, 0.48) 50%, rgba(35, 42, 39, 0.1) 100%);
}

.slide-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 7%;
  width: min(520px, 78%);
  color: #fff;
  transform: translateY(-50%);
}

.slide-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-left: 3px solid #ffad51;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
}

.slide-copy h1,
.slide-copy h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 34px;
  line-height: 1.28;
}

.slide-copy p {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.8;
}

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.home-btn-primary {
  color: #fff;
  background: var(--home-green);
}

.home-btn-primary:hover {
  color: #fff;
  background: var(--home-green-dark);
}

.home-btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.home-btn-light:hover {
  color: var(--home-ink);
  background: #fff;
}

.carousel-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 34px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: rgba(16, 36, 38, 0.25);
  font-size: 22px;
  transform: translateY(-50%);
}

.carousel-control:hover {
  background: rgba(16, 36, 38, 0.55);
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

.carousel-dots {
  position: absolute;
  z-index: 4;
  right: 26px;
  bottom: 18px;
  display: flex;
  gap: 7px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
}

.carousel-dots button.active {
  width: 22px;
  border-radius: 5px;
  background: #fff;
}

.service-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid var(--home-line);
}

.service-panel-head {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--home-line);
}

.service-panel-head span {
  color: var(--home-ink);
  font-size: 15px;
  font-weight: 700;
}

.service-panel-head small {
  color: #9aa6ac;
  font-size: 11px;
}

.service-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, 1fr);
}

.service-grid a {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  text-align: center;
}

.service-grid a:nth-child(2n) {
  border-right: 0;
}

.service-grid a:hover {
  background: var(--home-green-soft);
}

.service-grid svg {
  margin-bottom: 9px;
  color: var(--home-green);
  font-size: 28px;
}

.service-grid span {
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 600;
}

.service-grid small {
  margin-top: 3px;
  color: #9aa6ac;
  font-size: 10px;
}

.guide-box {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  color: #fff;
  background: var(--home-orange);
}

.guide-box > svg {
  flex: 0 0 auto;
  font-size: 28px;
}

.guide-box div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.guide-box span {
  font-size: 11px;
  opacity: 0.9;
}

.guide-box a {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.business-strip {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #fff;
}

.business-strip a,
.business-label {
  position: relative;
  padding: 0 25px;
  color: #54656f;
  font-size: 13px;
  white-space: nowrap;
}

.business-strip a::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 14px;
  background: var(--home-line);
  content: "";
  transform: translateY(-50%);
}

.business-strip a:last-child::after {
  display: none;
}

.business-strip a:hover {
  color: var(--home-green);
}

.business-label {
  color: var(--home-green-dark);
  font-weight: 700;
}

/* Portal floors */
.home-floor {
  padding: 42px 0 8px;
}

.floor-heading {
  display: flex;
  min-height: 50px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.floor-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.floor-index {
  color: var(--home-green);
  font-size: 24px;
  font-weight: 800;
}

.floor-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 23px;
}

.floor-heading p {
  color: #8b989f;
  font-size: 12px;
}

.floor-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--home-muted);
  font-size: 12px;
}

.floor-heading > a:hover {
  color: var(--home-green);
}

.floor-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 260px;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #fff;
}

.floor-feature {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 360px;
  flex-direction: column;
  padding: 34px 25px;
  color: #fff;
}

.floor-feature::after {
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 190px;
  height: 190px;
  border: 26px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.specialty-feature {
  background: linear-gradient(155deg, #159a84, #0b725f);
}

.guide-feature {
  background: linear-gradient(155deg, #f2953f, #dc6238);
}

.feature-tag {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.78;
}

.floor-feature h3 {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  color: #fff;
  font-size: 30px;
  line-height: 1.35;
}

.floor-feature p {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.8;
}

.feature-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
}

.floor-feature:hover {
  color: #fff;
}

.floor-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.portal-specialty-card,
.service-card-grid a {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 20px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.portal-specialty-card:nth-child(3n),
.service-card-grid a:nth-child(3n) {
  border-right: 0;
}

.portal-specialty-card:nth-child(n+4),
.service-card-grid a:nth-child(n+4) {
  border-bottom: 0;
}

.portal-specialty-card:hover,
.service-card-grid a:hover {
  color: var(--home-green-dark);
  background: var(--home-green-soft);
}

.portal-specialty-card .card-icon,
.service-card-grid svg {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 6px;
  color: var(--home-green);
  background: var(--home-green-soft);
  font-size: 21px;
}

.portal-specialty-card strong,
.service-card-grid strong {
  overflow: hidden;
  color: var(--home-ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-specialty-card span,
.service-card-grid span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-specialty-card small {
  position: absolute;
  top: 22px;
  right: 18px;
  color: var(--home-orange);
  font-size: 10px;
}

.service-card-grid svg {
  padding: 9px;
}

.floor-news {
  padding: 18px;
  border-left: 1px solid var(--home-line);
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--home-green);
}

.side-heading span:first-child {
  color: var(--home-ink);
  font-size: 15px;
  font-weight: 700;
}

.side-heading a,
.side-heading span:last-child {
  color: #9aa6ac;
  font-size: 10px;
}

.floor-news > a {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px dashed var(--home-line);
}

.floor-news > a:last-child {
  border-bottom: 0;
}

.floor-news > a strong {
  overflow: hidden;
  color: var(--home-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-news > a span {
  overflow: hidden;
  margin-top: 5px;
  color: #8c999f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-news > a:hover strong {
  color: var(--home-green);
}

.live-dot {
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff !important;
  background: var(--home-red);
  font-weight: 700;
}

.guide-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 14px;
  color: var(--home-red);
  font-size: 12px;
}

.guide-side ul {
  display: grid;
  gap: 10px;
}

.guide-side li {
  position: relative;
  padding-left: 13px;
  color: var(--home-muted);
  font-size: 11px;
}

.guide-side li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--home-orange);
  content: "";
}

.guide-phone {
  display: flex !important;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: row !important;
  gap: 7px;
  margin-top: 18px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px;
  color: #fff !important;
  background: var(--home-orange);
  font-size: 15px !important;
  font-weight: 800;
}

.guide-phone:hover {
  background: #dc7131;
}

.loading-state {
  display: grid;
  min-height: 200px;
  grid-column: 1 / -1;
  place-items: center;
  color: #97a4aa;
  font-size: 13px;
}

/* Campuses */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #fff;
}

.campus-card {
  position: relative;
  display: flex;
  min-height: 278px;
  flex-direction: column;
  padding: 24px 22px;
  border-right: 1px solid var(--home-line);
}

.campus-card:last-child {
  border-right: 0;
}

.campus-card:hover {
  background: var(--home-blue-soft);
}

.campus-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.campus-level {
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--home-orange);
  background: var(--home-orange-soft);
  font-size: 10px;
  font-weight: 700;
}

.campus-city {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--home-blue);
  font-size: 11px;
}

.campus-card h3 {
  margin-top: 22px;
  color: var(--home-ink);
  font-size: 17px;
  line-height: 1.5;
}

.campus-meta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.campus-meta span {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 5px;
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.6;
}

.campus-meta svg {
  margin-top: 2px;
  color: var(--home-green);
  font-size: 14px;
}

.campus-meta em {
  font-style: normal;
}

.campus-card .campus-actions {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
}

.campus-actions a {
  display: inline-flex;
  min-height: 34px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  color: var(--home-muted);
  font-size: 11px;
}

.campus-actions a:first-child {
  color: #fff;
  border-color: var(--home-green);
  background: var(--home-green);
}

/* News */
.news-portal {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 0;
  overflow: hidden;
  min-height: 350px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #fff;
}

.lead-news {
  position: relative;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(13, 42, 43, 0.92), rgba(13, 42, 43, 0.12)),
    url("/images/home/slide-growth.jpg") center / cover;
}

.lead-news:hover {
  color: #fff;
}

.lead-news-tag {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  background: var(--home-orange);
  font-size: 10px;
}

.lead-news h3 {
  max-width: 620px;
  margin-top: 14px;
  color: #fff;
  font-size: 24px;
  line-height: 1.5;
}

.lead-news p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 620px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lead-news time {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.news-side-list {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

.news-side-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--home-line);
}

.news-side-item:last-child {
  border-bottom: 0;
}

.news-side-item:hover {
  background: var(--home-green-soft);
}

.news-date-box {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-right: 14px;
  border-right: 1px solid var(--home-line);
}

.news-date-box strong {
  color: var(--home-green);
  font-size: 24px;
  line-height: 1;
}

.news-date-box small {
  margin-top: 5px;
  color: #98a4aa;
  font-size: 9px;
}

.news-side-item h4 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--home-ink);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-side-item span {
  display: block;
  margin-top: 5px;
  color: #9ba7ad;
  font-size: 9px;
}

/* About */
.about-band {
  margin-top: 50px;
  padding: 46px 0;
  background: #fff;
}

.about-band-inner {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
  gap: 44px;
}

.about-image {
  min-height: 330px;
  overflow: hidden;
  border-radius: 6px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.about-eyebrow {
  color: var(--home-green);
  font-size: 10px;
  font-weight: 800;
}

.about-copy h2 {
  margin-top: 12px;
  color: var(--home-ink);
  font-size: 27px;
}

.about-copy > p {
  margin-top: 17px;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 2;
}

.about-metrics {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.about-metrics div {
  display: flex;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid var(--home-line);
}

.about-metrics div:last-child {
  border-right: 0;
}

.about-metrics strong {
  color: var(--home-green-dark);
  font-size: 21px;
}

.about-metrics span {
  margin-top: 3px;
  color: #929fa6;
  font-size: 10px;
}

/* Floating rail */
.floating-rail {
  position: fixed;
  z-index: 900;
  top: 42%;
  right: 14px;
  overflow: hidden;
  width: 58px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 65, 78, 0.12);
}

.floating-rail a,
.floating-rail button {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 10px;
}

.floating-rail button {
  border-bottom: 0;
}

.floating-rail svg {
  color: var(--home-green);
  font-size: 20px;
}

.floating-rail a:first-child svg {
  color: var(--home-orange);
}

.floating-rail a:hover,
.floating-rail button:hover {
  color: var(--home-green-dark);
  background: var(--home-green-soft);
}

/* Existing common footer refinements for the homepage */
.home-page .site-footer {
  background: #263941;
}

.home-page .site-footer .logo-icon {
  border-radius: 6px;
}

@media (max-width: 1180px) {
  .home-header .home-header-top {
    grid-template-columns: 260px minmax(280px, 1fr) auto;
    gap: 18px;
  }

  .header-quick-link {
    display: none;
  }

  .portal-grid {
    grid-template-columns: 210px minmax(0, 1fr) 230px;
  }

  .category-list a {
    grid-template-columns: 23px 46px 1fr;
    padding-right: 9px;
  }

  .business-strip a,
  .business-label {
    padding: 0 18px;
  }

  .floor-layout {
    grid-template-columns: 215px minmax(0, 1fr) 235px;
  }

  .floor-card-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .portal-specialty-card:nth-child(3n),
  .service-card-grid a:nth-child(3n) {
    border-right: 1px solid var(--home-line);
  }

  .portal-specialty-card:nth-child(2n),
  .service-card-grid a:nth-child(2n) {
    border-right: 0;
  }

  .portal-specialty-card:nth-child(n+4),
  .service-card-grid a:nth-child(n+4) {
    border-bottom: 1px solid var(--home-line);
  }

  .portal-specialty-card:nth-child(n+5),
  .service-card-grid a:nth-child(n+5) {
    border-bottom: 0;
  }
}

@media (max-width: 992px) {
  .home-container {
    width: min(100% - 30px, 900px);
  }

  .home-header .home-header-top {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .home-header .home-search,
  .home-header-actions {
    display: none;
  }

  .home-header .menu-toggle {
    display: flex;
  }

  .home-logo-copy strong {
    font-size: 18px;
  }

  :is(.home-page, .inner-page) .home-header .main-nav {
    position: fixed;
    z-index: 1100;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    clip-path: inset(0 0 0 100%);
    pointer-events: none;
    transform: none;
    visibility: hidden;
    transition: clip-path 0.25s ease, visibility 0.25s;
  }

  :is(.home-page, .inner-page) .home-header .main-nav.active {
    clip-path: inset(0);
    pointer-events: auto;
    visibility: visible;
  }

  :is(.home-page, .inner-page) .home-header .nav-link,
  :is(.home-page, .inner-page) .home-header .nav-item:first-child .nav-link {
    height: 48px;
    padding: 0 8px;
    border-bottom: 1px solid var(--home-line);
    line-height: 48px;
  }

  .portal-grid {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .service-panel {
    display: none;
  }

  .business-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 10px;
  }

  .business-strip a,
  .business-label {
    padding: 0 17px;
  }

  .floor-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .floor-news {
    display: none;
  }

  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .campus-card {
    border-bottom: 1px solid var(--home-line);
  }

  .campus-card:nth-child(2n) {
    border-right: 0;
  }

  .campus-card:nth-child(n+3) {
    border-bottom: 0;
  }

  .news-portal {
    grid-template-columns: 1fr 1fr;
  }

  .floating-rail {
    display: none;
  }
}

@media (max-width: 720px) {
  .home-container {
    width: min(100% - 24px, 680px);
  }

  .home-city {
    display: none;
  }

  .home-logo-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .home-logo-copy strong {
    font-size: 16px;
  }

  .home-logo-copy small {
    font-size: 8px;
  }

  .portal-hero {
    padding-top: 12px;
  }

  .portal-grid {
    display: block;
    min-height: 410px;
  }

  .category-panel {
    display: none;
  }

  .portal-carousel {
    min-height: 410px;
  }

  .slide-copy {
    top: auto;
    right: 22px;
    bottom: 50px;
    left: 22px;
    width: auto;
    transform: none;
  }

  .slide-copy h1,
  .slide-copy h2 {
    font-size: 26px;
  }

  .slide-copy p {
    font-size: 13px;
  }

  .carousel-control {
    display: none;
  }

  .business-strip {
    min-height: 52px;
  }

  .business-strip a,
  .business-label {
    padding: 0 14px;
    font-size: 12px;
  }

  .home-floor {
    padding-top: 34px;
  }

  .floor-heading {
    align-items: flex-start;
  }

  .floor-heading > div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
  }

  .floor-index {
    grid-row: 1 / 3;
    font-size: 20px;
  }

  .floor-heading h2 {
    font-size: 20px;
  }

  .floor-heading p {
    font-size: 10px;
  }

  .floor-heading > a {
    display: none;
  }

  .floor-layout {
    display: block;
  }

  .floor-feature {
    min-height: 210px;
  }

  .floor-feature h3 {
    margin-top: 18px;
    font-size: 26px;
  }

  .floor-card-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(145px, auto));
  }

  .portal-specialty-card,
  .service-card-grid a {
    min-height: 145px;
    padding: 18px 15px;
  }

  .portal-specialty-card .card-icon,
  .service-card-grid svg {
    margin-bottom: 12px;
  }

  .campus-grid {
    grid-template-columns: 1fr;
  }

  .campus-card,
  .campus-card:nth-child(n+3) {
    min-height: 245px;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .campus-card:last-child {
    border-bottom: 0;
  }

  .news-portal {
    display: block;
  }

  .lead-news {
    min-height: 310px;
    padding: 24px;
  }

  .lead-news h3 {
    font-size: 20px;
  }

  .news-side-item {
    min-height: 90px;
  }

  .about-band {
    padding: 36px 0;
  }

  .about-band-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-image {
    min-height: 250px;
  }

  .about-copy h2 {
    font-size: 23px;
  }

  .about-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 0;
  }

  .about-metrics div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 440px) {
  .home-container {
    width: calc(100% - 20px);
  }

  .home-logo-copy small {
    display: none;
  }

  .portal-grid,
  .portal-carousel {
    min-height: 380px;
  }

  .slide-copy h1,
  .slide-copy h2 {
    font-size: 23px;
  }

  .slide-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .slide-actions {
    margin-top: 18px;
  }

  .home-btn {
    min-height: 38px;
    padding: 0 13px;
  }

  .portal-specialty-card,
  .service-card-grid a,
  .portal-specialty-card:nth-child(2n),
  .service-card-grid a:nth-child(2n) {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .portal-specialty-card:last-child,
  .service-card-grid a:last-child {
    border-bottom: 0;
  }

  .news-side-item {
    grid-template-columns: 55px 1fr;
    gap: 11px;
    padding: 14px;
  }

  .about-metrics strong {
    font-size: 19px;
  }
}

/* Teachers (home floor) */
.teacher-portal-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
  min-height: 350px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #fff;
}

.teacher-intro {
  padding: 35px 30px;
  color: #fff;
  background: linear-gradient(145deg, rgba(20, 74, 72, 0.94), rgba(25, 106, 98, 0.87));
}

.teacher-intro > span {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.72;
}

.teacher-intro h3 {
  margin-top: 24px;
  color: #fff;
  font-size: 25px;
  line-height: 1.45;
}

.teacher-intro p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.8;
}

.teacher-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.teacher-stats div {
  display: flex;
  flex-direction: column;
}

.teacher-stats strong {
  color: #fff;
  font-size: 21px;
}

.teacher-stats span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.teacher-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.portal-teacher-card {
  display: flex;
  min-width: 0;
  min-height: 175px;
  flex-direction: column;
  padding: 24px 20px;
  border-right: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.portal-teacher-card:nth-child(3n) {
  border-right: 0;
}

.portal-teacher-card:nth-child(n+4) {
  border-bottom: 0;
}

.portal-teacher-card:hover {
  background: var(--home-green-soft);
}

.teacher-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-avatar-small {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--home-green);
  font-size: 15px;
  font-weight: 700;
}

.teacher-card-head div {
  min-width: 0;
}

.teacher-card-head strong {
  display: block;
  overflow: hidden;
  color: var(--home-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-card-head span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.teacher-specialties span {
  padding: 3px 7px;
  border-radius: 3px;
  color: var(--home-green-dark);
  background: var(--home-green-soft);
  font-size: 10px;
}

.teacher-campus-name {
  overflow: hidden;
  margin-top: auto;
  padding-top: 13px;
  color: #98a4aa;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .teacher-portal-layout {
    grid-template-columns: 1fr;
  }

  .teacher-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-teacher-card:nth-child(3n) {
    border-right: 1px solid var(--home-line);
  }

  .portal-teacher-card:nth-child(2n) {
    border-right: 0;
  }

  .portal-teacher-card:nth-child(n+4) {
    border-bottom: 1px solid var(--home-line);
  }

  .portal-teacher-card:nth-child(n+5) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .teacher-intro {
    padding: 26px 22px;
  }

  .teacher-list {
    grid-template-columns: 1fr;
  }

  .portal-teacher-card,
  .portal-teacher-card:nth-child(2n),
  .portal-teacher-card:nth-child(3n),
  .portal-teacher-card:nth-child(n+4) {
    min-height: 160px;
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .portal-teacher-card:nth-child(n+4) {
    display: none;
  }
}
