*{
    padding: 0px;
    margin: 0;   
    text-transform: capitalize;
}

body{
  overflow-x: hidden;
}

:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Ubuntu",  sans-serif;
  --nav-font: "Rubik",  sans-serif;
}

:root {
  --accent-color: #C5A992;
  --secondary-color: #C5A992;
  --dark-color: #2f2f2f;
  --light-color: #F3F2EC;
  --body-text-color: #757575;
  --light-text-color: #afafaf;
  --dark-text-color: #2f2f2f;
}

/* Fonts */
:root {
  --body-font: "Raleway", sans-serif;
  --heading-font: "Prata", Georgia, serif;
  --secondary-font: "Playfair Display", Georgia, serif;
}


nav{
  transition: 0.5s ease-in-out;
  display: flex;
  justify-content: space-between;
  padding: 10px 30px;
  height: 70px;
  align-items: center;
  background-color: #fff;
  width: 96%;
}
.navlink{
  position: fixed;
  top: 0px;
  box-shadow: 2px 2px 10px grey;

}
.list>ul{
  display: flex;
  list-style-type: none;
  gap: 30px;
  font-size: 20px;
  font-family: var(--default-font);
}

.btn>button{
  padding: 7px 20px;
  font-size: 20px;
  background-color: transparent;
  border-radius: 20px;
  transition: 0.5s ease-in-out;
  border: 2px solid #000;
}

.btn>button:hover{
  background-color: #000;
  color: #fff;
}

.fa-bars{
  color: #000;
  font-size: 30px;
  position: absolute;
  right: 30px;
  display: none;
}
.fa-xmark{
  top: 30px;
  display: none;
  font-size: 30px;
  position: relative;
  left: 85%;
}


@media (max-width:1053px){
  .fa-xmark{
    display: block;
  }
  .fa-bars{
    display: block;
  }
  .list>ul{
    position: relative;
    left: 50px;
    top: 50px;
    flex-direction: column;
  }
  .list>ul>li{
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: 0.5s ease-in-out;
    width: 300px;
  }

  .list>ul>li:hover{
    border-bottom: 1px solid #2f2f2f;
  }


  .list{
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100vh;
    background-color: var(--accent-color);
    z-index: 999;
    width: 60%;
  }
}

/* main */

.main{
  height: 95vh;
  align-items: center;
  display: flex;
  gap: 160px;
  justify-content: center;
}


.left-main>h1{
  font-family: var(--default-font);
  font-size: 60px;
  width: 400px;
  color: #5e5e5e;
}
.left-main>p{
  margin: 30px 0px;
  line-height: 1.4;
  width: 400px;
  font-size: 20px;
  color: #8a8a8a;
}

.css{
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 17px;
  transition: 0.5s ease-in-out;
}
.fa-arrow-right{
  transition: 0.5s ease-in-out;
}
.css:hover{
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}
.css:hover .fa-arrow-right{
  margin-left: 10px;
}





