.header {
 figure {
  background: url(../assets/header-logo.png) no-repeat;
  background-position: center;
  background-size: contain;
  width: 30%;
  height: 5rem;
 }
}

.hero-sec {
 background: linear-gradient(to right, #d1c5ff 55%, #f77816 45%);
 min-height: 60vh;
 width: 100%;
 margin-bottom: 6rem;
}

.hero-sec-inside {
 min-height: 60vh;
 position: relative;
}
.form-sec {
 height: fit-content;
 position: relative;
 line-height: 1.4;
 h2 {
  font-size: 2.5rem;
 }
 h1 {
  font-size: 3.5rem;
  font-weight: 600;
 }
 form {
  border: 1px solid gray;
  border-radius: 2rem;
  background-color: white;
  padding-left: 1rem;
  padding-right: 0.4rem;
  display: flex;
  align-items: center;
  margin-top: 1rem;
  input {
   width: 90%;
   border: none;
   background: none;
   outline: none;
   padding: 0.8rem 0.5rem;
   font-family: "Montserrat", sans-serif;
  }
  button {
   background: none;
   display: block;
   border: none;
   img {
    width: 1rem;
    display: block;
   }
  }
 }
}

.hero-sec .hero-sec-inside .right-sec {
 /* position: relative; */
 figure {
  background: url(../assets/hero-bg.png) no-repeat;
  background-position: left;
  background-size: cover;
  width: 50%;
  height: 75vh;
  position: absolute;
  top: -3rem;
  margin-left: 2rem;
 }
}

.hero-sec .hero-sec-inside .head-set-img {
 width: 10rem;
 position: absolute;
 right: -9.5rem;
}

.hero-sec .hero-sec-inside .glasses-img {
 width: 5rem;
 position: absolute;
 right: 18rem;
 top: -0.5rem;
 /* left: 0; */
}
/* trending-articles */

.trending-articles {
 margin: 4rem 0;
 h3 {
  font-size: 2rem;
  color: black;
  span {
   color: #f77816;
  }
 }
}
.trending-articles .articles {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 grid-gap: 2rem;
 margin-top: 2rem;

 article:nth-child(2) {
  background-color: #b0e4ff;
  h5 {
   color: #695dd3;
   height: 3.8rem;
   overflow: hidden;
  }
  a {
   background-color: #f96de6;
  }
 }

 article:nth-child(3) {
  background-color: #fcf18c;
  h5 {
    height: 3.8rem;
    color: #5dd3d3;
    overflow: hidden;
    }
  a {
   background-color: #5dd3d3;
  }
 }

 article:nth-child(4) {
  background-color: #ffc99f;
  h5 {
   color: #475454;
  }
  a {
   background-color: #5dd3d3;
  }
 }
}
.trending-articles .articles article {
 background-color: #d0f4ff;
 padding: 0.7rem 0.7rem;
 padding-top: 1rem;
 position: relative;
 h5 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: #23c1f1;
  font-weight: 500;
  margin-bottom: 1rem;
 }
 a {
  display: block;
  margin: auto;
  width: fit-content;
  background-color: #e1c34c;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  position: absolute;
  bottom: -1.5rem;
  left: 30%;
  right: 30%;
  img {
   width: 0.7rem;
  }
 }
}
.trending-articles .articles article figure {
 background: url(../assets/image1.png) no-repeat;
 background-position: center;
 background-size: cover;
 width: 100%;
 height: 13rem;
}

.single-article {
 margin: 6rem 0 !important;
 .container {
  background-color: #ffc99f;
  padding: 0 2rem;
 }
}

.single-article .article {
 height: 20rem;
 margin: 12rem 0;
 figure {
  background: url(../assets/image1.png) no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  min-height: 24rem;
  position: relative;
 }
 .content {
  margin-left: 4rem;
  width: 40% !important;
  line-height: 1.3;
  position: relative;

  h3 {
   color: #5d32fe;
   font-size: 2rem;
   margin-bottom: 0.9rem;
   font-weight: 500;
  }
  a {
   display: block;
   margin: auto;
   width: fit-content;
   background-color: #f96de6;
   width: 3rem;
   height: 3rem;
   display: flex;
   justify-content: center;
   align-items: center;
   border-radius: 50%;
   position: absolute;
   bottom: -6rem;
   /* left: 30%; */
   right: -2rem;
   img {
    width: 0.7rem;
   }
  }
 }
}

.single-article-reverse {
 margin: 6rem 0 !important;

 .container {
  background-color: #b0e4ff;
 }
 .figure {
  min-height: 24rem;
 }
 .content {
  margin-left: 1rem !important;
  width: 60% !important;
  a {
   right: 40rem;
   bottom: -4rem !important;
   background-color: #fcf18c !important;
  }
  .side-img {
   width: 15rem;
   height: 15rem;
   display: block;
   margin-right: 1.5rem;
  }
 }
}

