* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  overflow: auto;
  max-width: 100vw;
}

header {
  background: #818080;
  color: #f0f0f0;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

main {
  display: flex;
  flex-direction: column;
  gap: 8em;
  margin: 2em 8em;
}

section.first {
  width: 80vw;
  height: auto;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  gap: 8em;
}

section.second {
  width: 100%;
  height: auto;
}

h2 {
  padding-bottom: 0.3em;
}

article {
  border-top: 8px solid rgb(224, 171, 57);
  border-radius: 6px;
}

/* .info-box {
  background: lightgray;
  padding: 1em;
  border-left: 4px solid #007acc;
  border-radius: 4px;
} */
div.upcoming,
div.intership {
  width: 50%;
}

article.card-intership p {
  margin-bottom: 1em;
}

div.upcoming div.container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

article.cards-future {
  width: 400px;
  height: 330px;
}

div.future {
  width: 400px;
  height: 330px;
  position: relative;
}

div.future img {
  border-radius: 12px;
  box-shadow: 1px 3px 23px -2px rgba(0, 0, 0, 0.85);
  -webkit-box-shadow: 1px 3px 23px -2px rgba(0, 0, 0, 0.85);
  -moz-box-shadow: 1px 3px 23px -2px rgba(0, 0, 0, 0.85);
  z-index: 100;
  position: absolute;
  top: 2em;
  left: 50%;
  transform: translateX(-50%);
  max-width: 220px;
  object-fit: cover;
}

div.future .second-img {
  z-index: -100;
  top: 1.5em;
  left: 60%;
  background-image: #002f5e;
}

div.future .third-img {
  z-index: -200;
  top: 1em;
  left: 40%;
  background-image: #002f5e;
}

article.cards-past div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;
}

article.cards-past h2 {
  margin-bottom: 0.5em;
}

div.past {
  display: inline-block;
  width: calc((100% - (20px * 4)) / 4);
  height: 14em;
  vertical-align: top;
  margin-right: 20px;
  flex-shrink: 0;
  transition: transform 1s ease;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

div.past div {
  width: 100%;
  height: 100%;
  display: flex;

  align-items: center;
  padding: 5%;
  text-align: center;
  white-space: normal;
  word-break: break-word
}

.color-1 {
  background-color: #fbe599;
}

.color-2 {
  background-color: #65be6e
}

.color-3 {
  background-color: #79b6e3
}

.color-4 {
  background-color: #f9a54f
}

.color-5 {
  background-color: #5bc4b3;
}

.color-6 {
  background-color: #facd2c;
}

/* .cards-past .past:last-child {
  margin-right: 0;
} */

.slider-wrapper {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.arrow {
  background: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5em;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  z-index: 10;
}

#prev {
  margin-right: 1em;
}

#next {
  margin-left: 1em;
}

section svg {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

section svg:hover path {
  fill: gray;
  stroke: gray;
}

footer {
  background: #818080;
  color: #f0f0f0;
  text-align: center;
  padding: 1em;
  margin-top: 3em;
}