/**
 * Students 페이지 스타일
 *
 * 현재 연구실 구성원(Ph.D., Master, Intern) 소개 페이지
 * - .student-container: 전체 컨테이너
 * - .student-box-shelter: 학생 분류별 섹션 (Ph.D./Master, Intern)
 * - .student: 개별 학생 카드
 */

/* ==================== Students 컨테이너 ==================== */
.student-container {
  display: flex;
  flex-direction: column;
  width: var(--full-width);
  margin: auto;

  & .student-box-shelter {
    display: flex;
    flex-direction: column;
    width: var(--full-width);
    background-color: #ffffff;
    margin: auto;
    margin-top: 50px;
  }
}

/* ==================== Student Box ==================== */
.student-box {
  margin: auto;
  width: var(--content-width);
  max-width: var(--content-max-width);

  & .box-title {
    padding: 0;
    margin: 0;
    margin-top: 30px;
    font-size: 30px;
    text-align: center;
  }

  & .students {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
  }
}

/* ==================== 개별 학생 카드 ==================== */
.student {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  cursor: pointer;

  &:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

.student-left {
  flex-shrink: 0 !important;
  display: flex;
  align-items: center;

  & .profile {
    width: 130px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }
}

.student-right {
  flex: 1 !important;
  display: flex;
  flex-direction: column;

  & .grade,
  & .final_grade {
    margin: 0;
    color: var(--color-accent-orange);
    font-size: 14px;
    font-weight: 500;
  }

  & .row-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 6px;
    line-height: 16px;
    margin-bottom: 4px;
  }

  & .crown {
    width: 18px;
    height: 18px;
  }

  & .name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
  }

  & .name-shelter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    margin-top: 4px;
  }

  & .where_is_now {
    margin: 0;
    color: var(--color-accent-orange);
    font-size: 12px;
  }

  & .admission {
    margin: 0;
    font-size: 12px;
    color: #666;
  }

  & .interest-divider,
  & .email-divider {
    width: var(--full-width);
    height: 1px;
    background-color: #e0e0e0;
    border: 0;
    box-sizing: border-box;
  }

  & .interest-divider {
    margin: 1px 0 4px;
  }

  & .interest {
    margin: 2px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
  }

  & .email-divider {
    margin: 2px 0;
  }

  & .home {
    margin: 4px 0 0 0;
  }

  & .email {
    margin: 0;
    font-size: 12px;
    color: #000;
  }

  & a {
    color: inherit;
    text-decoration: none;
  }
}

/* ==================== 반응형: 1350px 이하 ==================== */
@media screen and (max-width: 1350px) {
  .student-box {
    & .students {
      grid-template-columns: repeat(2, 1fr);
    }
  }
}

/* ==================== 반응형: 768px 이하 ==================== */
@media screen and (max-width: 768px) {
  .student-box {
    & .students {
      grid-template-columns: 1fr;
    }
  }
}
