/* ===========================
   SEARCH OVERLAY
=========================== */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding-top: 80px;

  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 46, 0.55);
  backdrop-filter: blur(6px);
}

.search-panel {
  position: relative;

  width: min(850px, 92%);
  max-height: 80vh;

  background: #fff;
  border-radius: 22px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

  transform: translateY(-20px);
  transition: 0.25s;
}

.search-overlay.active .search-panel {
  transform: translateY(0);
}

.search-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 25px 30px;

  border-bottom: 1px solid #ececec;
}

.search-panel-header h2 {
  font-size: 1.4rem;
  color: #16354d;
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #555;
}

.search-input-wrapper {
  padding: 25px 30px;
}

.site-search-input {
  width: 100%;

  padding: 18px 24px;

  border-radius: 14px;
  border: 2px solid #e5e5e5;

  font-size: 1rem;

  transition: 0.2s;
}

.site-search-input:focus {
  outline: none;
  border-color: #007a5a;
}

.search-results-box {
  max-height: 500px;
  overflow-y: auto;

  padding: 10px 30px 30px;
}

.search-result {
  display: block;

  padding: 18px;

  border-radius: 14px;

  text-decoration: none;

  transition: 0.2s;
}

.search-result:hover {
  background: #f6f8fb;
}

.search-category {
  color: #007a5a;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.search-title {
  color: #16354d;
  font-size: 1.05rem;
  font-weight: 700;
}

.search-description {
  color: #666;
  margin-top: 6px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.search-empty-text {
  text-align: center;
  color: #888;
  padding: 40px;
}
