*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
  border: none;
  margin: 0;
  padding: 0;
}

:root {
  --indigo: #2E008B;
  --blue: #307FE2;
  --magenta: #BB16A3;
  --orange: #FF6A39;
  --dark-indigo: #201547;
}

html {
  -webkit-text-size-adjust: none; /* for iOS Safari */
  text-size-adjust: none; /* for other mobile browsers */
}

img {
  display: block;
  max-width: 100%;
}

menu:not(article menu),
ol:not(article ol),
ul:not(article ul) {
    list-style: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: self-end;
  border-bottom: 1px solid #000000;
  padding: 70px 0 20px;
  margin: 0 50px;
}

footer {
  background-color: var(--dark-indigo);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; 
  padding: 60px; 
}

.logo {
  width: 172px;
}

.medaffairs {
  font-family: "fieldwork";
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 28.11px;
  background: linear-gradient(to right, #B43393, #F3743A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#ma-mobile {
  display: none;
}

h1 {
  font-family: "fieldwork";
  font-size: 24px;
  font-weight: 700;
  line-height: 33.73px;
  text-align: center;
  color: var(--indigo);
  margin: 60px 0 20px;
}

h2 {
  font-family: "fieldwork";
  font-size: 15px;
  font-weight: 300;
  line-height: 15px;
  text-align: center;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 20px;
}

h3 {
  font-family: "fieldwork";
  font-size: 16px;
  font-weight: 400;
  line-height: 22.48px;
  text-align: center;
  color: var(--indigo);
  max-width: 500px;
  margin: 40px auto;
}

.content {
  margin: 0 auto;
  max-width: 1440px;
}

.posters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.poster {
  flex: 1 0 50%;
  padding: 10px;
  /* max-width: 450px; */
  position: relative;
}

.poster img {
  transition: opacity 0.5s ease;
}

.articles {
  gap: 20px;
}

.article {
  display: flex;
  flex: 1 0 49%;
  gap: 25px;
  padding: 20px 20px;
  background-color: #f5f5f5;
}

.article .title {
  font-family: "fieldwork";
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: var(--indigo);
  margin: 0 0 12px;
}

.article .citation {
  font-family: "fieldwork";
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  color: var(--indigo);
}

.article-img {
  max-width: 200px;
}

.article-button {
  background-color: var(--indigo);
  border: none;
  border-radius: 50px;
  color: white;
  padding: 12px 30px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  margin-top: 20px;
  font-family: "fieldwork";
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease; 
}

.poster:hover img {
  opacity: 1; /* Fades out the image on hover */
}

.link-email {
  text-decoration: none;
  color: inherit;
}

.link-email:hover {
  color: var(--magenta);
  /* font-weight: bold; */
  border-bottom: 1px solid var(--magenta);
  font-family: "fieldwork";
}

.link-email:visited .link-email:active {
  color: var(--indigo);
}

.link-privacy {
  text-decoration: none;
  color: inherit;
}

.link-privacy:hover {
  font-weight: 400;
}

.footer-text {
  font-family: "fieldwork";
  font-size: 10px;
  font-weight: 300;
  line-height: 14px;
  color: white;
}
.footer-logo {
  width: 114px;
}

@media screen and (max-width: 600px) {
  /* For screens smaller than 600px wide, switch to single column layout */
  header {
    margin: 0 32px;
    padding: 50px 0 20px;
  }
  
  .logo {
    margin: 0 auto;
  }

  .content {
    margin: 0 32px;
  }

  .poster {
    flex: 1 0 100%; /* Each column takes 100% of the container width */
    padding: 10px 0;
  }

  .article {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 20px;
  }

  .article-preview {
    order: -1;
  }

  .article-description {
    text-align: center;
  }

  /* .poster-img {
    opacity: 1;
  } */

  .footer-logo {
    margin: 35px auto 0;
  }

  #ma-desktop {
    display: none;
  }

  #ma-mobile {
    display: block;
    text-align: center;
    margin-top: 20px;
  }

  #blank {
    display: none;
  }
}