:root {
  --color-accent: #007bff;
  --color-background: #fff;
  --color-primary: #333;
  --color-secondary: #666;
  --color-text: #333;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --spacing-unit: 1rem;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: var(--spacing-unit);
}

.nav__list {
  display: flex;
  gap: var(--spacing-unit);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--color-accent);
  font-weight: bold;
  text-decoration: none;
}

.nav__link:hover {
  text-decoration: underline;
}

.main {
  flex: 1;
  margin: 0 auto;
  max-width: 800px;
  padding: calc(2 * var(--spacing-unit));
}

.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: var(--spacing-unit);
  text-align: center;
}

.footer__text {
  color: var(--color-secondary);
  margin: 0;
}

.post__title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.post__date {
  color: var(--color-secondary);
  display: block;
  font-style: italic;
  margin-bottom: 2rem;
}

.post__content {
  font-size: 1.1rem;
}

/* Global Icon Style */
.icon {
  fill: currentColor;
  height: 1.1rem;
  width: 1.1rem;
  display: inline-block;
  vertical-align: middle;
}

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

.pub-item {
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 2rem;
  padding: var(--spacing-unit);
}

.pub-item__title {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.pub-item__authors {
  color: var(--color-secondary);
  margin: 0 0 0.25rem 0;
}

.pub-item__venue {
  font-style: italic;
  margin: 0 0 0.5rem 0;
}

.pub-item__year {
  color: var(--color-secondary);
  font-style: normal;
}

.pub-item__links {
  margin: 0;
}

.pub-item__link {
  color: var(--color-accent);
  text-decoration: none;
}

.pub-item__link:hover {
  text-decoration: underline;
}

.pub-item__resources {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pub-item__links,
.pub-item__files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-item__resource-link {
  align-items: center;
  background-color: #f0f4f8;
  border: 1px solid #d1d9e0;
  border-radius: 20px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.pub-item__resource-link:hover {
  background-color: #e2e8f0;
  border-color: var(--color-accent);
}

.section {
  margin-bottom: 3rem;
}

.section__title {
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
}

.hero__content {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.hero__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.hero__avatar-container {
  width: 120px;
  height: 120px;
}

.hero__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.social-link {
  color: var(--color-accent); /* Blue icons as requested */
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-link .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.social-link:hover {
  color: var(--color-primary); /* Darker on hover */
}

.hero__text {
  flex: 1;
}

.hero__title {
  font-size: 2.5rem;
  margin: 0 0 0.25rem 0;
}

.hero__role {
  color: var(--color-secondary);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem 0;
}

.hero__interests {
  margin-top: 1.5rem;
}

/* About & Other Sections */
.about__text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

.interests__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.interests__item {
  background-color: #e9ecef;
  border-radius: 20px;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
}

.education__list {
  list-style: none;
  padding: 0;
}

.education__item {
  margin-bottom: 1rem;
}

.education__course {
  font-weight: bold;
}

.education__inst {
  color: var(--color-secondary);
  display: block;
  font-size: 0.9rem;
}

/* Experience */
.experience-list {
  list-style: none;
  padding: 0;
}

.experience-item {
  border-left: 2px solid #dee2e6;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  position: relative;
}

.experience-item::before {
  background-color: var(--color-accent);
  border-radius: 50%;
  content: "";
  height: 12px;
  left: -7px;
  position: absolute;
  top: 6px;
  width: 12px;
}

.experience-item__title {
  font-size: 1.2rem;
  margin: 0;
}

.experience-item__company {
  color: var(--color-accent);
  font-weight: 500;
}

.experience-item__date {
  color: var(--color-secondary);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Projects */
.project-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.project-card__title {
  margin: 0 0 0.5rem 0;
}

.project-card__summary {
  color: var(--color-secondary);
  flex: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-card__tag {
  background-color: #f1f3f5;
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
}

/* Patents */
.patents-list {
  list-style: none;
  padding: 0;
}

.patent-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 3px solid var(--color-accent);
  background-color: #f8f9fa;
}

.patent-item__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.patent-item__authors {
  color: var(--color-secondary);
  margin: 0 0 0.25rem 0;
}

.patent-item__number {
  font-weight: bold;
  font-size: 0.9rem;
  margin: 0;
}

.view-all-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Teaching & Students */
.teaching-category, .students-category {
  margin-bottom: 2rem;
}

.teaching-category__title, .students-category__title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.teaching-list, .students-list {
  list-style: none;
  padding: 0;
}

.teaching-item, .students-item {
  margin-bottom: 0.75rem;
}

.teaching-item__title, .students-item__name {
  font-weight: 500;
}

.teaching-item__period, .students-item__period {
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.students-item__thesis {
  display: block;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.students-item__note {
  color: var(--color-secondary);
  font-size: 0.85rem;
}

/* News */
.news-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.news-item {
  margin-bottom: 0.5rem;
}

.news-item p {
  margin: 0;
}
