      body {
        font-family: Inter, sans-serif;
        padding: 1em;
        background-color: #f9fafb;
      }
      .header-container {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
      }
      .search-container {
        display: grid;
        grid-template-areas:
          'results sidebar';
        grid-template-columns: 1fr auto;
        gap: 1.5em;
      }
      .search-container.filters-hidden {
        grid-template-areas: 'results';
        grid-template-columns: 1fr;
      }
      #searchbox-container { position: relative; }

      #tags-filter {
        grid-area: sidebar;
        width: 250px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateX(0);
        opacity: 1;
        margin-right: 2.5rem;
      }
      #tags-filter.hidden {
        transform: translateX(100%);
        opacity: 0;
        width: 0;
        pointer-events: none;
      }
      #toggle-filters-btn{
         margin-right: 2.5rem;
      }
      .results-container { grid-area: results; }

      /* Custom Search Box */
      .ais-SearchBox-form{
         height: 3.5rem;
         font-size: 1.1rem;
      }
      
      .ais-SearchBox-input { 
        padding-right: 40px; 
        border-radius: 0.75rem;
      }
      .ais-SearchBox-input{
        box-shadow: none;
      }
      #search-icon-button {
        position: absolute;
        right: 0.75rem;
        top: 0; bottom: 0;
        display: flex; align-items: center; justify-content: center;
        padding: 0 1rem;
        height: 100%;
        background: none; border: none; cursor: pointer;
      }

      /* Custom Refinement Lists */
      .ais-RefinementList-list--horizontal {
        display: flex;
        flex-wrap: wrap;
        gap: 0; /* Increased gap for better spacing */
        list-style-type: none;
        padding-left: 0;
      }

      .ais-RefinementList-item{
         margin: 0 0 0 1rem;
      }
      .ais-RefinementList-count{
         margin-left: .25rem;
         font-size: .5rem;
      }

      /* General Checkbox Styling */
      .ais-RefinementList-checkbox { 
        accent-color: #0852a8; 
        margin-right: 0.25rem;
      }
      .ais-RefinementList-labelText { 
        font-weight: 600; 
        color: #0852a8; 
        font-size: .8rem;
      }

      /* Custom Hits */
      .ais-Hits-item a {
        text-decoration: none;
        color: inherit;
      }
      .ais-Hits-item article {
        display: flex;
        align-items: center;
        gap: 1em;
        padding: 0.5rem;
        border-radius: .5rem;
        transition: background-color 0.2s ease;
      }
      .ais-Hits-item article:hover {
        background-color: #f0f4f8;
      }
      .hit-image {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: .5rem;
        flex-shrink: 0;
        
      }
      .hit-content {
        display: flex;
        flex-direction: column;
      }
      .hit-content h4 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #0852a8;
        margin: 0 0 0.5rem 0;
        font-size: 1rem;
        margin-bottom: .5rem;
      }
      .hit-content a { text-decoration: none; }
      .hit-content p {
        color: #4b5563;
        margin: 0;
        /*margin: .5rem 0;*/
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        line-height: 1.5;
        overflow: hidden;
        font-size: 1rem;
      }
      @media (max-width: 768px) {
        .hit-image {
          display: none;
        }
        .ais-RefinementList-count{
          display: none;
        }
        .ais-RefinementList-list--horizontal{
          gap: 0;
        }
        #toggle-filters-btn, #tags-filter{
          display: none;
        }
        .hit-content p {
          font-size: 0.9rem;
        }
      }
      .ais-RefinementList-item--selected .ais-RefinementList-label {
        background: #0852a8;
        color: #fff;
        padding: 0 .4rem;
        border-radius: .5rem;
    }
    .ais-RefinementList-item--selected .ais-RefinementList-labelText {
        color: #fff;
    }