﻿.prof-block {
  padding: 3.2rem 0;
  background: #ffffff;
  border-top: 1px solid #ececec;
}

.prof-profile {
  padding-bottom: 0;
}

.prof-education,
.prof-expertise {
  background: #f3f4f6;
}

.prof-publications {
  background: #ffffff;
}

.prof-profile-inner {
  display: grid;
  grid-template-columns: 1.6fr 280px;
  gap: 1.6rem;
  align-items: center;
}

.prof-profile-text {
  align-self: center;
}

.prof-profile-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  color: #151515;
}

.prof-subtitle {
  font-size: 1.08rem;
  color: #4b4b4b;
  margin-bottom: 0.95rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #d8d8d8;
  font-weight: 600;
}

.prof-contact-card {
  display: grid;
  gap: 0.45rem;
}

.prof-contact-card p {
  font-size: 1.01rem;
  color: #2e2e2e;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.prof-contact-label {
  display: inline-block;
  min-width: 54px;
  color: #5b5b5b;
  font-weight: 700;
}

.prof-contact-value {
  color: #2e2e2e;
  word-break: break-word;
}

.prof-profile-photo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: end;
}

.prof-profile-photo img {
  width: 300px;
  height: 380px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  border-radius: 0;
  border: none;
  background: transparent;
}

.prof-section-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.4rem;
  align-items: start;
}

.prof-section-grid h3 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #191919;
}

.prof-edu-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.prof-edu-timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 2px;
  background: #c9ced8;
}

.prof-edu-item {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0 0.95rem 2.2rem;
}

.prof-edu-item::before {
  content: "";
  position: absolute;
  left: 0.31rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d4d9e3;
  box-shadow: 0 4px 12px rgba(20, 28, 45, 0.16);
}

.prof-edu-year {
  font-size: 1.92rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #131313;
}

.prof-edu-text {
  margin: 0;
  font-size: 1.04rem;
  color: #4b4b4b;
  line-height: 1.6;
}

.prof-edu-text strong {
  color: #1b1b1b;
}

.prof-list,
.prof-pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prof-list li,
.prof-pub-list li {
  position: relative;
  font-size: 1.04rem;
  line-height: 1.7;
  color: #292929;
  padding: 0.9rem 0 0.9rem 1rem;
  border-bottom: 1px dashed #b8bec8;
}

.prof-list li:last-child,
.prof-pub-list li:last-child {
  border-bottom: none;
}

.prof-list strong {
  color: #141414;
}

.prof-list li::before,
.prof-pub-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0.88rem;
  color: #161616;
  font-size: 1.35rem;
  line-height: 1;
}

.prof-pub-list a {
  color: #3157a6;
  text-decoration: none;
  word-break: break-all;
}

.prof-pub-list a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal[data-dir="right"] {
  transform: translateX(44px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 980px) {
  .prof-profile-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .prof-profile-photo {
    justify-content: flex-start;
  }

  .prof-profile-photo img {
    width: 230px;
    height: 300px;
  }

  .prof-section-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .prof-profile-text h2 {
    font-size: 2.1rem;
  }

  .prof-section-grid h3 {
    font-size: 1.95rem;
  }

  .prof-edu-item {
    grid-template-columns: 90px 1fr;
  }

  .prof-edu-year {
    font-size: 1.68rem;
  }
}

@media (max-width: 640px) {
  .prof-block {
    padding: 2.4rem 0;
  }

  .prof-profile-text h2 {
    font-size: 1.8rem;
  }

  .prof-profile-photo img {
    width: 200px;
    height: 260px;
  }

  .prof-section-grid h3 {
    font-size: 1.65rem;
  }

  .prof-edu-item {
    grid-template-columns: 74px 1fr;
    gap: 0.65rem;
    padding-left: 1.85rem;
  }

  .prof-edu-year {
    font-size: 1.42rem;
  }

  .prof-list li,
  .prof-pub-list li {
    padding-left: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal[data-dir="right"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

