:root {
 --primar-color: #7f52a6;
}
.header {
 background: linear-gradient(to right, #1b2e6c, #5d1e94);
 figure {
  background: url(../img/header-logo.png) no-repeat;
  background-position: left;
  background-size: contain;
  width: 25%;
  height: 5rem;
 }
}

.hero-sec {
 background: linear-gradient(to right, #1b2e6c, #5d1e94);
 width: 100%;
 padding: 0.5rem 0;
 padding-bottom: 2rem;
 /* margin-bottom: 6rem; */
}
.hero-sec article {
 min-height: 55vh;
 grid-template-columns: repeat(2, 1fr);
 grid-gap: 1rem;
 .left {
  color: white;
  height: 100%;
  line-height: 1.5;
  h1 {
   font-size: 3rem;
   font-weight: 500;
   line-height: 1.3;
  }
  a {
   color: white;
   border: 1px solid #ff8494;
   background-color: #ff8494;
   padding: 0.5rem 1.2rem;
   display: inline-block;
   margin-top: 1rem;
   width: fit-content;
   border-radius: 0.3rem;
  }
 }

 .right {
  height: 100%;
  width: 100%;
  .first-figure {
   background: url(../img/image1.png) no-repeat;
   width: 320px;
   background-position: center;
   background-size: cover;
   height: 50vh;
   border-radius: 1.2rem;
   border: 1px solid;
   /* margin-top: 1rem; */
  }
  .second-figure {
   background: url(../img/image2.png) no-repeat;
   width: 200px;
   background-position: center;
   background-size: cover;
   height: 35vh;
   border-radius: 1.2rem;
   margin-left: -3rem;
   /* margin-top: 1rem; */
  }
 }
}
.inner-second-word {
 font-weight: 700;
}

/* trending-articles */
.aritlces-list {
 margin: 2rem 0;

 .title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--primar-color);
  span {
   font-weight: 600;
  }
 }
}

.aritlces-list .articles {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 grid-gap: 1rem;

 article {
  background-color: var(--primar-color);
  color: white;
  border-radius: 0.8rem;
  figure {
   background: url(../img/image3.png) no-repeat;
   background-position: center;
   background-size: cover;
   height: 25vh;
   border-top-left-radius: 0.8rem;
   border-top-right-radius: 0.8rem;
  }
  .content {
   margin: 1rem auto !important;
   line-height: 1.3;
   width: 90%;
   h5 {
    font-size: 1.2rem;
    font-weight: 600;
   }
   p {
    font-weight: lighter;
    font-size: 0.9rem;
    line-height: 1.2;
   }
   a {
    border: 1px solid #f0e8e1;
    background-color: #f0e8e1;
    padding: 0.3rem 1rem;
    display: inline-block;
    border-radius: 0.3rem;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
   }
  }
 }
}

/* single article */

.single-article {
 margin: 2rem 0;
 article {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  figure {
   background: url(../img/image4.png) no-repeat;
   background-position: center;
   background-size: cover;
   height: 60vh;
   border-radius: 0.8rem;
  }
  .content {
   display: flex;
   justify-content: center;
   align-items: center;
   padding-left: 2rem;

   h2 {
    font-size: 2.8rem;
    color: var(--primar-color);
   }
   p {
    margin: 1rem 0;
    line-height: 1.5;
   }
   a {
    background-color: var(--primar-color);
    padding: 0.7rem 2rem;
    display: inline-block;
    border-radius: 0.3rem;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
   }
  }
 }
}

/* popular Articles */
.popular-articles {
 background: linear-gradient(to right, #505e8ab1, #7f52a6a2),
  url(../img/popular.png) no-repeat;
 background-position: center;
 background-size: cover;
 height: 70vh;
 padding: 2rem 0;
 article {
  background-color: white !important;
  color: black !important;
 }
 .title {
  color: white;
 }
 a {
  background-color: var(--primar-color) !important;
  color: white !important;
 }
}

/* Multi-articles */
.multi-articles {
 padding: 2rem 0;
 .list-articles {
  display: grid;
  grid-template-columns: 60% 40%;
  grid-gap: 1rem;

  .left {
   article {
    figure {
     background: url(../img/popular.png) no-repeat;
     background-position: center;
     background-size: cover;
     height: 30vh;
     margin-bottom: 1rem;
     margin-right: 0.7rem;
    }
    h6 {
     font-size: 1.2rem;
     font-weight: 500;
     line-height: 1.3;
    }
    p {
     margin: 0.5rem 0;
     font-size: 0.8rem;
     line-height: 1.2;
    }
    a {
     background-color: var(--primar-color);
     padding: 0.7rem 2rem;
     display: inline-block;
     border-radius: 0.3rem;
     margin-top: 0.5rem;
     font-weight: 500;
     font-size: 0.9rem;
     color: white;
    }
   }
  }

  .right {
   figure {
    background: url(../img/popular.png) no-repeat;
    background-position: center;
    background-size: cover;
    height: 30vh;
    margin-bottom: 1rem;
   }
   h5 {
    font-size: 1.4rem;
    color: var(--primar-color);
    font-weight: 500;
   }
   p {
    margin: 1rem 0;
    line-height: 1.3;
   }
   a {
    background-color: var(--primar-color);
    padding: 0.7rem 1.5rem;
    display: inline-block;
    border-radius: 0.3rem;
    /* margin-top: 1rem; */
    font-weight: 500;
    color: white;
    font-size: 0.9rem;
   }
  }
 }
}

.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(../img/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-form-sec {
 padding: 6rem 0;
 background: linear-gradient(to right, #1b2e6c, #5d1e94);
 h5 {
  text-align: center;
  color: white;
 }
}

.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: white;
 padding-left: 1rem;
 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;
}
.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;
    }
}