/* Base Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Condensed", sans-serif !important;
}

a {
  text-decoration: none !important;
  color: #404040;
}

html {
  /* font-size: 62.5%; */
  margin: auto;
}

h1,
p,
div {
  margin: 0;
  padding: 0;
}
h4{
  margin-bottom: 0 !important;
}

.container-fluid {
  margin: 0 !important;
  padding: 0 !important;
}

.library.container-fluid>.row{
  padding-top: 16px;
}



.navbar-collapse {
  transition: max-height 0.5s ease-in-out;
  overflow: hidden;
  /* Ensures no content spills out */
}

.navbar-expand-lg .navbar-nav {
  gap: 10px;
  margin-right: 20px;
}

.navbar-collapse.collapse {
  box-shadow: none;
  z-index: 200;
  margin-left: -12px;
}

.navbar-collapse.collapsing {
  box-shadow: none;
  z-index: 200;
  margin-left: -12px;
  margin-right: -12px;
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 1300px) {
  .navbar-collapse.collapse.show {
    display: inline !important;
    margin: -1px -12px;
  }
}

.navbar-collapse.collapse.show>.navbar-nav>.nav-item {
  background-color: rgba(0, 0, 0, 0.6);
}

/* HEADER CSS */


.navbar {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: "Roboto Condensed", sans-serif !important;
  font-weight: 400;
  height: 135px;
  padding: 0 !important;
}

.navbar-brand {
  width: 27%;
  height: 100%;
}

.nav-item {
  font-size: 1.4rem;
}

.title {
  font-size: 3rem;
  font-weight: 200;
  margin: 0;
  margin-top: 4px;
}

.title-paragraph {
  font-size: 1.2rem;
  font-weight: 200;
  margin: 0;
  margin-top: -9px;
  margin-bottom: 0px;
  letter-spacing: 0.12;
}

.header-bg-image {
  max-height: 300px;
  max-width: 100%;
}


/* -- Static Filter -- */

html {
  background-color: #efe9db;
}

/* Library Layout */
.library .row {
  margin-inline: 0;
}


@media (min-width: 768px) {
  .library__filters.col-md-4 {
    width: 23.333333% !important;
  }
}





.library__filters>div>h3 {
  display: none;
}

.library__content {
  background-color: #efe9db;
  padding-right: 0 !important;
  padding-bottom: 50px;
  max-width: max-content !important;
  /*height:4000px;*/
}

@media (min-width: 768px) {
  #library__content.col-md-8 {

    width: 76.666667%;
  }
}

.content__section {
  margin: 0 14px 0px 10px;
}

.content__section--primary .packet__items_wrapper {
  background-color: var(--primary-color);
}

.content__section--secondary .packet__items_wrapper {
  background-color: var(--second-color);
}

.content__section--third .packet__items_wrapper {
  background-color: var(--third-color);
}

.content__section--fourth .packet__items_wrapper {
  background-color: var(--fourth-color);
}



/* Packet */

#items_wrapper .search-area {
  height: 70px;
  width: 100%;
}

#items_wrapper .search-area .form-control {
  height: 100%;
}

#items_wrapper .search-area .search-btn {
  right: 6px;
}

#items_wrapper .search-area i.fas {
  font-size: 24px;
}

#items_wrapper .search-area input[type="text"] {
  padding-left: 23px;
  padding-right: 64px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);

}

#items_wrapper .search-area .form-control::placeholder {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.packet__items {
  padding: 0 !important;
  box-shadow: 5px 5px 50px rgba(0, 0, 0, 0.1), -5px -5px 50px rgba(0, 0, 0, 0.1);
  margin-bottom: -25px;
  height: 100%;
}


.row.packet__items {
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  .packet__items.col-md-5 {
    width: 44.3%;
  }
}

.packet__items_wrapper {
  height: 100%;
  /* Ensures it uses full available height */
}

.packet__items .dropdown {
  margin-top: 20px;
}

.btn.btn-secondary.btn-category:active {
  color: inherit;
  background-color: #fff;
  border-color: #fff;
}

.loadingImg {
  display: none;
  width: 100px;
  filter: grayscale(100%);
  opacity: 0.6;
  /* Optional: Reduce opacity for better visual effect */
  transition: filter 0.3s ease, opacity 0.3s ease;
}


.packet__item_img,
.dropdown {
  text-align: center;
}

