.teacher-profile-card .teacher-course-media{height:auto;aspect-ratio:4/3;flex:none}
.teacher-profile-card .teacher-course-body{display:grid;grid-template-rows:auto auto auto;align-content:start;gap:12px;padding:24px}
.teacher-profile-card .teacher-course-body h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;height:3em;margin:0;line-height:1.5;font-size:22px}
.teacher-profile-card:hover{transform:none}
.teacher-details-button:focus-visible{outline:3px solid #d5ae48;outline-offset:4px}
.teacher-details-profile{display:grid;grid-template-columns:minmax(240px,340px) minmax(0,1fr);align-items:center;gap:32px;margin-bottom:48px;padding:30px;border:1px solid rgba(var(--nc-accent-rgb),.16);border-radius:22px;background:#fff;box-shadow:0 14px 38px rgba(28,45,70,.07)}
.teacher-details-profile[hidden]{display:none}
.teacher-details-profile>.teacher-course-media{height:auto;aspect-ratio:4/3;border-radius:16px}
.teacher-details-copy h2{margin:8px 0 12px;color:var(--nc-dark);font-size:clamp(25px,3vw,36px);line-height:1.5;overflow-wrap:anywhere}
.teacher-details-copy>p{margin:0;color:#766d7b;font-size:14px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}
.teacher-details-subjects{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.teacher-details-subjects span{padding:6px 11px;border:1px solid rgba(var(--nc-accent-rgb),.13);border-radius:9px;background:rgba(var(--nc-accent-rgb),.06);color:var(--nc-accent);font-size:11px;line-height:1.7}
.teacher-details-course-heading{margin-top:8px}
.teacher-details-courses .teacher-course-card{min-height:0}
.teacher-details-courses .teacher-course-media{height:auto;aspect-ratio:16/9;flex:none}
.teacher-details-courses .teacher-course-body p{margin:0 0 12px;overflow-wrap:anywhere}
.teacher-details-page .teacher-courses-state{margin:0 0 30px}
.teacher-details-button{display:block;width:100%;min-height:46px;padding:12px 18px;border:1px solid rgba(var(--nc-accent-rgb),.14);border-radius:13px;background:rgba(var(--nc-accent-rgb),.09);color:var(--nc-accent);font:inherit;font-size:13px;font-weight:800;text-align:center;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.teacher-details-button:hover{background:var(--nc-accent);color:#fff;box-shadow:0 8px 20px rgba(var(--nc-accent-rgb),.18)}
.teacher-details-button:focus-visible,.teacher-dialog-toolbar button:focus-visible{outline:3px solid #d5ae48;outline-offset:4px}
body.teacher-dialog-open{overflow:hidden}
.teacher-details-dialog{position:fixed;inset:0;width:min(960px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #e9e0ee;border-radius:26px;background:#faf9fc;color:var(--nc-dark);box-shadow:0 30px 100px #160d2855;text-align:start}
.teacher-details-dialog::backdrop{background:rgba(24,12,35,.68);backdrop-filter:blur(7px)}
.teacher-dialog-toolbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 28px;background:linear-gradient(120deg,var(--nc-dark),var(--nc-accent));color:#fff;font-size:14px;font-weight:800}
.teacher-dialog-toolbar button{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #ffffff40;border-radius:12px;background:#ffffff18;color:#fff;font:inherit;font-size:28px;line-height:1;cursor:pointer}
.teacher-dialog-toolbar button:hover{background:#ffffff30}
.teacher-dialog-content{padding:28px}
.teacher-dialog-profile{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:center;gap:28px;padding-bottom:28px;border-bottom:1px solid #e8dfed}
.teacher-dialog-profile>.teacher-course-media{height:auto;aspect-ratio:4/3;border-radius:18px}
.teacher-dialog-profile h2{margin:8px 0 12px;font-size:clamp(24px,3vw,34px);line-height:1.5;overflow-wrap:anywhere}
.teacher-dialog-profile p{margin:0;color:#766d7b;font-size:14px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}
.teacher-dialog-subjects{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.teacher-dialog-subjects span{padding:6px 11px;border:1px solid rgba(var(--nc-accent-rgb),.13);border-radius:9px;background:rgba(var(--nc-accent-rgb),.06);color:var(--nc-accent);font-size:11px;line-height:1.7}
.teacher-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:26px 0 18px}
.teacher-dialog-heading h3{margin:0;font-size:22px}
.teacher-dialog-count{color:var(--nc-accent);font-size:13px;font-weight:800}
.teacher-dialog-courses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.teacher-dialog-courses .teacher-course-card{min-height:0;border-radius:18px;box-shadow:0 6px 20px #29123a08}
.teacher-dialog-courses .teacher-course-card:hover{transform:none}
.teacher-dialog-courses .teacher-course-body{gap:10px}
.teacher-dialog-courses .teacher-course-body h3{font-size:18px;overflow-wrap:anywhere}
.teacher-dialog-courses .teacher-course-body p{margin:0 0 12px;overflow-wrap:anywhere}
.teacher-dialog-courses .teacher-course-media{height:auto;aspect-ratio:16/9;flex:none}
.teacher-dialog-courses .teacher-courses-state{min-height:190px;box-shadow:none}
@media(max-width:700px){.teacher-details-profile{grid-template-columns:1fr;gap:22px;margin-bottom:36px;padding:22px}.teacher-details-profile>.teacher-course-media{width:100%;max-width:380px;margin:auto}}
@media(prefers-reduced-motion:reduce){.teacher-details-button{transition:none}}