/* list articles */
.list-articles {
 background-color: #c7b8ff;
 padding: 4rem 0;
 .mini-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
 }
 article {
  figure {
   background: url(../assets/image4.png) no-repeat;
   background-position: center;
   background-size: cover;
   height: 18rem;
   border-top-left-radius: 5rem;
   border-bottom-right-radius: 5rem;
  }
  .content {
   width: 80%;
   margin: auto;
   padding: 2.5rem 1rem;
   background-color: white;
   border: 1px solid rgba(128, 128, 128, 0.199);
   line-height: 1.3;
   border-radius: 0.5rem;
   position: relative;
   margin-top: -5rem;
   h6 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    height: 3.5rem;
    overflow: hidden;
   }
   img {
    width: 7rem;
    margin: 1rem 0;
    display: block;
    opacity: 50%;
   }
   p {
    height: 2.5rem;
    overflow: hidden;
   }
  }
 }
}
.list-articles article {
 &:nth-child(1) {
  .content h6 {
   color: #5d32fe;
  }
 }
 &:nth-child(2) {
  .content h6 {
   color: #5dd3d3;
  }
 }
 &:nth-child(3) {
  .content h6 {
   color: #ff8494;
  }
 }
}

.about-sec {
 padding: 2rem 0;
 background-color: var(--primary-color);
 color: black;
}
.about-sec .content {
 margin: auto;
 text-align: center;
 line-height: 2;
 padding: 2rem 1rem;
}
.about-sec .content figure {
 width: 17rem;
 background: url(../assets/header-logo.png) no-repeat;
 background-size: contain;
 background-position: center;
 height: 70px;
 margin: auto;
 margin-bottom: 2rem;
}
.about-sec .content p {
 width: 60%;
 margin: auto;
 text-align: center;
 line-height: 1.5;
}
.about-sec .content .line {
 height: 0.1rem;
 background-color: white;
 margin: auto;
 margin-top: 1rem;
 margin-bottom: 1rem;
}
.about-sec .content span {
 text-align: center;
 display: block;
}
.about-sec .content small {
 font-weight: 900;
}

.footer {
 width: 100%;
 margin: auto;
 background-color: #d9d9d9;
 padding: 1rem 0;
 line-height: 1.5;
}
.footer-form {
 border: 1px solid gray;
 border-radius: 0.8rem;
 background-color: #d9cfff;
 padding-left: 1rem;
 /* padding-right: 0.4rem; */
 display: flex;
 align-items: center;
 margin-top: 1rem;
 width: 50%;
 margin: auto;
 margin-bottom: 2rem;
 margin-top: 1rem;
 input {
  width: 92%;
  border: none;
  background: none;
  outline: none;
  padding: 0.8rem 0.5rem;
  font-family: "Montserrat", sans-serif;
 }
 button {
  background: none;
  display: block;
  border: none;
  img {
   width: 1rem;
   display: block;
  }
 }
}

.footer ul {
 background-color: #d9d9d9;
 margin: auto;
 /* padding: 1rem 2rem; */
}
.footer li {
 color: black;
 font-size: 0.8rem;
}
.footer p {
 font-size: 0.9rem;
}


/* all-articles */

.article-bg-left {
    width: 10rem;
    position: fixed;
    left: 0;
    top: 25rem;
    z-index: -99999;
}
.article-bg-right {
    width: 10rem;
    position: fixed;
    right: 0;
    z-index: -99999;
}

.all-articles {
    margin-top: 1rem;
    position: relative;
    h2 {
        font-size: 1.8rem;
        padding: 1rem 0;
        color: var(--primary) !important;
        font-weight: 500;
    }
}

.all-articles .inside-articles {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0.8rem;
}

.all-articles .inside-articles article {
    line-height: 1.3;
    transition: all 0.3s ease-in-out;
    display: block;
    /* height: 14rem; */
    padding: 0.5rem;
    border-radius: 0.3rem;
    overflow-y: hidden;
    padding-bottom: 0.7rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border: 1px solid rgba(128, 128, 128, 0.235);
    p {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        min-height: 3.5rem;
        height: 100%;
        overflow-y: hidden;
    }
}
.all-articles .inside-articles article:hover {
    background-color: #fff8f4;
}

.all-articles .inside-articles article figure {
    min-height: 8rem;
    height: 100%;
    max-height: 10rem;
}

.all-articles .vector1 {
    position: absolute;
    left: 0;
    width: 10rem;
    top: 50rem;
}

.all-articles .vector2 {
    right: 0;
    width: 10rem;
    top: 5rem;
    position: absolute;
}

.pagination {
    margin-top: 4rem;
    .inside {
        p {
            width: fit-content;
            padding: 0.5rem 0.6rem;
            height: 1rem;
            width: 1rem;
            text-align: center;
            margin: 0.5rem;
            color: gray;
            border-radius: 0.1rem;
            font-size: 0.8rem;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease-in-out;
            &:hover {
                background-color: var(--footer-text-color);
                color: white;
                cursor: pointer;
            }
        }
        .left,
        .right {
            font-weight: 800;
        }
        .active {
            background-color: var(--footer-text-color);
            color: white;
        }

        .last {
            width: fit-content;
        }
    }
}

.categorySec p {
    font-size: 1rem;
}

.header-article {
    width: 52% !important;
    .flex20 {
        flex: 0 1 50% !important;
    }
}