.packet__item.placeholder {
  filter: opacity(0);
  cursor: default;
  height: 260px;
}

.packet__item.placeholder img:hover {
  cursor: default;
}

.packet__item_container {
  margin-bottom: 20px;
}

.packet__item_container>.row {
  display: flex;
  overflow-x: hidden;
  white-space: nowrap;
  /* max-height: 720px; */
  padding-top: 5px;
  padding-bottom: 5px;
  margin-left: -6px;
  margin-right: -16px;
  gap: 7px;
  justify-content: center;
}



.packet__item_container .packet__item {
  padding: 0px !important;
}

.packet__item_container>.row::-webkit-scrollbar {
  width: 12px;
  /* Adjust the scrollbar width */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.packet__item_container>.row::-webkit-scrollbar-thumb {
  background: #999999;
  /* Gradient thumb color */
  border-radius: 10px;
  /* Rounded corners */
  border: 3px solid transparent;
  /* Space around the thumb for a floating effect */
  background-clip: padding-box;
  /* Ensures the border is visible */
}

.packet__item_container>.row::-webkit-scrollbar-track {
  background: #e0e0e0;
  /* Track background color */
  border-radius: 10px;
}

.packet__item_container>.row::-webkit-scrollbar-track:hover {
  background: #ffffff;
  /* Slightly darker track on hover */
}

.overlay {
  position: absolute;
  bottom: 0;
  /* Anchored to the bottom of the image */
  left: 0;
  right: 0;
  height: 60px;
  /* Height of the gradient and title area */
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0));
  /* Black-to-transparent gradient */
  display: flex;
  align-items: flex-end;
  /* Align title to the bottom */
  justify-content: center;
  padding: 5px;
}

.overlay:hover {}

.packet__item_title {
  overflow: hidden;
  color: white;
  /* Make text white for visibility */
  font-size: 16px;
  /* Adjust font size */
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  /* Add depth to text */
}

.dropdown>h6 {
  text-align: left;
  padding-left: 10px;
  color: #404040;
}

.dropdown-menu {
  padding-top: 0px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 1s ease, padding-top 0.3s ease;
}

.dropdown .dropdown-menu.show {
  padding-top: 9px !important;
  opacity: 1;
  transform: translate(12px, 66px) !important;
  width: calc(100% - 24px) !important;
  position: absolute !important;
  inset: 0px auto auto 0px !important;
  margin: 0px !important;
  border-radius: 0px 0px 30px 30px !important;
  border: none !important;
}

.packet__item {
  position: relative;
  padding: 10px;
  padding-bottom: 5px;
  text-align: center;
  transition: transform 0.3s ease;
}

.packet__item:hover,.packet__item a:focus-visible img {
  transform: scale(1.04);
}

.packet__item>a>img {
  width: 100%;
  height: auto;
  scale: 1.01;
}

.packet__item>img:hover {
  cursor: pointer;
}


.packet__item.col-6 {
  flex: 0 0 auto;
  overflow: hidden;
  width: 48%;
  position: relative;
  aspect-ratio: 1;
}


.packet__items_wrapper .card .row .p-4 {
  background: none !important;
  margin-bottom: 40px !important;
}

#collections-pagination {
  margin-top: 40px;
}

.pagination_wrapper nav ul.pagination {
  box-shadow: none;
  margin-bottom: 0;
}

.listing .pagination li.page-item .page-link {
  padding:0 clamp(1px, 1vw, 6px);
  height: 32px;
  min-width: clamp(26px, 2vw, 70px);
  border: none;
  border-radius: 0;

}
@media (max-width: 1199px) {
  #items_wrapper .pagination li.page-item .page-link {
    min-width: clamp(26px, 4vw, 70px);
  }

}
@media (max-width: 768px) {
#items_wrapper .pagination li.page-item .page-link {
        min-width: clamp(21px, 6vw, 201px);
    }

}

.pagination>li>a,#items_wrapper .pagination>li>span {
  border-radius: 0;
}

.listing .page-item:first-child .page-link,.pagination>li:first-child>a,.pagination>li:first-child>span  {
    border-top-left-radius:6px !important;
    border-bottom-left-radius: 6px !important;
}
.listing .page-item:last-child .page-link,.pagination>li:last-child>a,.pagination>li:last-child>span {
    border-top-right-radius:6px !important;
    border-bottom-right-radius: 6px !important;
}

