:root {
  --primary: #0052CC;
  --text: #42526E;
  --border: #DFE1E6;
  --bg: #FFFFFF;
}

.search-section {
    display: flex;
    justify-content: center;   /* horizontally center */
    width: 100%;
}

.ps-container {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 20px 20px;

  width: 100%;              /* 👈 important */
  max-width: 1100px;        /* already hai ✔️ */
  margin: 0 auto;           /* 👈 center fix */

  box-shadow:
    0 4px 8px rgba(9,30,66,.08),
    0 0 1px rgba(9,30,66,.31);
}


/* Tabs */
.ps-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  height: 44px;
  position: relative;
}

.ps-tab {
  line-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.ps-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.ps-new .ps-dot {
  width: 6px;
  height: 6px;
  background: #FF5630;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: -8px;
}

.ps-post {
  margin-left: auto;
  font-weight: 600;
}

.ps-free {
  background: #36B37E;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  border-radius: 3px;
  margin-left: 6px;
}

.ps-indicator {
  position: absolute;
  bottom: -1px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  width: 80px;
  transition: .25s;
}

/* Search */
.ps-search {
  justify-content: center;
  display: flex;
  gap: 12px;
  margin-top: 16px;
  height: 56px;
  align-items: center;
}

.ps-dropdown,
.ps-btn,
.ps-mic,
.ps-search input {
  height: 40px;
  border-radius: 6px;
}

.ps-dropdown {
  border: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-weight: 600;
  white-space: nowrap;
}

.ps-input-wrap {
  flex: 1;
  position: relative;
}

.ps-search input {
  width: 100%;
  border: 1px solid var(--border);
  padding: 0 14px;
  font-size: 14px;
}

.ps-suggest {
  
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: none;
  z-index: 20;
}

.ps-suggest div {
  padding: 10px 14px;
  cursor: pointer;
}

.ps-suggest div:hover {
  background: #F4F5F7;
}

.ps-mic {
  width: 40px;
  cursor: pointer;
}

.ps-mic img {
  width: 40px;
  height: 40px;
}

.ps-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-weight: 600;
}



@media (max-width: 768px) {

  /* Outer section spacing */
  .search-section {
    padding: 0 12px;
  }

  /* Main search container */
  .ps-container {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: 10px;
  }

  /* Tabs */
  .ps-tabs {
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ps-tab {
    font-size: 14px;
    line-height: 40px;
  }

  .ps-indicator {
    display: none; /* mobile me indicator heavy lagta hai */
  }

  /* Search row stack */
  .ps-search {
    flex-direction: column;
    gap: 10px;
    height: auto;
    align-items: stretch;
  }

  /* Dropdown & input full width */
  .ps-dropdown,
  .ps-input-wrap,
  .ps-search input,
  .ps-btn {
    width: 100%;
  }

  /* Mic icon ko input ke andar adjust */
  .ps-mic {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }

  .ps-input-wrap {
    position: relative;
  }

  /* Button height better touch */
  .ps-btn {
    height: 44px;
    font-size: 15px;
  }
}



