/* CampusPro profile pages (college, school, institute). Builds on cp-dir.css tokens. */
.pf { padding-bottom: 120px; }

/* ---------- hero ---------- */
.pf-hero { position: relative; overflow: hidden; border-radius: 30px; color: #fff; min-height: 440px; display: flex; align-items: flex-end;
    background: radial-gradient(60% 90% at 85% 30%, rgba(120, 64, 210, .55), transparent 65%), radial-gradient(40% 70% at 100% 100%, rgba(47, 211, 174, .28), transparent 70%), linear-gradient(150deg, #26104a, #170a2a 70%); }
.pf[data-type="schools"] .pf-hero { background: radial-gradient(60% 90% at 85% 30%, rgba(47, 211, 174, .38), transparent 65%), radial-gradient(40% 70% at 100% 100%, rgba(255, 181, 71, .22), transparent 70%), linear-gradient(150deg, #13304a, #0c1a2c 70%); }
.pf[data-type="institutes"] .pf-hero { background: radial-gradient(60% 90% at 85% 30%, rgba(80, 150, 255, .4), transparent 65%), radial-gradient(40% 70% at 100% 100%, rgba(255, 111, 165, .22), transparent 70%), linear-gradient(150deg, #142458, #0b1230 70%); }
.pf-hero:not(:has(.pf-hero-img)) { min-height: 320px; }
.pf-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pf-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 10, 42, .94) 0%, rgba(23, 10, 42, .7) 50%, rgba(23, 10, 42, .25) 100%), linear-gradient(0deg, rgba(23, 10, 42, .8), transparent 55%); }
.pf[data-type="schools"] .pf-hero-shade { background: linear-gradient(90deg, rgba(12, 26, 44, .94) 0%, rgba(12, 26, 44, .7) 50%, rgba(12, 26, 44, .25) 100%), linear-gradient(0deg, rgba(12, 26, 44, .8), transparent 55%); }
.pf[data-type="institutes"] .pf-hero-shade { background: linear-gradient(90deg, rgba(11, 18, 48, .94) 0%, rgba(11, 18, 48, .7) 50%, rgba(11, 18, 48, .25) 100%), linear-gradient(0deg, rgba(11, 18, 48, .8), transparent 55%); }
.pf-hero-copy { position: relative; z-index: 2; padding: 48px clamp(22px, 4.5vw, 64px) 40px; max-width: 900px; }

.pf-id { display: flex; gap: 20px; align-items: center; margin-top: 6px; }
.pf-logo { flex: none; width: 84px; height: 84px; border-radius: 22px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.pf-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pf-logo span { font: 700 30px var(--serif); color: var(--plum-3); letter-spacing: .02em; }
.pf-name { font: 700 clamp(28px, 4.2vw, 50px)/1.08 var(--serif); font-variation-settings: "SOFT" 60; margin: 0; letter-spacing: -.01em; text-wrap: balance; color: #fff; }
.pf-place { margin-top: 8px !important; font-size: 17px; color: #d9cff0; }

.pf-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; }
.pf-badge { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.pf-badge-rate { background: var(--mint); color: #062b22; box-shadow: none; }
.pf-badge-rate b { font-weight: 800; }
.pf-badge-verified { background: #fff; color: #0b6b56; box-shadow: none; font-weight: 800; }
.pf-badge-featured { background: var(--saffron); color: #2a1500; box-shadow: none; font-weight: 800; }

.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.pf-icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: 700 15px var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background .2s, transform .2s; }
.pf-icon-btn:hover { background: rgba(255, 255, 255, .18); }
.pf-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-icon-btn[aria-pressed="true"] { background: var(--coral); box-shadow: none; }
.pf-icon-btn[aria-pressed="true"] svg { fill: #fff; stroke: #fff; animation: pf-pop .35s ease; }
@keyframes pf-pop { 50% { transform: scale(1.35); } }

/* ---------- pills ---------- */
.pf-pills { position: sticky; top: 62px; z-index: 20; margin-top: 18px; }
.pf-pills-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; box-shadow: 0 6px 24px rgba(29, 11, 51, .08), inset 0 0 0 1px var(--line); width: fit-content; max-width: calc(100% - 40px); }
.pf-pills-row::-webkit-scrollbar { display: none; }
.pf-pills a { flex: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s; }
.pf-pills a:hover { color: var(--ink); }
.pf-pills a.is-on { background: var(--plum); color: #fff; }

.pf-admin { display: flex; gap: 10px; align-items: center; margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: #fff7e6; box-shadow: inset 0 0 0 1px #ffe2a8; }
.pf-admin span { font-weight: 800; color: #8a5a00; margin-right: 6px; }
.pf-admin .dx-btn { padding: 9px 16px; font-size: 14px; }

/* ---------- layout ---------- */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 22px; align-items: start; }
.pf-main { display: grid; gap: 20px; min-width: 0; }
.pf-card { background: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 130px; }
.pf-card h2, .pf-related h2 { font: 700 26px/1.2 var(--serif); margin: 0 0 16px; color: var(--ink); }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pf-head h2 { margin: 0; }
.pf-count { font-weight: 700; font-size: 14px; color: var(--mint-d); background: #e4faf4; padding: 6px 12px; border-radius: 999px; }
.pf-prose { font-size: 16.5px; line-height: 1.75; color: #3a3350; max-width: 72ch; }
.pf-prose + .pf-prose { margin-top: 14px; }
.pf-muted { color: var(--muted); font-size: 16px; line-height: 1.6; }
.pf-note { margin-top: 18px !important; font-size: 15px; color: var(--muted); }
.pf-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--plum-3) !important; text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer; }
.pf-danger { color: #c0392b !important; font-size: 13px; }
.pf-sm { padding: 10px 18px; font-size: 14px; }

.pf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 24px 0 0; }
.pf-facts div { background: #fbf9fe; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.pf-facts dt { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.pf-facts dd { margin: 0; font-weight: 700; font-size: 15.5px; color: var(--ink); overflow-wrap: anywhere; }

/* courses */
.pf-courses { display: grid; gap: 10px; }
.pf-group { border-radius: 18px; background: #fbf9fe; box-shadow: inset 0 0 0 1px var(--line); }
.pf-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-weight: 800; font-size: 16.5px; }
.pf-group summary::-webkit-details-marker { display: none; }
.pf-group summary small { font-weight: 600; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.pf-group summary small::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.pf-group[open] summary small::after { transform: rotate(-135deg) translateY(-2px); }
.pf-group h3 { font: 800 13.5px var(--sans); color: var(--plum-3); margin: 6px 20px 8px; }
.pf-course-list { padding: 0 12px 14px !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pf-course-list li { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.pf-course-list span { display: block; font-weight: 700; font-size: 15px; }
.pf-course-list small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

/* documents */
.pf-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pf-docs a { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.pf-docs a:hover { box-shadow: inset 0 0 0 1.5px var(--plum-3); transform: translateY(-2px); }
.pf-doc-ico { flex: none; width: 46px; height: 54px; border-radius: 8px 16px 8px 8px; background: var(--coral); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.pf-docs b { display: block; font-size: 15px; }
.pf-docs small { color: var(--muted); font-size: 13px; }

/* gallery */
.pf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.pf-gallery a { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; display: block; }
.pf-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pf-gallery a:hover img { transform: scale(1.05); }

/* reviews */
.pf-stars { --r: 0; display: inline-block; width: 110px; height: 20px; background: linear-gradient(90deg, var(--saffron) calc(var(--r) / 5 * 100%), #e4dced 0);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 1l2.9 6 6.6.8-4.9 4.5 1.3 6.5L11 15.6 5.1 18.8l1.3-6.5L1.5 7.8 8.1 7z'/%3E%3C/svg%3E") 0 0 / 22px 20px repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M11 1l2.9 6 6.6.8-4.9 4.5 1.3 6.5L11 15.6 5.1 18.8l1.3-6.5L1.5 7.8 8.1 7z'/%3E%3C/svg%3E") 0 0 / 22px 20px repeat-x; }
.pf-stars-sm { width: 80px; height: 15px; -webkit-mask-size: 16px 15px; mask-size: 16px 15px; margin-left: auto; }
.pf-score { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 20px 22px; border-radius: 18px; background: #fbf9fe; margin-bottom: 18px; }
.pf-score-num { display: grid; justify-items: center; gap: 6px; }
.pf-score-num b { font: 700 48px/1 var(--serif); }
.pf-score-num small { color: var(--muted); font-size: 13.5px; }
.pf-bars { display: grid; gap: 6px; }
.pf-bars li { display: grid; grid-template-columns: 14px 1fr 28px; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.pf-bars i { height: 8px; border-radius: 9px; background: #ebe4f3; position: relative; overflow: hidden; }
.pf-bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--saffron); border-radius: inherit; }
.pf-review { padding: 18px 0; border-top: 1px solid var(--line); }
.pf-review:first-of-type { border-top: 0; }
.pf-review-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pf-review-top b { display: block; font-size: 15.5px; }
.pf-review-top small { color: var(--muted); font-size: 13px; }
.pf-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lilac); color: var(--plum); display: grid; place-items: center; font-weight: 800; flex: none; }
.pf-review p { font-size: 15.5px; line-height: 1.65; color: #3a3350; white-space: pre-line; }
.pf-review form { margin-top: 8px; }

/* forms */
.pf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pf-thanks { margin-bottom: 18px !important; padding: 14px 18px; border-radius: 14px; background: #e4faf4; color: #0b5e4c; font-weight: 600; font-size: 15px; }
.pf-form { display: grid; gap: 14px; padding: 20px; border-radius: 18px; background: #fbf9fe; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.pf-form[hidden] { display: none; }
.pf-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.pf-form input:not([type="radio"]), .pf-form select, .pf-form textarea { font: 500 15.5px var(--sans); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.pf-form input:focus, .pf-form select:focus, .pf-form textarea:focus { outline: none; border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(90, 42, 151, .12); }
.pf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-form .dx-btn { justify-self: start; }
.pf-rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.pf-rate legend { font-weight: 700; font-size: 14px; margin-bottom: 4px; float: left; width: 100%; }
.pf-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-rate label { font-size: 32px; line-height: 1; color: #d9d0e6; cursor: pointer; transition: color .15s, transform .15s; display: block; }
.pf-rate label:hover, .pf-rate label:hover ~ label, .pf-rate input:checked ~ label { color: var(--saffron); }
.pf-rate input:focus-visible + label { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.pf-error { color: #c0392b; font-size: 14px; font-weight: 600; }

/* contact */
.pf-contact { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: stretch; }
.pf-contact dl { margin: 0; display: grid; gap: 14px; }
.pf-contact dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.pf-contact dd { margin: 2px 0 0; font-weight: 600; font-size: 15.5px; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.pf-contact dd a { color: var(--plum-3); }
.pf-map { min-height: 180px; border-radius: 18px; display: flex; align-items: flex-end; padding: 16px; color: #fff !important; font-weight: 800;
    background: linear-gradient(0deg, rgba(29, 11, 51, .8), transparent 60%), repeating-linear-gradient(35deg, transparent 0 22px, rgba(255, 255, 255, .5) 22px 25px), repeating-linear-gradient(-55deg, transparent 0 40px, rgba(255, 255, 255, .7) 40px 46px), #b9e9dc; }
.pf-map span { display: inline-flex; gap: 8px; align-items: center; }
.pf-map span::before { content: ""; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--coral); box-shadow: 0 0 0 3px #fff; }

/* ---------- sidebar ---------- */
.pf-side { position: sticky; top: 130px; display: grid; gap: 16px; }
.pf-guide, .pf-claim { border-radius: 24px; padding: 26px; }
.pf-guide { color: #fff; background: radial-gradient(80% 70% at 100% 0%, rgba(47, 211, 174, .35), transparent 70%), linear-gradient(160deg, #2b1252, #170a2a); }
.pf-guide h2, .pf-claim h2 { font: 700 22px/1.25 var(--serif); margin: 0 0 10px; }
.pf-guide h2 { color: #fff; }
.pf-guide p { color: #d9cff0; font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.pf-guide .dx-btn, .pf-claim > .dx-btn { width: 100%; }
.pf-guide .dx-btn + .dx-btn { margin-top: 10px; }
.pf-claim { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pf-claim p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.pf-claim > .pf-link { display: block; margin: 14px auto 0; font-size: 14.5px; }
.pf-claim .pf-form { margin: 14px 0 0; }

/* ---------- related ---------- */
.pf-related { margin-top: 48px; }
.pf-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pf-rel a { display: grid; gap: 6px; padding: 10px 10px 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); height: 100%; transition: transform .2s, box-shadow .2s; }
.pf-rel a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--plum-3); }
.pf-rel-img { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #e9e1f5, #d8f5ec); margin-bottom: 6px; }
.pf-rel-img { display: grid; place-items: center; font: 700 34px var(--serif); color: rgba(90, 42, 151, .35); }
.pf-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-rel b { font-size: 15px; line-height: 1.35; padding: 0 6px; }
.pf-rel small { color: var(--muted); font-size: 13px; padding: 0 6px; }

/* ---------- mobile dock ---------- */
.pf-dock { display: none; }

@media (max-width: 1020px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .pf-hero { min-height: 0; border-radius: 24px; }
    .pf-hero-copy { padding: 34px 20px 26px; }
    .pf-id { flex-direction: column; align-items: flex-start; gap: 14px; }
    .pf-logo { width: 64px; height: 64px; border-radius: 18px; }
    .pf-actions .dx-btn-ghost { display: none; }
    .pf-pills { top: 58px; }
    .pf-pills-row { max-width: calc(100% - 20px); }
    .pf-side { grid-template-columns: 1fr; }
    .pf-contact, .pf-form-row, .pf-score { grid-template-columns: 1fr; }
    .pf-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pf-rel { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pf-rel-img { aspect-ratio: 4 / 3; }
    .pf-score { justify-items: center; }
    .pf-bars { width: 100%; }
    .pf-dock { display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(29, 11, 51, .18); }
    .pf-dock .dx-btn { flex: 1; padding: 12px; }
    .pf-dock .dx-btn-line { flex: 0 0 90px; }
}
@media (prefers-reduced-motion: reduce) {
    .pf *, .pf *::after { transition: none !important; animation: none !important; }
}
