/* MAIN CONTAINER */
.library-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e4f2ff;
  border-radius: 28px;
  padding: 10px 20px;
  font-family: "Segoe UI", sans-serif;
  gap: 20px;
  position: relative; 
  top:-15px;
}

/* LEFT CONTENT */
.content {
  max-width: 55%;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  margin-left: auto;
}

.title {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  font-weight: 300;
  font-style: Regular;
  font-size: 57px;
  line-height: 117px;
  letter-spacing: 0%;
  vertical-align: middle;
  text-transform: uppercase;
}

/* SEARCH BAR */
.search-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: auto !important;
    min-width: unset !important;
    transition: none;
    gap:0px;
}

.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0px 18px;
  font-size: 15px;
  border-radius: 50px;
}

.search-btn {
  background: #1c4c7a;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 4px 8px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 19px;
}

.search-btn span {
  font-size: 14px;
  background: #fff;
  border-radius: 15px;
  width: 29px;
  padding: 4px 6px;
  margin-left: 10px;
}

.search-icon {
  margin-left: 10px;
}

.search-wrapper.open {
    width: 448px !important;
}

#search-input {
    width: 0 !important;
    opacity: 0;
    padding: 0 !important;
    border: none !important;
    outline: none;
    flex: unset !important;
    max-width: 0;
    overflow: hidden;
}

#search-input.open {
    width: 400px !important;
    opacity: 1;
    padding: 4px 12px !important;
    max-width: 400px;
}


/* CATEGORY */
.category-label {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #2b2b2b;
}

.category-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.chip {
  padding: 8px 18px;
  border-radius: 22px;
  border: 1px solid #1c4c7a;
  background: #fff;
  color: #000;
  font-size: 14px;
  transition: 0.2s;
  white-space: nowrap;
}

.chip:hover {
  background: #1c4c7a;
  color: #fff;
}

.chip.active {
  background: #1c4c7a;
  color: #fff;
  border: none;
}

/* RIGHT SIDE IMAGES */
.library-section {
  position: relative;
  margin: 15px 2px;
}

.book-images {
  position: absolute;
  height: 491px;
  right: 0;
}

.book-img {
  max-width: 699px;
}

/* Container */
.library {
  /* padding: 30px; */
  font-family: Arial, sans-serif;
}

.club-accrodion-item{
  border: 0px!important;
}

.library-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.title-row {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px;
}


/* Grid */
.library-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* 5 cards per row */
.book-card {
  width: calc(20% - 12px); /* 5 cards */
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: 0.3s;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Image */
.book-wrapper {
  background: #f9fafb;
  position: relative;
}

.book-card-img {
  width: 100%;
  height: 282px;
  object-fit: cover;
  /* margin-left: -85px; */
}

/* Badge */
.book-card-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  color: #fff;
}

.book-badge--available {
  background: #fff;
  color: #48a111;
}

.book-badge--issued {
  background: white;
  color: #e74c3c;
}

/* Content */
.book-content {
  padding: 12px;
}

.book-category {
  font-size: 10px;
  color: #3b82f6;
  font-weight: 600;
}

.book-title {
  font-size: 13px;
  font-weight: 600;
  min-height: 42px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Button */
.book-btn {
  width: 100%;
  padding: 6px;
  border: 1px solid #004b8f;
  background: transparent;
  color: #004b8f;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
}

.book-btn:hover {
  background: #004b8f;
  color: #fff;
}

.book-card__btn:hover {
  background: #3b82f6;
  color: #fff;
}

.book-btn .arrow-icon:hover {
  background: #004b8f;
  color: #fff;
}

.view-btn {
  width: 10%;
  padding: 6px;
  border: 1px solid #004b8f;
  background: transparent;
  color: #004b8f;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
}

.view-wrapper :hover{
  background: #004b8f;
  color: #fff;
}

.view-wrapper{
  display: flex;
  justify-content: center;
}


/* Left Dropdown */


.filter-box {
  /* border: 1px solid #D5D5D580;
  border-radius: 5px; */
  position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

.accordion-button {
  font-size: 14px;
  font-weight: 500;
  background: transparent;
}

.form-check {
  margin-bottom: 8px;
}

.main-row{
  display: flex;
  justify-content: center;
  gap: 30px;
    height: 100%;
}


.search-wrapper input {
    font-size: 13px;
    border: 0px!important;
  }

.main-accordion{
      position: absolute;
    top: 60;
    left: 0;
    width: 100%;
    height: 100%;
}

.accordion-button:focus{
  box-shadow: none!important;
}

.accordion-button:not(.collapsed) {
  background: #fff!important;
  color: #000!important;
}

.dropdown-body{
   height: 270px;
   overflow-y: scroll;
}


/* head search */
.svg-wrapper{
  padding: 8px;
  border-radius: 50%;
  background: #004B8F;
  display: flex;
  align-items: center;
}

.right-side-icon-box{
   background: #FAFDFF;
   padding: 5px 8px;
   border-radius: 6px;
}

.book-section {
    height: calc(100vh - 120px); /* header ki height subtract */
    /* overflow: hidden; */
}

.filter-box {
    height: 100%;
    overflow: hidden;
}

.library-section {
    position: sticky;
    top: 50px;
    z-index: 100;
    background: white;
}

.right-part{
   height: 100%;
   overflow-y: auto;
   scrollbar-width: none;
}

.filter-btn{
 display: none;
}

.accordion-button:not(.collapsed){
  box-shadow: none!important;
}

.top-bar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}


/* hamburger */

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}


