/* Graduates page — layouts.new (legacy section class names preserved) */
body.page-new .bg-whitegray {
  background-color: #f1f5f9;
}

body.page-new .graduates-page-head {
  position: relative;
  /* padding-bottom: 2.5rem; */
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

body.page-new .graduates-page-head .head-content {
  position: relative;
  padding-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

body.page-new .page-new-grad-hero-lead {
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.page-new .page-new-grad-hero-lead .title {
  margin: 0;
}

body.page-new .page-new-grad-hero-lead .sub-desc {
  margin-top: 0.4rem;
}

body.page-new .page-new-grad-hero-lead .sub-desc p {
  margin: 0;
}

@media (min-width: 768px) {
  body.page-new .graduates-page-head .head-content {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 36%);
    column-gap: 1.5rem;
    row-gap: 0;
    align-items: start;
  }

  body.page-new .page-new-grad-hero-lead {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  body.page-new .graduates-page-head .bubble {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin-top: -4.125rem;
  }
}

body.page-new .graduates-page-head .title {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--mainColor, #319980);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.page-new .graduates-page-head .sub-desc {
  color: rgba(15, 23, 42, 0.55);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

body.page-new .graduates-page-head .bubble {
  position: relative;
  z-index: 0;
  max-width: 100%;
  width: 100%;
  pointer-events: none;
  opacity: 0.7;
  align-self: start;
  justify-self: end;
}

@media (min-width: 768px) {
  body.page-new .graduates-page-head .bubble {
    width: auto;
    max-width: min(420px, 100%);
  }
}

body.page-new .graduates-page-head .bubble img {
  display: block;
  width: auto;
  max-width: min(320px, 100%);
  max-height: min(300px, 42vh);
  height: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  body.page-new .graduates-page-head .bubble img {
    margin-right: 0;
    margin-left: auto;
    max-width: min(380px, 100%);
  }
}

body.page-new .graduates-content {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

body.page-new .graduates-slogan {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.78);
}

body.page-new .title-with-bg {
  position: relative;
  margin-bottom: 2rem;
}

body.page-new .title-with-bg span {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  border-radius: 6px;
}

body.page-new .title-with-bg .help-text {
  position: absolute;
  left: 1.5rem;
  bottom: -1.35rem;
  background: var(--mainColor, #319980);
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.65rem;
  display: inline-block;
  font-weight: 700;
  font-size: 0.7rem;
  border-radius: 4px;
}

body.page-new .title-with-border {
  position: relative;
  margin-bottom: 1.25rem;
}

body.page-new .title-with-border.left {
  padding-left: 1rem;
}

body.page-new .title-with-border.left::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  background: var(--mainColor, #319980);
  width: 6px;
  height: 100%;
  min-height: 48px;
  border-radius: 3px;
}

body.page-new .title-with-border .head-text {
  font-size: 1.15rem;
  color: #0f172a;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.3;
}

body.page-new .title-with-border .sub-text {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.page-new .title-with-border.right {
  text-align: right;
  padding-right: 1rem;
}

body.page-new .title-with-border.right::before {
  position: absolute;
  content: "";
  right: 0;
  top: 0;
  background: var(--mainColor, #319980);
  width: 6px;
  height: 100%;
  min-height: 48px;
  border-radius: 3px;
}

body.page-new .second-graph,
body.page-new .third-graph {
  margin-top: 3rem;
}

body.page-new .page-new-grad-chart-wrap {
  position: relative;
  width: 100%;
}

body.page-new .page-new-grad-chart-wrap--lg {
  height: min(70vh, 520px);
  min-height: 280px;
}

body.page-new .page-new-grad-chart-wrap--sm {
  height: 300px;
}

body.page-new .page-new-grad-chart-wrap canvas {
  display: block;
  max-width: 100%;
}

body.page-new .graduates-people-head {
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
  padding: 3rem 0;
  text-transform: uppercase;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.page-new .graduates-people-head .top-text {
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--mainColor, #319980);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

body.page-new .graduates-people-head .top-title {
  margin-top: 1rem;
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.45;
  color: #0f172a;
}

body.page-new .graduates-people-head .top-title-b {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  text-align: center;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
  line-height: 1.45;
}

body.page-new .graduates-people-head img {
  max-width: 100%;
  height: auto;
}

body.page-new .row.g-0.equal-height {
  margin-left: 0;
  margin-right: 0;
}

body.page-new .row.equal-height {
  width: 100%;
  display: table;
  table-layout: fixed;
}

body.page-new .row.equal-height > [class*="col-"] {
  float: none;
  display: table-cell;
  vertical-align: top;
}

/* Same visible frame as blank-member tiles: square thumb, any photo cropped consistently */
body.page-new .people-selected .people-image {
  width: 100%;
  max-width: 285px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

body.page-new .people-selected .people-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}

body.page-new .people-selected .people-name-content {
  padding: 1.25rem 1.5rem 1rem;
}

body.page-new .people-selected .people-content {
  padding: 1.25rem 1.5rem;
}

body.page-new .people-selected .people-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.85rem;
}

body.page-new .people-selected .people-name::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 4px;
  background: var(--mainColor, #319980);
  border-radius: 2px;
  bottom: 0;
  left: 0;
}

body.page-new .people-selected .people-info {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.75);
}

body.page-new .people-selected .counter {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mainColor, #319980);
}

body.page-new .people-selected .people-slogan {
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

body.page-new .people-selected .people-words {
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.82);
  max-height: 290px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.6;
  padding-right: 0.35rem;
}

body.page-new .people-selected .people-words p {
  margin-bottom: 1rem;
}

body.page-new .people-selected .people-words strong {
  font-weight: 600;
  color: #0f172a;
}

body.page-new .other-peoples-list {
  padding: 2.5rem 0 3.5rem;
}

body.page-new .other-peoples-list::after {
  content: "";
  display: table;
  clear: both;
}

body.page-new .p-list-item {
  width: 12.5%;
  float: left;
}

body.page-new .p-list-item > img:first-of-type {
  filter: grayscale(100%);
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center top;
  vertical-align: top;
  background: #e2e8f0;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
  cursor: pointer;
  opacity: 0.72;
  border-radius: 4px;
  display: block;
}

body.page-new .p-list-item > img:first-of-type:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

body.page-new .p-list-item .additional {
  display: none;
}

@media (max-width: 991px) {
  body.page-new .graduates-page-head {
    padding-bottom: 1.5rem;
  }

  body.page-new .graduates-page-head .head-content {
    padding-top: 2rem;
  }

  body.page-new .graduates-page-head .bubble {
    opacity: 0.7;
    justify-self: end;
    max-width: 72%;
    align-self: start;
  }

  body.page-new .graduates-page-head .bubble img {
    max-width: 220px;
  }

  body.page-new .graduates-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  body.page-new .second-graph,
  body.page-new .third-graph {
    margin-top: 2rem;
  }

  body.page-new .title-with-border.right {
    text-align: left;
    padding-right: 0;
    padding-left: 1rem;
  }

  body.page-new .title-with-border.right::before {
    right: auto;
    left: 0;
  }

  body.page-new .row.equal-height > [class*="col-"] {
    display: block;
    width: 100%;
  }

  body.page-new .people-selected .people-image {
    text-align: center;
  }

  body.page-new .people-selected .people-image {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  body.page-new .p-list-item {
    width: 25%;
  }
}

@media (max-width: 575px) {
  body.page-new .p-list-item {
    width: 50%;
  }

  body.page-new .page-new-grad-chart-wrap--lg {
    height: 320px;
  }
}
