* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  width: 100vw;
  overflow-x: hidden;
} 
a {
  text-decoration: none;
  color: inherit;
}
.d-flex-column{
  display: flex;
  flex-direction: column;
}
.text-primary { color: #e31e25; }
.text-secondary { color: #6c5dd4; }
.title {
  font-family: "Noto Naskh Arabic", cursive, sans-serif !important;
  font-size: 3.2em !important;
  color: rgba(0, 0, 0, 0.844);
  font-weight: 700; /* Bolder for emphasis */
  padding: 5px;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.5rem 0 0 0;
  background: #fff;
}

.navbar .logo img {
  width: 90px;
  border-radius: 5px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  position: relative;
}

.nav-list li a {
  color: #131428;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #6c5dd4;
}

.signup {
  background: #ee7b7b;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  color: #fff;
  cursor: pointer;
  position: relative;
  left: 2.8rem;
}

.signup i {
  margin-right: 0.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background: #0e254e;
  border-radius: 5px;
}

.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.mobile-header .logo img {
  width: 100px;
}

.mobile-header .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #00173d;
}
.contact{
  box-shadow: 10px 4px 8px 2px rgba(0, 0, 0, 0.1);
  background-color: #d1cccc32;
  border-radius: 50px ;
  margin:  0 50px;
}
.contact-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ee7b7b;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-btn a {
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  font-family: 'Arial', sans-serif;
}

.contact-btn:hover {
  background-color: #692525; /* Slightly darker red on hover */
  transform: translateY(-2px); /* Subtle lift effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}


.contact-btn:active {
  transform: translateY(0); /* Press-down effect */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
  .contact-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
.contact-bt-2{
  display: none;
}

.hero {
  background: #f2f0fe;
  margin: 1.5rem 5%;
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.hero .main {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero .content {
  flex: 1;
  text-align: center;
}

.hero .content small {
  color: #6c5dd4;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.hero .content h2 {
  color: #131428;
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.hero .content h5 {
  font-size: 1.2rem;
  color: #131428;
}

.hero .content p {
  color: #696a6e;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.hero .content .btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero .content .btns button {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.hero .content .btns button:first-child {
  background: #6c5dd4;
  color: #fff;
}

.hero .content .btns button:first-child i {
  margin-left: 0.5rem;
}

.hero .content .btns button:last-child {
  background: transparent;
  border: 2px solid #e1dfec;
  color: #131428;
}

.hero .img img {
  max-width: 500px;
  height: auto;
  flex: 1;
}
.animated-image {
      animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
      0% { transform: translateY(0); }
      50% { transform: translateY(-20px); } /* Moves up 20px */
      100% { transform: translateY(0); } /* Back to original position */
    }
.hero .square-dot {
  position: absolute;
  top: 10%;
  left: 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #d7d2f2;
  font-size: 0.3rem;
  z-index: -1;
}

.hero .orange-circle {
  position: absolute;
  top: -30%;
  right: -10%;
  background: #ee7b7b;
  border-radius: 50%;
  width: 40%;
  aspect-ratio: 1/1;
  z-index: -1;
}

.hero .blue-circle {
  position: absolute;
  bottom: -30%;
  right: 20%;
  background: #d7d2f2;
  border-radius: 50%;
  width: 30%;
  aspect-ratio: 1/1;
  z-index: -1;
}

.service {
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 5%;
}

.service-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: 300ms ease;
}

.islamic:hover{
  background-color: #8cd3dd;
  cursor: pointer;
}

.payment:hover{
  background-color: #f6d3b9;
  cursor: pointer;
}

.quality:hover{
  background-color: #fcd4f4;
  cursor: pointer;
}
.return:hover{
  background-color: #f9b9b9;
  cursor: pointer;
}
.service-card .icon i {
  background: #f3f0fe;
  border-radius: 10px;
  font-size: 1.5rem;
  padding: 1rem;
  color: #6c5dd4;
}

.service-card .service-content h3 {
  font-size: 1.1rem;
  color: #131428;
}

.service-card .service-content p {
  font-size: 0.8rem;
  color: #696a6e;
}

.suggestion {
  margin: 3rem auto;
  padding: 0 5%;
  max-width: 1200px;
}

.suggestion .container {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
  gap: 2rem;
}

.recommend, .popular {
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.recommend {
  background: #fff6ef;
}

.popular {
  background: #e7f1fb;
}

.recommend .circle-1, .popular .circle-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 150px;
  aspect-ratio: 1/1;
  border-radius: 50%;
}

.recommend .circle-1 {
  background: #ffe6d5;
}

.popular .circle-1 {
  background: #daebfd;
}

.recommend .circle-2, .popular .circle-2 {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 120px;
  aspect-ratio: 1/1;
  border-radius: 50%;
}

.recommend .circle-2 {
  background: #ffe6d5;
}

.popular .circle-2 {
  background: #daebfd;
}

.recommend .square-dot, .popular .square-dot {
  position: absolute;
  top: 1%;
  right: 0%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.2rem;
}

.recommend .square-dot {
  color: #ff9f5a;
}

.popular .square-dot {
  color: #c6dffa;
}
.fa-square{
  font-size: 0.5rem;
  color: rgba(255, 0, 0, 0.35);
}
.suggestion h4 {
  font-size: 1.3rem;
  color: #131428;
}

.suggestion p {
  font-size: 0.8rem;
  color: #444545;
  margin: 0.5rem 0;
}

.suggestion .book-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.suggestion .book img {
  width: 100%;
  height: 335px;
  border: 2px solid #fff;
  border-radius: 10px;
}

.book-sale {
  margin: 3rem auto;
  padding: 0 5%;
  max-width: 1200px;
}

.book-sale .heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}


.book-sale .arrowbtn {
  display: flex;
  gap: 1rem;
}

.book-sale .arrowbtn i {
  cursor: pointer;
  font-size: 1.2rem;
  color: #6c5dd4;
  background: #f3f0fe;
  border-radius: 50%;
  padding: 0.6rem;
  transition: background 0.3s;
}

.book-sale .arrowbtn i:hover {
  background: #6c5dd4;
  color: #fff;
}

.wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-top: 2rem;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 0.5rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.no-transition {
  scroll-behavior: auto;
}

.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}

.carousel .card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-width: 180px;
  max-width: 250px;
}

.carousel .card .img {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.carousel .card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.carousel .card h5 {
  font-size: 1rem;
  color: #131428;
  margin: 0.5rem 0;
  text-align: center;
}

.carousel .card .genre {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.carousel .card .genre span {
  color: #6c5dd4;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.carousel .card .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
}

.carousel .card .footer .star {
  color: #f1c40f;
  font-size: 0.8rem;
}

.carousel .card .footer .price {
  display: flex;
  gap: 0.5rem;
}
.download-btn{
  padding: 10px 15px;
  font-size: 18px;
  color: white;
  background-color: #ee7b7b;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: 15px;
}
.download-btn:hover{
  background-color: #9c4141;
}
.carousel .card .footer .price span:first-child {
  color: #e74c3c;
  font-weight: bold;
  font-size: 0.9rem;
}

.carousel .card .footer .price span:last-child {
  color: #7f8c8d;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.countdown {
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 5%;
}

.countdown .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.countdown .counter {
  text-align: center;
}

.countdown .counter i {
  font-size: 2rem;
  color: #6c5dd4;
}

.countdown .counter h4 {
  color: #131428;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.countdown .counter small {
  color: #a0a1a6;
  font-size: 0.8rem;
}

.subscription {
  margin: 3rem 0;
  padding: 2rem;
  background: #ee7b7b;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subscription .container {
  max-width: 600px;
  margin: 0 auto;
}

.subscription h4 {
  font-size: 1.5rem;
  color: #fff;
}

.subscription .input {
  margin-top: 1rem;
  display: flex;
  background: #7262dc;
  border-radius: 6px;
  overflow: hidden;
}

.subscription .input input {
  flex: 1;
  padding: 0.5rem;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
}

.subscription .input input::placeholder {
  color: #fff;
}

.subscription .input button {
  background: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0 6px 6px 0;
  text-transform: uppercase;
  font-weight: 600;
  color: #131428;
  cursor: pointer;
}

.subscription .circle-1 {
  width: 150px;
  aspect-ratio: 1/1;
  background: #7262dc;
  position: absolute;
  border-radius: 50%;
  bottom: -20%;
  left: -10%;
}

.subscription .circle-2 {
  width: 200px;
  aspect-ratio: 1/1;
  background: #7262dc;
  position: absolute;
  border-radius: 50%;
  top: -20%;
  right: -10%;
}

footer {
  margin: 0rem 0;
  padding: 0 5%;
  background-color: whitesmoke;
  padding-top: 3rem;
  position: relative;
  top: 1rem;
  margin-bottom: 1rem;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  bottom: 27px;
}

footer .logo-description .logo img {
  width: 120px;
  border-radius: 5px;
}

footer .logo-description .logo-body p {
  font-size: 0.8rem;
  color: #444545;
  margin: 1rem 0;
}

footer .social-links h4 {
  font-size: 1rem;
  color: #131428;
}

footer .social-links .links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

footer .social-links .links li {
  list-style: none;
}

footer .social-links .links i {
  padding: 0.4rem;
  border-radius: 5px;
  font-size: 1rem;
}

footer .social-links .links li .fa-facebook-f { color: #0165E1; }
footer .social-links .links li .fa-facebook-f:hover { background: #b0cef3; }
footer .social-links .links li .fa-youtube { color: #FF0000; }
footer .social-links .links li .fa-youtube:hover { background: #f5c6c6; }
footer .social-links .links li .fa-twitter { color: #1DA1F2; }
footer .social-links .links li .fa-twitter:hover { background: #c8e6f8; }
footer .social-links .links li .fa-linkedin { color: #0A66C2; }
footer .social-links .links li .fa-linkedin:hover { background: #b1d1f1; }
footer .social-links .links li .fa-instagram { color: #E1306C; }
footer .social-links .links li .fa-instagram:hover { background: #f4ccda; }

footer .list h4 {
  font-size: 1rem;
  color: #131428;
  margin-bottom: 0.5rem;
}

footer .list ul {
  list-style: none;
}

footer .list ul li a {
  font-size: 0.8rem;
  color: #444545;
  display: block;
  padding: 0.2rem 0;
}

footer .list ul li a:hover {
  color: #6c5dd4;
}

footer .our-store li i {
  color: #6c5dd4;
  margin-right: 0.5rem;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6c5dd4;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.back-to-top.show {
  opacity: 1;
}
.carousel {
  transition: scroll-left 0.3s ease-in-out; /* Smooth scrolling */
}

.carousel.no-transition {
  transition: none; /* Disable transition during infinite scroll resets */
}

.carousel.dragging {
  cursor: grabbing; /* Visual feedback during drag */
  transition: none; /* Prevent jumpy behavior while dragging */
}

@media (max-width: 992px) {
  .navbar .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    flex-direction: column;
    background: #fff;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    padding: 1rem;
    transition: right 0.3s;
    z-index: 1000;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list .mobile-header {
    display: flex;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f1f1;
  }

  .nav-list .login, .nav-list .signup {
    width: 80%;
    margin: 0.5rem 0;
  }

  .hamburger {
    display: flex;
  }

  .hero .main {
    flex-direction: column;
  }

  .hero .content {
    order: 1;
  }

  .hero .img {
    order: 0;
  }

  .hero .orange-circle {
    top: -20%;
    right: -20%;
    width: 50%;
  }

  .hero .blue-circle {
    bottom: -20%;
    left: 0;
    width: 40%;
  }

  .carousel {
    grid-auto-columns: calc((100% / 2) - 1rem);
  }
}

@media (max-width: 768px) {
  .hero .content h2 {
    font-size: 2rem;
  }

  .hero .content .btns {
    flex-direction: column;
  }

  .hero .content .btns button {
    width: 100%;
    max-width: 200px;
  }

  .countdown .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .countdown .counter i {
    font-size: 2.5rem;
  }

  .countdown .counter h4 {
    font-size: 2rem;
  }

  .title {
    font-size: 1.8rem !important;
  }

  .carousel {
    grid-auto-columns: calc((100% / 1.5) - 1rem);
  }
}

@media (max-width: 576px) {
  .carousel {
    grid-auto-columns: 100%;
  }

  .book-sale .heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .wrapper{
    margin-top: 0;
  }
  .book-sale .heading{
    margin-bottom: 0;
  }

  .book-sale .arrowbtn {
    align-self: flex-end;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
  }

  footer .container {
    text-align: center;
  }

  footer .logo-description .logo {
    justify-content: center;
  }

  footer .social-links .links {
    justify-content: center;
  }
  .suggestion .book-container{
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .carousel .card{
    min-width: 300px;
  }
  .hero .img img{
    max-width: 350px;
  }
  .subscription .circle-1{
    bottom: -42%;
    left: -31%;
  }
  .subscription .circle-2{
    top: -55%;
    right: -40%;
  }
  .subscription .input button{
    padding: 12px;
  }
  .navbar .logo img{
    width: 69px;
  }
  .navbar{
    justify-content: space-between;
    padding: 1.5rem 30px;

  }
  .about-h1{
    margin: 47px 5px;
  }
  .download-btn{
    font-size: 12px;
  }
  .contact-btn{
    display: none;
  }
  .contact-bt-2{
    display: inline-block;
    padding: 8px 12px;
    background-color: #ee7b7b; /* Dodger blue for a vibrant look */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
  }
}


/* Basic dropdown styling */
li.dropdown {
  position: relative;
  display: inline-block;
}

li.dropdown ul.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  position: absolute;
  background-color: #fff;
  min-width: 130px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  padding: 0;
  margin: 0;
  border-radius: 4px;
  z-index: 1000;
  list-style: none;
  /* left: 31px; */
}

li.dropdown ul.dropdown-content li {
  display: block;
}

li.dropdown ul.dropdown-content li a {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

li.dropdown ul.dropdown-content li a:hover {
  background-color: #f1f1f1;
}

/* Show dropdown on hover */
li.dropdown:hover ul.dropdown-content {
  opacity: 1;
  visibility: visible;
}

/* Dropdown button style */
li.dropdown > a.dropbtn {
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  color: #000;
}


/* --------------hero section changing words------------- */
.content {
      text-align: center;
      padding: 2rem;
      font-family: 'Scheherazade New', serif;
      max-width: 800px;
      margin: 0 auto;
    }
    .content small {
      font-size: 1rem;
      color: #555;
      display: block;
      margin-bottom: 0.5rem;
    }
    .content h2 {
      font-size: 2.5rem;
      color: #2c3e50;
      margin: 0.5rem 0;
    }
    .content h5 {
      font-size: 1.25rem;
      color: #3498db;
      margin-bottom: 1rem;
    }
    .content p {
      font-size: 1.1rem;
      color: #666;
      margin-bottom: 1.5rem;
    }
    .btns {
      display: flex;
      gap: 1rem;
      justify-content: center;
    }
    .btns button {
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      background-color: #27ae60;
      color: white;
      transition: transform 0.3s, background-color 0.3s;
    }
    .btns button:hover {
      background-color: #219653;
      transform: translateY(-2px);
    }
    .btns button i {
      margin-left: 0.5rem;
    }
    #cycle-text {
      display: inline-block;
      color: #b54b4b;
    }
    .letter {
      display: inline-block;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.3s ease forwards;
    }
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    @media (max-width: 768px) {
      .content h2 {
        font-size: 1.8rem;
      }
      .content h5 {
        font-size: 1rem;
      }
      .content p {
        font-size: 0.9rem;
      }
      .content{
        padding: 0.5rem;
      }
      .hero .content h2{
        font-size: 1.5rem;
      }
      .hero .content h5{
        font-size: 1rem;
      }
      .hero .content .btns{
        align-items: center;
      }
    }