@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
  box-sizing: border-box;
}

body {
  font-family: Arial;
  padding: 10px;
  background: #f1f1f1;
}
section {
  padding: 210px;
  text-align: center;
  background: white;
  margin: 20px 0;
}

/* Header/Blog Title */
.header {
  padding: 160px;
  text-align: center;
  background: rgba(255, 255, 255, 0.603);
  background-image:url('image/background.jpg');
    background-size: cover;
}

.header h1 {
  font-size: 50px;
  color: white;
}
.header p {
  font-size: 20px;
  color: white; 
}
.button {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  background: white;
  color: #007bff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
}

.button:hover {
   background: #ffd43b;
  color: black;
  transform: translateY(-3px);
}

/* Style the top navigation bar */
.topnav {
   font-size: 1.15rem;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0px;
  background-color: #000000c2;
  overflow: hidden;
  padding: 14px 16px;
  
}

/* Change color on hover */
.topnav a:hover {
 color: #fff44f;
}
.topnav a {
  float: left;
  color: rgb(247, 240, 240);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  margin-left: 2.1rem;
} 
/*side navigation*/
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 2rem;
  color: #007bff5e;
  cursor: pointer;
  z-index: 1100;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -250px; /* Hidden by default */
  top: 0;
  width: 250px;
  height: 100%;
  background: linear-gradient(135deg, #bb291693, #ffffff9c);
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  transition: left 0.3s ease;
  z-index: 1000;
  border-radius: 20px;
}

/* Show sidebar when active */
.sidebar.active {
  left: 0;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 40px;
}

.sidebar-header h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  margin: 20px 0;
}

.sidebar-menu li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  
}

.sidebar-menu i {
  font-size: 1.2rem;
}

