@import url('https://fonts.googleapis.com/css2?family=TASA+Orbiter:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?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');

body{
  font-family: "TASA Orbiter", sans-serif;
}
h1,h2,h3,h4,h5,h6{
  font-family: "Poppins", serif;
}
img{
  max-width: 100%;
}

nav .collapse ul li button.btn{
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    padding: 0;
}
.offcanvas.offcanvas-top{
    height: 100%;
    justify-content: center;
} 
.offcanvas.offcanvas-top .offcanvas-body{
    flex-grow: unset;
}
/* Navbar */
.navbar-brand img {
    height: 50px;
}
.dropdown-toggle::after{
    content:'\F282';
    border: 0;
    font-family: bootstrap-icons !important;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    right: 0;
}
.navbar-collapse >.navbar-nav > .nav-item > a{
    padding: 0 15px;
    color: #000;
    text-transform: uppercase;
    font-weight: 500;
}
nav.navbar{
    padding: 10px 0;    
}
.navbar-collapse >.navbar-nav > .nav-item > a.dropdown-toggle {
    padding-right: 20px;
    position: relative;
}
.navbar-expand-lg .navbar-nav .dropdown-menu{
    top: 49px;
    border-radius: 0;
    border: 0;
    background: #f8f9fa;
}
.navbar-expand-lg .navbar-nav .dropdown-menu li a{
    text-transform: uppercase;
    font-weight: 500;
    transition: all .4s;
}
.navbar-expand-lg .navbar-nav .dropdown-menu li a:hover{
    background: #e5e5e5;
}


/* Hero slider (responsive heights) */
.hero-carousel .carousel-item {
    height: 380px;
} /* mobile default */
.hero-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.hero-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 0.5rem;
}

@media (min-width: 576px) {
    /* sm+ */
    .hero-carousel .carousel-item {
        height: 420px;
    }
}
@media (min-width: 768px) {
    /* md+ */
    .hero-carousel .carousel-item {
        height: 520px;
    }
}
@media (min-width: 992px) {
    /* lg+ */
    .hero-carousel .carousel-item {
        height: 600px;
    }
}
@media (min-width: 1200px) {
    /* xl+ */
    .hero-carousel .carousel-item {
        height: 672px;
    }
}

/* Categories grid */
#categories{
    padding-top: 100px;
}
.cat-card {
    position: relative;
    overflow: hidden;
    border: 0;
}
.cat-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cat-card:hover img {
    transform: scale(1.06);
}
.cat-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Latest books (multi-item carousel) */
#latest{
    padding-top: 100px;
    padding-bottom: 100px;
}
#booksCarousel .carousel-inner {
    padding: 1rem 0;
}
#booksCarousel .carousel-item {
    display: flex;
}
#booksCarousel .card img {
    height: 220px;
    object-fit: cover;
}
@media (max-width: 991.98px) {
    /* lg- */
    #booksCarousel .carousel-item {
        gap: 0.75rem;
    }
}

/* Footer */
footer a {
    color: inherit;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
footer{
    padding-top: 60px;
}
footer ul{
    margin-bottom: 30px;
    margin-top: 15px;
}
footer ul li a{
    text-decoration: none !important;
}
footer .copyright{
    margin: 0;
    background: #181a1d;
    padding: 20px 0;
    margin-top: 50px;
}
footer .copyright p{
    margin-bottom: 0;
    text-align: center;
}

#page_banner{
  background: url(https://safareislam.com/public/frontend/img/book-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0;
}
#page_banner h1{
      font-size: 35px;
    text-align: center;
    margin: 0 0 15px;
    font-weight: 700;
    color: #fff;
}
#page_banner ul{
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #fff;
  list-style: none;
}
#page_banner ul li{
  margin: 0 5px;
}
#page_banner ul li a{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

