/* Styles for search/index.php */
.search-box { max-width: 700px; margin: 0 auto 20px; position: relative; }
.result-card {
  border: none;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 16px;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  text-align: justify;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.result-title {
  color: #1a0dab;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  display: block;
  transition: color 0.15s ease;
}

.result-title:hover {
  color: #1558d6;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.result-url {
  color: #006621;
  font-size: 0.9rem;
  word-break: break-all;
  margin: 0 0 8px;
  display: block;
  font-weight: 500;
  line-height: 1.3;
}

.result-desc {
  color: #4d5156;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: break-word;
}
    .loading { text-align: center; padding: 20px; color: #6c757d; }
    .no-more { text-align: center; padding: 20px; color: #6c757d; font-style: italic; }

    /* Search bar styling */
    .search-input-group { 
      box-shadow: 0 1px 6px rgba(32,33,36,0.28); 
      border-radius: 24px; 
    }
    .search-input { 
      border: none !important; 
      padding-left: 20px !important; 
      padding-right: 20px !important; 
      height: 48px !important; 
      box-shadow: none !important;
    }
    .search-btn { background: #f8f9fa !important; border: none !important; }

    /* Autocomplete dropdown */
    #suggestions {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 1000;
      background: white;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      max-height: 250px;
      overflow-y: auto;
      display: none;
    }
    #suggestions a {
      display: block;
      padding: 10px 16px;
      color: #212529;
      text-decoration: none;
      font-size: 0.95rem;
    }
    #suggestions a:hover,
    #suggestions a.active {
      background-color: #e9ecef;
    }