/* =========================
   Base & Utility
   ========================= */
* {
  font-family: 'Roboto Condensed', sans-serif !important;
}

:root {
  color: #222;

  --background-color: rgb(238, 232, 219);
  --panel-color: rgb(103, 94, 97);
  --panel-text-color: #5e5e5e;
  --panel-text-color-selected-hover: #757575;
  --panel-text-color-hover: #272727;
  --panel-secondary-color: #97bde4;
  --panel-secondary-color-hover: #CDDFF2;
  --panel-rev-color: rgb(250 248 244);

  --primary-color: #e3ad53;
  --primary-color-dark: #c47f12;
  --second-color: #9C91A6;
  --second-color-dark: #c4bfca;
  --third-color: #af735c;
  --third-color-dark: #cda89a;
  --fourth-color: #6f8ba1;
  --fourth-color-dark: #aebbc5;



  --card-bg-color: #9F9B92;
  --card-color-1: #8dafc2;
  --card-color-2: #D4B497;
  --card-color-3: #7F8967;


  --actions-background-color: #aeb390;
  --actions-buttons-color: #8b936d;


  --focus-color: #97bde4;                 /* primary ring */
  --focus-ring-outer: rgba(137,209,234,.35); /* soft halo for dark surfaces */
  --focus-outline-width: 3px;
  --focus-offset: 2px;
  --radius: 8px;
  --radius-sm: 14px;
  --gap: 1rem;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(0, 0, 0, 0.13);
  --accent: #6aa4ff;
  --success: #27d49e;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --ring: 0 0 0 3px color-mix(in oklab, var(--accent) 35%, transparent);

  --box-shadow: 0px 0px 8px 0px #0000006b;
  --box-shadow-inset: inset 0px 7px 7px -4px #00000050;
}


/* ===== Focus System (site-wide) ===== */


/* 2) Remove mouse/touch outlines, keep keyboard (focus-visible only) */
:where(*):focus { outline: none; }
:where(*):focus:not(:focus-visible) { outline: none; }

/* 3) Apply a strong, consistent ring to all interactive elements */
:where(
  a[href], area[href],
  button, [role="button"],
  input, select, textarea,
  summary, details[role="button"],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-style: auto;
  outline-offset: var(--focus-offset);
  /* subtle outer halo so the ring shows up on dark/busy backgrounds */
  box-shadow: 0 0 0 calc(var(--focus-outline-width) + var(--focus-offset))
              var(--focus-ring-outer);
}

/* 4) Inputs — keep borders + add inner glow for visibility */
:where(input, select, textarea):focus-visible {
  box-shadow:
    0 0 0 calc(var(--focus-outline-width) + var(--focus-offset)) var(--focus-ring-outer),
    0 0 0 1px var(--focus-color) inset;
}

/* 5) Group focus (useful for input groups, cards, menus) */
:where(.focus-within, .card, .menu, .fieldset):focus-within {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: var(--focus-offset);
}

/* 6) Skip link pattern */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: #111; padding: .5rem 1rem;
}
.skip-link:focus-visible { left: 1rem; top: 1rem; z-index: 10000; }

/* 7) High Contrast Mode — let the OS draw its focus ring */
@media (forced-colors: active) {
  :where(*):focus-visible {
    outline: 2px solid CanvasText; /* uses system color */
    box-shadow: none !important;
  }
}

/* 8) Users needing extra contrast/thicker ring */
@media (prefers-contrast: more) {
  :root { --focus-outline-width: 4px; --focus-ring-outer: rgba(137,209,234,.5); }
}

/* 9) Motion-reduced users */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}




/* Unified message component */


.app-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgb(89, 89, 89);
  font-size: 1.2rem;
  background-color: #fff;
  border-radius: 7px;
  padding: 40px 20px;
  margin: 240px auto 60px;
  max-width: 900px;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: opacity .3s ease-in-out;
}

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

