* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Gabarito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.navbar {
  padding: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
  position: sticky;
  top: 0px;
  background-color: white;
  z-index: 1;
}

.navbar__s1__title {
  color: #a435f0;
}

.navbar__s2 {
  padding: 10px;
  border: 1px solid black;
  border-radius: 30px;
  width: 60%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__s2 input {
  border: none;
  width: 100%;
  font-size: 16px;
  background-color: transparent;
}

.navbar__s2 input:focus {
  outline: none;
}

.navbar__s3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__s4{
  display: none;
}

/* My Learning popup */

.mylearning {
  position: relative;
  cursor: pointer;
}

.mylearning:hover .mylearning__popup {
  display: block;
}

.mylearning__popup {
  position: absolute;
  background-color: white;
  width: 100px;
  padding: 20px;
  border: 1px solid black;
  top: 150%;
  right: 0;
  display: none;
}

.categories {
  display: flex;
  padding: 10px;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid black;
}

.categories p {
  color: white;
  padding: 10px;
  border-radius: 30px;
  background-color: #a435f0;
    border:1px solid #a435f0;
}

.categories p:hover{
  transition: 1s;
  background-color: transparent;
  color: black;
  border:1px solid #a435f0;
  cursor: pointer;
}

.sale_image {
  position: relative;
}

.sale_image__offer {
  color: white;
  border: 2px solid white;
  padding: 2%;
  position: absolute;
  top: 30%;
  left: 1%;
  animation-name: zoom;
  animation-duration: 2s;
  opacity: 0;
  animation-fill-mode: forwards;

}

@keyframes zoom{
    0%{
      opacity: 0;
      transform: scale(0);
    }

    100%{
      opacity: 1;
      transform: scale(1);
    }
  
}

.sale_image img {
  width: 100%;
}

.recommended,
.popular {
  padding: 10px;
}

.recommended__container,
.popular__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
}

.course__card {
  /* width: 350px; */
  flex-grow: 1;
  flex-basis: 20%;
  padding: 10px;
}

.course__card img {
  width: 100%;
}

.topics {
  padding: 10px;
}

.topics__container {
  display: flex;
  flex-wrap: wrap;
}

.topics__container p {
  padding: 10px;
  margin: 5px;
  display: flex;
  flex-grow: 1;
  flex-basis: 25%;
  justify-content: center;
  border: 2px solid gray;
}

.footer {
  padding: 30px;
  background-color: black;
  color: white;
}

.footer__one {
  display: flex;
  gap: 20px;
}

.footer__one p {
  margin: 20px;
}

.footer__two {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
}


/* Media Queries */

@media screen and (max-width:800px) {
    body{
      font-size: 10px;
    }
    .navbar__s4{
      display: flex;
    }

}

@media screen and (max-width:800px) {
    .course__card{
      flex-basis: 40%;
    }

    .categories{
      display: none;
    }

    .navbar__s2, .navbar__s3{
      display: none;
    }


}