/* КПКІТП — список викладачів (teachers.css) */

:root{
  --t-card: rgba(255,255,255,.86);
  --t-border: rgba(59,31,94,.14);
  --t-shadow: 0 14px 34px rgba(16,24,40,.10);
}

.page{
  padding: 16px 0 30px;
}

.teachers-wrap{
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(159,231,221,.30) 0%, rgba(159,231,221,.08) 55%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.78) 100%);
  border: 1px solid var(--t-border);
  border-radius: 18px;
  box-shadow: var(--t-shadow);
  padding: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.teachers-title{
  margin: 6px 0 14px;
  color: var(--kp-violet);
  font-weight: 900;
  letter-spacing: .2px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.teacher-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.teacher-item{
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;

  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(16,24,40,.08);
}

.teacher-item:hover{
  border-color: rgba(59,31,94,.20);
  background: rgba(255,255,255,.92);
}

.avatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(59,31,94,.16);
  background: rgba(255,255,255,.6);
  box-shadow: 0 10px 18px rgba(16,24,40,.10);
}

.t-main{
  min-width: 0;
}

.t-name{
  font-weight: 900;
  letter-spacing: .15px;
  color: var(--kp-violet-2);
  line-height: 1.15;
}

.t-name a{
  color: inherit;
  text-decoration: none;
}
.t-name a:hover{
  text-decoration: underline;
}

.t-role{
  margin-top: 4px;
  color: rgba(30,27,34,.70);
  font-weight: 700;
  font-size: 13px;
}

.t-action{
  display: flex;
  justify-content: flex-end;
}

.t-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 12px;
  border-radius: 12px;

  background: linear-gradient(180deg, rgba(59,31,94,.92) 0%, rgba(43,18,72,.98) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 900;

  border: 1px solid rgba(59,31,94,.12);
  box-shadow: 0 10px 18px rgba(16,24,40,.12);
}

.t-btn:hover{
  filter: brightness(1.03);
}

.teacher-empty{
  background: rgba(255,255,255,.86);
  border: 1px solid var(--t-border);
  border-radius: 16px;
  padding: 14px;
  color: rgba(30,27,34,.72);
  box-shadow: 0 10px 22px rgba(16,24,40,.08);
}

/* Mobile */
@media (max-width: 576px){
  .teacher-item{
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "avatar main"
      "action action";
  }

  .avatar{ grid-area: avatar; }

  .t-main{ grid-area: main; }

  .t-action{
    grid-area: action;
    justify-content: stretch;
  }

  .t-btn{
    width: 100%;
  }
}