.app-message__title {
  color:rgb(123, 123, 123);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.app-message__text {
  line-height: 1.6;
  margin: 0 0 20px;
}

.app-message__text a{
  border-bottom: 1px solid var(--focus-color);
}
.app-message__text a:hover{
    color: var(--focus-color);
  border-bottom: 2px solid var(--focus-color);
}

/* Lists inside the message */
.app-message ul {
  line-height: 1.6;
  margin: 0 0 16px;
  padding-left: 1.2rem;
  /* keep list left-aligned while container is centered */
  text-align: left;
}

.app-message__button,
.app-message__link {
  display: inline-block;
  background-color: #63595c;
  color: #fff;
  text-decoration: none !important;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 7px;
  position: relative;
  cursor: pointer;
  /* Transition only the properties we actually change */
  transition:
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease,
    opacity .2s ease;
  will-change: transform, box-shadow;
  overflow: hidden; /* for the static overlay */
}

/* subtle static gloss overlay that just fades in/out */
.app-message__button::before,
.app-message__link::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  opacity: 0;                 /* start hidden */
  transition: opacity .2s ease;
}

/* hover: tiny lift, gentle highlight, soft ring */
.app-message__button:hover,
.app-message__link:hover {
  transform: translateY(-1px);
  background-color: #6c6265;  /* slightly lighter */
  box-shadow:
    0 6px 14px rgba(0,0,0,.16),
    0 0 0 1px rgba(255,255,255,.06) inset;
}

.app-message__button:hover::before,
.app-message__link:hover::before {
  opacity: 1;                 /* fade in overlay */
}

/* active: settle back a touch */
.app-message__button:active,
.app-message__link:active {
  transform: translateY(0);
  box-shadow:
    0 3px 8px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.06) inset;
}

/* accessible focus */
.app-message__button:focus-visible,
.app-message__link:focus-visible {
  outline: 2px solid #e9d5ff;
  outline-offset: 2px;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .app-message__button,
  .app-message__link {
    transition: background-color .2s ease, box-shadow .2s ease;
  }
  .app-message__button:hover,
  .app-message__link:hover {
    transform: none;
  }
  .app-message__button::before,
  .app-message__link::before {
    transition: opacity .2s ease;
  }
}




/* =========================
  Manuals
   ========================= */

  .manuals {
    padding: clamp(80px, 10vw, 100px) clamp(20px, 5vw, 60px) clamp(20px, 4vw, 40px);
  }
  #manuals-heading {
    margin: clamp(60px, 8vw, 120px) 0 clamp(30px, 5vw, 60px);
    text-align: center;
}


  .manuals-grid {
display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    max-width: 650px;
    margin: 0 auto;
    justify-items: center;
  }

  /* Force two columns on medium+ screens, stack on small screens */
  @media (max-width: 720px) {
    .manuals-grid {
      grid-template-columns: 1fr;
    }
  }

  .manual-card {
    max-width: 600px;
    background: rgb(103 94 97 / 50%);
    color: #fff;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border-radius: var(--radius);
    overflow: clip;
    box-shadow: 0 0px 16px rgba(0, 0, 0, .20);

        padding: 18px 12px 0;

  }

  .manual-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
  }

  /* Strong, accessible focus style */
  .manual-link:focus-visible {
    box-shadow: 0 0 0 4px color-mix(in oklab, Highlight 60%, transparent);
  }

  .manual-figure {
    display: grid;
    grid-template-rows: 1fr auto;
    background: var(--panel-color);
    margin: 0;
    border-radius: var(--radius);
    min-height: 100%;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.3);
  }

  .manual-figure img {
    width: 100%;
    object-fit: cover;
    display: block;
  }

  .manual-caption {
    padding: 0.75rem 1rem 1rem;
  }

  .manual-title {
    font-size: clamp(1.1rem, 1.2vw + .8rem, 1.5rem);
    line-height: 1.2;
    margin: 0;
    text-align: center;
  }

  /* Respect reduced motion preferences */
  @media (prefers-reduced-motion: no-preference) {
    .manual-card {
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .manual-card:hover,.manual-card:has(.manual-link:focus-visible) {
      transform: translateY(-2px);
      box-shadow: 0px 0px 26px rgba(0, 0, 0, 0.40);
    }
  }








a {
  color: inherit;
  text-decoration: none;
}

.fa,
.far,
.fas {
  font-family: "Font Awesome 5 Free" !important;
}

.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hidden {
  display: none !important;
}

.show {
  display: block !important;
}

#libraryFilters .skeleton-loader {
  display: block;
}

.skeleton-loader {
  display: none;
  width: 100%;
  padding: 20px;
}

.skeleton-loader .skeleton.book-title {
  height: 32px;
  width: 70%;
  margin-bottom: 15px;
}

