@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan', sans-serif;
} /* over all designing */

h1{
    font-size: 50px;
    line-height: 64px;
    color: #222;
}

h2{
    font-size: 46px;
    line-height: 54px;
    color: #222;
}

h4{
    font-size: 20px;
    color: #222;
}

h6{
    font-weight: 700;
    font-size: 12px;
}

p{
    font-size: 16px;
    color: #465b52;
    margin: 15px 0 20px 0;
}

.section-p1 {
    padding: 40px 80px;
}

.section-m1 {
    margin: 40px 0;
}

body {
    width: 100%;
} 

.normal{
    height: auto;
    width: 30%;
    white-space: nowrap;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
    max-height: 40px;  /* Controls the visible size */
    transform: scale(2.5); /* Makes the logo appear larger */
    transform-origin: center; /* Maintain aspect ratio */
  }

.site-title {
  padding: 4px 1px 8px 9px;
  font-size: 18px;
  font-weight: 800;
  color: #333;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}/* For the business title*/

#header  {  
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px 20px 40px;
    background-color: #eddfe0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    flex-wrap: wrap;
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
 } /* this is for placing the logo  and nav color and giving it a box effect (3D effect */

#navbar {
    display: flex;
    align-items: center;
    justify-content: center;
} /* for aligning the nav text  on middle of the nav in horizontal */

#navbar li{
    list-style: none;
    padding: 0 10px;
} /* for removing the bullet points and giving padding betwN the text*/

#navbar li a{
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color:#000000;
    transition: 0.6s ease;
} /*this is for removing the underline and design on text on navigation*/

#navbar li a:hover,
#navbar li a.active {      /*to show the current page on which u r*/
    color: rgb(161, 12, 24);
} /* This for showing hovering effect on navbar*/

#mobile{
    display: none;
    align-items: center;
}/* to design the responsive screens*/

#close {
  display: none;
}/*to close button on slider*/


/* ==================== Main cover section ===================== */
#main {
    background-image: url("images/main.png");
    width: 100%;
    height: 120vh;
    background-size: cover;
    background-position: top 30% right 0;
    padding: 0;
    margin-bottom: 20px;
}/* This to add background image in the front section */


/* ==================== Features Section ====================== */
#features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}/* To bring the boxes in one row */

#features .fe-box{
text-align: center;
}

.fe-box .img-container {
    position: relative;
    overflow: hidden;
}/* To show the text above the image */

.fe-box h6{
    margin-top: 10px;
    display: inline-block;
    padding: 9px 8px 6px 8px;
    line-height: 1;
    border-radius: 4px;
    color: rgb(8, 110, 128);
    background-color: rgb(192, 237, 246);
}/* Design the text below the image and create the box background of the word*/

#features .fe-box:nth-child(2) h6{
    background-color: rgb(236, 165, 236);
}/*f2*/

#features .fe-box:nth-child(3) h6{
    background-color: rgb(199, 243, 182);
}/*f3*/

#features .fe-box:nth-child(4) h6{
    background-color: rgb(159, 208, 244);
}/*f4*/

#features .fe-box:nth-child(5) h6{
    background-color: rgb(181, 187, 255);
}/*f5*/

#features .fe-box:nth-child(6) h6{
    background-color: rgb(245, 214, 175);
}/*f6*/

.fe-box .hover-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}/* Design to hover the text on img and also to set the bg of text*/

.fe-box .img-container:hover .hover-text {
    opacity: 1;
    transform: translateY(0);
}/* speed of hover effect */

/* ================== Modal Styles ================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}/* pop up modal for preloved book */

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}/*Content inside the pop up modal */

.close-btn {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}/* Close button for pop up */ 


/* ================== AboutUs Section of home page ====================== */
#AboutUS{
    text-align: center;
}

#AboutUS h2{
    margin-bottom: 50px;
}

#AboutUS .pro{
    width: 23%;
    min-width: 250px;
    padding: 10px 12px;
    border: 1px solid #cce7d0;
}

#AboutUS .pro img{
    width:100%;
    border-radius:20px;
}

.pro-container {
    display: flex;
    align-items: center;
    gap: 50px; /* Optional: spacing between image and text */
    flex-wrap: wrap;  /* For responsiveness */
}

.aboutus {
    flex: 1;
    overflow: hidden; /* Ensures container wraps floated image */
    text-align: justify;/* Optional: change to 'right' if you want text aligned to the right */
}


/* ========================== Footer Section ====================== */
footer {
  background-color: #eddfe0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer .col{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

footer .logo{
    margin-bottom: 30px;
}

footer h4{
    font-size: 14px;
    padding-bottom: 20px;
}

footer p{
    font-size: 13px;
    margin: 0 0 8px 0;
}

footer a{
    font-size: 13px;
    text-decoration: none;
    color: #222;
    margin-bottom: 10px;
}

footer a:hover {
    color: #088178;
}

footer .enquiry-line {
    font-size: 1.2rem;     /* Larger font size */
    font-weight: 600;
    margin-top: 15px;
    color: #333;
}

.enquiry-line .contact-number {
    font-size: 1.4rem;     /* Even bigger for the number */
    color: #007b5e;        /* Highlight with a greenish color */
    font-weight: bold;
    letter-spacing: 1px;
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #1ebe5b;
  color: white;
}

.whatsapp-button i {
  font-size: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 15px 0;
  font-size: 13px;
  color: #222;
  border-top: 1px solid #ccc;
  margin-top: 10px;
  background-color: #eddfe0; /* match footer bg */
}


/* ================ Adding style in AboutUs Section Page ================== */

#pageheader{
    background-image: url("images/about/Header.png");
    width: 100%;
    height: 40vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin-bottom: 20px;
}/* For adding img in header */

