* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  background: #fff;
}

a {
  color: #2ea3f2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Hero */
.hero {
  min-height: 500px;
  background: url("../img/Michelangelos.gif") center center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  width: 100%;
  padding: 0 10% 45px;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.45)
  );
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.hero p {
  margin: 0 0 25px;
  font-size: 18px;
}

.hero-links {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.hero-links a {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

/* Resume layout */
.resume-layout {
  display: flex;
  width: 100%;
  margin: 0;
  gap: 0;
  align-items: stretch;
}

.about-panel {
  flex: 0 0 45%;
  margin: 0;
  padding: 34px 32px 34px 72px;
  background: #3e5287;
  color: #fff;
}

.history-panel {
  flex: 0 0 55%;
  min-width: 0;
  margin: 0;
  padding: 34px 72px 0 20px;
}

/* About Me */
.about-panel h2,
.about-panel h3 {
  color: #fff;
}

.about-panel h2 {
  margin: 0 0 30px;
  font-size: 20px;
}

.about-panel h3 {
  margin: 0 0 24px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 500;
}

.about-panel p {
  margin: 0 0 18px;
}

.about-panel a {
  color: #fff;
  font-weight: 700;
}

/* Section headings */
.section-heading-image {
  display: block;
  width: 482px;
  max-width: 100%;
  margin: 0 auto 30px 0;
}

.education-heading {
  margin-top: 45px;
}

/* Timelines */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 35px;
}

.timeline li {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 6px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 2px;
  bottom: -29px;
  width: 2px;
  background: #3e5287;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: -31px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #3e5287;
}

.timeline li:last-child::before {
  display: none;
}

.timeline strong {
  color: #333;
}

.education-timeline {
  margin-bottom: 0;
}

/* Tablet */
@media (max-width: 980px) {
  .hero {
    min-height: 430px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .resume-layout {
    display: block;
    width: 90%;
    margin: 0 auto;
  }

  .about-panel,
  .history-panel {
    width: 100%;
  }

  .about-panel {
    margin-bottom: 40px;
    padding: 30px;
  }

  .history-panel {
    padding: 30px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    min-height: 360px;
  }

  .hero-content {
    padding: 40px 7% 30px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-links a {
    font-size: 17px;
  }

  .resume-layout {
    width: 92%;
    margin: 0 auto;
  }

  .timeline {
    padding-left: 42px;
  }

  .timeline li::before {
    left: -19px;
  }

  .timeline li::after {
    left: -26px;
  }
}