@media (max-width: 1290px) {
  .main {
    gap: 100px;
    padding: 0 40px;
  }

  .left-main > h1 {
    font-size: 50px;
    width: 100%;
  }

  .left-main > p {
    font-size: 18px;
    width: 100%;
  }

  .right-main > img {
    width: 500px;
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .main {
    flex-direction: column-reverse;
    height: auto;
    text-align: center;
    padding: 40px 20px;
    gap: 40px;
  }

  .left-main > h1 {
    font-size: 40px;
  }

  .left-main > p {
    font-size: 16px;
  }

  .css {
    font-size: 16px;
  }

  .right-main > img {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .left-main > h1 {
    font-size: 32px;
  }

  .left-main > p {
    font-size: 14px;
  }

  .css {
    font-size: 14px;
    padding: 8px 16px;
  }
}




/* client images */

.study{
  background-color:var(--light-color);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 90px 20px;
}
.study>.img{
  margin-bottom: 40px;
}



/* books features */

.features{
  display: flex;
  align-items: center;
  justify-content: center;
}
.book>p{
  font-size: 18px;
  font-family: var(--default-font);
  color: var(--body-text-color);
}
.features>h1{
  padding: 0px 40px;
  font-size: 50px;
  font-family:var(--heading-font);
  color: var(--dark-text-color);
}
.features>hr{
  width: 200px;
  height: 1px;
  background-color: #7c7c7c;
}

.book{
  padding: 90px 90px;
  text-align: center;
}

.book-img{
  background-color: var(--light-color);
  padding: 40px;
}

.book-img>img{
  width: 180px;
}
.book-flex{
  margin: 50px 0px;
  text-align: center;
  justify-content: center;
  gap: 40px;
  display: flex;
  flex-wrap: wrap;
}

.book-text>h3{
  color: #af9e3f;
  font-size: 20px;
  margin-top: 30px;
  font-family: var(--heading-font);
}
.book-text>span{
  display: block;
  margin-top: 10px;
  font-family: var(--default-font);
  font-size: 20px;
}




/* best book */
.left-book>img{
  width: 300px;
}
.best-book{
  padding: 40px 280px;
  display: flex;
  gap: 90px;
}
.right-book>h1{
  font-size: 60px;
  font-weight: 500;
  color: #2f2f2f;
  font-family: var(--heading-font);
}
.right-book>hr{
  margin-bottom: 70px;
  width: 70px;
  height: 2px;
  border: none;
  background-color: #af9e3f;
}


.right-book>p{
  margin-bottom: 20px;
  color: #5e5e5e;
  font-family: var(--default-font);
}
.right-book>h3{
  font-size: 30px;
  font-family: var(--heading-font);
  color: #2f2f2f;
  font-weight: 500;
  margin-bottom: 20px;
}


@media (max-width: 1299px) {
  .best-book {
    padding: 40px 100px;
    gap: 50px;
  }

  .left-book > img {
    width: 250px;
  }

  .right-book > h1 {
    font-size: 50px;
  }

  .right-book > h3 {
    font-size: 26px;
  }
}

@media (max-width: 992px) {
  .best-book {
    padding: 40px 60px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left-book > img {
    width: 200px;
  }

  .right-book > h1 {
    font-size: 40px;
  }

  .right-book > h3 {
    font-size: 24px;
  }

  .right-book > hr {
    margin: 20px auto;
  }

  .right-book > p {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .best-book {
    padding: 30px 20px;
  }

  .left-book > img {
    width: 100%;
    max-width: 300px;
  }

  .right-book > h1 {
    font-size: 32px;
  }

  .right-book > h3 {
    font-size: 20px;
  }

  .right-book > p {
    font-size: 14px;
  }

  .css {
    font-size: 14px;
    padding: 10px 20px;
  }
}



/* quote */
.quote{
  text-align: center;
  display: flex;
  padding: 40px 0px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.quote>h1{
  color: #2f2f2f;
  font-size: 50px;
}
.quote>p{
  margin: 30px 20px;
  color: var(--body-text-color);
  font-size: 30px;
  font-family: var(--default-font);
  width: 600px;
}



@media (max-width:710px){
  .quote>p{
    width: 100%;
  }
}




/* footer */

footer{
  text-align: center;
  font-family: var(--default-font);
  background-color: var(--light-color);
  padding: 50px 120px;
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
}
.foo:nth-child(1){
  margin-left: -30px;
}
.foo>ul{
  list-style-type: none;
  margin-left: -30px;
}
.foo{
  margin-right: 50px;
}
.foo>.f2{
  margin-left: -34px;
  font-size: 19px;
}
.foo>ul>li{
  line-height: 2.7;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.foo>ul>li:hover{
  color: var(--dark-text-color);
}
.foo>p{
  margin-top: 20px;
  width: 150px;
  line-height: 1.5;
}


@media (max-width:1310px){
  footer{
    flex-wrap: wrap;
  }
}