.skeleton-loader .skeleton.book-stack {
  height: 545px;
  width: 1200px;
  margin-bottom: 20px;
}

.skeleton-loader .skeleton.publisher {
  height: 24px;
  width: 40%;
  margin: 15px 0;
}

.skeleton-loader .packet__items {
  background: #fdfdfd;
  padding: 20px;
  border-radius: 8px;
}

.skeleton-loader .packet__item {
  margin-bottom: 20px;
}

.skeleton-loader .skeleton.thumb {
  height: 180px;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
}

.skeleton-loader .skeleton.text {
  height: 16px;
  width: 80%;
  margin: 8px auto;
}

.skeleton {
  background: linear-gradient(45deg,
      #e0e0e0 25%,
      #c8c8c8 50%,
      #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmmerDL 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmmerDL {
  100% {
    background-position: -200% 0;
  }
}



.dig_library .loggedOutContainer {
  background-color: rgb(99 89 92);
  border: 2px solid var(--panel-secondary-color);
  color: #ffffff;
  margin: 20% auto 0;
}

.dig_library .loggedOutContainer h1 {
  color: #ffffff !important;
}

.dig_library .loggedOutContainer a {
  color: #c0efff;
  text-decoration: underline !important;
}

.dig_library .callActionBtn a {
  background: #fff;

  border: 2px solid var(--panel-secondary-color);
  color: #000000;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.dig_library .callActionBtn a:hover,.dig_library .callActionBtn a:focus-visible {
  background: var(--panel-secondary-color);
  padding: 10px;
  text-decoration: none;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 7px;
}



#header-section {
  position: absolute;
  width: 100%;
  z-index: 2;
}

#display-item #header-section {
  position: relative;

}

#header-section .navbar {
  width: 100%;
  font-family: "Roboto Condensed", sans-serif !important;
  font-weight: 400;
  gap: 2rem;
  height: 158px;
  background-color: rgba(52, 42, 50, 0.75);
  /* Dark background */
  color: white;
  display: flex !important;
  align-items: normal !important;
  justify-content: space-evenly !important;
  padding-bottom: 1.6rem !important;
  flex-wrap: nowrap !important;
}

#header-section .navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#header-section .navbar-left img {
  height: 116.8px;
  margin-right: 2rem !important;
}

#header-section .logo-text {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-size: clamp(0.8rem, 1vw, 1.1rem);
  line-height: 1.2;

}

#header-section .logo-text .top {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: #E0F3F8;
}

#header-section .logo-text .bottom {
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  color: var(--focus-color);
  letter-spacing: 0.1em;
}

#header-section .navbar-center {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
  position: relative;
  bottom: -26px;
  left: -28px;
}

#header-section .navbar-center a {
  color: white;
  text-decoration: none;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  position: relative;
  padding: 0 0.5rem;
  transition: color 0.3s ease;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}

#header-section .navbar-center .dropdown {
  display: inline-block;
}
@media (max-width: 1137px) {
  #header-section .navbar-center .dropdown{
   margin-right: 2rem;
  }
}

#header-section .navbar-center .dropdown .dropdown-menu {
  background-color: rgba(52, 42, 50, 0.75);
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, 45px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  display: block;
  border-radius: 0px 0px 10px 10px !important;
  margin-top: 0 !important;
  padding-top: 8px !important;
  border: none !important;
}

#header-section .navbar-center .dropdown .dropdown-menu.show {
  position: absolute;
  opacity: 1;
  pointer-events: auto;
  transform: translate(5px, 45px) !important;
  inset: auto !important;
  border-radius: 0px 0px 10px 10px !important;
  display: none;
}

#header-section .navbar-center .dropdown:hover .dropdown-menu {
  position: absolute;
  opacity: 1;
  pointer-events: auto;
  transform: translate(5px, 45px) !important;
  inset: auto !important;
  border-radius: 0px 0px 10px 10px !important;
  display: none;
}

#header-section .navbar-center .dropdown:hover .dropdown-menu {
  position: absolute;
  opacity: 1;
  pointer-events: auto;
  transform: translate(5px, 45px) !important;
  inset: auto !important;
  border-radius: 0px 0px 10px 10px !important;
}


#header-section .navbar-center .dropdown .dropdown-menu .dropdown-item {
  background-color: transparent;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

