:root {
  --darkBlue: #004170;
  --lightBlue: #F2F7FA;
  --textLinkBlue: #005893;
  --middleBlue: #244A91;
  --lightGreen: #C4D600;
  --errorRed: #C81E1E;
}

html {
  font-size: 100%;
}

body {
  background-color: #fff;
  font-family: "Stadler", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: #000000;
}

* {
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Stadler-Bold", Helvetica, Arial, sans-serif;
  font-weight: normal;
  font-style: normal;
  color: #000000;
  margin: 0;
  padding: 0;
}

h1 {
  display: block;
  font-size: 32px;
  line-height: normal;
  word-break: break-word;
}

h3 {
  font-size: 1.5rem;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

h4 {
  font-family: "Stadler-Medium", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

main {
  padding-top: 64px;
}

a, a:hover, a:visited {
  color: var(--textLinkBlue);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: "Stadler-Medium", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  background-image: linear-gradient(135deg,#000407,#005994 50.61%,#0181c2);
  color: white;
  line-height: 1.5rem;
  padding: .625rem 1.25rem;
  border-radius: .25rem;
  gap: .5rem;
  border: none;
  transition: 0.3s ease-in-out;
}

.button svg {
  transition: 0.3s ease-in-out;
}

.button:hover svg {
  transform: translateX(2px) translateZ(0px);
}

#apply-btn {
  margin-top: 3rem;
}

/**
 * Layout
 */

.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.main-grid {
  padding-top: 90px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 50px;
}

/* Header */
header {
  background: #FFFFFF;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  height: 64px;
  box-shadow: rgba(0, 0, 0, 0) 0 0 0 0, rgba(0, 0, 0, 0) 0 0 0 0, rgba(0, 0, 0, 0.1) 0 4px 6px -1px, rgba(0, 0, 0, 0.1) 0 2px 4px -2px;
}

header .contentContainer {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: inherit;
}

.logo {
  display: flex;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 24px;
}

/* Key Visual */
#keyVisual {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  max-height: 600px;
  width: 100%;
  aspect-ratio: 1440 / 660;
}

#keyVisual .contentContainer {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  height: 100%;
  max-height: 600px;
  aspect-ratio: 1440 / 660;
}

/* Hero Container */
.hero-container {
  position: absolute;
  right: 1.5rem;
  bottom: 3rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 400 / 275;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  left: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-content {
  max-width: 62%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
  margin-left: 15%;
}

.hero-title {
  font-size: 2rem;
  font-family: "Stadler-Bold", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
}

.hero-title-en {
  font-size: 1.85rem;
}

.hero-title-fr {
  font-size: 1.6rem;
}

.hero-description {
  font-size: 1.125rem;
  font-weight: normal;
}

/* Title and Meta */
#titleAndMeta {
  background-color: var(--lightBlue);
}

#titleAndMeta .contentContainer {
  max-width: 1306px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}

.titleInnerContainer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.jobMetaContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Stadler-Medium", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  color: var(--middleBlue);
}

.jobMetaContainer > div {
  gap: 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.jobMetaContainer svg {
  flex-shrink: 0;
  height: 24px;
  overflow: visible;
  color: var(--lightGreen);
}

/* Application Form Container */
#applicationForm .contentContainer {
  max-width: 1306px;
  margin: 0 auto;
}

#applicationForm > .contentContainer {
  max-width: 100%;
  padding: 3rem 1.5rem;
}

/* Documents Container */
#documents {
  background-color: var(--lightBlue);
  padding: 5rem 0 4rem;
  margin-top: 4rem;
}

/* Additional Questions */
#additionalQuestions {
  margin-top: 5rem;
}

/* Last Form Section */
#lastFormSection {
  margin-top: 5rem;
}

/* Footer */
 footer {
   background-color: var(--darkBlue);
}

 footer .contentContainer {
   width: 100%;
   display: grid;
   grid-template-columns: repeat(12,minmax(0,1fr));
   padding: 2rem 1.5rem;
   max-width: 1536px;
   margin: 4rem auto 0;
 }

 .footerFirstColumn {
   grid-column: span 12/span 12;
 }

footer .buttonContainer {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.footerButton, .footerButton:hover, .footerButton:visited {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  padding: .75rem 1.25rem;
  font-size: .875rem;
  line-height: 1.25rem;
  border-radius: .25rem;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
}

.footerSocialIcons {
  display: flex;
  gap: 1rem;
}

.footerSocialIcon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footerSecondColumn {
  grid-column: span 12/span 12;
}

.footerLinks, .footerLinks li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footerLinks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 1rem;
  margin-top: 4rem;
}

.footerLinks a, .copyright {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #99bcd4;
}

.copyright {
  margin-top: 4rem;
}

/* Default hide success */
#intro-success {
  display: none;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive */
@media (min-width: 640px) {
  .copyright {
    margin-top: 3rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 42px;
  }
  .footerSecondColumn {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .copyright {
    margin-top: 4rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 54px;
  }
  header .contentContainer {
    padding: 0 5rem;
  }
  footer .contentContainer {
    padding: 2.5rem 5rem;
    margin: 7rem auto 0;
  }
  #titleAndMeta .contentContainer {
    padding: 2.5rem 5rem;
  }
  #applicationForm .contentContainer {
    padding: 0 5rem;
  }
  #applicationForm > .contentContainer {
    padding: 5rem 0 0;
  }
  .footerFirstColumn,.footerFirstColumnRightContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  footer .buttonContainer {
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 3.5rem;
  }
  .footerSecondColumn {
    display: flex;
    padding-top: 2rem;
  }
  .footerLinks {
    margin-top: 0;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .footerSecondColumn {
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
  }
  .copyright {
    margin-top: 0;
  }
}

@media (min-width: 1536px) {

}

/* Mobile */
@media only screen and (max-width: 767px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }
  .main-grid {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  header .logo img {
    height: 16px;
  }
  .hero-container {
    width: 240px;
    bottom: -3.5rem;
  }
  .hero-content {
    gap: 0.5rem;
  }
  .hero-title, .hero-title-fr, .hero-title-en {
    font-size: 1.125rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  #titleAndMeta .contentContainer {
    padding: 5rem 1.5rem 2.5rem;
  }
}