body.undernavigation #discovery-search {
  background-color: rgb(238, 232, 219);
  padding-top: 0;
}

#discovery-search .panel#facet_taxonPath {
  display: none;
}

#discovery-search #content {
  background-color: rgb(238, 232, 219) !important;
}

#discovery-search .search-container {
  background-position-y: 94%;
}


#discovery-search #homePageContainer {
  padding-top: 16px;
  padding-bottom: 50px;
}


#discovery-search .container {
  max-width: 100% !important;
}

#discovery-search .row {
  margin-left: 0;
  margin-right: 0;
}


/* Facets-Panels */



@media (max-width: 1627px) {
  [href="#auto-toggle-4"] h4 {
    display: none;

  }
    [href="#auto-toggle-4"]:before {
    content: "Τύπος βιβλίου";
    font-size: 1.3rem;
}
  .panel-heading a h4,.panel-heading h4 {
    font-size: 1.3rem;
  }
}
#facets{
  display: none;
}


#facets .panel {
  border: none;
  font-size: 19px;
  background-color: #fff;
  box-shadow: 0px 0px 4px 3px #9387877d;
  border-radius: 20px !important;
  margin-bottom: 20px !important;
}

#facets .panel-heading {
  border: none !important;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  transition: border-radius 0.5s ease;
  position: relative;
}

#facet_educational-rangeAge-min .panel-heading{
    border: none !important;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  padding: 19px 15px;
  display: grid;
  grid-template-columns: 9fr 1fr;
  align-items: center;
  justify-items: center;
  justify-content: space-between;
  transition: border-radius 0.5s ease;
  position: relative;
}

#facets .facet-expanded .panel-heading {
  border-radius: 20px 20px 0 0 !important;
}

#facets .facet-collapsed .panel-heading {
  border-radius: 20px !important;
}

.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.rotate-0 {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}


#facets .panel-heading a {
color: #fff;
    padding: 19px 15px;
    font-size: 24px;
    font-weight: 600;
    display: grid
;
    grid-template-columns: 9fr 1fr;
    align-items: center;
    justify-items: center;
    justify-content: space-between;
    transition: border-radius 0.5s
ease;
    position: relative;
}

.panel-heading .fa {
  transition: transform 0.5s ease;
  font-size: 2rem;
  color: #ffffff !important;
  position: relative;
  right: 5%;
  padding: 5px;
}

#facets .list-group {
  border-radius: 0 0 20px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
  overflow: hidden;
  padding-bottom: 10px;
}

#facets #facet_educational-context .list-group {
  padding-bottom: 0px;
}

#facets #tree {
  border-radius: none;
  box-shadow: none;

}

#facets .panel-heading{
  background-color: var(--panel-color) !important;
  background-image: none !important;

}


#facets .panel select#selectMinAge,
#facets .panel select#selectMaxAge {
  margin: 10px 10px 10px 3px;
}


.show-more-btn,
.show-less-btn {
  width: 100%;
  margin-top: 4px;
  padding: 6px 12px;
  background: var(--panel-secondary-color);
  color: #2b2b2b;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}






#discovery-search .treeview .node-disabled {
  display: none !important;
}


/* Facets-list & list-items */



#facets .list-group-item {
  border: none;
  padding: 2px 10px;
  margin-top: 3px;
  transition: border-left 0.3s linear;
  cursor: pointer;
  min-height: 39px;
  align-content: center;
}

#facets .list-group-item:hover {
  background: var(--panel-secondary-color-hover) !important;

}


li.list-group-item span .icon {
  width: 3px;
  margin-right: 12px;
}

li.list-group-item .badge {
    border: 2px solid var(--panel-secondary-color) !important;
    color: #575757 !important;
    font-size: 16px;
    float: right;
    position: relative;


}

#facets .list-group-item a {
  color: #404040 !important;
  text-decoration: none;
  border-bottom: none;
  position: relative;
  display: block;
  margin: 3px 0px;
}


#facets .list-group-item:hover a {
  color: var(--panel-text-color-hover) !important;
}