.pagination li.page-item a {
  font-size: 1rem;
}

.library__content .content__section--primary .pagination>.active>.page-link {

  border-color: var(--primary-color) !important;
}

.library__content .content__section--secondary .pagination>.active>.page-link {

  border-color: var(--second-color) !important;
}

.library__content .content__section--third .pagination>.active>.page-link {

  border-color: var(--third-color) !important;
}

.library__content .content__section--fourth .pagination>.active>.page-link {


  border-color: var(--fourth-color) !important;
}
.library__content  .active>.page-link {
  border: 2px solid !important;
  color: #000 !important;
  background: #fff !important;
}
#items_wrapper .pagination>.page-item:first-child .page-link {
  cursor: pointer;
}

#items_wrapper .pagination>.page-item:last-child .page-link {
  cursor: pointer;
}


.library__content .content__section--primary .pagination>.page-item>.page-link:focus {
  box-shadow: var(--primary-color) 0 0 0 0.2rem !important;
}

.library__content .content__section--secondary .pagination>.page-item>.page-link:focus {
  box-shadow: var(--second-color) 0 0 0 0.2rem !important;
}

.library__content .content__section--third .pagination>.page-item>.page-link:focus {
  box-shadow: var(--third-color) 0 0 0 0.2rem !important;
}

.library__content .content__section--fourth .pagination>.page-item>.page-link:focus {
  box-shadow: var(--fourth-color) 0 0 0 0.2rem !important;
}


.loading {
  width: 100%;
  height: 100%;
  min-height: 24px;
  text-align: center;
  vertical-align: middle;
  border: none;
}

/* Filter styles */
.library__filters .static_filters ul {
  padding-left: 2.14rem !important;
}

.library__filters .static_filters ul li {
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.5s ease;
  line-height: 0.8;
}

.library__filters .static_filters ul li:hover {
  background: linear-gradient(90deg, #c2c2c2, transparent);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.library__filters .static_filters ul li.selected {
  background: linear-gradient(90deg, #c2c2c2, transparent);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}
#facets #filter_collection-course .list-group-item{
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
}

#facets #filter_collection-course .list-group-item span.facet-label {
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#facets #filter_publisher-username .list-group-item{
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
}

#facets #filter_publisher-username .list-group-item span.facet-label {
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Middle div with image, taking 70% height */

.packet.row {
  position: relative;
  margin-top: 65px;
  margin-right: 20px;
  max-width: 1600px;
}

@media (min-width: 2000px) {
  .packet.row {}


  .hero .hero__content {
    min-height: 450px;
    max-height: 50vh;
  }

}

@media (min-width: 2300px) {
  .packet.row {
    margin-left: 0;
  }

  .hero__content .search-area {
    right: 12% !important;
  }

  .hero .hero__content {
    min-height: 520px;
  }

}
@media(max-width: 1200px){
  .packet.row {
    margin-top: 0px;
    margin-bottom: 65px;
  }
}


.packet__books {
  background-color: #fdfdfd;
  padding: 0;
  box-shadow: -6px 0px 50px rgba(0, 0, 0, 0.2);
  margin-top: 25px !important;
  border-radius: 0;
  height: fit-content;
}

@media (min-width: 768px) {
  .packet__books.col-md-7 {
    width: 55.7%;
    padding-inline: 0;
  }
}



.packet__book {
  width: 100%;
  padding: 0px 20px 14px 20px;
  border-radius: 8px;
}

.round-button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.52), 2px 2px 4px rgba(0, 0, 0, 0.08);
  color: #404040;
}

.round-button:hover {
  background-color: #ddd;
}

.arrow {
  width: 15px;
  height: 15px;
  border-top: 2px solid black;
  border-right: 2px solid black;
  position: absolute;
}

.next {
  right: 63px;
}

@media (max-width: 1520px) {
  .next {
    right: 0px;
  }
}

.next .arrow {
  transform: rotate(45deg);
  right: 24px;
}

.card {
  border: none !important;
  border-radius: 0 !important;
}

.packet__label {
  display: flex;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.4) !important;
  color: rgb(127, 127, 127) !important;
  position: absolute !important;
  top: -26px !important;
  left: 0.95%;
  text-align: center !important;
  padding: 11px 40px !important;
  flex-direction: column;
  align-items: flex-start;
  cursor: default;
  word-spacing: 1px;
}

