/* Stage One */
.page {
  min-width: 1300px;
  max-width: 1600px;
  margin: auto;
  font-family: "Helvetica Neue, Arial, sans-serif";
  font-size: 16px;
  line-height: 20px;
  background-color: #ffffff;
  color: #000000;
}

a {
  color: #e96e3a;
}

h1,
p {
  margin: 0;
}

.header {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 720px;
  max-height: 800px;
  padding: 30px 80px 40px;
  position: relative;
  box-sizing: border-box;
}

.header__title {
  max-width: 601px;
  font-size: 66px;
  line-height: 76px;
  font-weight: 500;
  color: #000000;
  margin-top: 128px;
}

.header__description {
  max-width: 522px;
  font-size: 20px;
  line-height: 30px;
  color: #000000;
  margin-top: 32px;
}

.header__image {
  z-index: 1;
  max-width: 550px;
  position: absolute;
  top: 148px;
  right: 48px;
}

.header__footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.header__link {
  color: #e96e3a;
  text-decoration: none;
}

.header__link:hover {
  color: #d35722;
}

.header__address {
  margin: 0;
  color: #838383;
}

.nav {
  /* Add flex properties here */
  display: flex;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  height: 80px;
  width: 57px;
}

.nav__links {
  /* Reset default list styles here */
  display: flex;
  position: absolute;
  top: 8px;
  right: 85px;
  list-style: none;
  gap: 20px;
  padding: 0;
  text-decoration: none;
}

.nav__link:hover {
  color: #d35722;
}

.nav__link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

/* Stage Two */
.events {
  padding: 100px 0 120px 80px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: #f2f2f2;
}

.events__content {
  flex-basis: 580px;
}

.events__heading {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
}

.events__title {
  font-size: 44px;
  font-weight: 500;
  line-height: 52px;
  margin: 32px 0 0;
}

.events__info-section {
  margin-top: 32px;
}

.event-info__item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-weight: 500;
}

.event-info__icon {
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 12px;
  width: 24px;
  height: 24px;
}

.event-info__icon_type_calendar {
  background-image: url(../images/icon_calendar.svg);
}

.event-info__icon_type_pin {
  background-image: url(../images/icon_pin.svg);
}

.event-info__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
}

.events__description {
  margin: 40px 0 60px;
}

.events__more {
  color: #e96e3a;
  text-decoration: none;
}

.events__more:hover {
  color: #d35722;
}

.events__cover {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 780px;
  max-width: 780px;
  position: relative;
}

.events__image {
  max-width: 100%;
}

.person {
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.person_name_feynman {
  top: -30px;
  left: 319px;
}

.person_name_burbidge {
  top: 96px;
  right: 125px;
}

.person_name_cannon {
  bottom: 18px;
  right: 216px;
}

.person_name_mitchell {
  bottom: 82px;
  left: 142px;
}

.person_name_tarter {
  top: 79px;
  left: 159px;
}

.person__image {
  max-width: 100%;
}

.person__image_size_l {
  width: 140px;
}

.person__image_size_m {
  width: 100px;
}

.person__image_size_s {
  width: 80px;
}

.person__caption {
  text-align: center;
  font-size: 14px;
  margin: 0;
}

/***************/
/* STAGE THREE */

.staff {
  padding: 100px 0 140px;
  background-image: url(../images/staff_picks_background.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  position: bottom;
}

.staff__title {
  text-align: center;
  font-size: 44px;
  line-height: 52px;
  margin: 0 0 24px;
  font-weight: 500;
  color: #fff;
}

.staff__subtitle {
  text-align: center;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  margin: 0 0 68px; /* shorthand zeros all margins but bottom */
  color: #fff;
}

/* Add the CSS rule for your new class here. Make sure to place it before .card: parents should precede their children */
.staff__cards {
  display: flex;
  flex-wrap: wrap;
  max-width: 760px;
  gap: 40px;
  list-style-type: none;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.card {
  background-color: #fff;
  border-radius: 6px;
  padding: 32px 40px 20px 32px;
  box-sizing: border-box;
  height: 420px; /**/
  width: 360px; /**/
}

.card__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card__title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  margin: 0;
}

.card__text {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 24px;
}

.card__footer {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #838383;
  margin-top: auto;
}

.membership {
  padding: 100px 0 140px;
  background-color: #f2f2f2;
}

.membership__title {
  max-width: 574px;
  margin: 0 auto;
  text-align: center;
  font-size: 44px;
  font-weight: 500;
  line-height: 52px;
}

.membership__steps {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 100px 0 0;
  gap: 40px;
  /* Add styles */
  justify-content: center;
}

.step {
  /* Add styles */
  flex-basis: 220px;
}

.step__title {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.step__icon {
  margin-left: 20px;
}

.step__description {
  margin: 10px 0 0;
}

.about {
  padding: 58px 220px 82px 560px;
  background-color: #1f1f1f;
  color: #fff;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  display: flex;
}

.about__title {
  margin: 0 0 32px;
  font-size: 44px;
  line-height: 52px;
  font-weight: 500;
}

.about__content {
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  max-width: 660px;
  margin-left: auto; /**/
  display: flex; /**/
  flex-direction: column; /**/
}

.about__paragraph {
  margin: 0 0 20px;
}

.about__paragraph:last-child {
  margin: 0;
}

.about__image {
  width: 703px;
  /* add styles */
  position: absolute;
  top: -82.5px;
  left: -271px;
}

.footer {
  background-color: #1f1f1f;
  box-sizing: border-box;
  padding: 60px 80px;
  font-size: 16px;
  line-height: 20px;
}

.footer__columns {
  color: #fff;
  display: flex;
}

.footer__column_content_hours {
  margin-left: auto;
}

.footer__column_content_social {
  margin-left: 80px;
}

.footer__logo {
  width: 57px;
  height: 89px;
}

.footer__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer__list-item {
  margin: 0 0 16px;
}

.footer__list-item:last-child {
  margin: 0;
}

.footer__column-heading {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 20px;
}

.footer__column-link {
  color: white;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
  display: flex;
  gap: 5px;
}

.footer__column-link:hover {
  color: #d35722;
}

.footer__social-icon {
  height: 16px;
  width: 16px;
}

.footer__copyright {
  color: #fff;
  margin: 108px 0 0;
}

.footer__copyright a:link {
    text-decoration: none;
}

.footer__copyright:hover {
    color: #d35722;
}

/*
Dealing with text overflow in CSS involves using a combination of properties to control how content behaves when it exceeds its container's boundaries. The best approach depends on whether you want to truncate text with an ellipsis, wrap long words, hide the overflow, or add scrollbars
*/