/* Push content when sidebar is open */
.main-content {
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.sidebar.active ~ .main-content {
  margin-left: 250px;
}
/*about*/
.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
background-image: url('image/aboutbackground.jpg');
  min-height: 400px; /* ensure enough space */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.about-content {
  flex: 1 1 500px;
  animation: fadeInLeft 1s ease-in-out;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  border-left: 6px solid #ffd43b;
  padding-left: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.about-content p {
  margin-bottom: 15px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #000000;
}

.highlight {
  color: #ffd43b;
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  background: white;
  color: #007bff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
}

.btn:hover {
  background: #ffd43b;
  color: black;
  transform: translateY(-3px);
}


/* Animations */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/*services*/

/* tonav*/
.service-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #14141438;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}
.service-header .tonav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.service-header .tonav a {
  color: black;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.service-header .tonav a:hover {
  color: black;
  background: #00000057;
}
.service-header .tonav .cart-link {
  color: white;
}







.service .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* cart সবসময় top এ থাকবে */
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

/* Books Section */
.service .book-section {
  flex: 4; /* বড় জায়গা নেবে */
}

.service .book-section h2 {
  margin-bottom: 15px;
}

/* Book Container */
.service .book-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Individual Book Card */
.service .book-card {
  flex: 0 0 calc(25% - 15px); /* 4 column layout */
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* সব card সমান height */
  align-items: center;
}

/* Make all cards equal height */
.service .book-card {
  min-height: 320px; /* fix height দিলে সমান দেখাবে */
}

.service .book-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

.service .book-card h3 {
  margin: 10px 0 5px 0;
  font-size: 1.1rem;
}

.service .book-card p {
  margin: 5px 0;
  font-weight: bold;
}

.service .book-card button {
  margin: 5px 5px 0 5px;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

.service .book-card .read-btn {
  background: #007bff;
  color: white;
}

.service .book-card .read-btn:hover {
  background: #0056b3;
}

.service .book-card .add-btn {
  background: #28a745;
  color: white;
}

.service .book-card .add-btn:hover {
  background: #1e7e34;
}

/* Cart Section */
.service .cart {
  flex: 1; 
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
  position: sticky;
  top: 20px; 
}

/* Cart Elements */
.service .cart h2 {
  margin-bottom: 15px;
}

.service .cart ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.service .cart ul li {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

#totalPrice {
  font-weight: bold;
  font-size: 1.1rem;
}
/*cart page*/ 
.cart {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Arial', sans-serif;
}

/* Cart Heading */
.cart h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

/* Cart List */
.cart ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

/* Individual Cart Item */
.cart ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Remove Button */
.cart ul li button {
  background-color: #ff4d4d;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}



/* Total Price */
.carttotalPrice {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: right;
  color: #333;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

/* Cart Buttons */
.cart-buttons {
    display: flex;
    justify-content: center; /* horizontally center */
    gap: 20px; /* button এর মাঝে দূরত্ব */
    margin-top: 20px;
}

.cart-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#confirmBtn {
    background-color: #28a745;
    color: white;
}

#confirmBtn:hover {
    background-color: #1e7e34;
}

#backBtn {
    background-color: #007bff;
    color: white;
}

#backBtn:hover {
    background-color: #0056b3;
}





/* Responsive Layout */
@media (max-width: 992px) {
  .service .container {
    flex-direction: column;
  }
  .service .book-card {
    flex: 0 0 calc(33.33% - 15px); /* 3 column */
  }
}

@media (max-width: 768px) {
  .service .book-card {
    flex: 0 0 calc(50% - 15px); /* 2 column */
  }
}

@media (max-width: 480px) {
  .service .book-card {
    flex: 0 0 100%; /* 1 column */
  }
}


/* Contact Section */
.contact-section {
  background: #f9f9f9;
  padding: 90px 10px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #333;
}

.contact-section p {
  font-size: 1rem;
  color: #363636;
  margin-bottom: 50px;
}
/* Contact Container */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 90px 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
/* Contact Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #007bff;
  box-shadow: 0px 0px 6px rgba(0, 123, 255, 0.3);
}
/* Button */
.contact-form .btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #007bff;
  color: white;
  border: none;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn:hover {
  background: #0056b3;
}

/* Contact Info */
/* Footer */
/* Footer Styles */
 .footer {
      background: #1c1c1c;
      color: #fff;
      padding: 40px 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
    }

    .footer-column {
      flex: 1;
      min-width: 200px;
      margin: 10px;
    }

    .footer-column h3 {
      color: #fff;
      margin-bottom: 15px;
      font-size: 16px;
      border-bottom: 2px solid #00a2ff;
      display: inline-block;
      padding-bottom: 5px;
    }

    .footer-column ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-column ul li {
      margin: 10px 0;
    }

    .footer-column ul li a {
      color: #ccc;
      text-decoration: none;
      transition: 0.3s;
    }

    .footer-column ul li a:hover {
      color: #ffd43b;
    }

    @media (max-width: 991px) {
  .header {
    padding: 100px 20px;
  }
  .header h1 {
    font-size: 3.5rem;
  }

  section {
    padding: 150px 20px;
  }

  .topnav a {
    font-size: 1rem;
    margin-left: 1rem;
  }

  .container {
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    min-height: 350px;
  }

  .Service-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px;
    gap: 20px;
  }

  .Service-container div {
    padding: 50px 30px;
  }

  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .contact-section h2 {
    font-size: 2.5rem;
  }
}

/* ===== Mobile (max-width: 600px) ===== */
@media (max-width: 600px) {
  body {
    padding: 5px;
  }

  .header {
    padding: 80px 10px;
  }
  .header h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 100px 10px;
  }

  .topnav {
    font-size: 1rem;
    padding: 10px;
  }

  .topnav a {
    float: none;
    display: block;
    margin: 8px 0;
    text-align: left;
  }

  .container {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .Service-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .Service-container div {
    padding: 40px 20px;
  }

  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .contact-form button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

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

  .footer-column {
    margin: 15px 0;
  }
}


