* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black-color: #000000;
  --white-color: #ffffff;
  --green-color: #666634;
}

body {
  font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Josefin Sans", sans-serif;
}

a {
  font-family: "Josefin Sans", sans-serif;
  text-decoration: none;
}

.theme-btn {
  background-color: var(--green-color);
  color: var(--white-color);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 100px;
  box-shadow: 0px 2px 10px 0px #0000004d;
  text-transform: capitalize;
  transition: all ease 0.3s;
}

.theme-btn:hover {
  background-color: var(--black-color);
  color: var(--white-color);
}

.black-btn {
  background-color: var(--black-color);
  color: var(--white-color);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 100px;
  box-shadow: 0px 2px 10px 0px #0000004d;
  text-transform: capitalize;
  transition: all ease 0.3s;
}

.black-btn:hover {
  background-color: var(--white-color);
  color: var(--green-color);
}

.para {
  color: #505050;
  font-size: 16px;
  font-weight: 400;
  line-height: 26.08px;
}

.small-heading {
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  color: var(--black-color);
  text-transform: capitalize;
}

.main-heading {
  color: var(--green-color);
  font-weight: 700;
  font-size: 50px;
}

/* header start */
.header {
  background-color: var(--black-color);
}

.header .navbar-nav {
  gap: 40px;
}

.header .nav-item .nav-link {
  color: var(--white-color);
  padding: 0;
  font-size: 16px;
  font-weight: 400;
}

.header .nav-item .nav-link.active {
  border-bottom: 2px solid var(--green-color);
}

.header-right a {
  background-color: var(--green-color);
  color: var(--white-color);
  font-size: 16px;
  font-weight: 700;
  padding: 20px 50px;
  border-radius: 100px;
  box-shadow: 0px 2px 10px 0px #0000004d;
  text-transform: capitalize;
  transition: all ease 0.3s;
}

.header-right a:hover {
  background-color: var(--white-color);
  color: var(--black-color);
}

.header .dropdown-item:hover {
  background-color: var(--green-color);
  color: var(--white-color);
}

.header .dropdown-item {
  padding: 10px 15px;
}

.header .dropdown-menu {
  padding: 0;
}

/* header end */

/* banner start */
.banner-sec {
  background-image: url("../images/banner-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 136px 0px;
}

.banner-content h1 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  color: var(--white-color);
  margin-bottom: 10px;
}

.banner-content p {
  font-weight: 400;
  font-size: 16px;
  color: var(--white-color);
}

.banner-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 20px;
}

