
  /* Overlay and Search Box Styles */
  #search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  
  #search-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .overlay-content {
    text-align: center;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    max-width: 800px;
    width: 80%;
    box-shadow: 0 4px 10px var(--color-accent);
  }
  
  #search-overlay .overlay-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  #search-box {
    width: 97%;
    padding: 5px;
    margin-bottom: 5px;
    font-size: 18px;
    font-family: var(--font-family-main);
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  #search-box::selection {
    background-color: var(--color-accent);
    color: white;
  }
  
  #search-results {
    display: none;
    max-height: calc(5 * (100px + 20px));
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
  }
  
  #search-results.active {
    display: block;
  }
  
  #search-results a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    border: 1px solid #808080;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    margin-bottom: 6px;
  }
  
  #search-results a:hover {
    background: var(--color-result-hover-bg);
    border-color: var(--color-result-border-hover);
    text-decoration: none;
  }
  
  #search-results div {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    transition: none;
    box-sizing: border-box;
    width: 100%;
    background: none;
    border: none;
  }
  
  #search-results div img {
    width: 150px;
    height: 150px;
    margin: 6px;
    object-fit: cover;
    border-radius: 4px;
  }
  
  #search-results div .text-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    padding: 0;
  }
  
  #search-results div .text-content strong {
    font-size: var(--font-size-results-title);
    margin-bottom: 5px;
  }
  
  #search-results div .text-content .section {
    font-size: var(--font-size-results-section);
    color: #888;
    margin-bottom: 5px;
  }
  
  #search-results div .text-content p {
    font-size: var(--font-size-results-p);
    margin: 0;
  }
  
  /* Modern Scrollbar Styling */
  #search-results::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
  }
  
  #search-results::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
  }
  
  #search-results::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  
  #search-results::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
  }
  
  
  /* Font size adjustment for screen width under 650px */
  @media (max-width: 650px) {
    #search-results div .text-content strong {
      font-size: 1.4rem;
    }
  
    #search-results div .text-content .section {
      font-size: 1rem;
    }
  
    #search-results div .text-content p {
      font-size: 1rem;
    }
  }
  
  /* Adjustments for screen width under 440px */
  @media (max-width: 440px) {
    #search-results div .text-content .section,
    #search-results div .text-content strong {
      text-align: center;
      margin: 0 auto;
    }
  
    #search-results div {
      flex-direction: column;
      align-items: flex-start;
    }
  
    #search-results div img {
      width: 100%;
      height: auto;
      margin-right: 0;
      margin-bottom: 10px;
    }
  }
  


  
  
  .carousel {
    position: relative;
  }
  
  .arrow-left,
  .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    z-index: 10;
  }
  
  .arrow-left {
    left: 10px;
  }
  
  .arrow-right {
    right: 10px;
  }
  
  