#header-section .navbar-center a:hover {
  color: var(--focus-color);
  border-bottom: 1px solid var(--focus-color);
}

#header-section .navbar-center .dropdown-toggle {
  color: white;
  text-decoration: none;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  padding: 0 0.5rem;
  cursor: pointer;
}

.navbar-center .dropdown-toggle .dropdown-icon {
  height: 0.7rem;
  margin-left: 0.3rem;
}

#header-section .navbar-center .dropdown-toggle:after {
  margin-left: 0 !important;
  display: inline-block !important;
  vertical-align: 0 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: 0 !important;
  border-left: none !important;
  height: 29px !important;
  top: 55% !important;
}
@media (max-width: 1137px) {
  #header-section .navbar-center .dropdown-toggle:after {
    content: "";
    position: absolute;
    right: -1rem;
    transform: translateY(-50%);
    height: 100% !important;
    width: 1.9px;
    background-color: var(--focus-color);
    right: -0.5rem !important;
    top: 55% !important;
  }
}

#header-section .navbar-center .divider {
  height: 29px;
  width: 2px;

  background-color:var(--focus-color);
}

#header-section .navbar-right {
  display: flex;
  align-items: center;
}

#header-section .navbar-right img {
  max-height: 116px;
  width: 100%;
  margin-top: 14px;
  filter: drop-shadow(2px 4px 6px black);
}

#header-section .login-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--focus-color);
  color: #433C42;
  padding: 0.5rem 1.9rem 0.5rem 0.9rem;
  border-radius: 9px;
  text-decoration: none;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 400;
  margin-top: 48px;
  letter-spacing: 0.5px;
  line-height: 39.8px;
  transition: filter 0.3s ease;
  display: none;
}

#header-section .login-btn:hover {
  filter: brightness(0.9);
}

#header-section .login-btn #login-icon {
  height: 1.65rem;
  margin-right: 0.5rem;
}



/* Strong, visible keyboard focus */
#header-section a:focus-visible,
#header-section button:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Disabled nav links: not focusable/clickable, visually dimmed */
#header-section .not-available[aria-disabled="true"], .not-available [aria-disabled="true"]  {
  pointer-events: none;
  opacity: .55;
  cursor: not-allowed;
}


/* Keep toggle text accessible */
#header-section .navbar-center .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  padding: 0 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}
@media (max-width: 1137px) {
  #header-section .navbar-center .dropdown-toggle {
    flex-direction: row-reverse;
    gap: 8px;
  }
}

/* The popup: SOLID background for dependable contrast (no opacity) */
#header-section .navbar-center .dropdown .dropdown-menu {
  position: absolute;
  z-index: 1000;
  min-width: 16rem;
  margin-top: .25rem;
  padding: .25rem 0;
  /* Solid color ensures high contrast with white text */
  background-color: #342A32;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

/* Hide with [hidden] so SRs and keyboard are correct */
#header-section .navbar-center .dropdown .dropdown-menu[hidden] {
  display: none !important;
}

/* Menu items */
#header-section .navbar-center .dropdown .dropdown-item {
  display: block;
  padding: .6rem .9rem;
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.95rem, 1vw, 1rem);
}

/* Hover/active states keep good contrast */
#header-section .navbar-center .dropdown .dropdown-item:hover,
#header-section .navbar-center .dropdown .dropdown-item[aria-current="true"] {
  background: rgba(255, 255, 255, .08);
}

.navbar-center .dropdown-toggle .dropdown-icon {
  height: 0.7rem;
  margin-left: 0.3rem;
}

/* Remove legacy hover-to-open & opacity tricks */
#header-section .navbar-center .dropdown .dropdown-menu.show,
#header-section .navbar-center .dropdown:hover .dropdown-menu {
  /* no-op: behavior handled in JS via [hidden] */
}

/* Optional: users with reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}





#content {
  background-color: var(--background-color);
  padding-bottom: 0px;
}

/* hero section */
.hero {
  position: relative;
  z-index: 1;
}

#collections-dig_library .hero .container-fluid.search-container {
  background: url("../../custom-images/search_packet_banner.jpg") center/cover no-repeat;
  background-position: center;

}

.hero__content .search-area {
  top: 58%;
  float: right;
  width: 41%;
  right: 5%;
}

/* Style for the search area container */
.search-container {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  max-height: 43vh;
  min-height: 370px;

  display: flex;
}

