/* Container for the glossary content and the alphabet filter 
.glossary-wrapper {
  margin: 0 auto;
  padding: 20px;
}

/* Left side: search bar and glossary items 
.glossary-content {
  padding-right: 2%;
  padding-left: 2%;
}
*/

.glossary-search-box {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.glossary-search-box input {
  padding: 10px 0px 10px 0px; /* Add padding to make space for the icon */
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  text-indent: 40px;
  width: 100%;
}

.glossary-search-box .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  pointer-events: none;
  font-size: 16px;
  background: transparent;
}

.glossary-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
}

.glossary-item .arrow-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #333; /* Adjust icon color */
  font-size: 15px; /* Adjust icon size */
}

.glossary-item h2 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.glossary-item p {
  margin: 5px 0;
  color: #666; /* Adjust text color */
}

.glossary-item:hover {
  background-color: #e0e0e0; /* Optional hover effect */
}

#load-more {
  display: block;
  margin: 20px 0;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#load-more:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Right side: alphabetical radio filter */
.glossary-alphabet-filter {
  width: 25%; /* 1/4 width */
  padding-left: 20px; /* Add some space between the content and the filter */
  /*border-left: 1px solid #ccc; /* Optional: add a border to separate the sections */
}
.glossary-alphabet-filter ul {
  display: grid;
  grid-template-columns: repeat(
    4,
    1fr
  ); /* 4 columns per row for the radio buttons */
  gap: 0px; /* Space between radio buttons */
  list-style: none;
  margin: 0;
  padding: 0;
}
.glossary-alphabet-filter ul li {
  margin-left: 0;
}
.glossary-alphabet-filter label {
  font-size: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.glossary-alphabet-filter label input {
  margin-right: 5px;
}
#reset-filter {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* #reset-filter:hover {
  background-color: #c00;
} */

@media only screen and (min-width: 768px) {
  .glossary-wrapper {
    display: flex;
    justify-content: space-between;
  }
  /* Left side: search bar and glossary items */
  .glossary-content {
    width: 73%; /* 3/4 width */
  }

  /* Right side: alphabetical radio filter */
  .glossary-alphabet-filter {
    width: 30%; /* 1/3 width */
  }
}

ul.glossary-category-list {
  display: block;
  clear: both;
}
.glossary-category-list li {
  border-bottom: 1px solid #ccc;
  padding: 5px 0;
}

/*** Specific for Cyberoptik site ***/

.single-glossary .post-info,
.single-glossary #author-bio,
.single-glossary .post-nav {
  display: none;
}
.single-glossary .post-content::after {
  content: "";
  display: block;
  width: 100%;
  background-color: #ccc;
  height: 1px;
  visibility: visible !important;
  margin-top: 50px;
}