/* ===============================
   MEMBER PROFILE CARD
================================ */

.member_profile_card {
  border-radius: 26px;
  padding: 30px;
  border: 0.5px solid rgb(var(--gray-color), 0.5);
}

.member_profile_inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Фото */
.member_photo {
  width: 320px;
  min-height: 400px;
  flex-shrink: 0;
}

.member_photo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
}

/* Контент */
.member_content {
  flex: 1;
}

.member_name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.member_degree {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 20px;
}

/* Описание */
.member_description {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 25px;
}

/* Контакты */
.member_contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact_item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: rgb(var(--black-color), 1);
}

.contact_item a {
  color: rgb(var(--black-color), 1);
  text-decoration: none;
}

.contact_item a:hover {
  text-decoration: underline;
}
.bi {
  color: rgb(var(--blue-color), 1);
}

ul,
li {
  list-style: none;
  text-decoration: none;
}

.list_item a {
  padding: 20px;
  border-radius: 15px;
  list-style: none;
  text-decoration: none;
  border: 0.5px solid rgb(var(--gray-color), 1);
  margin-bottom: 5px;
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.list_item {
  border-radius: 15px;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.list_item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* ===============================
   ADAPTIVE
================================ */

@media (max-width: 992px) {
  .member_profile_inner {
    flex-direction: column;
  }

  .member_photo {
    width: 100%;
    max-width: 360px;
  }
}
/* ===============================
   PROFILE CARD
================================ */
.profile-card {
  display: flex;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}

.photo-col {
  flex-shrink: 0;
  width: 260px;
}

.photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
}

.info-col {
  flex: 1;
  padding: 32px 36px;
  border-left: 0.5px solid rgb(var(--gray-color), 0.25);
  display: flex;
  flex-direction: column;
}

.teacher-name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 5px;
}

.teacher-pos {
  font-size: 13px;
  color: rgb(var(--black-color), 0.5);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ---- Строки деталей ---- */
.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0 16px;
  padding: 13px 0;
  border-top: 0.5px solid rgb(var(--gray-color), 0.25);
  align-items: start;
}

.detail-item:last-child {
  border-bottom: 0.5px solid rgb(var(--gray-color), 0.25);
}

.d-label {
  font-size: 12px;
  color: rgb(var(--black-color), 0.35);
  padding-top: 1px;
}

.d-val {
  font-size: 13px;
  color: rgb(var(--black-color), 0.7);
  line-height: 1.7;
}

.d-val a {
  color: rgb(var(--blue-color), 1);
}

.d-val a:hover {
  text-decoration: underline;
}

.d-val p {
  margin-bottom: 4px;
}
.d-val p:last-child {
  margin: 0;
}

/* Дисциплины как теги */
.subjects-tags li,
.subjects-tags p {
  display: inline-block;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 14px;
  background: rgb(var(--gray-color), 0.12);
  border: 0.5px solid rgb(var(--gray-color), 0.3);
  color: rgb(var(--black-color), 0.6);
  margin: 0 4px 5px 0;
  list-style: none;
}

/* ===============================
   INFO STRIP
================================ */
.info-strip {
  background-color: rgb(var(--white-color), 1);
  box-shadow: 0 3px 10px 3px rgb(var(--black-color), 0.07);
  /* border-left: 3px solid rgb(var(--blue-color), 1); */
  border-radius: 14px 14px;
  padding: 22px 26px;
  font-size: 13px;
  line-height: 1.8;
  color: rgb(var(--black-color), 0.65);
}

.info-strip ul {
  padding-left: 16px;
  margin-top: 6px;
}

.info-strip li {
  margin-bottom: 4px;
}
.info-strip li::marker {
  color: rgb(var(--blue-color), 1);
}

/* ===============================
   ADAPTIVE
================================ */
@media (max-width: 680px) {
  .profile-card {
    flex-direction: column;
  }

  .photo-col {
    width: 100%;
  }

  .photo-col img {
    min-height: 240px;
    max-height: 300px;
  }

  .info-col {
    border-left: none;
    border-top: 0.5px solid rgb(var(--gray-color), 0.25);
    padding: 24px 20px;
  }

  .detail-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .d-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

.left-block .right-block {
  border-radius: 16px;
  border: 0.5px solid rgb(var(--blue-color), 1);
}