#facets .list-group-item.selected {
  background: var(--panel-secondary-color) !important;
  color: #404040 !important;
  border-radius: 0;
  font-weight: bold;
  padding-left: 10px;
}


#facets .list-group-item.selected a {
  color: #404040 !important;
}

#facets .list-group-item.selected .badge {
  border:2px solid #436f96 !important;
  background-color: #fff;
  color: #404040 !important;
}

.glyphicon {
  position: relative;
  top: 9px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-weight: 600;
  font-size: 42px;
  line-height: 0;
}

.glyphicon-minus:before {
  content: "\2212";
}

.glyphicon-plus:before {
  content: "\2b";
}

li.list-group-item.node-tree {
  color: var(--panel-text-color) !important;
}

li.list-group-item.node-tree :before {
  color: var(--panel-secondary-color) !important;
}

li.list-group-item.node-tree.node-selected :before {
  color: #404040 !important;
}

li.list-group-item.node-tree:hover {
  color: var(--panel-text-color-hover) !important;
  background-color: white !important;
}

li.list-group-item.node-tree.node-selected {
  background: var(--panel-secondary-color) !important;
  border-radius: 0 !important;
  padding-left: 10px !important;
  color: #404040 !important;
}

#facets .list-group-item.node-tree.node-selected .badge {
  background-color: #fff !important;
  color: #404040 !important;
  border: 2px solid #436f96 !important;
}

#facets .list-group-item.node-tree.node-selected:hover {
  background: var(--panel-secondary-color) !important;
  color: #404040 !important;
}


#facet_educational-rangeAge-min span {
  margin-left: 2.22%;
  color: var(--panel-text-color) !important;
  text-decoration: none;
}






.matrixItemsArea {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-auto-columns: 400px;
  gap: 36px 30px;
  justify-content: start;
}
@media (max-width: 400px) {
  .matrixItemsArea {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-columns: 300px;
    gap: 26px 20px;
    justify-content: start;
  }
}

.itemBoxContainer {
  margin-bottom: 0px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#display-item #BookItems.itemBoxContainer {
  margin-left: 0;
  margin-right: 0;
}

/* LO Items */

#LOitems {
  max-width: 448px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.3);
}

#LOitems .item_thumbnail {
  position: relative;
  display: inline-block;
  overflow: hidden;
  box-shadow: none;

}

#LOitems .item_thumbnail .thumbnail_container {
  overflow: hidden;
}


#LOitems .item_thumbnail .thumbnail_container img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  transform: scale(1.01);
  max-width: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 1.0);
  transition: transform 0.3s ease-in-out;
}

#LOitems .item_thumbnail .thumbnail_container img:hover {
  transform: scale(1.1);
}

#LOitems .item_metadata {
  padding: 8px 12px;

}

#LOitems .item_metadata .itemListMetaInfoArea {
  display: flex;
  justify-content: flex-end;
}
.itemListValue.itemListTitle.itemListTitleMatrix{
  background: #fff;
    padding: 10px 0px;
    margin: 16px 14px;
    border-radius: 30px;
    text-align: center;

}

#LOitems .itemListTitleMatrix a {
    font-size: 19px;
    color: var(--panel-text-color);
    text-align: center;
    margin: 0 5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#LOitems .itemListTitleMatrix a:hover {
  color: #3b3a3a;
  text-decoration: none;
}

#LOitems .itemActiveButtons {
  display: flex;
  gap: 22px;
}

#LOitems .itemActiveButtons img {
  height: 30px;
}


/* Books Items */

#BookItems {
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.32);
  border-radius: 10px;
  max-width: 452px;
}

#display-item #bookGrade {
  font-size: clamp(1.5rem, 2.5vw, 5.6rem);
}

#bookGrade {
  padding: 8% 6% 5% 5%;
  font-size: 2.2rem;
  font-weight: 500;
  color: #3a3a3a;
  display: flex;
  justify-content: space-around;
}