.packet__label h2 {
  font-size: 1.7rem;
}

.packet__label>h2,
.packet__label>h3 {
  margin: 0;
  padding: 0;
  cursor: default;
}

.packet__book_header {
  display: flex;
  text-align: center;
  color: #000000;
  height: 70px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 52px;
  margin-left: 40px;

}

@media (min-width: 1200px) {
  .packet__book_header h2 {
    font-size: 1.7rem;
  }
}

.packet__book_title {
  display: flex;
  text-align: start;
  color: #000000;
  height: 70px;
  margin-top: 31px;
  margin-left: 40px;
  align-items: center;
}

.packet__book_header>h2,
.packet__book_header>h3,
.packet__book_header>h4,
.packet__book_title>h2,
.packet__book_title>h4 {
  margin: 0;
  font-weight: 300;
  text-align: start;
  align-self: center;
  cursor: default;
}


.packet__book_files {
  display: flex;
  text-align: center;
  gap: 20px;
  align-items: end;
  margin-left: 40px;
  justify-content: space-between;
}

.books_digExpressions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.packet__book_files img {
  height: 33px;
}

.packet__book_files a,
.packet__book_files button {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 7px 7px 0 0;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0 8px;
  height: 38px;

}


.books_digExpressions a {
  transition: transform 0.3s ease, bottom 0.3s ease;
}

.books_digExpressions a:hover {
  transform: scale(1.05);
  bottom: 1px;
}

.books_digExpressions a:active {
  transform: scale(0.95);
  bottom: -1px;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.1),
    -8px -3px 8px rgba(0, 0, 0, 0.1);
}

.content__section--primary .packet__book_files .books_digExpressions a {
  background-color: var(--primary-color);
  color: #131313;
}

.content__section--secondary .packet__book_files .books_digExpressions a {
  background-color: var(--second-color);
  color: #131313;
}

.content__section--third .packet__book_files .books_digExpressions a {
  background-color: var(--third-color);
  color: #131313;
}

.content__section--fourth .packet__book_files .books_digExpressions a {
  background-color: var(--fourth-color);
  color: #131313;
}

.content__section--primary .packet__book_files a.packet_link {
  color: #131313;
  background-color: var(--primary-color);
}

.content__section--primary .packet__book_files a.packet_link::before {
  border-bottom: 13px solid var(--primary-color);
}

.content__section--secondary .packet__book_files a.packet_link {
  color: #131313;
  background-color: var(--second-color);
}

.content__section--secondary .packet__book_files a.packet_link::before {
  border-bottom: 13px solid var(--second-color);
}

.content__section--third .packet__book_files a.packet_link {
  color: #131313;
  background-color: var(--third-color);
}

.content__section--third .packet__book_files a.packet_link::before {
  border-bottom: 13px solid var(--third-color);
}

.content__section--fourth .packet__book_files a.packet_link {
  color: #131313;
  background-color: var(--fourth-color);
}

.content__section--fourth .packet__book_files a.packet_link::before {
  border-bottom: 13px solid var(--fourth-color);
}


/* -- no result -- */

#no-results-container{
  display: none;
  padding: 16px 0 0;
}


/* -- not available file -- */

.not-available {
  cursor: not-allowed !important;
  filter: grayscale(1);
  opacity: 0.8;
  color: #504f4f;
}



.packet__book_files .packet_link {
  height: 55px;
  padding: 12px 23px;
  font-size: 1.5rem;
  font-weight: 700;

}

/* Arrow above the button */
.packet__book_files .packet_link::before {
  content: "";
  position: absolute;
  top: -16%;
  left: 50%;
  transform: translateX(-50%);
  width: 43px;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
}

.packet__book_files p {
  margin: 0;
  padding: 0;
  align-self: center;
  text-align: center;
  margin-left: 10px;
}

/* .packet__book_stack{
text-align: center;
height: auto;
border-radius: 4px;
object-fit: cover;
padding-top: 20px;
padding-left: 30px !important;
padding-right: 30px !important;
} */

.content__section--primary .packet_book_header {
  background-color: var(--primary-color);
}

.content__section--secondary .packet_book_header {
  background-color: var(--second-color);
}

.content__section--third .packet_book_header {
  background-color: var(--third-color);
}