.search-container .search-header .search-title {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.9px;
  filter: drop-shadow(2px 4px 6px black);
}


.homeSearchForm {
  display: flex;
  flex-direction: row-reverse;
  /* flex-wrap: wrap; */
  /* align-content: center; */
  justify-content: space-evenly;
  align-items: center;
  /* position: relative;
  gap: 8%; */
}

@media (max-width: 576px) {
    .homeSearchForm {
        flex: 0 0 auto;
        width: 100%;
    }
}



#community-list-page .search-area {
  margin: 0 auto 46px;
}

.search-area {
  /* max-width: 800px; */
  position: relative;
  top: 20%;
  width: 40%;
}

/* .homeSearchForm .search-area{
  display: flex;
  justify-content: end;
} */

.resetFilters {
  width: 200px;
  gap: 10px;
  background-color: var(--panel-rev-color) !important;
  color: var(--panel-color) !important;
  border: none !important;
  border-radius: 14px;
  margin-bottom: 17px;
  padding: 10px 0px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-items: center;
  justify-content: center;
  position: relative;
  align-items: center;
  cursor: pointer;
  box-shadow: 0px 0px 4px 3px #9387877d;
}

.resetFilters:hover {
  filter: contrast(1.2);
  transition: filter 0.3s ease;
}



.search-area .sform.discForm {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: end;
}

/* Style for the search input */
.search-area .form-control {
  display: flex;
  align-items: center;
  height: 70px;
  border: 1px solid #b4b4b4;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: clamp(1.2rem, 2vw, 1.625rem);
  color: #686868 !important;
  outline: none;
  box-sizing: border-box;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.75);
}

.search-area .form-control:focus {
  background-color: #fff;
  transition: background-color 0.3s ease;
  border-color: var(--third_section-color);
}

.search-area .form-control::placeholder {
  color: #686868 !important;
  font-style: italic;
  height: 48px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  position: relative;
  top: -2px;
}

.search-area input[type="text"] {
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(70px, 12vw, 98px);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* Style for the search button */
.search-area .search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  height: 60px;
  width: 60px;
  background-color: #ffffff00;
  color: #1b1b1b;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  transition: transform 0.3s ease;
}

/* Hover effect for the button */
.search-area .search-btn:active {

  color: #fff;
  background-color: var(--third_section-color-dark);
  transform: scale(0.95) translateY(-50%);
}



/* Style for the Font Awesome search icon */
.search-area i.fas {
  font-family: 'Font Awesome 5 Free' !important;
  font-size: clamp(1.5rem, 2vw, 2.125rem);
}

.search-container .search-header {
  /* margin-right: 30px; */
  position: relative;
  top: 20%;
  text-align: center;
}

/* /hero section */


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

#header-section .navbar-center{
  display: flex !important;
}
@media (max-width: 1736px) {
  #header-section .navbar {
    flex-direction: row;
    align-items: center;
    height: 130px;
    padding-bottom: 1rem !important;
  }

  #header-section .navbar-left {
    justify-content: flex-start;
    width: max-content;
  }

  #header-section .navbar-left img {
    height: 100px;
    margin-right: 1rem !important;
  }

  #header-section .navbar-center {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    position: relative;
    bottom: -22px;
    left: -18px;
  }

  #header-section .navbar-center a,
  #header-section .navbar-center .dropdown-toggle {
    /* font-size removed */
    padding: 0 0.5rem;
  }

  #header-section .navbar-right {
    align-self: center;
    margin-top: 0;
  }

  #header-section .login-btn {
    /* font-size removed */
    padding: 0.3rem 1.5rem 0.3rem 0.6rem;
  }

  #header-section .login-btn #login-icon {
    height: 1.4rem;
  }
}

@media (max-width: 1479px) {
  #header-section .navbar {
    height: 130px;
    padding-bottom: 1rem !important;
  }

  #header-section .navbar-left img {
    height: 95px;
    margin-right: 0.5rem !important;
  }

  #header-section .navbar-center {
    gap: 1rem;
    left: 0px;
  }

  #header-section .navbar-center a:not(:last-child)::after {
    right: -0.5rem !important;
  }

  #header-section .login-btn {
    /* font-size removed */
    padding: 0.3rem 1.6rem 0.3rem 1.2rem
  }

  #header-section .login-btn #login-icon {
    height: 1.2rem;
  }


}