#pageheader h2,
#pageheader p {
  text-align: center;
    color: #fff;
}/* Designing the text "#knowus* and  "p" tag*/

#about-head{
    display: flex;
    align-items: center;
}

#about-head img{
    width: 50%;
    height: auto;
}
#about-head abbr,
#about-head marquee{
    color: #bb2b21;
    font-weight:bold;
}

#about-head div {
    padding-left: 40px;
    text-align: justify;
}

#about-app {
    text-align: center;
}

#about-app .Autobiography img{
    max-width: 100%;
    width: 300%;
    height: Auto;
    margin-bottom: 10px;
}

.Autobiography p{
    text-align: justify;
    font-weight: 500;
}


/* ================= Adding style in Book Section Page =================== */
#Page-header {
    background-image: url("images/about/Header.png");
    width: 100%;
    height: 40vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin-bottom: 20px;

}

#Page-header h2,
#Page-header p {
  text-align: center;
    color: #fff;
}

#product1 h2,
#product1 p {
    text-align: center;
}

#product1 .pro-container{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px;
    flex-wrap: wrap;
}

#product1 .pro{
    width: 23%;
    min-width: 250px;
    padding: 10px 12px;
    border: 1px solid #cce7d0;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 20px 20px 30px rgb(0, 0, 0, 0.02);
    margin: 15px 0;
    transition: 0.2s ease;
    position: relative;
}

#product1 .pro:hover {
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.08);
}

#product1 .pro img{
    width: 100%;
    border-radius: 20px;
}

#product1 .pro .des{
    text-align: start;
    padding: 10px 0;
}

#product1 .pro .des span{
    color: #606063;
    font-size: 12px;
    font-weight: 400;


}

#product1 .pro .des h5{
    padding-top: 7px;
    color: #bb2b21;
    font-size: 14px;
}

#product1 .pro .des h4{
    padding-top: 7px;
    font-size: 15px;
    font-weight: 700;
    color: #088178;

}

#product1 .pro .cart{
    width:40px;
    height:40px;
    line-height:40px;
    border-radius: 50px;
    align-items: center;
    background-color: #e8f6e8;
    font-weight: 500;
    color: #055f59;
    border: 1px solid #cce7d0;
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: flex;                /* Add this */
    justify-content: center;     /* Center horizontally */
    align-items: center; 
    font-size: 20px;        /* Center vertically */
}

/*Book Grid
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px;
}*/

/* Book Card */
/*.book-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
}

.book-card h3 {
  font-size: 1.2rem;
  margin: 10px 0;
}

.book-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 5px 0;
}

.book-card a {
  display: inline-block;
  margin-top: 10px;
  background-color: #007b5e;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.book-card a:hover {
  background-color: #005f46;
}



/* Container for the entire book details */
/*.book-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

/* Main Book Image */
/*.main-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}


/* Preview Thumbnails */
/*.preview-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.thumb-img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 2px solid transparent;
}

.thumb-img:hover,
.thumb-img.active {
  border-color: #28a745;
}

/* Book Details */
/*.book-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.book-meta p {
  font-size: 18px;
  margin: 5px 0;
}

.book-meta strong {
  font-weight: 600;
}

/* Buy Now Button */
/*.buy-now-btn {
  background-color: #28a745;
  color: white;
  font-size: 18px;
  padding: 10px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 20px;
  text-decoration: none;
  display: inline-block;
}

.buy-now-btn:hover {
  background-color: #218838;
}





/* ================= Single Product Image Page ===================== */
#prodetails {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
}

.single-pro-image {
    flex: 1;
    width: 50%; /* or adjust to 40%-50% if using beside details */
    max-width: 500px; /* optional for control */
    margin: 20px; /* center align */
}

#prodetails .single-pro-details{
    flex: 1;
    width: 50%;
    padding-top: 30px;
}

.single-pro-image img#MainImg {
    width: 70%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.small-img-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.small-img-col img {
    width: 60px;
    height: auto;
    cursor: pointer;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.02);
    border-radius: 5px;
    transition: 0.3s;
}

.small-img-col img:hover {
    border-color: #000;
    box-shadow: 1px 1px 2px rgba(3, 3, 3, 0.1);
}

#prodetails .single-pro-details{
    flex: 1;
    width: 50%;
    padding-top: 30px;
}

#prodetails .single-pro-details h4 {
    padding: 30px 0 20px 0;
}

#prodetails .single-pro-details h2{
    font-size: 25px;
}

#product-isbn {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    font-style: italic;
}