.content__section--fourth .packet_book_header {
  background-color: var(--fourth-color);
}



.packet_book_header {
  padding: 5%;
  margin-bottom: -1px;
  z-index: 1;
  position: relative;
}

.packet_book_header h3 {
  padding: 2%;
  background: #ffffff;
  text-align: center;
  border-radius: 28px;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  max-width: 34ch;
}

.packet__publisher {
  color: #000000;
  position: relative;
  border-top: 1px solid;
  margin-left: -20px;
  width: 106%;
}

.packet__publisher>h3 {
  max-width: 85ch;
  font-size: 1.2rem;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
  margin: 0;
  margin-left: 60px;
  padding-top: 13px;
}

/* -- Books Stack -- */

.packet__book_stack {
  position: relative;
  perspective: 800px;
  display: flex;
  align-items: center;
  margin-top: 40px !important;
  margin-bottom: 70px;
}


@media (min-width: 768px) and (max-width: 970px) {
  .packet__book_stack {
    margin-top: 0 !important;
  }

  .packet__book_files {
    margin-left: 0;
  }
}



.books_digExpressions {
  display: none;
}

.books_title {
  margin: 0;
  max-width: 63ch;
  font-weight: 300;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
  color: #000;
}

@media (min-width: 1200px) {
  .packet__book_title .books_title {
    font-size: 1.75rem;
  }
}


.packet__book_stack .img-container {
  transform: translateY(0px) scale(1);
  cursor: pointer;
  position: absolute;
  /* Ensure the images can be positioned */
  /* width: 435px;
  height: 550px; */
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, z-index 0.3s ease,
    left 0.6s ease;
  box-shadow: 6px 2px 5px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
}

.packet__book_stack .img-container img {
  scale: 1.01;
  width: 100%;
  height: 100%;
}
#book-thumbnail-placeholder{
  cursor: not-allowed;
}

@media (max-width: 1880px) {
  .packet__book_files .packet_link {
    font-size: 1.3rem;
  }

  .packet__book_files a,
  .packet__book_files button {
    font-size: 1rem;
  }
}

@media (max-width: 1720px) {
  .packet__book_stack .img-container {
    max-height: 600px;
    /* Adjust the maximum width for smaller screens */
    width: auto;
    max-width: 420px;
  }

  .packet__item .img-fluid {
    max-height: 230px;
    width: auto;
  }

  .packet__book_files {
    gap: 0 !important;
  }

  .packet__book_files a,
  .packet__book_files button {
    font-size: 0.9rem;
  }

  .packet__book_files .packet_link {
    font-size: 1.2rem;
  }

  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 1.4rem;
    max-width: 75ch;
  }

  .books_title {
    max-width: 70ch;
  }

  .packet__book_header {
    padding-bottom: 0;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1.7rem;
  }

  .packet__label {
    top: -18px !important;
  }

  /* .packet__item_container>.row {
    max-height: 730px;
  } */
}

@media (max-width: 1630px) {
  .packet__book_title {
    margin-top: 16px !important;
  }

  .packet__book_stack {
    margin-bottom: 40px;
  }

  .packet__book_stack .img-container {
    max-height: 420px;
    width: auto;
    max-width: 330px;
  }

  .books_digExpressions {
    gap: 16px;
  }

  .packet__book_stack #img-mask {
    height: 400px !important;
  }

  .packet__item .img-fluid {
    max-height: 210px;
    width: auto;
  }

  .packet__book_files p {
    margin-left: 0 !important;
  }

  .packet__book_files a,
  .packet__book_files button {
    font-size: 0.8rem;
    padding: 0 6px;
  }

  .packet__book_files img {
    height: 23px;
  }

  .packet__book_files .packet_link {
    font-size: 1.1rem;
    height: 45px;
    padding: 12px 9px;
  }

  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 1.3rem;
    max-width: 70ch;
  }

  .books_title {
    max-width: 65ch;
  }

  .packet__book_header {
    padding-bottom: 26px;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1.6rem;
  }

  .packet__label {
    top: -16px !important;
  }

  #items_wrapper .search-area {
    height: 55px;
  }

  /* .packet__item_container>.row {
    max-height: 540px;
  } */
}

