/* META ELEMENTS: CONTAINERS, SEPARATORS ETC. */

.all-articles-container {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.article-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
  justify-content: center;
  max-width: 80%;
}

.related-articles {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
  max-width: 80%;
}

/* The separator for the landing page */

.all-articles-separator {
  max-width: 850px;
  height: 1px;
  width: 100%;
  background-color: #4c4c4c;
  opacity: 0.4;
  margin-bottom: 40px;
}

/* THE ARTICLE CARD */

.article-card {
  display: flex;
  flex-direction: column;
  width: 270px;
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 40px;
}

.article-card-image {
  width: 100%;
  height: 224px;
  object-fit: cover;
  transition: all 0.3s;
}

.article-card-image:hover {
  transition: all 0.2s;
}

.article-card-title {
  font-size: 20px;
  font-family: 'Avenir Next';
  font-weight: bold;
  line-height: 33px;
  color: #1f1f1f;
  opacity: 0.90;
}

.article-card-subtitle {
  font-size: 16px;
  font-family: 'Avenir Next';
  line-height: 27px;
  color: #1f1f1f;
  opacity: 0.90;
}

.article-card-button {
  align-self: start;
  margin-top: 10px;
}

/* Metadata: publication date, read time etc. */

.article-card-label-container {
  display: flex;
  align-items: center;
}

.article-card-label {
  font-size: 13px;
  font-family: 'Avenir Next';
  color: #1f1f1f;
  opacity: 0.80;
  margin-top: 7px;
}

.article-card-separator {
  width: 1px;
  height: 13px;
  margin-top: 7px;
  margin-left: 5px;
  margin-right: 5px;
  background-color: #4c4c4c;
  opacity: 0.4;
}

/* THE ARTICLE PAGE */

/* Hero image */

.article-hero-section {
  display: flex;
  align-items: center;
  padding-top: 107px;
  justify-content: center;
}

.hero-container {
  max-height: 70vh;
}

.article-hero-image {
  max-width: 100%;
  max-height: inherit;
  object-fit: contain;
  z-index: -5;
}

/* ARTICLE CONTENT */

.article-content-section {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title */

.article-title {
  font-size: 45px;
  font-family: 'Avenir Next';
  max-width: 640px;
  color: #1f1f1fcc;
  padding-left: 40px;
  padding-right: 40px;
  width: 100%;
  font-weight: bold;
}

@media (max-width: 500px) {
  .article-title {
    font-size: 32px;
  }
}

/* Metadata */

.article-meta-data-container {
  display: flex;
  width: 100%;
  max-width: 640px;
  padding-left: 40px;
  padding-right: 40px;
}

/* Subheading */

.article-subheading {
  font-size: 25px;
  font-family: 'Avenir Next Demi';
  color: #1f1f1f;
  margin-top: 15px;
  opacity: 0.8 !important;
}

/* Paragraph Containers */

.paragraph-container {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 50px;
}

.column-paragraph-container {
  display: flex;
  padding-left: 40px;
  padding-right: 40px;
  margin-bottom: 50px;
  max-width: 820px;
  flex-wrap: wrap-reverse;
}

.column-paragraph-container p {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 250px;
}

.column-paragraph-container p:not(:last-child) {
  margin-right: 20px;
}

.first-paragraph {
  margin-top: 50px;
}

.article-paragraph {
  font-size: 20px;
  font-family: 'Avenir Next';
  color: #1f1f1fcc;
  margin-bottom: 25px;
}

.work-done span {
  font-family: 'Avenir Next';
  color: rgba(31,31,31,0.8);
  font-size: 18px;
  text-align: left;
}

.work-done {
  text-align: left;
  color: rgba(31,31,31,0.5);
  margin-bottom: 60px;
}

@media (min-width: 610px) {
  .work-done {
    text-align: right;
    margin-bottom: inherit;
  }
}

/* Bullet point list paragraph */

.article-list {
  font-size: 20px;
  font-family: 'Avenir Next';
  list-style-position: outside;
  list-style: none;
  max-width: 600px;
  color: #1f1f1fcc;
  margin-left: -33px;
}

.article-list li::before {
  content: "\2022";
  color: #DE5A60;
  margin-left: -22px;
  position: absolute;
}

/* Ordered list paragraph */

.article-list-numbered {
  font-size: 20px;
  font-family: 'Avenir Next';
  list-style-position: outside;
  list-style: none;
  counter-reset: step-counter;
  max-width: 600px;
  color: #1f1f1fcc;
  margin-left: -40px;
  padding-left: 40px;
  padding-right: 40px;
}

.article-list-numbered li {
  counter-increment: step-counter;
}

.article-list-numbered li::before {
  content: counter(step-counter)".";
  font-family: inherit;
  font-size: inherit;
  color: #DE5A60;
  margin-left: -26px;
  position: absolute;
}

/* Quote paragraph */

.quote-paragraph {
  position: relative;
}

.quote-paragraph::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -18px;
  width: 2px;
  height: calc(100% - 13px);
  background-color: #DE5A60;
}

