#representative {
  background: linear-gradient(145deg, #fff 0%, #faf7f5 100%);
}

#representative[hidden] {
  display: none !important;
}

#about {
  min-height: auto !important;
  padding-bottom: 0 !important;
}

#about .subheading.mb-5 {
  margin-bottom: 1.5rem !important;
}

.research-directions-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  max-width: 1050px;
  margin-bottom: 1.25rem;
}

.research-direction-item {
  padding: 0.8rem 0;
  border-top: 1px solid #e5e7e9;
}

.research-direction-item h3 {
  margin: 0 0 0.25rem;
  color: #3f454a;
  font-size: 1.6rem;
}

.research-direction-item h3 span {
  margin-right: 0.55rem;
  color: rgba(189, 93, 56, 0.65);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  vertical-align: 0.18rem;
}

.research-direction-item p {
  margin: 0;
  color: #788087;
  font-size: 0.92rem;
  line-height: 1.55;
}

.representative-toggle {
  color: #bd5d38;
  font-family: 'Saira Extra Condensed', serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.representative-toggle:hover,
.representative-toggle:focus {
  color: #824027;
  text-decoration-thickness: 2px;
}

.research-representative-link {
  display: inline-block;
  margin-top: 0.25rem;
}

.research-representative-link::after {
  content: ' →';
  text-decoration: none;
}

#representative .research-intro {
  max-width: 760px;
  margin-bottom: 2rem;
  color: #6c757d;
  font-size: 1.1rem;
  line-height: 1.75;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.research-card {
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(52, 58, 64, 0.1);
  border-top: 4px solid #bd5d38;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.7rem 1.8rem rgba(52, 58, 64, 0.07);
}

.research-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.research-card-number {
  flex: 0 0 auto;
  color: rgba(189, 93, 56, 0.5);
  font-family: 'Saira Extra Condensed', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.research-card h3 {
  margin: -0.2rem 0 0.25rem;
  color: #343a40;
  font-size: 2.25rem;
}

.research-card-header p {
  margin: 0;
  color: #788087;
  font-size: 1rem;
  line-height: 1.6;
}

.research-architecture {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(189, 93, 56, 0.14);
  border-radius: 0.6rem;
  background: #faf7f5;
}

.research-architecture span {
  flex: 1 1 150px;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  background: #fff;
  color: #4d5358;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 0.2rem 0.65rem rgba(52, 58, 64, 0.06);
}

.research-architecture b {
  flex: 0 0 auto;
  color: #bd5d38;
  font-size: 1rem;
}

.research-paper-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-paper-list li {
  padding: 1rem;
  border: 1px solid #eceff1;
  border-radius: 0.6rem;
  background: #fcfcfc;
}

.research-paper-list li:last-child {
  padding-bottom: 1rem;
}

.research-paper-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  color: #9aa0a6;
  font-size: 0.88rem;
  font-weight: 600;
}

.research-rank {
  display: inline-block;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
}

.research-rank.ccf-a {
  background: #bd5d38;
  color: #fff;
}

.research-rank.ccf-b {
  border: 1px solid rgba(189, 93, 56, 0.35);
  background: rgba(189, 93, 56, 0.1);
  color: #984326;
}

.research-rank.sci-one {
  border: 1px solid rgba(39, 122, 102, 0.3);
  background: rgba(39, 122, 102, 0.1);
  color: #226b59;
}

.research-paper-list h4 {
  margin: 0 0 0.35rem;
  color: #3f454a;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.research-paper-venue {
  margin: 0 0 0.5rem;
  color: #8b9298;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.research-paper-description {
  margin: 0;
  color: #626970;
  font-size: 0.98rem;
  line-height: 1.7;
}

#representative:not([hidden]) {
  padding-top: 1.5rem !important;
  padding-bottom: 0 !important;
}

#representative:not([hidden]) + #experience {
  padding-top: 1.5rem !important;
}

#representative[hidden] + #experience {
  padding-top: 1.5rem !important;
}

@media (min-width: 992px) {
  #about {
    padding-top: 2rem !important;
  }
}

@media (max-width: 991.98px) {
  .research-paper-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 575.98px) {
  .research-directions-compact {
    grid-template-columns: 1fr;
  }

  .research-card {
    padding: 1.2rem;
  }

  .research-card-header {
    margin-bottom: 0.8rem;
  }

  .research-paper-list {
    grid-template-columns: 1fr;
  }

  .research-architecture {
    align-items: stretch;
  }

  .research-architecture span {
    flex-basis: 100%;
  }

  .research-architecture b {
    width: 100%;
    text-align: center;
    transform: rotate(90deg);
  }
}
