.college-profile-page { background: #f5f7fc; }
.college-profile-page .pc-profile { padding-block: 22px 52px; }
.college-profile-page .pc-crumb { margin-bottom: 16px; }
.profile-hero.pc-profile-header {
  display: block;
  background: #fff;
  box-shadow: var(--pg-shadow);
  border-radius: 22px;
}
.profile-hero .pc-gallery { min-height: clamp(250px, 34vw, 414px); aspect-ratio: auto; }
.profile-hero .pc-photo { object-position: center 48%; }
.profile-hero .pc-gallery:has(.profile-thumbnails)::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(transparent, #0c1730a8);
  pointer-events: none;
}
.profile-hero .profile-empty-gallery { min-height: 115px; }
.profile-hero .pc-photo-controls { bottom: 18px; right: 18px; z-index: 2; }
.profile-hero .pc-photo-controls button { min-width: 42px; min-height: 42px; font-size: 1.4rem; }
.profile-thumbnails {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 140px);
  display: flex;
  gap: 7px;
  padding: 5px;
  overflow-x: auto;
  border-radius: 10px;
  background: #172640ed;
}
.profile-thumbnail {
  flex: 0 0 62px;
  height: 46px;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #63738c;
  cursor: pointer;
}
.profile-thumbnail[aria-pressed="true"] { border-color: #fff; }
.profile-thumbnail:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.profile-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero .pc-profile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  padding: clamp(20px, 4vw, 38px);
}
.profile-identity { min-width: 0; }
.profile-hero .pc-profile-caption h1 { margin-bottom: 8px; font-size: clamp(1.95rem, 4.8vw, 3.4rem); }
.profile-hero .pc-location { font-size: 1rem; }
.profile-hero .pc-tags { margin-top: 12px; }
.profile-hero .pc-profile-actions {
  justify-content: flex-end;
  margin-top: 0;
}
.profile-button-secondary { color: var(--pg-blue-dark); background: #fff; border-color: #c8d5f5; }
.profile-button-secondary:hover { background: #eaf0ff; color: var(--pg-blue-dark); }
.profile-jump-links.pc-section-nav {
  margin: 18px 0;
  padding: 9px;
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  gap: 5px;
  box-shadow: 0 4px 10px #1f366509;
}
.profile-jump-links a { padding: 9px 12px; background: transparent; }
.profile-jump-links a[aria-current="location"] { background: #eaf0ff; color: #1736a5; }
.profile-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, 315px); gap: 20px; align-items: start; }
.profile-hero + .profile-content-grid { margin-top: 18px; }
.college-profile-page .pc-profile-sections { max-width: none; }
.college-profile-page .pc-profile-section { background: #fff; scroll-margin-top: 160px; }
.college-profile-page .pc-profile-section > h2 { font-size: clamp(1.3rem, 2.5vw, 1.65rem); margin-bottom: 12px; }
.profile-sidebar { position: sticky; top: 156px; }
.college-profile-page .pc-profile-guidance { background: #eaf0ff; border-color: #cfdbf8; }
.profile-sidebar .pc-profile-actions { align-items: stretch; flex-direction: column; gap: 8px; }
.profile-sidebar .pc-profile-actions a { white-space: normal; }
.profile-course-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.profile-course-grid li {
  display: flex;
  align-items: center;
  padding: 9px 11px;
  gap: 9px;
  min-width: 0;
  background: var(--pg-soft);
  border: 1px solid var(--pg-line);
  border-radius: 9px;
  font-size: .91rem;
  font-weight: 600;
}
.profile-course-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #e6edff;
  color: var(--pg-blue-dark);
  border-radius: 5px;
}
.profile-course-icon::before { content: "↗"; }
.profile-fee-value {
  background: var(--pg-soft);
  border-left: 3px solid var(--pg-blue);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  color: var(--pg-ink);
  font-size: clamp(1rem,2vw,1.2rem);
  font-weight: 650;
  white-space: pre-line;
}
.profile-contact-list { display: grid; gap: 10px; margin: 0; }
.profile-contact-list > div { display: grid; grid-template-columns: 5.5rem minmax(0,1fr); gap: 8px; }
.profile-contact-list dt { font-weight: 650; }
.profile-contact-list dd { margin: 0; color: var(--pg-muted); white-space: pre-line; }
.profile-contact-link { color: var(--pg-blue-dark); }
.profile-skeleton { border: 1px solid var(--pg-line); background: #fff; border-radius: 22px; overflow: hidden; }
.profile-skeleton-image { min-height: clamp(250px, 34vw, 414px); border-radius: 0; }
.profile-skeleton-copy { display: grid; gap: 12px; padding: clamp(20px,4vw,38px); }
.profile-skeleton-copy > div { height: 18px; width: min(215px,70%); }
.profile-skeleton-copy > div:first-child { height: 38px; width: min(460px,90%); }
.college-profile-page .pc-notice { margin-block: 0 16px; }
.college-profile-page .ads-section { margin: 0 auto 28px; }

@media (max-width: 920px) {
  .profile-hero .pc-profile-caption { align-items: flex-start; flex-direction: column; }
  .profile-hero .pc-profile-actions { justify-content: flex-start; }
  .profile-content-grid { grid-template-columns: minmax(0,1fr) minmax(220px,260px); gap: 13px; }
}
@media (max-width: 740px) {
  .profile-content-grid { grid-template-columns: minmax(0,1fr); }
  .profile-sidebar { position: static; }
  .profile-sidebar .pc-profile-actions { align-items: flex-start; flex-direction: row; }
  .college-profile-page .pc-profile-section { scroll-margin-top: 85px; }
  .profile-hero .pc-gallery { min-height: 0; aspect-ratio: 16 / 10; }
  .profile-hero .profile-empty-gallery { min-height: 92px; aspect-ratio: auto; }
  .profile-hero .pc-photo-controls { bottom: 10px; right: 10px; }
  .profile-hero .pc-photo-controls button { min-height: 36px; min-width: 36px; }
  .profile-thumbnails { left: 10px; bottom: 10px; max-width: calc(100% - 110px); }
  .profile-thumbnail { flex-basis: 45px; height: 36px; }
}
@media (max-width: 410px) {
  .profile-course-grid { grid-template-columns: minmax(0,1fr); }
  .profile-hero .pc-profile-actions, .profile-sidebar .pc-profile-actions { align-items: stretch; flex-direction: column; }
  .profile-hero .pc-profile-actions { width: 100%; }
}