/* Testimonial */

.testimonial {
  max-width: 640px;
  position: relative;
  font-size: 32px;
  padding-left: 40px;
  padding-right: 40px;
  font-family: 'Avenir Next Demi';
  color: #1f1f1f;
  margin-top: 320px;
  margin-bottom: 350px;
  line-height: 36px;
}

@media (min-width: 500px) {
  .testimonial {
    font-size: 50px;
    line-height: 63px;
  }
}

.testimonial::before {
  content: url('/assets/img/assets/quote.png');
  object-fit: cover;
  transform: scale(0.4);
  position: absolute;
  margin-left: -45px;
  margin-top: -10px;
}

@media (min-width: 500px) {
  .testimonial::before {
    transform: scale(0.5);
    margin-left: -50px;
    margin-top: -10px;
  }
}

.testimonial p {
  margin-bottom: 0px;
}

.testimonial span {
  margin-top: 0px;
  font-size: 17px;
  font-family: 'Avenir Next';
  color: #1f1f1f;
  opacity: 0.6;
}

@media (min-width: 500px) {
  .testimonial span {
    font-size: 23px;
  }
}

/* Call to action */

.call-to-action-container {
  display: flex;
  flex-direction: column;
  max-width: 475px;
  padding-top: 36px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 40px;
  margin-top: 60px;
  margin-bottom: 130px;
  margin-left: 20px;
  margin-right: 20px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

@media (max-width: 500px) {
  .call-to-action-container {
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
  }
}

.call-to-action-container h3 {
  font-size: 40px;
  line-height: 45px;
  font-family: 'Avenir Next Demi';
  color: #1f1f1fcc;
}

@media (max-width: 500px) {
  .call-to-action-container h3 {
    font-size: 32px;
    line-height: 38px;
  }
}

.call-to-action-container p {
  font-size: 20px;
  font-family: 'Avenir Next';
  color: #1f1f1fcc;
  margin-bottom: 25px;
}

#lets-talk {
  align-self: start;
}

/* Paragraph Link */

.paragraph-link {
  position: relative;
  padding-left: 5px;
  padding-right: 5px;
  color: inherit;
  transition: all 0.15s;
}

.paragraph-link:hover {
  color: #ffffff;
}

.paragraph-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 95%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(126,117,237);
  opacity: 1;
  border-radius: 2px;
  transition: all 0.15s;
}

.paragraph-link:hover::after {
  top: 0;
  height: 100%;
}

.paragraph-link:active::after {
  top: 0;
  background-color: rgb(92,83,208);
  height: 100%;
}

/* Image paragraphs */

.article-image-full-width {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  margin-bottom: 35px;
  overflow-x: hidden;
}

.article-image-wide {
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 35px;
  overflow-x: hidden;
}

.article-image {
  max-width: 770px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 35px;
  overflow-x: hidden;
}

.image-caption {
  margin-top: 7px;
  font-family: 'Avenir Next';
  font-size: 12px;
  font-style: italic;
  text-align: center;
  color: #00000080;
}

/* Image group */

.article-image-group {
  max-width: 770px;
  display: flex;
  align-items: start;
  margin-bottom: 35px;
  padding-left: 10px;
  padding-right: 10px;
}

.article-image-group .article-image {
  flex-basis: 0;
  flex-grow: 1;
}

.article-image-group .article-image:not(:last-child) {
  margin-right: 30px;
}

/* Meducately specific shot (-> move to another file) */

#meducately-ui-shot {
  /*width: 510px;*/
  object-fit: cover;
  /*max-width: 100%;*/
  margin-top: -59px;
}

@media (max-width: 981px) {
  #meducately-ui-shot img {
    width: 125%;
  }
}

@media (min-width: 980px) {
  #meducately-ui-shot {
    /*width: 1200px;*/
    /*max-width: 100%;*/
    margin-top: -300px;
  }
}

