
/* ===== Step 9: Global Search ===== */

.header-search-form{
  display:flex;
  align-items:center;
  width:190px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  overflow:hidden;
}

.header-search-form input{
  width:100%;
  min-width:0;
  padding:8px 9px;
  border:0;
  outline:0;
  font:inherit;
  font-size:13px;
  background:transparent;
}

.header-search-form button{
  border:0;
  background:transparent;
  cursor:pointer;
  padding:8px 9px;
}

.search-page-hero{
  padding-bottom:34px;
}

.global-search-box{
  display:flex;
  gap:9px;
  max-width:760px;
  margin-top:22px;
  padding:7px;
  border:1px solid #d8e3f5;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 30px rgba(20,65,135,.10);
}

.global-search-box input{
  flex:1;
  min-width:0;
  padding:11px 13px;
  border:0;
  outline:0;
  font:inherit;
  font-size:15px;
  background:transparent;
}

.search-summary{
  padding:13px 15px;
  margin-bottom:22px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f8fbff;
}

.search-result-section{
  margin-bottom:32px;
}

.search-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.search-section-heading h2{
  margin:0;
}

.search-section-heading span{
  color:var(--muted);
  font-size:13px;
}

.search-result-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:13px;
}

.search-result-card{
  display:flex;
  gap:13px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--shadow);
}

.search-result-thumb{
  width:92px;
  height:92px;
  flex:0 0 92px;
  overflow:hidden;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#eef4ff;
  font-size:30px;
}

.search-result-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.search-result-copy{
  min-width:0;
  flex:1;
}

.search-kind{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background:#edf3ff;
  color:#1551b5;
  font-size:10px;
  font-weight:800;
}

.search-result-copy h3{
  margin:7px 0 5px;
  font-size:16px;
  line-height:1.35;
}

.search-result-copy p{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
}

.search-result-btn{
  padding:8px 11px;
  font-size:12px;
}

.search-empty-intro{
  text-align:center;
  padding:50px 15px;
}

@media(max-width:1100px){
  .header-search-form{
    width:150px;
  }
}

@media(max-width:900px){
  #mainNav .header-search-form{
    width:100%;
    margin:8px 0;
  }

  .search-result-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .global-search-box{
    flex-direction:column;
  }

  .global-search-box .btn{
    width:100%;
  }

  .search-result-card{
    align-items:flex-start;
  }

  .search-result-thumb{
    width:72px;
    height:72px;
    flex-basis:72px;
  }
}