@media (max-width: 1400px) {
  #header-section .navbar {
    height: 120px;
    gap: 1rem !important;
  }

  #header-section .navbar-left img {
    height: 90px;
    margin-right: 0rem !important;
  }

  #header-section .navbar-center {
    gap: 0.8rem;
  }



  #header-section .login-btn {
    /* font-size removed */
    padding: 0.2rem 1.4rem 0.2rem 0.5rem;
  }
}

/* .search-area .sform.discForm {
  width: 700px;
} */

@media (max-width: 1291px) {
  #header-section .navbar {
    height: 110px;
  }

  #header-section .navbar-left img {
    height: 83px;
  }



  #header-section .login-btn {
    /* font-size removed */
    padding: 0.2rem 1.2rem 0.2rem 0.5rem;
  }

  #header-section .navbar-right img {
    max-height: 80px;
  }

  .search-area .form-control::placeholder {
    /* font-size removed */
  }

  #facets .panel-heading h4 {
    /* font-size removed */
  }
}

@media (max-width: 1216px) {


  #header-section .login-btn {
    /* font-size removed */
    padding: 0rem 0.9rem 0rem 0.4rem;
  }

  #header-section .login-btn #login-icon {
    height: 1rem;
    margin-right: 0.3rem;
  }
}

@media (max-width: 1137px) {
  #header-section .navbar {
    flex-direction: column;
    align-content: space-between !important;
    padding-bottom: 0.5rem !important;
    gap: 0.5rem;
    position: relative;
  }

  #header-section .navbar-center .divider {
    display: none;
  }

  #header-section .navbar-center {
    opacity: 0;
    /* Hide nav links by default */
    pointer-events: none;
    /* Disable pointer events */
    flex-direction: column-reverse;
    align-items: end;
    height: fit-content;
    gap: 1.2rem;
    left: auto;
    right: 0;
    top: 110px;
    width: fit-content;
    position: absolute;
    background: rgba(52, 42, 50, 0.75);
    z-index: 10;
    padding: 1.2rem 0 1.2rem 1rem;
    flex-wrap: nowrap;
    transition: opacity 0.4s ease-in-out;
  }

  #header-section .navbar-center a {
    margin-right: 2rem
  }

  #header-section .navbar-center a::after {
    content: "";
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 85%;
    width: 1.9px;
    background-color: var(--focus-color);
    right: -0.5rem !important;
  }

  #header-section .navbar-center.show {
    display: flex !important;
    /* Show when toggled */
    opacity: 1;
    /* Hide nav links by default */
    pointer-events: auto;
    /* Disable pointer events */
  }

  #header-section .navbar-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding: 0.7rem 1.2rem 0.7rem 0;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff !important;
    font-size: clamp(1.5rem, 2vw, 2rem);
    z-index: 20;
  }
  #header-section .navbar-hamburger .fa,
  #header-section .navbar-hamburger .far,
  #header-section .navbar-hamburger .fas {
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: #fff;
  }

  #header-section .navbar-center a,
  #header-section .navbar-center .dropdown-toggle {
    /* font-size removed */
    padding: 0rem;
  }

  #header-section .navbar-center .dropdown .dropdown-menu {
    opacity: 0;
    pointer-events: none;
    transform: translate(-39px, 11px) !important;
    inset: auto !important;
    border-radius: 0px 0px 0px 0px !important;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 14px;

  }

  #header-section .navbar-center .dropdown .dropdown-menu.show {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 14px;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-39px, 11px) !important;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    display: block;
    border-radius: 0px 0px 0px 0px !important;
    margin-top: 0 !important;
    padding-top: 8px !important;
    border: none !important;
  }

  #header-section .navbar-center .dropdown .dropdown-menu .dropdown-item {
    /* font-size removed */
    padding: 0.5rem 1rem;
  }

  #header-section .navbar-right {
    align-self: flex-end;
    position: relative;
    top: -85px;
  }

  #header-section .navbar-right img {
    max-height: 72px;
    margin-top: 3px;
    margin-right: 1rem;
  }

  #header-section .login-btn {
    /* font-size removed */
    padding: 0rem 0.9rem 0rem 0.4rem;
    margin-top: 0rem;
    margin-right: 0.5rem;
  }
}

