/* Cover */
#cover__wrapper {
  display: flex;
}

#cover__content {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#cover__social {
  display: flex;
  gap: 1.2rem;
}
#cover__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background-color: var(--color-light);
  transition: background-color 200ms ease-out;
}
#cover__social a:hover {
  background-color: var(--color-primary);
}
#cover__social a svg {
  height: 2.4rem;
  fill: var(--color-dark);
  opacity: 0.333;
  transition: fill 200ms ease-out, opacity 200ms ease-out;
}
#cover__social a:hover svg {
  fill: var(--color-white);
  opacity: 1;
}
#cover__text h1 {
  margin-bottom: 3.6rem;
}
#cover__text p {
  width: 80%;
  margin-bottom: 3.6rem;
  text-wrap: balance;
}
#cover__buttons {
  display: flex;
  gap: 1.2rem;
}

#cover__footer {
  font-size: var(--text-smaller);
  margin-top: 6rem;
  opacity: 0.333;
}

#cover__figure {
  flex: 3;
  aspect-ratio: 4/3;
  position: relative;
}
#cover__figure img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Services */
.service {
  display: flex;
  flex-direction: column;
}
.service span {
  display: block;
  font-size: var(--text-smaller);
  opacity: 0.5;
}
.service--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}
.service img {
  width: 100%;
}
.service > img {
  margin-bottom: 1.2rem;
}
.service__title {
  display: block; 
}
.service__title h3 {
  font-size: 2.4rem;
  margin-bottom: 1.8rem;
  transition: color 200ms ease-out;
}
.service__title:hover h3 {
  color: var(--color-primary);
}
.service p {
  flex: 1;
  font-size: var(--text-smaller);
  margin-bottom: 3.6rem;
}
.service__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service__footer svg {
  height: 3.6rem;
  opacity: 0.2;
}
.service--dark p {
  opacity: 0.666;
}
.service--dark .service__footer svg {
  fill: var(--color-white);
}

/* Courses */
#courses__wrapper {
  display: flex;
  gap: var(--padding-larger);
}
#courses__content {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.course {
  border-bottom: solid 1px var(--color-medium);
}
.course:last-child {
  border-bottom: none;
}
.course__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.4rem 0;
}
.course:first-child .course__title {
  margin-top: 0;
}
.course__title h3 {
  font-size: 2.4rem;
  transition: color 200ms ease-out;
}
.course__title h3:hover {
  color: var(--color-primary);
}
.course__title svg {
  transform-origin: center;
  height: 1.8rem;
  transition: transform 200ms ease-out;
}
.course__description {
  overflow: hidden;
  max-height: 0;
  transition: max-height 200ms ease-out;
}
.course--open .course__title h3 {
  color: var(--color-primary);
}
.course--open .course__title svg {
  transform: rotate(45deg);
}
.course--open .course__description {
  max-height: 500px;
}

.course__description p {
  width: 80%;
  margin-bottom: 2.4rem;
}
.course__description .button {
  margin-bottom: 3.6rem;
}

#courses__footer {
    flex: 1;
    display: flex;
    align-items: flex-end;
    font-size: var(--text-smaller);
    opacity: 0.333;
}

#courses__figure {
  flex: 3;
  border-radius: var(--radius-smaller);
  overflow: hidden;
  background-color: bisque;
  aspect-ratio: 3/2;
  position: relative;
}
#courses__figure .swiper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
#courses__figure .swiper-slide {
    position: relative;
}
#courses__figure .swiper-slide img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Posts */
.post {
    display: flex;
    flex-direction: column;
}
.post__thumbnail {
  display: block;
  border-radius: var(--radius-smaller);
  overflow: hidden;
  margin-bottom: 2.4rem;
}
.post__thumbnail img {
  width: 100%;
  transition: transform 200ms ease-out;
}
.post__thumbnail:hover img {
  transform: scale(1.1);
}
.post__title {
  display: block;
  margin-bottom: 1.2rem;
}
.post__title h3 {
  font-size: var(--text-larger);
  line-height: 1.2;
  transition: color 200ms ease-out;
}
.post__title:hover h3 {
  color: var(--color-primary);
}
.post p {
  font-size: var(--text-smaller);
  margin-bottom: 2.4rem;
  line-height: 1.4;
}
.post span {
    flex: 1;
    display: flex;
    align-items: flex-end;
    font-size: var(--text-smaller);
    opacity: 0.5;
}





/* 50% */
@media only screen and (max-width: 960px) {
    #cover__text h1 {
        font-size: 4.8rem;
        margin-bottom: 2.4rem;
    }
    #cover__text p {
        font-size: var(--text-smaller);
        margin-bottom: 2.4rem;
    }
    #cover__social {
      margin-bottom: 2.4rem;
    }
    #cover__social a {
        width: 3.6rem;
        height: 3.6rem;
    }
    #cover__social a svg {
        height: 1.8rem;
    }
    #cover__footer {
      font-size: 1.2rem;
      margin-top: 2.4rem;
    }
    #cover__figure img {
      transform: scale(1.1);
    }
    #cover__buttons a {
      height: 3.6rem;
      padding: 0 1.8rem;
      border-radius: 1.8rem;
      font-size: 1.2rem;
    }

    #services {
      grid-template-columns: 1fr 1fr 1fr;
    }
    .service {
      padding: var(--padding-smaller);
    }
    #services .service:nth-child(4) {
      display: none;
    }
    .service span {
      font-size: 1.2rem;
    }
    .service__title h3 {
      font-size: 2rem;
    }
    .service p {
      margin-bottom: 1.8rem;
    }

    .course__title h3 {
      font-size: 1.8rem;
    }
    .course__description p {
      font-size: var(--text-smaller);
      width: auto;
      margin-bottom: 1.8rem;
    }
    #courses__footer {
      font-size: 1.2rem;
    }

    .post p {
      margin-bottom: 1.8rem;
    }
    .post span {
      font-size: 1.2rem;
    }
}
/* PHONE */
@media only screen and (max-width: 600px) {
  .section__title {
    width: auto;
  }

  #cover__wrapper {
    flex-direction: column-reverse;
  }
  #cover__content {
    flex: none;
  }
  #cover__social {
    display: none;
  }
  #cover__text h1 {
    font-size: 4.2rem;
  }
  #cover__figure {
    flex: none;
    margin-bottom: 3.6rem;
  }
  #cover__figure img {
    transform: scale(1.1);
  }
  #cover__text p {
    width: auto;
  }

  #services {
    grid-template-columns: 1fr;
  }

  #courses__wrapper {
    flex-direction: column-reverse;
  }
}