/* ==========================================================
   BASIC RESET
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #222831;

  font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  font-size: 18px;
  line-height: 1.72;
}


/* ==========================================================
   MAIN CONTAINER
   ========================================================== */

.site-container {
  width: calc(100% - 60px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 50px 0 70px;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
}

.header-name h1 {
  margin: 0;
  font-size: 43px;
  font-weight: 400;
  line-height: 1.15;
}

.header-name h1 a {
  color: #0645d8;
  text-decoration: none;
}

.header-name h1 a:hover {
  color: #0438ad;
}


/* ==========================================================
   SOCIAL ICONS
   ========================================================== */

.header-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 18px;
}

.header-links a {
  color: #68717d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-links a:hover {
  color: #0645d8;
}

.header-links i {
  font-size: 18px;
}


/* ==========================================================
   PROFILE AREA
   ========================================================== */

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  column-gap: 75px;
  align-items: start;
}

.profile-content {
  max-width: 690px;
}

.profile-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #1d2530;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.profile-content h2:not(:first-child) {
  margin-top: 42px;
}

.profile-content p {
  margin-top: 0;
  margin-bottom: 21px;
}

.profile-content strong {
  font-weight: 600;
}


/* ==========================================================
   PROFILE SIDEBAR
   ========================================================== */

.profile-sidebar {
  text-align: center;
}

.profile-photo {
  display: block;
  width: 400px;
  height: 485px;
  object-fit: cover;
  margin: 0 auto 25px;
}

.profile-links {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 13px;
  line-height: 1.7;
  color: #59616d;
}

.profile-links a {
  color: #59616d;
  text-decoration: underline;
}

.profile-links a:hover {
  color: #0645d8;
}

.link-group {
  margin-bottom: 15px;
}

.link-group strong {
  color: #303742;
  font-weight: 600;
}


/* ==========================================================
   MAIN CONTENT
   ========================================================== */

.page-content {
  margin-top: 65px;
}

.page-content h2 {
  margin: 0 0 25px;
  color: #171d27;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.25;
}

.page-content h3 {
  margin: 0 0 3px;
  color: #202733;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.page-content p {
  margin: 0 0 20px;
}

.page-content a {
  color: #59616d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: #0645d8;
}

.page-content strong {
  font-weight: 600;
}


/* ==========================================================
   HORIZONTAL RULES
   ========================================================== */

.page-content hr {
  border: 0;
  border-top: 1px solid #e3e6ea;
  margin: 58px 0;
}


/* ==========================================================
   LATEST NEWS
   ========================================================== */

.latest-news {
  margin-bottom: 0;
}

.latest-news h2 {
  margin: 0 0 35px;

  color: #171d27;

  font-size: 34px;

  font-weight: 600;

  line-height: 1.25;
}

.latest-news-item {
  display: grid;

  grid-template-columns: 18px max-content minmax(0, 1fr);

  align-items: start;

  margin: 0 0 25px;

  line-height: 1.65;
}

.news-bullet {
  display: block;
}

.news-date {
  display: block;

  font-weight: 600;

  white-space: nowrap;

  padding-right: 30px;
}

.news-text {
  display: block;

  min-width: 0;
}

/* ==========================================================
   WORK EXPERIENCE TIMELINE
   ========================================================== */

.work-timeline {
  position: relative;

  margin-top: 75px;
  margin-bottom: 20px;

  /* IMPORTANT:
     No padding here — this keeps the heading aligned
     with Latest News */
  padding-left: 0;
}

/* Vertical timeline line */

.work-timeline::before {
  content: "";

  position: absolute;

  left: 10px;

  /*
    Start the line BELOW the Work Experience heading
  */
  top: 75px;

  bottom: 12px;

  width: 1px;

  background: #cfd4da;
}


/* ==========================================================
   TIMELINE ITEMS
   ========================================================== */

.timeline-item {
  position: relative;

  /*
    Only the timeline entries are indented.
    The Work Experience heading remains at the left edge.
  */
  padding-left: 42px;

  padding-bottom: 42px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}


/* Timeline circle */

.timeline-dot {
  position: absolute;

  /*
    Align circle with the vertical line
  */
  left: 4px;

  top: 8px;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: #ffffff;

  border: 2px solid #59616d;
}


/* Timeline content */

.timeline-content {
  max-width: 850px;
}

.timeline-content h3 {
  margin: 0 0 3px;

  color: #202733;

  font-size: 21px;

  font-weight: 600;

  line-height: 1.35;
}

.timeline-place {
  color: #3f4650;

  font-size: 18px;

  font-weight: 600;

  line-height: 1.5;
}

.timeline-date {
  margin-top: 2px;
  margin-bottom: 12px;

  color: #737b85;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;

  letter-spacing: 0.2px;
}

.timeline-content p {
  margin: 0 0 12px;

  line-height: 1.65;
}

.timeline-supervisor {
  color: #737b85;
  font-size: 15px;
}
/* ==========================================================
   LISTS
   ========================================================== */

.page-content ul,
.page-content ol {
  padding-left: 28px;
}

.page-content li {
  margin-bottom: 12px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  margin-top: 75px;

  padding-top: 25px;

  border-top: 1px solid #e3e6ea;

  text-align: center;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 13px;

  color: #747b84;
}

.site-footer a {
  color: #68717d;
  text-decoration: none;
}

.site-footer a:hover {
  color: #0645d8;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 850px) {

  .site-container {
    width: calc(100% - 40px);
    padding-top: 25px;
  }

  .site-header {
    display: block;
  }

  .header-links {
    margin-top: 13px;
  }

  .profile-section {
    grid-template-columns: 1fr;
    row-gap: 35px;
  }

  .profile-sidebar {
    order: -1;
    text-align: left;
  }

  .profile-photo {
    width: 260px;
    height: 330px;
    margin-left: 0;
  }

  .profile-links {
    text-align: left;
  }

  .work-timeline {
    padding-left: 35px;
  }

  .work-timeline::before {
    left: 8px;
  }

  .timeline-dot {
    left: -33px;
  }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 500px) {

  body {
    font-size: 17px;
  }

  .site-container {
    width: calc(100% - 30px);
  }

  .header-name h1 {
    font-size: 35px;
  }

  .header-links {
    gap: 14px;
    font-size: 13px;
  }

  .profile-photo {
    width: 220px;
    height: 280px;
  }

  .page-content h2 {
    font-size: 25px;
  }

  .page-content h3 {
    font-size: 19px;
  }

  .latest-news h2 {
    font-size: 28px;
  }

  .work-timeline {
    padding-left: 30px;
  }

  .work-timeline::before {
    left: 7px;
  }

  .timeline-dot {
    left: -28px;
    width: 10px;
    height: 10px;
  }

  .timeline-content h3 {
    font-size: 19px;
  }

  .timeline-place {
    font-size: 17px;
  }
}
