* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: #333;
  background-color: #00046b;
  font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  font-size: 14px;
}

h1 {
  margin: 0.67em 0;
  font-size: 38px;
  font-weight: 700;
}

img {
  display: inline-block;
  border: 0;
}

button {
  color: inherit;
  font: inherit;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.header-logo {
  z-index: 1;
  height: 120px;
}

.header-titles {
  width: 500px;
  margin-right: 30px;
  color: #fff;
  text-align: right;
  font-family: garamond-premier-pro, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 25px;
  font-feature-settings: "wght" 100;
}

.header-titles.header-title-right-text {
  margin-right: 0;
  margin-left: 30px;
  text-align: left;
}

.landing {
  position: fixed;
  width: 100%;
  height: 100vh;
}

.hero-section {
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  margin-top: -80px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  left: 50%;
  display: block;
  width: 500vw;
  max-width: 85vh;
  margin-right: auto;
  margin-left: auto;
  transform: translateX(-50%);
  object-fit: contain;
}

.div-block {
  position: absolute;
  bottom: 5vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding-right: 5%;
  padding-left: 5%;
}

.nav-link {
  text-decoration: none;
}

.nav-item {
  margin: 0;
  color: #fff;
  font-family: scotch-display-compressed, sans-serif;
  font-size: 70px;
  font-weight: 600;
}

.nav-item:hover {
  opacity: 0.6;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-right: 0;
  margin-left: 0;
}

.dropdown-toggle {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-toggle .nav-item {
  display: block;
}

.dropdown-list {
  position: absolute;
  bottom: calc(100% + 8px);
  left: -12px;
  display: none;
  min-width: max-content;
  background-color: #00046b;
}

.dropdown-list::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 8px;
}

.dropdown.is-open .dropdown-list {
  display: block;
}

.nav-item.nav-submenu {
  display: block;
  height: 64px;
  padding: 0 18px;
  font-size: 48px;
  line-height: 64px;
  text-decoration: none;
}

.landing-gap {
  height: 100vh;
}

.main-content {
  position: relative;
  z-index: 2;
  background-color: #fff;
}

.event-popup {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.event-popup.is-visible {
  opacity: 1;
}

.event-popup-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  color: #00046b;
  background: #fff;
  text-align: center;
  font-family: garamond-premier-pro, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.event-popup-panel img {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-top: 30px;
  margin-bottom: 16px;
  object-fit: cover;
}

.event-popup-title {
  margin: 0 36px 12px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.event-popup-button {
  display: inline-block;
  margin-top: 8px;
  padding: 9px 14px;
  color: #fff;
  border: 0;
  background: #00046b;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.event-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #00046b;
  border: 0;
  background: transparent;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.history-section-container {
  background-color: #fff;
}

.history-section-text {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  padding: 30px 50px;
  color: #00046b;
  font-family: garamond-premier-pro, sans-serif;
}

.history-title {
  font-size: 25px;
  line-height: 30px;
}

.history-p {
  line-height: 17px;
}

.honour-roll {
  padding: 50px 10%;
  background-color: #fff;
}

.honour-roll-heading {
  color: #00046b;
  text-align: center;
  font-family: garamond-premier-pro-display, sans-serif;
}

.honour-roll-list {
  columns: 1;
  color: #000;
  text-align: center;
  line-height: 1.5;
}

.honour-roll-list span {
  display: inline-block;
  width: 44px;
}

.parliamentarians-sec-header {
  background-color: #00046b;
}

.parl-sec-h-title {
  height: 70px;
  margin-top: 20px;
  color: #fff;
  text-align: center;
  font-family: scotch-display-compressed, sans-serif;
  font-size: 50px;
  line-height: 1;
}

.paragraph {
  max-width: 1000px;
  margin: -10px auto 30px;
  padding: 0 100px;
  color: #fff;
  text-align: center;
  font-family: drummond-variable, sans-serif;
  font-size: 16px;
}

.parliamentarians {
  display: flex;
  gap: 10px;
  flex-flow: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  margin-right: 30px;
  margin-left: 30px;
  background-color: #00046b;
}

.mp {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex: 1;
  min-width: 20vw;
  overflow: hidden;
  padding: 7px;
  background-color: #fff;
}

.mp.mp-hidden {
  max-height: 25vw;
  pointer-events: none;
  opacity: 0;
}

.mp-img {
  display: block;
  width: 100%;
}

.mp-title,
.mp-bio {
  position: absolute;
  left: 15px;
  margin: 0;
  padding: 5px;
  color: #00046b;
  background-color: #fff;
  border: 5px solid #fff;
  transition: bottom 0.4s ease;
}

.mp-title {
  bottom: 18px;
  max-width: calc(100% - 30px);
  height: 45px;
  font-size: 20px;
  line-height: 19px;
}

.mp-bio {
  bottom: calc(18px - 100%);
  max-width: calc(100% - 30px);
  font-size: 12px;
  line-height: 14px;
}

.mp:hover .mp-title {
  bottom: calc(100% - 60px);
}

.mp:hover .mp-bio {
  bottom: 18px;
}

.join-main {
  margin-bottom: 50px;
}

.join-h1 {
  color: #fff;
  text-align: center;
  font-family: scotch-display-compressed, sans-serif;
  font-size: 55px;
  font-weight: 600;
}

.paragraph.events-page {
  max-width: 680px;
  margin: 20px auto;
  padding: 0 20px;
  color: #fff;
  font-family: garamond-premier-pro, sans-serif;
}

.form {
  width: 500px;
  margin-right: auto;
  margin-left: auto;
}

.two-column-field,
.one-column-field {
  height: 38px;
  margin-bottom: 10px;
  padding: 8px 12px;
  color: #00046b;
  border: 1px solid #fff;
  border-radius: 0;
  background-color: #fff;
  font-family: garamond-premier-pro, sans-serif;
}

.two-column-field {
  width: calc(50% - 5px);
}

.two-column-left {
  margin-right: 10px;
}

.one-column-field {
  display: block;
  width: 100%;
}

.one-column-field.textarea {
  height: 7.2em;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 5px 0 15px;
}

.checkbox {
  width: 14px;
  height: 14px;
  accent-color: #fff;
}

.checkbox-label {
  color: #fff;
  font-family: garamond-premier-pro, sans-serif;
}

.submit-button {
  width: 100%;
  padding: 5px;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 0;
  background-color: #00046b;
  cursor: pointer;
  font-family: garamond-premier-pro, sans-serif;
}

.submit-button:hover {
  color: #00046b;
  background-color: #fff;
}

.success-message,
.error-message {
  display: none;
  padding: 20px;
  color: #fff;
  text-align: center;
  font-family: garamond-premier-pro, sans-serif;
}

.is-submitted .success-message {
  display: block;
}

.is-submitted form {
  display: none;
}

.join-img {
  height: 500px;
  background-image: url("join-event.jpg");
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.pres-welcome {
  width: 680px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 50px;
  padding-bottom: 50px;
}

.pres-welcome-h1 {
  margin-bottom: 10px;
  font-family: garamond-premier-pro, sans-serif;
  font-size: 28px;
  font-weight: 400;
  overflow: hidden;
}

.pres-welcome-p {
  margin-bottom: 15px;
  font-family: garamond-premier-pro, sans-serif;
  font-weight: 400;
}

.president-title {
  white-space: pre-line;
}

.pres-welcome-signature {
  margin-bottom: 0;
  font-family: adobe-handwriting-ernie, sans-serif;
  font-size: 35px;
  line-height: 30px;
}

.footer {
  display: flex;
  align-items: center;
  height: 80px;
  padding-right: 10%;
  padding-left: 10%;
  background-color: #00046b;
}

.footer.footer-parliamentarians {
  padding-right: 30px;
  padding-left: 35px;
}

.footer-text {
  color: #fff;
  font-family: garamond-premier-pro-display, sans-serif;
}

.socials-container {
  margin-left: auto;
}

.social-media-link {
  margin-left: 15px;
}

.social-media-icons {
  height: 40px;
}

.social-media-icons:hover {
  opacity: 0.8;
}

@media screen and (min-width: 1440px) {
  .header-logo {
    height: 160px;
  }

  .header {
    height: 220px;
  }

  .header-titles {
    margin-right: 50px;
    font-size: 35px;
    line-height: 35px;
  }

  .header-titles.header-title-right-text {
    margin-left: 50px;
  }

  .div-block {
    padding-right: 10%;
    padding-left: 10%;
  }

  .nav-item {
    font-size: 85px;
  }
}

@media screen and (max-width: 991px) {
  .header {
    height: 180px;
  }

  .header-titles {
    margin-right: 20px;
    font-size: 21px;
    line-height: 21px;
  }

  .header-titles.header-title-right-text {
    margin-left: 20px;
  }

  .div-block {
    padding-right: 3%;
    padding-left: 3%;
  }

  .nav-item {
    font-size: 55px;
  }

  .nav-item.nav-submenu {
    height: 56px;
    font-size: 40px;
    line-height: 56px;
  }

  .pres-welcome {
    width: 100%;
    padding: 30px 8% 40px;
  }

  .history-section-text {
    padding-right: 8%;
    padding-left: 8%;
  }

  .honour-roll {
    padding-right: 8%;
    padding-left: 8%;
  }

  .parliamentarians {
    margin-right: 20px;
    margin-left: 20px;
  }

  .mp {
    min-width: 30vw;
  }

  .mp.mp-hidden.mp-3 {
    display: none;
  }

  .footer {
    padding-right: 8%;
    padding-left: 8%;
  }

  .footer.footer-parliamentarians {
    padding-right: 25px;
    padding-left: 25px;
  }

}

@media screen and (max-width: 767px) {
  .header {
    height: 160px;
  }

  .header-titles {
    margin-right: 10px;
    font-size: 15px;
    line-height: 15px;
  }

  .header-titles.header-title-right-text {
    margin-left: 10px;
  }

  .div-block {
    padding-right: 1%;
    padding-left: 1%;
  }

  .nav-item {
    font-size: 38px;
  }

  .nav-item.nav-submenu {
    height: 48px;
    font-size: 32px;
    line-height: 48px;
  }

  .pres-welcome {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .history-section-text {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .parliamentarians {
    margin-right: 20px;
    margin-left: 20px;
  }

  .mp {
    min-width: 40vw;
  }

  .paragraph {
    padding-right: 80px;
    padding-left: 80px;
  }

  .form {
    width: 400px;
  }

}

@media screen and (max-width: 479px) {
  .header {
    padding-left: 4%;
  }

  .header-logo {
    height: 90px;
  }

  .header-titles {
    margin-right: 0;
    padding-left: 2%;
  }

  .header-titles.header-title-right-text {
    margin-left: 0;
    padding-right: 8%;
    padding-left: 0;
  }

  .hero-section {
    margin-top: -60px;
  }

  .hero-image {
    max-width: 65vh;
  }

  .div-block {
    top: auto;
    bottom: 5vh;
    display: block;
  }

  .nav-link,
  .dropdown {
    display: block;
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    text-align: center;
  }

  .nav-item {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    font-size: 17vw;
    line-height: 14vw;
  }

  .nav-item.nav-submenu {
    width: 100%;
    height: 45px;
    font-size: 9vw;
    line-height: 45px;
  }

  .landing-gap {
    height: 110vh;
  }

  .history-section-text {
    padding-right: 8%;
    padding-left: 8%;
  }

  .history-p {
    font-size: 12px;
    line-height: 14px;
  }

  .honour-roll {
    padding-right: 13%;
    padding-left: 13%;
  }

  .parliamentarians {
    margin-right: 20px;
    margin-left: 20px;
  }

  .mp {
    min-width: 80vw;
  }

  .mp.mp-hidden {
    display: none;
  }

  .paragraph {
    padding-right: 20px;
    padding-left: 20px;
  }

  .parl-sec-h-title,
  .join-h1 {
    font-size: 40px;
  }

  .form {
    width: 90%;
  }

  .join-img {
    height: 200px;
  }

  .footer-text {
    width: 55%;
  }

  .social-media-link {
    margin-left: 10px;
  }

  .social-media-icons {
    height: 35px;
  }

  .dropdown-list {
    bottom: calc(100% + 6px);
    left: 0;
    width: 100%;
  }

  .dropdown-list::after {
    bottom: -6px;
    height: 6px;
  }

  .dropdown.is-open .dropdown-list {
    bottom: calc(100% + 6px);
  }
}