.bookGradeContainer {
  display: flex;
  width: 100%;
  background: linear-gradient(90deg, transparent 0 31%, white 0 100%);
  /* justify-content: space-between; */
  flex-direction: row;
  align-items: center;
  border-radius: 27px;
}

@media(max-width: 768px) {
  #bookGrade {
    font-size: 2.2rem;
  }
}

#bookGrade .bookGradeClass {
  width: 38%;
  padding: 2% 0;
  border-radius: 27px;
  text-align: center;
  z-index: 5;
  position: relative;
}

#bookGrade .bookGradeName {
  border-radius: 27px;
  padding: 1.8% 0% 1.9% 30%;
  margin-left: -29%;
  text-align: center;
  width: 80%;
}

#bookGrade .bookGradeImage {
  width: 38%;
  margin-right: 14px;
  padding: 11px 36px;
  border-radius: 29px;
  z-index: 5;
  position: relative;
  color: #fff;
}

#bookGrade img {
  height: 67px;
}


#BookItems.eduContext1 #bookGrade .bookGradeName {
  background-color: #fff;
  border-radius: 27px;
  padding: 1.8% 7% 2% 22%;
  margin: 0px 0px 0px -22%;
}

#BookItems .item_thumbnail a {
  display: block;
  position: relative;
  z-index: 1;
}

#BookItems .item_thumbnail,
#BookItems .book_thumbnail {
  position: relative;
  border-radius: 0;
  padding: 0 !important;
  overflow: hidden;

}
#BookItems .overlay {
    position: absolute;
    /* height: 200px; */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    display: flex;
    text-align: center;
    padding: 5px;
    height: 50%;
    bottom: 0;
    width: 100%;
    /* margin-top: -200px; */
    font-size: 26px;
    color: #fff;
    font-weight: 500;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

#BookItems a:hover .overlay,#BookItems a:focus-visible .overlay{
  opacity: 1;
}

.overlay .books_title {
  color: white;
  font-weight: 500;
  text-align: center;
  max-width: 90%;
  white-space: normal;
}

#BookItems .item_thumbnail img,
#BookItems .book_thumbnail img {
  border-radius: 0;
  transform: scale(1.01);
  border: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

#BookItems .item_metadata {
  border-radius: 0;
}



#LOitems.eduContext1 {
  background:
    linear-gradient(to bottom, var(--primary-color) 0 100px, #e2e2e2 100px 100%);
}

#LOitems.eduContext2 {
  background:
    linear-gradient(to bottom, var(--second-color) 0 100px, #e2e2e2 100px 100%);
}

#LOitems.eduContext3 {
  background:
    linear-gradient(to bottom, var(--third-color) 0 100px, #e2e2e2 100px 100%);
}

#LOitems.eduContext4 {
  background:
    linear-gradient(to bottom, var(--fourth-color) 0 100px, #e2e2e2 100px 100%);
}

#BookItems.eduContext1 #bookGrade .bookGradeImage {
  background: var(--primary-color-dark);
}

#BookItems.eduContext2 #bookGrade .bookGradeClass,
#BookItems.eduContext2 #bookGrade .bookGradeImage {
  background: var(--second-color-dark);
}

#display-item #BookItems #bookGrade .bookGradeImage {
  height: clamp(46px, 5vw, 173px);
}

#BookItems #bookGrade .bookGradeImage {
  height: 69px;
  padding: 11px;
}

#BookItems.eduContext3 #bookGrade .bookGradeClass,
#BookItems.eduContext3 #bookGrade .bookGradeImage {
  background: var(--third-color-dark);
}

#BookItems.eduContext4 #bookGrade .bookGradeClass,
#BookItems.eduContext4 #bookGrade .bookGradeImage {
  background: var(--fourth-color-dark);
}

#BookItems.eduContext1 {
  background: var(--primary-color);
}

#BookItems.eduContext2 {
  background: var(--second-color);
}

#BookItems.eduContext3 {
  background: var(--third-color);
}

#BookItems.eduContext4 {
  background: var(--fourth-color);
}

