.main-box-prof {
  width: 900px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 5px gray;
  display: flex;
  justify-content: space-between;
  margin: 20px auto;
}

.main-box-career {
  width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: auto;
}

.prof-pic {
  width: 270px;
  height: auto;
  object-fit: contain;
}

.prof-info {
  margin-left: 50px;
}

.prof-info-name {
  font-weight: bold;
  font-size: 25px;
}

.prof-info-main div {
  width: 500px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prof-info-main-info {
  width: 100px;
}

.prof-info-main-detail {
  width: 500px;
}

.prof-career {
  width: 100%;
  margin-top: 25px;
}

.prof-career-detail {
  margin-top: 10px;
  padding: 20px;
  border-radius: 10px;
  background-color: rgb(236, 236, 236);
  box-shadow: 0px 0px 5px gray;
}

@media (max-width: 450px) and (max-height: 850px) {
  .main-box-prof {
    /* width: 320px; */
    width: 90%;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 5px gray;
    display: flex;
    justify-content: space-between;
    margin: 10px auto;
  }

  .main-box-career {
    /* width: 320px; */
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
  }

  .prof-pic {
    width: 100px;
    height: auto;
    object-fit: contain;
  }

  .prof-info {
    margin-left: 10px;
  }

  .prof-info-name {
    font-weight: bold;
    font-size: 15px;
  }

  .prof-info-main div {
    width: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 3px;
    font-size: 13px;
  }

  .prof-info-main-info {
    width: 55px;
  }

  .prof-info-main-detail {
    width: 200px;
  }

  .prof-career {
    width: 100%;
    margin-top: 25px;
    font-size: 15px;
  }

  .prof-career-detail {
    margin-top: 10px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgb(236, 236, 236);
    box-shadow: 0px 0px 5px gray;
    font-size: 12px;
  }
}

/* 기본 스타일 */
body {
  font-family: "HancomMalangMalang", "Noto Sans KR", sans-serif !important;
  background-color: #f8f9fa;
  color: #333;
}

.professor-main {
  padding: 3rem 0;
}

.container {
  max-width: 1140px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* 페이지 헤더 */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.title-heading {
  font-family: "HancomMalangMalang", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.title-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #4285f4);
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

.subtitle {
  font-family: "HancomMalangMalang", sans-serif;
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 교수님 프로필 카드 */
.professor-profile {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.profile-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 900px;
}

.profile-header {
  display: flex;
  padding: 2.5rem;
}

.profile-image {
  flex: 0 0 280px;
  margin-right: 2.5rem;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.profile-title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.1rem;
  color: #1a73e8;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  font-family: "Noto Sans KR", sans-serif;
}

.contact-item i {
  flex: 0 0 1.5rem;
  color: #1a73e8;
  margin-top: 0.25rem;
}

.contact-label {
  flex: 0 0 100px;
  font-weight: 600;
  color: #555;
  margin-right: 1rem;
}

.contact-value {
  flex: 1;
  color: #333;
  line-height: 1.5;
}

/* 영어 모드에서의 라벨 너비 최적화 */
.eng-mode .contact-item {
  display: flex;
  align-items: flex-start; /* 상단 정렬로 변경 */
}

.eng-mode .contact-label {
  flex: 0 0 80px; /* 영어 모드에서 라벨 너비 축소 */
  font-size: 0.95rem; /* 폰트 크기 약간 축소 */
}

.eng-mode .contact-value {
  flex: 1;
  color: #333;
  line-height: 1.4;
  font-size: 0.95rem; /* 영어 텍스트 폰트 크기 약간 축소 */
}

/* 학력사항 같은 긴 항목을 위한 추가 스타일 */
.eng-mode .contact-item:last-child .contact-value {
  line-height: 1.3; /* 줄 간격 축소 */
}

/* 경력 및 업적 섹션 */
.career-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.career-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a73e8;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(26, 115, 232, 0.2);
}

.section-content {
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.7;
  color: #444;
}

/* 반응형 스타일 */
/* 데스크톱 (981px 초과) */
@media (min-width: 981px) {
  .container {
    padding: 0 2rem;
  }
  .profile-card,
  .career-section {
    width: 900px;
  }
}

/* 태블릿 - 큰 화면 (768px ~ 980px) */
@media (min-width: 768px) and (max-width: 980px) {
  .profile-header {
    flex-direction: row;
    padding: 2rem;
    align-items: flex-start;
  }

  .profile-image {
    flex: 0 0 200px;
    margin-right: 2rem;
    margin-bottom: 0;
  }

  .profile-card,
  .career-section {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-name {
    font-size: 1.8rem;
    text-align: left;
  }

  .profile-title {
    font-size: 1.05rem;
    text-align: left;
  }

  .contact-details {
    width: 100%;
    margin-top: 1rem;
  }

  .career-section {
    padding: 1.8rem;
  }

  .eng-mode .contact-label {
    flex-basis: auto;
    font-size: 0.92rem;
    min-width: 75px;
  }

  /* 태블릿 전용 스타일 - 더 세련된 카드 디자인 */
  .profile-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
  }

  .career-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .career-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
}

/* 태블릿 - 작은 화면 (576px ~ 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    padding: 0 1.5rem;
  }

  .profile-card,
  .career-section {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-header {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-gap: 1.5rem;
    padding: 1.8rem;
    align-items: start;
  }

  .profile-image {
    width: 160px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .profile-info {
    width: 100%;
  }

  .profile-name {
    font-size: 1.7rem;
    margin-bottom: 0.3rem;
  }

  .profile-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  /* 연락처 항목 레이아웃 조정 */
  .contact-item {
    display: grid;
    grid-template-columns: 1.5rem 80px 1fr;
    grid-gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.7rem;
    height: auto;
  }

  .contact-item i {
    flex: none;
    grid-column: 1;
    grid-row: 1;
    margin-top: 0.25rem;
  }

  .contact-label {
    flex: none;
    grid-column: 2;
    grid-row: 1;
    margin-right: 0;
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 0.95rem;
    font-family: "Noto Sans KR", sans-serif;
  }

  .contact-value {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: "Noto Sans KR", sans-serif;
  }

  .eng-mode .contact-item {
    grid-template-columns: 1.5rem 70px 1fr;
  }

  .eng-mode .contact-label {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .career-section {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* 모바일 (575px 이하) */
@media (max-width: 575px) {
  .container {
    padding: 0 1rem;
  }

  .profile-card,
  .career-section {
    width: 100%;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .profile-image {
    flex: 0 0 180px;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }

  .profile-name {
    font-size: 1.7rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .title-heading {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .career-section {
    padding: 1.25rem;
  }

  .contact-item {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .contact-label {
    flex-basis: auto;
    margin-bottom: 0.15rem;
  }

  .contact-value {
    font-size: 0.95rem;
  }

  .section-content {
    font-size: 0.95rem;
  }

  .eng-mode .contact-label {
    font-size: 0.85rem;
  }

  .eng-mode .contact-value {
    font-size: 0.85rem;
  }
}