/* @media (max-width:1000px) {
  .search-area .sform.discForm {
    width: 500px;
  }
} */
 @media (max-width: 600px) {
    #header-section .navbar-right img {
      margin-right: 0;
    }
  }

@media (max-width: 500px) {


  #header-section .navbar-left img {
    padding-top: 13px;
    height: 80px;
  }

  #header-section .navbar-right img {
    max-height: 49px;
  }


  #header-section .navbar-right {
    align-self: flex-end;
    position: relative;
    flex-direction: column;
    top: -96px;
  }
}

/* Hide hamburger on large screens */
#header-section .navbar-hamburger {
  display: none;
}

#homePageContainer {
  min-height: 700px;
  padding: 0;
}





/* =========================================================
   RESULTS SUMMARY (chip)
   ========================================================= */
.discovery-result-pagination {
  border-radius: 10px;
  margin-bottom: 17px !important;
  font-weight: 600;
  background: none;
  /* explicit */
}

.discovery-result-pagination .alert {
  background: linear-gradient(180deg, color-mix(in oklab, var(--card) 85%, transparent), var(--card));
  color: var(--panel-text-color);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.discovery-result-pagination .alert:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--success) 20%, transparent);
}

/* Info alert text sizing/brand color */
.discovery-result-pagination .alert.alert-info {
  max-width: max-content;
  background: none !important;
  border: none;
  box-shadow: none;
  color: var(--panel-color);
  padding: 4px 12px;
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Spacing utilities inside summary row */
.col-md-12.discovery-result-pagination .row {
  width: 100%;
}

/* =========================================================
   CONTROLS PANEL
   ========================================================= */
.discovery-pagination-controls {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

/* Brand variant (when rendered as .panel-footer) */
.discovery-result-pagination .discovery-pagination-controls.panel-footer {
  border: none;
  padding: 4px 10px;
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  max-width: max-content;
}

/* Layout */
.discovery-pagination-controls form fieldset {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .discovery-pagination-controls form {
    grid-template-columns: 1fr 1fr;
  }
}

/* Labels */
.discovery-pagination-controls label {
  font-size: 1.1rem;
  color: var(--panel-text-color);
}

/* =========================================================
   NATIVE SELECTS
   ========================================================= */
.discovery-pagination-controls select,
#facets .panel select#selectMinAge,
#facets .panel select#selectMaxAge {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--panel-rev-color) 85%, transparent), var(--panel-rev-color));
  color: var(--panel-color);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.2;
  font-size: 1rem;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .03);
  transition: border-color .15s ease, transform .06s ease;
  background-image:
    url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
}

.discovery-pagination-controls select:hover,
#facets .panel select#selectMinAge:hover,
#facets .panel select#selectMaxAge:hover {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));

}

.discovery-pagination-controls select:focus,
#facets .panel select#selectMinAge:focus,
#facets .panel select#selectMaxAge:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.discovery-pagination-controls select:active,
#facets .panel select#selectMinAge:active,
#facets .panel select#selectMaxAge:active {
  transform: translateY(1px);
}

/* Optional: native <option> theming (UA support varies) */
.discovery-pagination-controls select option,
#facets .panel select#selectMinAge option,
#facets .panel select#selectMaxAge option {
  background-color: var(--panel-rev-color);
  color: var(--panel-color);
}

.discovery-pagination-controls select option:focus,
#facets .panel select#selectMinAge option:focus,
#facets .panel select#selectMaxAge option:focus {

  filter: contrast(1.2);
  background-color: rgb(103, 94, 97);
  color: #fff;

}

.discovery-pagination-controls select option:checked,
#facets .panel select#selectMinAge option:checked,
#facets .panel select#selectMaxAge option:checked {
  filter: contrast(1.2);
  background-color: rgb(103, 94, 97);
  color: #fff;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.paginationRow {
  display: grid;
  justify-content: center;
  margin-top: 36px;
  /* unified with your override */
}

.pagination {
  display: inline-flex;
  gap: 0px;
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  color: var(--panel-text-color);
}

.sidebar.sorting {
  display: none;
}

.sorting {
  background: var(--panel-rev-color) !important;
  border: none;
  color: var(--panel-text-color);
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  box-shadow: 0px 0px 4px 3px #9387877d;
  justify-content: space-between;
}

@media (max-width: 1200px) {
  .col-xl-9 .sorting {
    display: none;
  }

  .sidebar {
    display: flex !important;
    align-items: center;
    flex-direction: column;
  }

  .sidebar form {
    display: flex;
    align-items: center;
    flex-direction: column;

  }
}