.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 60px;
    background: rgba(0, 0, 0, 0.4);
}

.drawer-overlay.active {
    display: block;
    
}

.side-drawer {
    position: fixed;
    top: 50px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #fff;
    z-index: 1020;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.side-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.drawer-title {
    font-weight: 600;
    color: #004B8F;
    font-size: 16px;
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #666;
}

.drawer-item {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.drawer-item:hover {
    background: #f0f5ff;
    color: #004B8F;
}

.side-drawer.active ~ .top-bar .hamburger-btn,
.hamburger-btn.hidden {
    display: none;
}
.bookmark.hidden {
    display: none;
}

/* mobile design */




/* ==================== MOBILE LEFT SLIDE FILTER ==================== */
@media (max-width: 991px) {
    
    .left-col {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85% !important;
        height: 100vh;
        z-index: 1050;
        background: white;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
        transition: left 0.35s ease-in-out;
        overflow-y: auto;
        padding-top: 70px;           /* Top space for header */
    }

    .left-col.show {
        left: 0;
    }

    /* Overlay (background darken) */
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .filter-overlay.show {
        display: block;
        opacity: 1;
    }

    /* Filter button mobile pe dikhe */
    .filter-btn {
        display: block;
        border: none;
        background: #f0f0f0;
        padding: 10px 16px;
        border-radius: 8px;
        margin: 15px 15px 10px;
        font-size: 15px;
    }

    /* Desktop pe left-col normal rahe */
    .main-row {
        position: relative;
    }
}


@media (min-width: 992px) {
    .left-col {
        position: relative;
        left: 0 !important;
        /* width: auto !important; */
        height: auto;
        box-shadow: none;
        padding-top: 0;
    }
    
    .filter-overlay {
        display: none !important;
    }
}

@media (max-width: 430.98px) {
  /*----------------------------- library-section started----------------------------------- */

  .library-section {
    margin: 20px 0px 0px 0px;
        position: fixed;
    top: 30px;
    width: 100%;
  }

  .right-part{
    width: 100%;
  }
  /* .left-col{
    display: none;
  } */
  
  .filter-btn{
    display: block;
    border: none;
    background: none;
    margin-top: 80px;
    margin-left: 15px;
  }

  .book-section {
    height: calc(50vh - 120px);
}

  .book-img {
    display: none;
  }

  .form-check{
    margin-bottom: 6px!important;
  }

      .left-col {
        padding-top: 20px!important;
      }

  .library-hero {
    /* flex-direction: column; */
    padding: 10px;
    border-radius: 0;
  }

  .book-section{
     padding: 0px 10px 0px 15px;
  }

  .content {
    max-width: 100%;
  }

  .slide-filter-heading{
    font-size: 16px;
  }

  .filter-heading-wrapper{
     border-bottom: 1px solid #D5D5D580;
    padding-bottom: 10px;
  }

  /* HEADER */
  .title {
    font-size: 24px;
    line-height: normal;
    text-transform: capitalize;
    text-align: left;
    margin-bottom: 20px;
    font-weight: 400 !important;
    color: #004b8f;
  }

  /* SEARCH */
  .search-wrapper {
    width: 100%;
    border-radius: 20px;
    padding: 4px 8px;
  }

  .search-wrapper input {
    font-size: 13px;
    padding: 0px;
    border: 0px!important;
  }

  .search-btn {
    display: none;
  }

  .search-btn span {
    width: 20px;
    padding: 2px 4px;
  }

  /* CATEGORY */
  .category-label {
    font-size: 12px;
    margin-top: 12px;
  }

  .category-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 5px;
  }

  .chip {
    font-size: 12px;
    padding: 6px 12px;
  }

   .library-hero {
    justify-content: flex-start;  
    align-items: center;
  }

   .search-wrapper {
    width: 100%;   
  }

  .search-wrapper.open {
    width: 290px !important;
}

  /*----------------------------- library-section ended----------------------------------- */

  /* ----------------------book-section started--------------------------- */

  .library__grid {
    margin: 0px -20px;
  }
  .book-card {
    width: 47%;
  }

  .book-card-img {
    /* width: 159%; */
    height: 170px;
    object-fit: cover;
    margin-left: 0px;
  }

  .view-btn {
  width: 22%;
  }
}


