/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
}

body {
  background: #f0f2f5;
  color: #333;
  line-height: 1.7;
}

html, body, h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif;
}

h2 { letter-spacing: 0.5px; }

p { color: #444; }

a {
  text-decoration: none;
  color: #1a6b8a;
  transition: color 0.2s ease;
}

a:hover {
  color: #0d4f6b;
  text-decoration: underline;
}

/* ===== Language Switcher ===== */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lang-switch a {
  color: #1a6b8a;
  font-weight: 700;
}

.lang-switch strong {
  color: #2c3e50;
}

.lang-switch .separator {
  color: #ccc;
  margin: 0 8px;
}

/* ===== Profile Card (Left Column) ===== */
.profile-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.profile-photo-wrapper {
  position: relative;
  overflow: hidden;
}

.profile-photo-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.profile-photo-wrapper:hover img {
  transform: scale(1.03);
}

.profile-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.profile-name-overlay h2 {
  margin: 0;
  font-size: 1.6em;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.profile-info {
  padding: 20px 20px 24px;
}

.profile-info p {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.profile-info p:last-child {
  border-bottom: none;
}

.profile-info i {
  color: #1a6b8a;
  width: 24px;
  text-align: center;
  margin-right: 12px;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-info a {
  color: #555;
  font-weight: 500;
}

.profile-info a:hover {
  color: #1a6b8a;
}

/* ===== Section Cards ===== */
.section-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.section-header {
  display: flex;
  align-items: center;
  padding: 20px 28px 16px;
  border-bottom: 2px solid #f0f2f5;
  margin: 0;
}

.section-header i {
  color: #1a6b8a;
  font-size: 26px;
  margin-right: 14px;
  flex-shrink: 0;
}

.section-header h2 {
  margin: 0;
  font-size: 1.35em;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.3px;
}

.section-body {
  padding: 20px 28px 24px;
}

.section-body p {
  font-size: 15px;
  line-height: 1.75;
}

/* ===== Selected Publications ===== */
.pub-featured {
  display: flex;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s ease;
}

.pub-featured:last-child {
  border-bottom: none;
}

.pub-featured:hover {
  background: #fafbfc;
}

.pub-featured-text {
  flex: 2;
}

.pub-featured-text h5 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.5;
}

.pub-featured-text h6 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1a6b8a;
  font-style: italic;
}

.pub-featured-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.pub-featured-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pub-featured-images a img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.pub-featured-images a img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ===== Publication & Conference Lists ===== */
.pub-list {
  padding: 16px 28px 24px;
}

.pub-list ol, .pub-list ul {
  padding-left: 20px;
  margin: 0;
}

.pub-entry {
  margin-bottom: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.65;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all 0.2s ease;
  color: #444;
}

.pub-entry:hover {
  background: #f7f9fb;
  border-left-color: #1a6b8a;
}

.pub-entry b {
  color: #2c3e50;
}

.pub-entry i {
  color: #555;
}

/* ===== Awards List ===== */
.awards-list {
  padding: 16px 28px 24px;
}

.awards-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.award-item {
  position: relative;
  padding: 12px 14px 12px 36px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.65;
  border-radius: 8px;
  transition: background 0.2s ease;
  color: #444;
}

.award-item:hover {
  background: #f7f9fb;
}

.award-item::before {
  content: "\f091";
  font-family: FontAwesome;
  position: absolute;
  left: 8px;
  top: 13px;
  color: #d4a843;
  font-size: 14px;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 28px 20px;
  margin-top: 24px;
  font-size: 14px;
}

.site-footer p {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .footer-links {
  margin-top: 8px;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 10px;
  font-size: 18px;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .pub-featured {
    flex-direction: column;
  }

  .pub-featured-images {
    flex-direction: row;
  }

  .pub-featured-images a {
    flex: 1;
  }

  .section-header {
    padding: 16px 20px 12px;
  }

  .section-body {
    padding: 16px 20px 20px;
  }

  .pub-list, .awards-list {
    padding: 12px 20px 20px;
  }

  .pub-featured {
    padding: 20px;
  }

  .profile-info {
    padding: 16px;
  }
}

@media (max-width: 600px) {
  .lang-switch {
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .section-header h2 {
    font-size: 1.15em;
  }

  .pub-featured-images {
    flex-direction: column;
  }
}