.sorting .pagination {
  box-shadow: var(--shadow);
}

.pagination>li {
  list-style: none;
}

.pagination>li>a,
.pagination>li>span {
  position: relative;
  float: left;
  text-decoration: none;
  line-height: 1.428571429;
  padding: 0.1rem 0.7rem;
  margin-left: -1px;
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #000;
  background:
    radial-gradient(140% 140% at 0% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 40%),
    #fff;
  /* keep Bootstrap look for contrast */
  transition: transform .08s ease, border-color .15s ease, background .2s ease, color .2s ease;
  padding: 0 clamp(1px, 1vw, 6px);
  height: 32px;
  min-width: clamp(26px, 2vw, 70px);
  border: none;
  border-radius: 0;
}

.pagination>li>a:hover {
  transform: translateY(-1px);
  color: var(--panel-text-color-hover);
  border-color: color-mix(in oklab, var(--accent) 55%, #ddd);
}

.pagination>.active>span,
.pagination>.active>a {
  background: var(--panel-color) !important;
  border-color: var(--panel-color) !important;
  color: #fff !important;
}

.pagination>li:first-child>a,
.pagination>li:last-child>a,
.pagination>li:first-child>span,
.pagination>li:last-child>span {
  padding: 0 16px;
  min-width: 64px;
}

.pagination>li>a:focus {
  outline: none;
  box-shadow: var(--ring);
}

.pagination .disabled span,
.pagination .disabled a,
.pagination .disabled a:hover,
.pagination .disabled a:focus {
  color: #545454 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  background-color: #fff !important;
  border-color: #ddd !important;
}

/* =========================================================
   MISC
   ========================================================= */
.close-filters {
  display: none;
}

/* Motion prefs */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}


/* overlay tablet menu */

@media(max-width:1199px) {
  .homeSearchForm {
    flex-direction: column-reverse;
    /* align-content: center; */
    justify-content: center;
    gap: 0;
  }

  .search-area {
    width: 60%;
  }

  /* .search-area .sform.discForm
  {
    width: 70%
  } */
}



/* Βασικό: κρυφό overlay και κουμπί by default */
.filters-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  transition: opacity 200ms ease;
  opacity: 0;
}

.filters-toggle {
  display: none;
  /* θα εμφανιστεί σε μικρές οθόνες */
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1050;
  background: var(--panel-rev-color);
  color: var(--panel-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: -46px;
}

.filters-toggle:hover {
  filter: contrast(1.2);
  transition: filter 0.3s ease;
}

/* Στυλ για το aside σε mobile όταν ανοίξει */
#libraryFilters {
  transition: transform 240ms ease, opacity 240ms ease;
  max-width: 500px;
  padding-right: 0;
}


@media (max-width: 1199px) {

  /* Απόκρυψη της aside από το φυσικό flow (εμφανίζεται μόνο ως overlay όταν ανοίξει) */
  #libraryFilters {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    max-width: 400px;
    /* όριο που ζήτησες */
    transform: translateX(-110%);
    /* κρυφό αρχικά έξω από την οθόνη */
    background: #f7f2ec;
    /* κράτησα το απαλό background παρόμοιο με screenshot */
    z-index: 1060;
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    padding: 18px;
  }

  /* Εμφάνιση κουμπιού Φίλτρα */
  .filters-toggle {
    display: block;
    position: sticky;
    max-width: 100px !important;
    border-radius: 25px;
    margin-top: 10px !important;
    margin-bottom: 20px;
    font-weight: normal;
  }

  /* Όταν ανοίγει: overlay εμφανές και aside μετακινείται στην οθόνη */
  .filters-overlay.show {
    display: block;
    opacity: 1;
  }

  #libraryFilters.show {
    transform: translateX(0);
    opacity: 1;
    max-width: 400px;
  }

  /* Προαιρετικό: μικρό X κουμπί μέσα στην aside για κλείσιμο */
  #libraryFilters .close-filters {
    display: block;
    top: 15px;
    left: auto;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    color: #675E61;
  }

  #libraryFilters .facetsBox {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .search-area {
    width: 80%;
  }
}

@media (max-width: 500px) {
  #libraryFilters {
    max-width: 100% !important;
  }
}