body.catalog-page .site-header.pg-header { background: #fff; }
.catalog-page .pg-header .nav-links { color: var(--pg-ink); }
.catalog-page [hidden] { display: none !important; }
.catalog-page .ads-section { margin-block: 28px; }
.pc-masthead { padding: 27px 0 35px; background: linear-gradient(118deg,#f3f6ff,#e9efff); border-bottom: 1px solid var(--pg-line); }
.pc-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--pg-muted); font-size: .86rem; overflow-wrap: anywhere; }
.pc-crumb a { color: var(--pg-blue-dark); text-decoration: none; }
.pc-crumb a:hover { text-decoration: underline; }
.pc-masthead h1, .pc-profile h1 { margin: 15px 0 10px; font-size: clamp(2rem, 4.6vw, 3.65rem); letter-spacing: -.055em; line-height: 1.06; overflow-wrap: anywhere; }
.pc-masthead p { color: var(--pg-muted); max-width: 580px; line-height: 1.6; margin: 0 0 22px; }
.pc-search { max-width: 580px; }
.pc-directory { display: grid; grid-template-columns: minmax(182px, 228px) minmax(0, 1fr); align-items: start; gap: 24px; padding-block: 34px 60px; }
.pc-sidebar { position: sticky; top: 100px; min-width: 0; }
.pc-filter { border: 1px solid var(--pg-line); border-radius: var(--pg-radius); background: #fff; }
.pc-filter summary { padding: 16px; font-weight: 750; cursor: pointer; }
.pc-filter-fields { display: grid; gap: 8px; padding: 0 16px 16px; }
.pc-filter label, .pc-sort label { font-size: .84rem; font-weight: 680; color: var(--pg-muted); }
.pc-filter select, .pc-sort select { width: 100%; min-height: 42px; padding: 7px 12px; font: inherit; color: var(--pg-ink); border: 1px solid var(--pg-line); border-radius: 8px; background: #fff; }
.pc-filter label:not(:first-child) { margin-top: 10px; }
.pc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.pc-toolbar h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; }
#directoryStatus { color: var(--pg-muted); margin: 4px 0 0; font-size: .87rem; }
.pc-sort { display: flex; align-items: center; gap: 8px; }
.pc-sort label { white-space: nowrap; }
.pc-sort select { width: auto; }
.pc-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pc-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); background: #fff; transition: box-shadow .2s,border-color .2s; }
.pc-card:hover, .pc-card:focus-within { box-shadow: var(--pg-shadow); border-color: #b5c4e6; }
.pc-gallery { position: relative; background: #e9effb; aspect-ratio: 16 / 8.5; isolation: isolate; }
.pc-photo-fallback { position: absolute; display: grid; place-items: center; padding: 16px; inset: 0; color: var(--pg-muted); text-align: center; font-size: .85rem; }
.pc-photo { display: block; position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.pc-photo:not(.is-loaded) { opacity: 0; }
.pc-photo.is-loaded { animation: pc-photo-enter .45s ease-out; }
@keyframes pc-photo-enter { from { opacity: 0; transform: translateX(6px); } }
.pc-photo-controls { position: absolute; right: 8px; bottom: 8px; z-index: 1; display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 9px; color: #fff; background: #172640ed; }
.pc-photo-controls button { min-height: 32px; min-width: 32px; padding-inline: 7px; border: 0; border-radius: 6px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.pc-photo-controls button:hover { background: #ffffff25; }
.pc-card-content { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pc-card-title { font-size: 1.22rem; margin: 0; line-height: 1.25; letter-spacing: -.018em; }
.pc-card-title a { color: var(--pg-ink); text-decoration: none; }
.pc-card-title a:hover { color: var(--pg-blue-dark); text-decoration: underline; }
.pc-location { color: var(--pg-muted); margin: 0; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 4px 0; }
.pc-tags li { background: #edf2ff; color: #193985; border-radius: 6px; padding: 4px 7px; font-size: .75rem; line-height: 1.3; overflow-wrap: anywhere; }
.pc-card-courses, .pc-card-fees, .pc-card-description { color: var(--pg-muted); margin: 0; font-size: .88rem; line-height: 1.52; }
.pc-card-fees strong { color: var(--pg-ink); margin-right: 8px; }
.pc-card-description summary { cursor: pointer; color: var(--pg-blue-dark); width: fit-content; }
.pc-card-description p { margin: 5px 0; }
.pc-card-actions, .pc-profile-actions { display: flex; gap: 5px 11px; flex-wrap: wrap; align-items: center; }
.pc-card-actions { margin-top: auto; padding-top: 8px; }
.pc-card-actions > a { font-size: .81rem; }
.pc-card-actions .pg-button { min-height: 38px; padding-inline: 10px; }
.pc-empty, .pc-card-skeleton { grid-column: 1 / -1; }
.pc-empty { padding: 32px; border: 1px dashed #bac9e4; border-radius: var(--pg-radius); text-align: center; background: var(--pg-soft); }
.pc-empty h3 { margin-top: 0; }
.pc-empty p { color: var(--pg-muted); }
.pc-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; padding: 13px; margin-bottom: 16px; border: 1px solid #e6d5ae; border-radius: 10px; color: #674717; background: #fff8e9; }
.pc-notice .pg-button { min-height: 34px; }
.pc-loading { border-radius: var(--pg-radius); background: linear-gradient(105deg,#edf1f9 35%,#f9fbff 48%,#edf1f9 62%); background-size: 250% 100%; animation: pc-loading 1.6s infinite; }
.pc-card-skeleton { min-height: 134px; }
.pc-profile-loading { min-height: clamp(270px,45vw,490px); }
@keyframes pc-loading { to { background-position: -165% 0; } }
.pc-profile { padding-block: 24px 54px; }
.pc-profile > .pc-crumb { margin-bottom: 20px; }
.pc-profile-header { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow: hidden; background: var(--pg-soft); }
.pc-profile-header .pc-gallery { min-height: 320px; aspect-ratio: auto; }
.pc-profile-caption { padding: clamp(24px,4vw,46px); align-self: center; }
.pc-profile h1 { margin-top: 0; }
.pc-profile-caption .pc-tags { margin-top: 15px; }
.pc-profile-actions { margin-top: 20px; }
.pc-section-nav { display: flex; gap: 6px 14px; flex-wrap: wrap; background: #fff; position: sticky; top: 76px; z-index: 3; padding: 13px 0; border-bottom: 1px solid var(--pg-line); margin-bottom: 20px; }
.pc-section-nav a { text-decoration: none; color: var(--pg-blue-dark); font-weight: 650; font-size: .9rem; border-radius: 7px; padding: 8px 10px; background: #edf2ff; }
.pc-section-nav a:hover { background: #dce6ff; }
.pc-profile-sections { max-width: 820px; display: grid; gap: 16px; }
.pc-profile-section { min-width: 0; scroll-margin-top: 156px; padding: clamp(16px,4vw,32px); border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow-wrap: anywhere; }
.pc-profile-section h2 { margin: 0 0 12px; letter-spacing: -.028em; }
.pc-profile-section h3 { margin: 16px 0 7px; font-size: .97rem; }
.pc-profile-section p { white-space: pre-line; margin: 6px 0 0; color: var(--pg-muted); line-height: 1.7; }
.pc-profile-guidance { background: #f0f4ff; }
.pc-profile-guidance .pg-button { margin-top: 12px; }

@media (max-width: 920px) {
  .pc-directory { grid-template-columns: minmax(155px, 180px) minmax(0, 1fr); gap: 14px; }
  .pc-card-content { padding: 12px; }
}
@media (max-width: 768px) {
  .pc-section-nav { top: 65px; }
  .pc-profile-header { grid-template-columns: 1fr; }
  .pc-profile-header .pc-gallery { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 740px) {
  .pc-directory { grid-template-columns: minmax(0,1fr); padding-top: 20px; }
  .pc-sidebar, .pc-section-nav { position: static; }
  .pc-profile-section { scroll-margin-top: 80px; }
}
@media (max-width: 510px) {
  .pc-card-grid { grid-template-columns: minmax(0,1fr); }
  .pc-card-content { padding: 15px; }
  .pc-search .pg-button { padding-inline: 10px; }
}

.pc-sidebar .ads-section { width: 100%; margin-block: 14px 0; padding: 0; }
.pc-sidebar .ads-container { height: clamp(120px, 15vw, 155px); border-radius: 12px; background: #172640; }
.pc-sidebar .ad-slide img { object-fit: contain; }
.pc-sidebar :is(.ad-prev,.ad-next) { padding: 6px 10px; }
.pc-sidebar .ad-prev { left: 5px; }
.pc-sidebar .ad-next { right: 5px; }
.pc-sidebar .ad-dots { bottom: 8px; }
@media (max-width: 740px) {
  .pc-sidebar .ads-container { height: clamp(120px, 25vw, 165px); }
}


.pc-directory-gallery { overflow: hidden; }
.pc-directory-gallery .pc-photo.is-loaded { animation: none; }
.pc-directory-gallery .pc-photo.is-loaded.pc-photo-entering {
  animation: pc-directory-photo-in .6s ease-in-out;
}
.pc-directory-gallery .pc-photo.is-loaded.pc-photo-leaving {
  animation: pc-directory-photo-out .6s ease-in-out both;
}
@keyframes pc-directory-photo-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes pc-directory-photo-out {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.pc-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; }
.pc-filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; max-width: 100%; padding: 5px 10px; border: 1px solid #d7e2fb; border-radius: 99px; background: #edf2ff; color: var(--pg-blue-dark); font: inherit; font-size: .82rem; overflow-wrap: anywhere; text-align: left; cursor: pointer; }
.pc-filter-chip:hover { border-color: #9cb1e5; background: #e3ebff; }
.pc-filter-chip span { font-size: 1rem; }
.pc-empty .pg-text-link { display: inline-block; margin-inline: 8px; }
.pc-card-skeleton { grid-column: auto; border: 1px solid var(--pg-line); border-radius: var(--pg-radius); overflow: hidden; }
.pc-skeleton-media { aspect-ratio: 16 / 8.5; border-radius: 0; }
.pc-skeleton-lines { display: grid; gap: 9px; padding: 16px; }
.pc-skeleton-lines span { display: block; width: 71%; height: 12px; }
.pc-skeleton-lines span:first-child { width: 84%; height: 19px; }
.pc-skeleton-lines span:last-child { width: 47%; }