#BookItems .book_info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 6px 50px;
  gap: 20px;
  border-radius: 0 0 10px 10px;
  background: rgb(230, 230, 230);
}

#BookItems .book_info .book_digExpressions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

#BookItems .book_info .book_digExpressions a {
  color: #3a3a3a;
  text-align: center;
}

#BookItems .book_info .book_digExpressions a p {
  margin: 0;
}
@media (max-width: 768px) {
  #BookItems .book_info {
        padding: 10px 10px 10px 24px;
  }
  #BookItems .book_info .book_digExpressions a p{
    display: none;
  }
}

#BookItems .book_info .book_digExpressions a img {
  max-height: 46px;
}

#BookItems .book_info .book_digExpressions a.not-available {
  filter: grayscale(1);
  opacity: 0.5;
}


.list-group-item#educational-context_1:before {
  background-image: url("../../custom-images/nipio_normal_icon.svg") !important;
}

.list-group-item#educational-context_2:before {
  background-image: url("../../custom-images/dimotiko_normal_icon.svg") !important;
}

.list-group-item#educational-context_3:before {
  background-image: url("../../custom-images/gymn_normal_icon.svg") !important;
}

.list-group-item#educational-context_4:before {
  background-image: url("../../custom-images/geniko_likeio_normal_icon.svg") !important;
}

.list-group-item#educational-context_5:before {
  background-image: url("../../custom-images/epal_normal_icon.svg") !important;
}

.list-group-item#educational-context_6:before {
  background-image: url("../../custom-images/esper_lykeio_normal_icon.svg") !important;
}

.list-group-item#educational-context_7:before {
  background-image: url("../../custom-images/esper_epagel_lykeio_normal_icon.svg") !important;
}

.list-group-item#educational-context_8:before {
  background-image: url("../../custom-images/eidikiagogi_normal_icon.svg") !important;
}

.list-group-item#educational-context_9:before {
  background-image: url("../../custom-images/allo_normal_icon.svg") !important;
}

.list-group-item#educational-context_10:before {
  background-image: url("../../custom-images/diapolitist_gymn_normal_icon.svg") !important;
}

.list-group-item#educational-context_11:before {
  background-image: url("../../custom-images/diapolitist_lykeio_normal_icon.svg") !important;
}

.list-group-item#educational-context_12:before {
  background-image: url("../../custom-images/ekleis_gymn_normal_icon.svg") !important;
}

.list-group-item#educational-context_13:before {
  background-image: url("../../custom-images/ekleis_lykeio_normal_icon.svg") !important;
}

.list-group-item#educational-context_14:before {
  background-image: url("../../custom-images/ierospoudastirio_normal_icon.svg") !important;
}

.list-group-item#educational-context_15:before {
  background-image: url("../../custom-images/kallitexn_gymn_normal.svg") !important;
}

.list-group-item#educational-context_16:before {
  background-image: url("../../custom-images/kallitexn_lykeio_normal.svg") !important;
}

.list-group-item#educational-context_17:before {
  background-image: url("../../custom-images/meionotiko_gymn_normal.svg") !important;
}

.list-group-item#educational-context_18:before {
  background-image: url("../../custom-images/meionotiko_lykeio_normal.svg") !important;
}

.list-group-item#educational-context_19:before {
  background-image: url("../../custom-images/mousic_gymn_normal_icon.svg") !important;
}

.list-group-item#educational-context_20:before {
  background-image: url("../../custom-images/mousic_lykeio_normal_icon.svg") !important;
}

.list-group-item#educational-context_21:before {
  background-image: url("../../custom-images/protypo_gymn_normal_icon.svg") !important;
}

.list-group-item#educational-context_22:before {
  background-image: url("../../custom-images/protypo_lykeio_normal_icon.svg") !important;
}

.list-group-item#educational-context_23:before {
  background-image: url("../../custom-images/defteri_efkairia_normal_icon.svg") !important;
}

.list-group-item#educational-context_24:before {
  background-image: url("../../custom-images/ellinoglosi_ekpaideysi_normal_icon.svg") !important;
}