#prodetails .single-pro-details input{
    width: 60px;
    height: 47px;
    padding-left: 10px;
    font-size: 10px;
    margin-right: 10px;
}

.pay-now-btn {
  padding: 12px 24px;
  background-color: #9f074e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.pay-now-btn:hover {
  background-color: #e394b6;
  transform: scale(1.03);
}


/* Styling the ContactUs Page */

#contact-details {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  background-color: #f5f5f5;
}

.contact-container {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  width: 100%;
  max-width: 1000px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.contact-container p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

/* Container Layout */
#contact-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
}

/* Contact Info Text (Left Side) */
.contact-info-text {
  flex: 1;
  min-width: 300px;
}

.contact-info-text span {
  color: #555;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.contact-info-text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #222;
}

.contact-info-text li {
  list-style: none;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
  font-size: 16px;
}

.contact-info-text i {
  color: #007bff;
  font-size: 18px;
  margin-top: 3px;
}

/* Map Section (Right Side) */
.contact-info-map {
  flex: 1;
  min-width: 300px;
}

.contact-info-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}




/* Stying for Responsive Screen (tab) */

@media (max-width: 799px) {

.section-p1{
  padding: 40px 40px;
}

#navbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start; /* ✅ fixed typo */
  position: fixed;
  top: 0;
  right: -300px; /* Hide by default */
  width: 300px;
  height: 100vh;
  background-color: #E3E6F3;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.06);
  padding: 80px 10px;
  transition: right 0.3s ease; /* smooth slide */
}

#navbar.active {
  right: 0px; /* Slide-in when active */
}

#navbar li{
  margin-bottom: 25px;
}

#mobile{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 15px;
  cursor: pointer;
  z-index: 1100;
}

#mobile i {
  font-size: 24px;
  padding: 10px;
  color: #000;
}

#close {
  display: initial;
  position: absolute;
  top: 30px;
  left: 30px;
  color: #222;
  font-size: 24px;
}

#lg-bag{
  display: none; 
}

#main{
  height: 50vh;
  padding: 0 80px;
  background-position: top 20% left 30% ;
}

#features {
  justify-content: center;
}

#features .fe-box{
  margin: 15px 20px;
}

#AboutUS .pro-container {
  display: flex;
  flex-direction: column;
  text-align: justify;
}

#newsletter .form{
  width: 70%;
}

/*======= About US =========*/
#about-head img{
  margin-left: 7%;
}

#about-head{
  flex-direction: column;
  margin-right: 5%;
}

.Autobiography img{
  max-width: 80%;
}

/*========= Books ===========*/
  #prodetails .single-pro-details button {
    height: 5vh;
    background-color: #088178;
    color: #fff;
  }

}




















@media (max-width:477px) {
    #header {
        padding: 15px 20px;
    }

  .site-title {
  padding: 4px 1px 8px 9px;
  font-size: 12px;
  font-weight: 800;
  color: #333;
  margin: 0;
  font-family: 'Segoe UI', 
  }

    #main{
        height: 30vh;
        padding: 0 80px;
        background-position: top 20% left 30% ;
    }

    #features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1% 3%;
    }

    #features .fe-box{
        width: 50%;
        margin: 10px 0px;
        padding: 10px;
        
    }

    #newsletter .form{
        display: flex;
        width: 80%;
    }

    #newsletter .normal {
        width: 50%;
    }


     /*======= About US =========*/
    #pageheader{
        margin-bottom: 5px;
    }

    #about-head img {
      margin-left:  10%;
    }

  #about-head {
    flex-direction: column;
    padding: 3px 0px 3px 3px;
    margin-right: 10%;
    }

    #prodetails {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 20px;
  }

   .single-pro-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
  }

  #MainImg {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

 .single-pro-details {
   display: flex;
    align-self: self-start;
    flex-direction: column;
    margin-top: 5px;
  }

  .single-pro-details h4 {
    font-size: 24px;
    margin-bottom: 1px;

  }

  .single-pro-details h6 {
    font-size: 18px;
    color: #555;
    margin-bottom: 5px;
  }

   #product-isbn {
    font-style: italic;
    margin-bottom: 10px;
  }

  #product-price {
    font-size: 26px;
    color: #222;
    margin: 10px 0;
  }

  #quantity {
    width: 60px;
    margin-bottom: 10px;
    padding: 5px;
    font-size: 16px;
  }

  .pay-now-btn {
    background-color: #006e52;
    color: white;
    padding: 10px 25px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
  }

  .pay-now-btn:hover {
    background-color: #004f3a;
  }

    .mobile-only-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 10px;
        padding: 10px 0;
    }

    .mobile-only-gallery img {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        scroll-snap-align: center;
        border-radius: 10px;
        object-fit: cover;
    }

    .mobile-only-gallery::-webkit-scrollbar {
        display: none;
    }


    #contact-details {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
    }

    .contact-container {
        width: 90%;
        padding: 20px;
    }

    .contact-content {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .contact-form {
        width: 100%;
        max-width: 350px;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
    }

    #contact-info-row {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .contact-info-map{
        width:100%;
    }
    .contact-info-map iframe {
        height: 250px;
    }
}
