@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700&display=swap');

/* ===== Global ===== */
body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  font-size: 15px;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #fff !important;
  border-bottom: 2px solid #2c3e50;
  box-shadow: none;
}

.navbar-default .navbar-brand {
  color: #2c3e50 !important;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar-default .navbar-nav > li > a {
  color: #555 !important;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a {
  color: #2c3e50 !important;
  border-bottom: 2px solid #2c3e50;
}

/* ===== Homepage layout ===== */
.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.profile-photo {
  flex-shrink: 0;
}

.profile-photo img {
  width: 220px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  margin-top: 0;
  font-size: 28px;
  color: #2c3e50;
  font-weight: 600;
}

.profile-info .title {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.profile-info .bio {
  font-size: 15px;
  line-height: 1.8;
}

/* ===== Contact info ===== */
.contact-info {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #555;
}

.contact-info a {
  color: #2c3e50;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ===== Section headers ===== */
h1, h2 {
  color: #2c3e50;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-top: 35px;
}

h3 {
  color: #2c3e50;
  margin-top: 25px;
}

/* ===== Publications ===== */
.pub-entry {
  margin-bottom: 18px;
  padding-left: 0;
  line-height: 1.6;
}

.pub-entry .journal {
  font-style: italic;
}

.pub-entry .status {
  color: #888;
  font-style: italic;
}

/* ===== Teaching ===== */
.course-entry {
  margin-bottom: 12px;
}

/* ===== CV page ===== */
.cv-download {
  display: inline-block;
  padding: 12px 28px;
  background-color: #2c3e50;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  margin-top: 15px;
  transition: background-color 0.2s;
}

.cv-download:hover {
  background-color: #34495e;
  text-decoration: none;
  color: #fff !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo img {
    width: 180px;
  }
}

/* ===== Footer spacing ===== */
.container-fluid.main-container {
  max-width: 900px;
  padding-bottom: 60px;
}
