body,
.card,
.top-toggle button,
.sub-toggle button,
.search-bar input,
.search-btn,
.pill {
    font-family: 'Quicksand', sans-serif;
}

  .card {

    border-radius: 24px;
    padding: 4px;
    width: 100%;
    max-width: 640px;

  }

  /* Top toggle: I want to hire / I want to work */
  .top-toggle {
    position: relative;
    display: flex;
    background: #dde4ec;
    border-radius: 999px;
    padding: 6px;
    margin-bottom: 16px;
  }

  .top-toggle button {
    position: relative;
    z-index: 1;
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 10px;
    font-size: 16px;
    font-weight: 600;
    color: #6b7686;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s ease;
  }

  .top-toggle button.active {
    color: #16233d;
  }

  /* Second toggle: For a business / In a household */
  .sub-toggle {
    position: relative;
    display: inline-flex;
    background: #dde4ec;
    border-radius: 999px;
    padding: 5px;
    margin-bottom: 18px;
  }

  .sub-toggle button {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    color: #4a5568;
    transition: color 0.25s ease;
    white-space: nowrap;
  }

  .sub-toggle button.active {
    color: #ffffff;
  }

  /* Sliding background indicator — moves under whichever
     button is active instead of each button carrying its
     own background */
  .toggle-indicator {
    position: absolute;
    left: 0;
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .top-toggle .toggle-indicator {
    top: 6px;
    bottom: 6px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(20, 40, 70, 0.12);
  }

  .sub-toggle .toggle-indicator {
    top: 5px;
    bottom: 5px;
    background: #093559;
  }

  /* Search bar */
  .search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(20, 40, 70, 0.08);
    margin-bottom: 20px;
    gap: 8px;
  }

  @media (max-width:767px){


      .search-bar {
        border-radius:20px 20px 30px 30px !important;
      }
  }

  .search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 12px 16px;
    color: #16233d;
    background: transparent;
    min-width: 0;
  }

  .search-bar input::placeholder {
    color: #9aa5b1;
  }

  .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1653d3;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
  }

  .search-btn:hover {
    background: #1245b0;
  }

  .search-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Category pills */
  .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #16233d;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(20, 40, 70, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }

  .pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(20, 40, 70, 0.12);
  }

  /* RTL (Arabic) support */
  .card[dir="rtl"] {
    text-align: right;
  }

  .card[dir="rtl"] .pill svg,
  .card[dir="rtl"] .search-btn svg {
    transform: scaleX(-1);
  }

  .card[dir="rtl"] .pill:hover svg {
    transform: scaleX(-1) translateY(0);
  }

  .pill svg {
    width: 14px;
    height: 14px;
  }

  /* Responsive */
  @media (max-width: 480px) {
    .card {
      padding: 16px;
      border-radius: 18px;
    }

    .top-toggle button {
      font-size: 14px;
      padding: 13px 6px;
    }

    .sub-toggle {
      display: flex;
      width: 100%;
    }

    .sub-toggle button {
      flex: 1;
      padding: 10px 8px;
      font-size: 13px;
    }

    .search-bar {
      flex-wrap: wrap;
    }

    .search-bar input {
      width: 100%;
      padding: 10px 12px;
    }

    .search-btn {
      width: 100%;
      justify-content: center;
    }

    .pill {
      font-size: 13px;
      padding: 9px 14px;
    }
  }
