body {
  font-family: 'Inter', Arial, sans-serif;
  background: white;
  color: #111;
  text-align: center;
  padding: 60px 20px;
  margin: 0 auto;
  max-width: 600px;
}

.header-container {
  display: flex;
  flex-direction: column; /* stacked on mobile */
  align-items: center;
  margin-bottom: 30px;
}

/* Move photo above text on mobile */
.header-container img {
  order: -1;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.text-content {
  /* no special styles on mobile */
}

h1 {
  font-weight: 600;
  font-size: 2.8em;
  margin-bottom: 0.1em;
}

p.title {
  font-weight: 300;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 1.8em;
  color: #666;
}

/* Links container */
.links {
  margin-bottom: 30px;
}

.links a {
  color: #0071e3;
  text-decoration: none;
  margin: 0 14px;
  font-weight: 500;
  font-size: 1.4em; /* icon size */
  display: inline-block;
  vertical-align: middle;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #004a9f;
  text-decoration: none;
}

a.cv-link {
  font-size: 1.1em;
  font-weight: 500;
  margin-left: 24px;
  color: #0071e3;
  vertical-align: middle;
}

a.cv-link:hover {
  text-decoration: underline;
}

section {
  text-align: left;
  margin-top: 40px;
}

h2 {
  font-weight: 600;
  font-size: 1.6em;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.edu-exp-list {
  list-style: none;
  padding-left: 0;
  color: #333;
  font-size: 1em;
}

.edu-exp-list li {
  margin-bottom: 10px;
}

footer {
  margin-top: 50px;
  font-size: 0.9em;
  color: #999;
}

/* Desktop layout: text left, image right */
@media (min-width: 768px) {
  body {
    max-width: 700px;
  }

  .header-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px auto;
    text-align: left;
  }

  .text-content {
    flex: 1;
    margin-right: 30px;
  }

  .header-container img {
    order: 0;           /* reset order to default */
    margin-bottom: 0;
  }
}


.btn-download-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0073e6;
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
  transition: background-color 0.3s ease;
}

.btn-download-cv:hover {
  background-color: #005bb5;
}

.other-activities-list {
  list-style-type: disc;
  margin-left: 10px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