#book_cate{
  padding: 100px 0;
}
#book_cate .content {
  text-decoration: none;
  margin-bottom: 30px;
  text-align: center;
  border: 1px solid #e7e7e7;
  padding: 10px;
}
#book_cate .content img{
  width: 100%;
}
#book_cate .content h3{
  color: #000;
  text-align: center; 
  text-transform: capitalize;
  font-size: 20px;
  margin-top: 15px;
  transition: all .4s;
  font-weight: 600;
}
#book_cate .content:hover h3{
  color: #08513e;
}
#book_cate .content p{
  position: relative;
  color: #3e3e3e;
  line-height: 18px;
  font-size: 16px;
  text-transform: capitalize;
  text-align: center;
  margin-bottom: 15px;
}
#book_cate .content a.btn{
  width: 100%;
  border-radius: 0;
}
#book_det{
  padding: 100px 0;
}
#book_det .img {
  padding: 10px;
  border: 1px solid #e2e2e2;
}
#book_det .content h2{
  font-size: 30px;
  margin-bottom: 10px;
}
#book_det .content p{
  margin-bottom: 20px;
}
#book_det .content .book_conf{
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}
#book_det .content .book_conf li{
  color: #222;
  font-size: 16px;
  padding: 12px 20px;
  background: #f8f9fa;
  width: 60%;
}
#book_det .content .book_conf li:nth-child(even) {
    background-color: #fff;
}
#book_det .content a.btn{
  padding: 10px 40px;
  border-radius: 0;
}
#book_det .content h5{
  margin-top: 20px;
  text-transform: capitalize;
  margin-bottom: 10px;
}
#book_det .content ul.social{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
#book_det .content ul.social li a{
  display: inline-block;
  width: 35px;
  height: 35px;
  background: #000;
  border-radius: 50%;
  text-align: center;
  color: #fff;
  line-height: 35px;
  margin-right: 10px;
}
#related_book{
  padding-bottom: 70px;
}
#related_book .content{
  text-decoration: none;
  margin-bottom: 30px;
  text-align: center;
  border: 1px solid #e7e7e7;
  padding: 10px;
  display: block;
}
#related_book .content h3{
  color: #000;
  text-align: center;
  text-transform: capitalize;
  font-size: 18px;
  margin-top: 15px;
  transition: all .4s;
  font-weight: 600;
}
#related_book .content:hover h3{
  color: #08513e;
}
#related_book .title{
  text-align: center;
  margin-bottom: 50px;
}
#related_book .title h2{
  margin: 0;
  text-transform: capitalize;
  font-weight: 600;
}
#about_section{
    padding: 100px 0;
}
#about_section .row{
    align-items: center;
}
#about_section .content h5{
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #08513e;
    margin-bottom: 10px;
}
#about_section .content h2{
    font-size: 38px;
    margin-bottom: 20px;
    color: #000;
    text-transform: capitalize;
    font-weight: 600;
}
#about_section .content p{
    margin-bottom: 20px;
    text-align: justify;
}
#contact_form{
    padding: 100px 0;
}
#contact_form .content h3{
    font-size: 26px;
    margin-bottom: 20px;
    text-transform: capitalize;
}
#contact_form .content .address p{
    margin-bottom: 20px;
}
#contact_form .content .email a,
#contact_form .content .phone a{
    display: inline-block;
    color: #000;
    text-decoration: none;
    margin-bottom: 20px;
}
#contact_form .form form input{
    width: 100%;
    border: 0;
    border-bottom: 1px solid #c2c2c2;
    padding: 10px 0;
    box-shadow: none;
    outline: none;
    margin-bottom: 30px;
}
#contact_form .form form textarea{
    width: 100%;
    border: 0;
    border-bottom: 1px solid #c2c2c2;
    min-height: 130px;
    outline: none;
    margin-bottom: 30px;
}
#contact_form .form form .submit_btn .btn{
    border-radius: 0;
    padding: 10px 40px;
}
#contact_form .social{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
#contact_form .social li a{
    width: 40px;
    height: 40px;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #000;
    margin-right: 10px;
    transition: all .4s;
}
#contact_form .social li a:hover{
    background: #000;
    color: #fff;
}
#privacypolicy{
    padding: 100px 0;
}
#privacypolicy a{
    text-decoration: none !important;
    color: #08513e;
}


@media (max-width: 767px){
    .navbar-collapse >.navbar-nav > .nav-item > a{
        padding: 10px 0px;
    }
    nav .navbar-collapse ul li button.btn,
    nav .navbar-collapse ul li i.bi-search{
        display: none;
    }
    #about_section .content,
    #book_det .content{
        margin-top: 30px;
    }
    #contact_form .content{
        margin-bottom: 30px;
    }
}