:root {
  --clr-bg: #fff;
  --clr-header: #f0fff0;
  --clr-green: #21b573;
  --clr-white: #fff;
  --clr-black: #000;
  --clr-dark-1: #282531;
  --clr-dark-2: #413960;
  --clr-dark-3: #585859;
  --clr-dark-4: #6c6b6b;
  --clr-gray: #cdcdcd;
  --clr-orange: #fd511a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font: inherit;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  background-color: var(--clr-bg);
  color: var(--clr-black);
}
a {
  text-decoration: none;
  color: black;
}
ul,
ol {
  list-style: none;
}
img {
  width: 100%;
  display: block;
}

p {
  font-size: 1rem;
  line-height: 24px;
}

h1 {
  font-size: 48px;
  line-height: 70px;
  font-weight: 700;
}
h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--clr-dark-2);
}

h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  color: var(--clr-dark-2);
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.btn {
  font-size: 1rem;
  line-height: 18px;
  background-color: var(--clr-green);
  border: 0;
  cursor: pointer;
  color: var(--clr-white);
  padding-block: 12px 13px;
  padding-inline: 30px;
  border-radius: 33px;
}
/* Header */
.header {
  padding-top: 24px;
  background-color: var(--clr-header);
  min-height: 100vh;
  margin-bottom: 105px;
}

/* Navbar */
.nav {
  display: flex;
  margin-bottom: 90px;
}
.nav__logo img {
  width: 180px;
}
.nav__logo {
  margin-right: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__menu {
  font-size: 1.875rem;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .nav__list {
    display: none;
  }

  .nav__menu {
    display: block;
  }
}

/* Hero */

.hero {
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}
.hero__left,
.hero__right {
  flex: 1;
}

.hero__text {
  color: var(--clr-orange);
  margin-bottom: 10px;
}
.hero__title {
  margin-bottom: 20px;
  max-width: 440px;
}
.hero__title span {
  color: var(--clr-green);
}
.hero__info {
  max-width: 400px;
  line-height: 36px;
  margin-bottom: 15px;
  color: var(--clr-dark-4);
}

@media (max-width: 920px) {
  .nav {
    margin-bottom: 0;
    margin-bottom: 60px;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 60px;
  }
  h1 {
    font-size: 40px;
  }
}

/* Feature */
.feature {
  display: flex;
  flex-direction: column;
  gap: 55px;
  text-align: center;
}
.feature__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 105px;
}
.feature__card {
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 50px 40px;
  transition: box-shadow 0.3s ease;
}
.feature__card:is(:hover, :focus) {
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
}
.feature__card-image {
  max-width: 80px;
  margin-bottom: 22px;
}
.feature__card-image.image-small {
  max-width: 70px;
}

/* Courses */

.courses {
  display: flex;
  flex-direction: column;
  gap: 55px;
  align-items: center;
  margin-bottom: 90px;
}

.courses__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 20px;
  width: 100%;
}

.courses__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  padding-inline: 20px;
  padding-block: 20px 30px;
  cursor: pointer;
}

.courses__card-stats-container {
  display: flex;
  justify-content: space-between;
}
.courses__card-stats-date,
.courses__card-stats-seats {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-dark-3);
}
.courses__card-stats-date img,
.courses__card-stats-seats img {
  width: 24px;
}

.courses__card-image {
  margin-bottom: 20px;
}

.courses__card-info {
  color: var(--clr-dark-3);
  margin-bottom: 20px;
}

.courses__card-button {
  width: fit-content;
  padding-block: 8px;
  margin-bottom: 34px;
}

/* Testimonial */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 100px;
}
.testimonial__title {
  color: var(--clr-black);
  text-align: center;
}
.testimonial__content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 52px;
  width: 100%;
  flex-wrap: wrap;
}

.testimonial__image {
  width: 120px;
}
.testimonial__info {
  max-width: 580px;
  line-height: 30px;
}

@media (max-width: 768px) {
  .testimonial__info {
    text-align: center;
  }
}

/* Footer */
.footer {
  background-color: var(--clr-dark-1);
  color: var(--clr-white);
  padding-block: 48px 30px;
}

.footer__content {
  display: flex;
  margin-bottom: 76px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer__link {
  color: var(--clr-white);
}
.footer__content-left {
  line-height: 30px;
  max-width: 366px;
  margin-right: auto;
}

.footer__item {
  font-size: 18px;
  line-height: 30px;
  font-weight: 700;
}

.footer__copyrihgt {
  text-align: center;
}
.footer__content-right {
  display: flex;
  justify-content: space-evenly;
  gap: 120px;
  flex-wrap: wrap;
}

.footer__list {
  flex: 1;
}

@media (max-width: 550px) {
  .footer__content-right {
    gap: 80px;
  }
}
