/* Custom dropdown */
.entry-content {
  position: relative;
}

.kst-custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 50%;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 16px;


  /* The visible "button" that triggers the dropdown */
  .kst-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--kt-surface);
    border: 1px solid var(--kt-shade-light);
    border-radius: var(--kt-radius-small);
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .kst-dropdown-trigger:hover {
    background-color: var(--kt-shade-lightest);
  }

  /* Styling for the selected item (image and text) inside the trigger */
  .kst-dropdown-selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .kst-dropdown-selected-title {
    font-weight: 500;
  }

  /* The small arrow icon */
  .kst-dropdown-arrow {
    font-size: 12px;
    color: var(--kt-outline-dark);
  }

  /* The dropdown list itself (initially hidden) */
  .kst-dropdown-list {
    position: absolute;
    top: 100%;
    /* Position below the trigger */
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    margin: 5px 0 0;
    padding: 0;
    background-color: var(--kt-surface);
    border: 1px solid var(--kt-outline-dark);
    border-radius: var(--kt-radius-small);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;

    ul {
      margin: 0 0 30px;
      padding: 0;
      list-style: none;
    }
  }

  /* When the dropdown is active, show the list */
  .kst-dropdown-list.active {
    display: block;
  }

  /* Styling for each individual item in the list */
  .kst-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .kst-dropdown-item:hover {
    background-color: var(--kt-shade-lightest);
  }

  .kst-dropdown-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

  .kst-dropdown-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .kst-dropdown-table-name {
    display: block;
    font-weight: 300;
  }

  /* Styling for the post thumbnail image */
  .kst-dropdown-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--kt-radius-small);
  }

  .kst-dropdown-item {
    .kst-dropdown-thumb {
      width: 60px
    }
  }

  /* Styling for the title within the dropdown list item */
  .kst-dropdown-item-title {
    font-weight: 400;
    line-height: 1.2;
  }
}