@media (max-width: 1420px) {


  .packet__item .img-fluid {
    max-height: 190px;
    width: auto;
  }

  .packet__book_files button {
    font-size: 0.8rem;
  }


  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 1.2rem;
    max-width: 65ch;
  }

  .books_title {
    max-width: 60ch;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1.5rem;
  }

  .packet__label {
    top: -14px !important;
  }

  .packet__book_stack .img-container {
    max-height: 400px;
    max-width: 310px;
  }

  .packet__book_stack #img-mask {
    height: 380px !important;
  }
}

@media (max-width: 1458px) {
  .packet__item .img-fluid {
    max-height: max-content;
  }

  /* .packet__item.col-md-6 {
    width: 85%;
  } */

  .books_digExpressions {
    gap: 5px;
  }

  .packet__book_files .packet_link {
    font-size: 1rem;
    height: 40px;
    padding: 10px 2px;
  }

  .packet__book_files a,
  .packet__book_files button {
    font-size: 0.7rem;
    padding: 0 4px;
    height: 30px;
  }

  .packet__book_files img {
    height: 20px;
  }
}

@media (max-width: 1270px) {
  .packet__book_stack .img-container {
    max-height: 400px;
    width: auto;
    max-width: 280px;
  }

  .packet__book_stack #img-mask {
    height: 320px !important;
  }

  /* .packet__item_container>.row {
    max-height: 520px;
  } */

  .packet__book_files button {
    font-size: 0.7rem;
  }

  .packet__book_files .packet_link {
    font-size: 1.1rem;
  }

  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 1.1rem;
    max-width: 60ch;
  }

  .books_title {
    max-width: 55ch;
  }

  .packet__book_header {
    padding-bottom: 34px;
    padding-top: 32px;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1.4rem;
  }

  .packet__label {
    top: -12px !important;
  }

}

@media (max-width: 1120px) {
  .packet__book_stack .img-container {
    max-height: 260px;
    width: auto;
    max-width: 207px;
  }

  .packet__book_files {
    margin-right: -30px;
  }

  .packet__publisher>h3 {
    margin-left: 28px;
  }

  .packet__book_files {
    margin-left: 5px;

  }

  .packet__book_stack #img-mask {
    height: 260px !important;
  }

  .packet__book_stack {
    margin-top: 0px !important;
    margin-bottom: 15px;
  }

  .packet__book_files button {
    font-size: 0.6rem;
  }

  .packet__book_files .packet_link {
    font-size: 1rem;
  }

  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 1rem;
    max-width: 55ch;
  }

  .books_title {
    max-width: 50ch;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1.3rem;
  }

  .packet__label {
    top: -10px !important;
  }

  .packet__book_header {
    margin-left: 8px;
    padding-top: 24px;
  }

  .packet__publisher {
    margin-left: -32px;
    width: 118%;
  }

  /* .packet__item_container>.row {
    max-height: 530px;
  } */
}

@media (max-width: 970px) {
  .packet__book_stack .img-container {
    max-height: 300px;
    width: auto;
    max-width: 210px;
  }


  .packet__book_files .packet_link {
    font-size: 0.9rem;
  }



  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 0.9rem;
    max-width: 50ch;
    margin-left: 24px;
  }

  .books_title {
    max-width: 45ch;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1.2rem;
  }

  .packet__label {
    top: -8px !important;
  }

  /* .packet__item_container>.row {
    max-height: 480px;
  } */
}

@media (max-width: 920px) {


  .packet__book_title h3,
  .packet__publisher h3 {
    margin-left: 38px;
  }

  .books_digExpressions {
    gap: 0px;
  }
}

@media (max-width: 820px) {
  .packet__book_stack .img-container {
    max-height: 250px;
    width: auto;
    max-width: 175px;
  }

  .packet__book_stack #img-mask {
    height: 220px !important;
  }


  .packet__book_files .packet_link {
    font-size: 0.8rem;
  }

  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 0.8rem;
    max-width: 45ch;
    margin-left: 32px;
  }

  .books_title {
    max-width: 40ch;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1.1rem;
  }

  .packet__label {
    top: -6px !important;
  }

  .packet__publisher {
    margin-left: -31px;
    width: 120%;
  }

  .packet__book_files {
    margin-left: 0px;
  }

  /* .packet__item_container>.row {
    max-height: 430px;
  } */
}

