/*
Don't want to use sass and simply modify the stylesheet in the old css fashion?
Just customize your theme here.
================================================== */

body {}

ul.list-unstyled li {
  margin-bottom: .3rem;
}

ol.list-featured {
  counter-reset: my-awesome-counter;
  list-style: none;
  padding-left: 0;
}

ol.list-featured li {
  counter-increment: my-awesome-counter;
  display: flex;
  font-size: 0.8rem;
}

/* ol.list-featured li:before {
    content: "0" counter(my-awesome-counter);
    font-weight: bold;
    font-size: 2rem;
    margin-right: 0.5rem;
    font-family: Arial;
    line-height: 1;
    opacity: .1;
} */
.catlist .sep:last-child {
  display: none;
}

.d-block {
  display: block !important;
}

.text-muted {
  color: #6c757d !important;
}

.btn {
  cursor: pointer !important;
}

.img{
  height: 2rem;
  width: 2rem;
}
.adp {
  display: flex;
  box-sizing: border-box;
  flex-flow: column;
  position: fixed;
  z-index: 99999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22rem;
  height: 20rem;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 5px;
  align-items: center;
}
.adp h2 {
  border-bottom: 1px solid #eee;
  margin: 0;
  padding: 15px 0;
}
.adp p {
   flex-grow: 1;
}
.adp a {
  display: block;
  text-decoration: none;
  width: 100%;
  background-color: #366ed8;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  color: #ffffff;
  border-radius: 5px;
}
.adp a:hover {
  background-color: #3368cc;
}
.adp-underlay {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 99998;
}

/* Hamburger Menu Icon */
.hamburger-icon {
  width: 25px;
  height: 20px;
  position: relative;
  margin: 0;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

/* Animation for open state - Update selectors */
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

.search-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}

/* Modal Content */
.search-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,.3);
  width: 80%;
  max-width: 700px;
  max-height: 70vh;
  overflow-y: auto;
}

/* The Close Button */
.search-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.search-close:hover,
.search-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.search-modal-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.search-modal-header h2 {
  margin: 0;
  padding: 0;
}

#modal-search-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

.search-button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 0 10px;
  font-size: 1.1rem;
}

.search-button:hover {
  color: #1d2124;
}

/* Add this to your existing styles */
.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result-item {
  margin-bottom: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-link {
  display: flex;
  align-items: center;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  min-height: 74px;
}

.search-result-link:hover {
  text-decoration: none;
  color: inherit;
}

.search-result-icon {
  flex: 0 0 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  color: #6c757d;
  font-size: 20px;
}

.search-result-name {
  flex: 1;
}

.search-result-name h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.search-result-category {
  display: inline-block;
  font-size: 12px;
  color: #6c757d;
}

.search-result-arrow {
  color: #ccc;
  margin-left: 10px;
}

#modal-results-container {
  max-height: 400px;
  overflow-y: auto;
}

/* Add responsive styling for better mobile view */
@media (max-width: 576px) {
  .search-result-name h4 {
    font-size: 14px;
  }

  .search-modal-content {
    width: 95%;
    margin: 15% auto;
  }
}

#modal-search-input:focus {
  border-color: #1d2124;
  outline: none;
  box-shadow: 0 0 0 2px rgba(29, 33, 36, 0.25);
}


.sidebar-search form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  align-content: center;
  max-width: 600px;
}

.sidebar-search input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 2px;
  font-size: 16px;
  background: #ffffff;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
}
