/* ========================
   CONTENT HEADING
======================== */
.content__heading {
    width: 100%;
}

/* Expert Section Wrapper */
.content-heading__expert {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 300px;
    position: relative;
}

/* Background layer of the expert heading */
.content-heading__expert-background {
    background-color: var(--color-primary--1);
    position: relative;
    display: grid;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
}

/* Main content in expert heading */
.content-heading__expert-content {
    max-width: 541px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 37px;
    padding-bottom: 60px;
}

/* Info wrapper inside expert content */
.content-heading__expert-infos_wrapper {
    font-family: Barlow, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-heading__expert-infos {
    font-family: Barlow, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.content-heading__expert-infos > a {
    text-decoration: underline;
}

/* H1 inside expert content */
.content-heading__expert-content > h1 {
    font-family: Barlow, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* H3 inside info wrapper */
.content-heading__expert-infos_wrapper > h3 {
    font-family: Barlow, sans-serif;
    font-size: 22px;
    font-weight: 300;
    margin: 0;
}

/* Expert image */
.content-heading__expert-image > img {
    max-width: 704px;
}

/* ========================
   SECTION PADDING
======================== */
.expert__text {
    padding: 64px 0;
}

.expert__video {
    padding: 64px 0;
    background-color: var(--color-background);
}

.expert__faq {
    padding: 64px 0;
}

/* ========================
   CASE STUDY
======================== */
.expert__case-study {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 55px;
}

.expert__case-study > * {
    display: flex;
    flex-direction: column;
}

.expert__case-study > * > .text--twocols {
    align-self: center;
    font-family: Barlow, sans-serif;
    font-size: 5px; /* very small? Might need adjustment */
}

.expert__case-study > .exbg {
    background-color: var(--color-background);
    padding: 16px 32px;
    border-radius: 10px;
}

.expert__case-study > h3 {
    font-family: Barlow, sans-serif;
    font-size: 24px;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
}

/* Blockquotes inside two-column text */
.text--twocols > * > blockquote {
    background-color: var(--color-neutral--dark);
    color: #fff;
    padding: 8px;
    border-radius: 10px;
}

/* ========================
   TESTIMONIALS
======================== */
.expert__testimonials {
    margin-bottom: 128px;
}

.expert__testimonials--full {
    padding: 64px 0;
    background-color: var(--color-background);
}

/* Presentation section */
.expert__presentation {
    padding-bottom: 32px;
}

.social__link {
  content: '';
  width: 30px;
  height: 30px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social__link--linkedin {
  background-image: url("../../images/linkedin.svg");
}

.social__link--instagram {
  background-image: url("../../images/insta.svg");
  width: 38px;
  height: 38px;
}

.social__link--facebook {
  background-image: url("../../images/fb.svg");
}

.social__link:hover {
  opacity: 0.75;
  transform: scale(1.05);
}

.expert__social-medias {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.content-heading__expert-image {
  margin: 0 auto;
}



/* ========================
   DESKTOP MEDIA QUERIES
======================== */
@media screen and (min-width: 999px) {
    .expert__presentation {
        padding-bottom: 330px;
    }

    .expert__text {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .expert__case-study {
        gap: 48px;
        margin-bottom: 110px;
        padding-bottom: 48px;
    }

    .expert__case-study > h3 {
        font-size: 48px;
    }

    .text--twocols > * > blockquote {
        padding: 32px;
    }

    .expert__case-study > * > .text--twocols > * {
        font-size: 18px;
    }

    .expert__case-study > .grid-row {
        padding: 64px 125px;
    }

    .content-heading__expert {
        padding-bottom: 200px;
    }

    .content-heading__expert-image {
        position: absolute;
        transform: translateX(550px) translateY(145px);
    }

    .content-heading__expert-infos_wrapper > h3 {
        font-size: 44px;
        gap: 20px;
    }

    .content-heading__expert-content > h1 {
        font-size: 72px;
    }

    .content-heading__expert-infos {
        font-size: 22px;
    }

    .content-heading__expert-content {
        padding-top: 74px;
        padding-bottom: 120px;
    }

    .expert__video,
    .expert__faq {
        padding: 4rem 0;
    }
    .expert__video {
        margin-top: 4rem;
    }
    .expert__faq {
        padding-top: 2rem;
    }
}

@media screen and (min-width: 1200px) {
    .content-heading__expert-image {
        position: absolute;
        transform: translateX(700px) translateY(145px);
    }
}

@media screen and (min-width: 1400px) {
    .content-heading__expert-image {
        position: absolute;
        transform: translateX(950px) translateY(145px);
    }
}