@media (max-width: 767px) {


  #library__content {
    padding: 0 !important;
  }

  .packet__book {
    padding: 0 0 14px 0 !important;
  }

  .packet.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .packet__book_files {
    margin-right: 8px;
  }

  .packet__book_stack .img-container {
    max-height: unset;
    width: auto;
    max-width: 290px;
  }

  .packet__book_files img {
    height: 42px;
  }

  .packet__book_files a,
  .packet__book_files button {
    font-size: 0.7rem;
    padding: 24px 8px;
  }


  .packet__book_files button p,
  .books_digExpressions a p {
    font-size: 0.3rem;
  }

  .packet__book_files {
    margin-left: 0;
  }

  .packet__book_files .packet_link {
    font-size: 1.2rem;
    height: 52px;
    padding: 26px 14px;
  }

  .packet__book_title h3,
  .packet__publisher h3 {
    font-size: 0.7rem;
    max-width: 40ch;
  }

  .books_title {
    max-width: 35ch;
  }

  .packet__book_header {
    margin-left: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .packet__book_header h2,
  .packet__label h2 {
    font-size: 1rem;
  }

  .packet_book_header h3 {
    font-size: 1.2rem
  }

  .packet__label {
    top: -4px !important;
  }

  .packet__book_stack #img-mask {
    height: 400px !important;
  }

  .packet__book_files button p,
  .books_digExpressions a p {
    display: none;
  }

  .packet__publisher {
    margin-left: -11px;
    width: 103%;
  }

  .books_digExpressions {
    gap: 16px;
  }

  .bottom-images .owner-logo img {
    height: 180px;
    max-width: 100%;
    max-height: max-content;
  }

  .bottom-images .sponsor-logos img {
    height: 100px;
    width: auto;
    max-width: 100%;
    max-height: max-content;
  }
}


@media (max-width: 600px) {
  .hero .search-area {
    width: 90% !important;
  }
}

@media (max-width: 500px) {
  .packet__book_stack #img-mask {
    height: 366px !important;
  }

  .packet__book_stack .img-container {
    max-width: 220px;
  }
}

@media (max-width: 467px) {
  .packet__book_stack #img-mask {
    height: 214px !important;
  }

  .books_digExpressions {
    gap: 5px;
  }

  .packet__book_files img {
    height: 33px;
  }

  .packet__book_stack .img-container {
    max-width: 160px;
  }
}


@media (max-width: 378px) {
  .books_digExpressions {
    gap: 10px;
  }

  .packet__book_files img {
    height: 26px;
  }

  .packet__book_files .packet_link {
    font-size: 1rem;
    height: 46px;
    padding: 13px 10px;
  }

  .packet__book_files {
    margin-right: 0px;
  }

      .packet__book_files a, .packet__book_files button {
        font-size: 0.7rem;
        padding: 20px 6px;
    }



}



.packet__book_stack .img-container:hover {
  cursor: pointer;
  transform: translateY(-10px);
  /* z-index: 20 !important;
  opacity: 1 !important; */
}
/* keyboard focus on the inner <a> (modern browsers) */
.packet__book_stack .img-container:has(a:focus-visible) {
  transform: translateY(-10px);
  /* optional: a little elevation while focused */
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* fallback for older browsers: lift whenever anything inside is focused */
.packet__book_stack .img-container:focus-within {
  transform: translateY(-10px);
}

/* Highlight effect */
.packet__book_stack .img-container.active {
  transform: scale(1.06);
  cursor: pointer;
  z-index: 11;
}

/* first transparent image */
.packet__book_stack #img-mask {
  left: 0px;
  height: 545px;
  opacity: 0;
  z-index: 1;
  position: relative !important;
  pointer-events: none;
  /* Prevent interactions */
}

.packet__book_stack #img-mask:hover {
  transform: none !important;
  opacity: 0 !important;
  z-index: 1 !important;
}


.list-group-item[role="checkbox"][aria-checked="true"],
.list-group-item.selected {
  background-color: rgba(137, 209, 234, 0.2);
  border-left: 4px solid var(--focus-color);
}
.list-group-item[role="checkbox"]:focus-visible {
  outline: 3px solid #97bde4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Collections page spinner loader ── */
.custom_loader_spinner {
  width: 69px;
  height: 69px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #675e61;
  border-radius: 50%;
  animation: custom_spin 1s infinite linear;
}

@keyframes custom_spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#collections-page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#collections-page-loader.is-loading {
  display: flex;
}