.banner-book-right {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-book-right::before {
  content: "";
  position: absolute;
  background-image: url("../images/banner-book-before.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  right: -150px;
  top: -20px;
  width: 128px;
  height: 128px;
  z-index: -1;
  animation: 0.9s alternate infinite vectorAnimate;
}

.banner-book2 {
  position: absolute;
  right: -100px;
  z-index: -1;
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-content::before {
  content: "";
  position: absolute;
  background-image: url("../images/banner-content-before.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  right: 150px;
  top: -85px;
  width: 87px;
  height: 37px;
  z-index: 0;
  animation: 0.9s alternate infinite vectorAnimate;
}

.banner-content::after {
  content: "";
  position: absolute;
  background-image: url("../images/banner-content-after.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  right: 80px;
  bottom: -10rem;
  width: 40px;
  height: 39px;
  z-index: 0;
  animation: 0.9s alternate infinite vectorAnimate;
}

.banner-book-right {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-book1 {
  position: relative;
  z-index: 2;
  animation: 6s ease-in-out infinite bookSwap1;
}

.banner-book2 {
  position: absolute;
  right: -100px;
  top: 0;
  transform: scale(0.8);
  animation: 6s ease-in-out infinite bookSwap2;
}

@keyframes bookSwap1 {
  0% {
    transform: translateX(0) scale(1);
    z-index: 2;
  }

  50% {
    transform: translateX(120px) scale(0.8);
    z-index: 1;
  }

  100% {
    transform: translateX(0) scale(1);
    z-index: 2;
  }
}

@keyframes bookSwap2 {
  0% {
    transform: translateX(0) scale(0.8);
    z-index: 1;
  }

  50% {
    transform: translateX(-120px) scale(1);
    z-index: 2;
  }

  100% {
    transform: translateX(0) scale(0.8);
    z-index: 1;
  }
}

/* banner end */

/* about author start */
.about-author-sec {
  background-image: url("../images/about-author-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 100px 0px;
}

.about-author-content h4 {
  margin-bottom: 20px;
}

.about-author-content h2 {
  margin-bottom: 20px;
}

.about-author-content p {
  margin-bottom: 20px;
}

.about-author-btn {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.about-author-image {
  position: relative;
  z-index: 1;
}

.about-author-image::before {
  content: "";
  position: absolute;
  background-image: url("../images/author-image-before.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  right: 130px;
  bottom: -50px;
  width: 192px;
  height: 192px;
  z-index: 0;
}

/* about author end */

/* about book start */
.about-book-sec {
  background-image: url("../images/about-book-1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 100px 0px;
}

.about-book-sec-inner {
  background-image: url("../images/about-author-bg.png");
}

.about-book-content h4 {
  margin-bottom: 20px;
  color: var(--white-color);
}

.about-book-content h2 {
  margin-bottom: 20px;
  color: var(--black-color);
}

.about-book-content p {
  margin-bottom: 20px;
  color: var(--black-color);
}

.about-book-btn {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.about-book-sec2 {
  background-image: url("../images/banner-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 100px 0px;
}

.about-book-sec-inner2 {
  background-image: url("../images/about-author-bg.png");
}

/* about book end */

/* marquee start */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: #000000;
  padding: 14px 0;
  box-sizing: border-box;
  user-select: none;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.marquee-group span {
  color: #ffffff;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Josefin Sans", sans-serif;
}

.marquee-group .diamond {
  margin: 0 45px;
  font-size: 2rem;
  color: #ffffff;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* marquee end */

/* blog start */
.blogs-sec {
  padding: 100px 0px;
}

.blog-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 45px;
}

.blog-content h2 {
  margin-bottom: 0;
}

.blog-box-content {
  background-color: var(--black-color);
  padding: 40px 40px;
  border-bottom: 3px solid var(--green-color);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  height: 280px;
}

.blog-box img {
  width: 100%;
  height: 100%;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
}

.blog-box-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 50px;
}

.blog-box-content h4 {
  color: var(--white-color);
  font-size: 24px;
  font-weight: 700;
}

/* blog end */

/* footer start */
.footer {
  background-color: var(--black-color);
  padding: 100px 0px;
}

.footer-center {
  text-align: center;
}

.footer-center ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 0;
}

.footer-center ul li a {
  color: var(--white-color);
  background-color: var(--green-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
}

.footer-nav h3 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.footer-nav ul {
  padding-left: 0;
  margin: 0;
  list-style-type: none;
}

.footer-nav ul li a {
  color: var(--white-color);
  font-size: 16px;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-right h3 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.footer-right p {
  color: var(--white-color);
  font-size: 16px;
  font-weight: 400;
}

/* footer end */

/* copyright start */
.copyright {
  padding: 24px 0px;
  background-color: var(--green-color);
}

.copyright p {
  margin-bottom: 0;
  color: var(--white-color);
  text-align: center;
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.copyright p span {
  color: var(--black-color);
  font-size: 16px;
  font-weight: 600;
}

/* copyright end */

/* help form section start */
.help-form-left h2 {
  font-size: 40px;
  font-weight: 800;
  color: #000;
  margin-bottom: 40px;
}

.help-form-left form input {
  width: 100%;
  padding: 22px 30px;
  margin-bottom: 20px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 20px;
  font-size: 16px;
  border: none;
  outline: none;
}

.help-form-left form textarea {
  width: 100%;
  padding: 22px 30px;
  margin-bottom: 20px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  border-radius: 20px;
  height: 150px;
  font-size: 16px;
  border: none;
  resize: none;
  outline: none;
}

.help-form-left form button {
  width: 100%;
  background-color: var(--green-color);
  color: #fff;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 100px;
  padding: 20px 0px;
}

.help-form-sec {
  padding: 100px 0px;
  background-color: var(--white-color);
}

.help-form-right {
  text-align: center;
  position: relative;
  z-index: 1;
}

.help-form-right::before {
  content: "";
  position: absolute;
  background-image: url("../images/contact-before.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  right: 0px;
  top: -50px;
  width: 241px;
  height: 248px;
  z-index: -1;
}

/* help form section end */

/* blog detail start */
.blog-detail-right {
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.blog-details-sec {
  padding: 100px 0px;
}

.blog-content-box {
  margin-bottom: 60px;
}

.blog-detail-main {
  margin-bottom: 50px;
}

.blog-detail-left img {
  width: 100%;
}

.related-posts {
  background-color: #f6f6f4;
  border-radius: 20px;
  padding: 40px 30px;
}

.related-post-box a {
  display: flex;
  gap: 20px;
  /* margin-bottom: 40px; */
}

.related-posts h4 {
  color: var(--green-color);
  font-weight: 700;
  margin-bottom: 30px;
}

.related-post-box-content h4 {
  font-size: 20px;
}

.related-post-box-content p {
  font-size: 13px;
  font-weight: 500;
}

.related-post-box img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
}

.related-post-box-content h4 {
  margin-bottom: 10px;
}

.related-post-box:last-child {
  margin-bottom: 0;
}

.blog-cta img {
  width: 100%;
}

.blog-cta {
  margin: 50px 0px;
}

.blog-newsletter {
  background-color: var(--green-color);
  padding: 50px 30px;
  border-radius: 20px;
}

.blog-newsletter-content {
  text-align: center;
}

.blog-newsletter-content form input {
  width: 100%;
  height: 52px;
  border-radius: 20px;
  border: none;
  outline: none;
  padding-left: 20px;
}

.blog-newsletter-content form button {
  color: var(--white-color);
  background-color: #282a13;
  width: 100%;
  height: 60px;
  margin-top: 15px;
  border-radius: 20px;
  outline: none;
  border: none;
}

.blog-newsletter-content h5 {
  font-size: 30px;
  font-weight: 600;
  color: var(--white-color);
}

.blog-newsletter-content p {
  color: var(--white-color);
}

.blog-content-box ul li {
  color: #505050;
  font-size: 16px;
  font-weight: 400;
}

.blog-content-box h2 {
  font-size: 40px;
}

/* blog detail end */

/* about the author 2 */
.about-the-author2 {
  background-image: url("../images/about-author-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-the-author-main-heading {
  text-align: center;
}

.about-the-author-main-heading h2 {
  font-weight: 400;
  font-size: clamp(2.5rem, 12vw, 15.5rem);
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(180deg, #453829 0%, #666634 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  text-align: center;
}

.about-the-author-content {
  margin: 60px 0px 100px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-the-author-content img {
  width: 100px;
  margin: 0 auto 24px auto;
}

.about-the-author-content h2 {
  margin-bottom: 24px;
}

.about-the-author-content p {
  width: 512px;
  margin: 0 auto 24px auto;
}

.about-the-author-content::before {
  content: "";
  position: absolute;
  background-image: url("../images/about-author-before.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  left: 150px;
  top: 0px;
  width: 360px;
  height: 384px;
  z-index: 0;
  animation: 0.9s alternate infinite vectorAnimate;
}

.about-the-author-content::after {
  content: "";
  position: absolute;
  background-image: url("../images/about-author-after.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  right: 96px;
  top: 0px;
  width: 445px;
  height: 550px;
  z-index: 0;
  animation: 0.9s alternate infinite vectorAnimate;
}

/* about the author 2 */

@keyframes vectorAnimate {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-10px);
  }
}

/* loader start */
.stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-color);
  background-size: cover;
  background-position: center 35%;

  /* Fade out animation ke liye transitions */
  transition:
    opacity 1s ease,
    visibility 1s ease;
  opacity: 1;
  visibility: visible;
}

.stage h1 {
  font-size: 20rem;
  color: var(--white-color);
  font-weight: 600;
  animation: 2s forwards loader_word;
}

.stage .second_loader_word {
  animation: 2s forwards loader_word1;
}

.stage img {
  opacity: 0;
  transition: all ease 5s;
  animation: 5s forwards animate_leaf;
  width: 9rem;
}

@keyframes loader_word {
  0% {
    transform: translateX(-42rem);
  }

  100% {
    transform: translateX(0%);
  }
}

@keyframes loader_word1 {
  0% {
    transform: translateX(42rem);
  }

  100% {
    transform: translateX(0%);
  }
}

@keyframes animate_leaf {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* loader end */

.about-book-content-btn {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/* cart css */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    /* hidden */
    width: 350px;
    height: 100%;
    background: var(--green-color);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
    /* show */
}

.cart-header,
.cart-footer {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.cart-footer {
    border-top: 1px solid #ddd;
}

.span-cart {
    position: relative;
    cursor: pointer;
}

.span-cart i {
    color: #fff;
    font-size: 16px;
}

.span-cart #cart-count {
    color: #fff;
    position: absolute;
    top: -10px;
    background-color: red;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    right: -10px;
    font-size: 13px;
    font-weight: 400;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    color: #fff;
    margin: 0;
}

.cart-header button {
    background-color: unset;
    border: none;
    outline: none;
    color: #fff;
    font-size: 18px;
}

#cart-items h4 {
    color: #fff;
}

#cart-items p {
    color: #fff;
    margin-top: 20px;
}

#cart-total {
    color: #fff;
}

#overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    display: none;
    z-index: 9998;
}

#overlay.active {
    display: block;
}

.remove-item-btn {
    background-color: var(--white-color);
    color: #000;
    padding: 10px 30px;
    border-radius: 100px;
    border: none;
    outline: none;
}

.increase-quantity {
    background-color: var(--white-color);
    padding: 2px 20px;
    border: none;
    outline: none;
    font-size: 20px;
    color: #000;
}

.decrease-quantity {
    background-color: var(--white-color);
    padding: 2px 20px;
    border: none;
    outline: none;
    font-size: 20px;
    color: #000;
}

/* cart css */

/* book format popup css */
.format-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 10000;
}

.format-popup.active {
    display: flex;
}

.format-popup-box {
    position: relative;
    background: var(--white-color);
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 35px 30px 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: formatPopupIn 0.25s ease;
}

@keyframes formatPopupIn {
    from { opacity: 0; transform: translateY(15px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.format-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--black-color);
    cursor: pointer;
}

.format-popup-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green-color);
    margin-bottom: 8px;
}

#format-popup-title {
    font-size: 22px;
    color: var(--black-color);
    margin-bottom: 25px;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 22px;
    border: 2px solid var(--green-color);
    border-radius: 100px;
    background: var(--white-color);
    color: var(--black-color);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.format-option .format-price {
    color: var(--green-color);
    font-weight: 600;
    transition: 0.3s ease;
}

.format-option:hover {
    background: var(--green-color);
    color: var(--white-color);
}

.format-option:hover .format-price {
    color: var(--white-color);
}

/* cart items list */
#cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.cart-item-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cart-item-top img {
    width: 55px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-top h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.cart-format-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    padding: 2px 12px;
    border-radius: 100px;
}

@media (max-width: 400px) {
    .cart-sidebar { width: 100%; right: -100%; }
    .format-popup-box { padding: 30px 18px 20px; }
}
/* book format popup css */

.black-btn-checkout {
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    outline: none;
}