/* ===============================
   Base
================================= */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.45;
}

.cv {
  max-width: 900px;
  margin: 20px auto 40px auto;
  padding: 20px;
}


/* ===============================
   Header
================================= */

header {
  margin-bottom: 20px;
}

.header-flex {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.header-text {
  flex: 1;
}

.profile-photo img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
}

/* ===============================
   Typography
================================= */
p {
  text-align: justify;
}
h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}

h2 {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: #1f4fd8;
}

.subtitle {
  margin-top: 6px;
  font-size: 15px;
  color: #555;
}

section {
  margin-top: 10px;
}

h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #1f4fd8;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* ===============================
   Lists & Experience
================================= */

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin-bottom: 6px;
}

.experience {
  margin-bottom: 14px;
}

.experience strong {
  display: block;
  font-weight: 600;
}

.meta {
  font-size: 14px;
  color: #666;
}

/* ===============================
   Links (PDF friendly)
================================= */

a,
a:visited,
a:active {
  color: #000 !important;
  text-decoration: none;
}

a:hover {
  color: #000 !important;
  text-decoration: underline;
}

/* ===============================
   Responsive
================================= */

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

  .profile-photo img {
    width: 110px;
    height: 110px;
  }
}

/* ===============================
   Print
================================= */

@media print {

  .header-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }

  .profile-photo img {
    width: 110px;
    height: 110px;
  }

}