.list-group-item#educational-context_25:before {
  background-image: url("../../custom-images/domes_ypodoxis_normal_icon.svg") !important;
}

.list-group-item#educational-context_26:before {
  background-image: url("../../custom-images/europaiki_paideia_normal_icon.svg") !important;
}


.list-group-item.selected#educational-context_1:before {
  background-image: url("../../custom-images/nipio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_2:before {
  background-image: url("../../custom-images/dimotiko_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_3:before {
  background-image: url("../../custom-images/gymn_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_4:before {
  background-image: url("../../custom-images/geniko_likeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_5:before {
  background-image: url("../../custom-images/epal_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_6:before {
  background-image: url("../../custom-images/esper_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_7:before {
  background-image: url("../../custom-images/esper_epagel_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_8:before {
  background-image: url("../../custom-images/eidikiagogi_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_9:before {
  background-image: url("../../custom-images/allo_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_10:before {
  background-image: url("../../custom-images/diapolitist_gymn_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_11:before {
  background-image: url("../../custom-images/diapolitist_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_12:before {
  background-image: url("../../custom-images/ekleis_gymn_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_13:before {
  background-image: url("../../custom-images/ekleis_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_14:before {
  background-image: url("../../custom-images/ierospoudastirio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_15:before {
  background-image: url("../../custom-images/kallitexn_gymn_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_16:before {
  background-image: url("../../custom-images/kallitexn_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_17:before {
  background-image: url("../../custom-images/meionotiko_gymn_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_18:before {
  background-image: url("../../custom-images/meionotiko_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_19:before {
  background-image: url("../../custom-images/mousic_gymn_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_20:before {
  background-image: url("../../custom-images/mousic_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_21:before {
  background-image: url("../../custom-images/protypo_gymn_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_22:before {
  background-image: url("../../custom-images/protypo_lykeio_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_23:before {
  background-image: url("../../custom-images/defteri_efkairia_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_24:before {
  background-image: url("../../custom-images/ellinoglosi_ekpaideysi_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_25:before {
  background-image: url("../../custom-images/domes_ypodoxis_selected_icon.svg") !important;
}

.list-group-item.selected#educational-context_26:before {
  background-image: url("../../custom-images/europaiki_paideia_selected_icon.svg") !important;
}


.list-group-item[id^="educational-context_"]::before {
  content: "";
  background-repeat: no-repeat;
  display: block;
  position: relative;
  width: 37px;
  height: 35px;
  float: left;
}



/* ==============================
   No Results Component
   ============================== */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fefefe;
    color: #7b7b7b;
    border: 1px solid #ffffff3d;
    border-radius: 12px;
    padding: 40px 20px 0;
    margin: 0 auto;
    /* max-width: 800px; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease-in-out;
    max-width: 76%
}

.no-results[hidden] {
  display: none;
}

.no-results-icon {
  width: 33%;
  height: auto;
  opacity: 0.8;
}

.no-results-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.no-results-text {
  font-size: 1.2rem;
  color: #7b7b7b;
  max-width: 500px;
}

/* ==============================
   Error Message Component
   ============================== */
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border: 2px solid var(--panel-secondary-color);
  border-radius: 7px;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 800px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease-in-out;
  background-color: rgb(99 89 92);
}

.error-message[hidden] {
  display: none;
}

.error-icon {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.85;
}
.error-retry{
background: #fff;
    border: 2px solid #91c5d7;
    color: #000000;
    transition: all 0.3s
ease;
    text-decoration: none !important;
    font-size: 17px;
    padding: 10px;
    border-radius: 7px;
  }
.error-retry:hover,
.error-retry:focus-visible {
      background: #91c5d7;
    padding: 10px;
    text-decoration: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 7px;


}
.error-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.error-text {
  font-size: 1.2rem;
  color: #fff;
  max-width: 500px;
  margin-bottom: 20px;
}

#discovery-search .info-img{
  display: none;
}

/* ── Discovery 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); }
}

/* Full-page overlay shown during page navigation */
#discovery-page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

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